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.2.0
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.3.0
Choose a head ref
  • 5 commits
  • 29 files changed
  • 1 contributor

Commits on Feb 23, 2026

  1. Fix timezone offset range and month boundary in isValid

    - Remove local timezone dependency in getLastDayOfMonth by using Date.UTC
    - Expand timezone offset (Z token) valid range from -840~720 to -913~956
      to support historical timezone offsets (e.g., Metlakatla, Manila)
    - Add test cases for min (America/Metlakatla) and max (Asia/Manila) offsets
    knowledgecode committed Feb 23, 2026
    Configuration menu
    Copy the full SHA
    def8b55 View commit details
    Browse the repository at this point in the history
  2. Add IANA timezone string support to all date manipulation functions

    - Move isUTC helper from zone.ts to datetime.ts and add dtfToParts helper
    - Refactor getTimezoneOffset and createTimezoneDate in zone.ts to accept
      IANA timezone name strings (e.g., 'America/Los_Angeles') in addition to
      TimeZone objects
    - Update ParserPluginOptions.timeZone type to TimeZone | string in parser.ts;
      integrate ignoreCase logic into find function and add validateToken
    - Update day-of-week plugin to use new find signature with options parameter
    - Change timeZone argument type to TimeZone | string in addDays, addMonths,
      addYears, parse, and preparse
    - Add test cases for IANA string timezones and historical timezone changes
      (Metlakatla, Manila); expand boundary values to -1601/+1601
    knowledgecode committed Feb 23, 2026
    Configuration menu
    Copy the full SHA
    d50f51f View commit details
    Browse the repository at this point in the history
  3. Update documentation for v4.3.0 IANA timezone string support

    - Update type signatures from TimeZone | 'UTC' to TimeZone | string across
      all API docs (addDays, addMonths, addYears, format, parse, subtract, etc.)
    - Document IANA timezone string usage for all date manipulation functions
    - Add v4.3.0 new features section to migration.md
    - Promote Method 3 (IANA string) as the recommended approach in timezones.md
    - Fix minor grammar and punctuation issues
    knowledgecode committed Feb 23, 2026
    Configuration menu
    Copy the full SHA
    1556efa View commit details
    Browse the repository at this point in the history
  4. Bump version to 4.3.0 and update dependencies

    - Bump version from 4.2.0 to 4.3.0
    - Upgrade ESLint 9 to 10 and add @eslint/js
    - Update @stylistic/eslint-plugin, @types/node, vitest, rollup, and
      typescript-eslint to latest versions
    - Add minimatch: ^10.2.2 to overrides
    - Add SwitchCase: 0 to @stylistic/indent rule in eslint.config.js
    knowledgecode committed Feb 23, 2026
    Configuration menu
    Copy the full SHA
    d93ec05 View commit details
    Browse the repository at this point in the history
  5. Merge pull request #117 from knowledgecode/develop

    Release v4.3.0: Add IANA timezone string support
    knowledgecode authored Feb 23, 2026
    Configuration menu
    Copy the full SHA
    f25d677 View commit details
    Browse the repository at this point in the history
Loading