Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: knowledgecode/date-and-time
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v4.1.2
Choose a base ref
...
head repository: knowledgecode/date-and-time
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v4.2.0
Choose a head ref
  • 8 commits
  • 27 files changed
  • 2 contributors

Commits on Jan 7, 2026

  1. Bump preact from 10.27.1 to 10.28.2

    Bumps [preact](https://github.com/preactjs/preact) from 10.27.1 to 10.28.2.
    - [Release notes](https://github.com/preactjs/preact/releases)
    - [Commits](preactjs/preact@10.27.1...10.28.2)
    
    ---
    updated-dependencies:
    - dependency-name: preact
      dependency-version: 10.28.2
      dependency-type: indirect
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    dependabot[bot] authored Jan 7, 2026
    Configuration menu
    Copy the full SHA
    ca5d789 View commit details
    Browse the repository at this point in the history

Commits on Jan 8, 2026

  1. Merge pull request #115 from knowledgecode/dependabot/npm_and_yarn/pr…

    …eact-10.28.2
    
    Bump preact from 10.27.1 to 10.28.2
    knowledgecode authored Jan 8, 2026
    Configuration menu
    Copy the full SHA
    fd6d116 View commit details
    Browse the repository at this point in the history

Commits on Jan 18, 2026

  1. Refactor: Separate TimeZone type definition into zone.ts

    Move TimeZone interface and helper functions from timezone.ts to a new
    zone.ts file to improve code organization and prepare for adding
    consolidated timezone imports feature.
    
    This change does not affect the external API or functionality.
    knowledgecode committed Jan 18, 2026
    Configuration menu
    Copy the full SHA
    c3fe151 View commit details
    Browse the repository at this point in the history
  2. Feat: Add consolidated timezone imports and IANA timezone name string…

    … support
    
    Add two new ways to use timezones:
    
    1. Consolidated imports: Import multiple timezones from a single module
       import { Tokyo, New_York } from 'date-and-time/timezone';
    
    2. IANA timezone name strings: Use timezone names directly in format()
       format(date, 'YYYY-MM-DD HH:mm', { timeZone: 'Asia/Tokyo' });
    
    The tools/timezone.ts script now generates both individual timezone files
    and an integrated timezone.ts file for consolidated imports.
    
    Note: The parse() function does not support IANA name strings, only
    TimeZone objects and the "UTC" string.
    knowledgecode committed Jan 18, 2026
    Configuration menu
    Copy the full SHA
    69b896e View commit details
    Browse the repository at this point in the history
  3. Test: Add tests for new timezone features

    Add comprehensive tests for:
    - Consolidated timezone imports from 'date-and-time/timezone'
    - IANA timezone name string support in format()
    - Ensure both import methods produce identical results
    knowledgecode committed Jan 18, 2026
    Configuration menu
    Copy the full SHA
    ea5c6d7 View commit details
    Browse the repository at this point in the history
  4. Docs: Update documentation for new timezone features

    Update all documentation to explain the three methods for specifying
    timezones:
    
    1. Individual imports (date-and-time/timezones/Asia/Tokyo)
    2. Consolidated imports (date-and-time/timezone)
    3. IANA timezone name strings (format only)
    
    Add migration guide for v4.2.0 with detailed examples and usage notes.
    knowledgecode committed Jan 18, 2026
    Configuration menu
    Copy the full SHA
    0c79694 View commit details
    Browse the repository at this point in the history
  5. Chore: Bump version to 4.2.0 and update dependencies

    Update version to 4.2.0 to reflect new timezone features.
    Update development dependencies to their latest versions.
    knowledgecode committed Jan 18, 2026
    Configuration menu
    Copy the full SHA
    7b1c703 View commit details
    Browse the repository at this point in the history
  6. Merge pull request #116 from knowledgecode/develop

    v4.2.0: Add timezone features and improve code organization
    knowledgecode authored Jan 18, 2026
    Configuration menu
    Copy the full SHA
    c54dc6e View commit details
    Browse the repository at this point in the history
Loading