All notable changes to this project will be documented in this file.
This project uses a modified semantic versioning scheme. See README for more details.
- Upgrade to CLDR v48.0.0
- Fix for Temporal date difference spec bug.
- Temporal-compatible date math and date difference:
- New
CalendarDateuntilandsincemethods and modification of existingadd,subtract, anddifferencemethods to be Temporal-compatible. - Only integers can be used when adding to a date instance.
- New
- Improvements to
CalendarDate.relativeTime. - Exposed currency functions globally
- Added more fine-grained
CalendarDateto-string methods.
- Include patch files in
cldr-compilerpackage distribution.
- Fix timezone offset bug in calendar math
- Upgrade to CLDR v47
- Upgrade to tzdb 2025b
- Upgrade to CLDR v46.1
- Improvements to interval formatting.
- Added
startOfandendOfmethods toCalendarDate. - Exposed additional date methods.
- Fixed bug in timeData resolution
- Improvements and fixes to date interval formatting
- Upgrade to tzdb 2024b
- Convert some enums to non-const for use at runtime
- Upgrade to CLDR v45
- Upgrade to tzdb 2024a
- Fix for spaces in Japanese unit patterns
- Clamp all dates to our bounded range for Julian days
- Fix bug in default calendar selection
- Fix bug in generating Finnish timezones
- Upgrade to CLDR v44
- Upgrade to Typescript 5.3.2
- Created
LocaleResolverclass to split a merged declaration with theLocaleinterface.
- Fixed context bug affecting datetime intervals.
- Patch display name for
ajplanguage in English locales.
- Upgrade to CLDR v43.1
- Upgrade to CLDR v43
- Upgrade to tzdb 2023c
- Added message formatting option to disable apostrophe escapes.
- Upgrade to tzdb 2022g
- Add
Calendars.timeDatamethod to fetch preferred and allowed hour cycle skeletons.
- Add long/short timezone names to
timeZoneInforesults.
- Enhanced type safety for unit factor conversions.
- Fixed missing
node-fetchruntime dependency for@phensley/cldr-compilerpackage.
- Upgrade to CLDR v42
- Upgrade to tzdb 2022e
- Upgrade to tzdb 2022b
- Upgrade to CLDR v41
- Upgrade to tzdb 2022a
- Upgrade to CLDR v40
- Fixed internal package dependencies. Packages must depend on others from the same patch level.
- Fixed internal package dependencies. Packages must depend on others from the same patch level.
- Set
inlineSources: trueto add Typescript source code to source maps.
- Upgrade to CLDR v39
- Convert some enums to non-const for use at runtime
- Backport: Fix for spaces in Japanese unit patterns
- Backport: Clamp all dates to our bounded range for Julian days
- Fix interval date formatter context
- Fixed imports in type declaration files
- Add option to disabled escapes in message formatter
- Removed unused parameter on
timeDatamethod.
- Add
Calendars.timeDatamethod to fetch preferred and allowed time cycles.
- Add long/short timezone names to timeZoneInfo results.
- Build improvements.
- Fix parsing of extended language subtag.
- Ping all dependencies to same minor version.
- Set
inlineSources: trueto add Typescript source code to source maps.
- Upgrade to tzdb 2021a
- The
cldr-compiler packcommand now includes the ability to apply patches to the resource packs, allowing you to replace CLDR values with your own. See the included example. - A new command
cldr-compiler schemawill dump the CLDR data schema used to generate resource packs. This is helpful in identifying the full path to a value you may want to patch.
- Fix types for character/line order.
- Use default JSON export for version string.
- Methods on
CalendarDatefor ISO weeks.
- Upgrade to tzdb 2020f
-
The
phensley/timezonepackage includes a newTZ.zoneMetamethod to return metadata for a timezone. This can be useful for displaying user interfaces for choosing a timezone. The new properties are:stdoffset- Current standard offset, in milliseconds.latitude- Latitude to 6 decimal places, for the timezone's "principal location"longitude- Latitude to 6 decimal places, for the timezone's "principal location"countries- List of ISO 3166 2-letter country codes for countries which overlap the timezone.
-
The
cldr.Calendars.timeZoneInforesultTimeZoneInfonow includes the same properties asTZ.zoneMetaabove, plus the following property:metazoneCurrent CLDR metazone for the timezone.
- Use
tslib ^1.13.0
- Project now uses standard semantic versioning, see README
- All
@phensley/*package interdependencies now use the^x.x.xconstraint. - Removed the internal package
@phensley/cldr-schema, merging its code into@phensley/cldr-core. - Switched from tslint to eslint.
- Modified checksum so that resource packs are now compatible at the patch level. Resource packs must match the
major.minorversion of the@phensley/cldr-corepackage at runtime to ensure schema compatibility.