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 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
LocaleResolver
class to split a merged declaration with theLocale
interface.
- Fixed context bug affecting datetime intervals.
- Patch display name for
ajp
language 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.timeData
method to fetch preferred and allowed hour cycle skeletons.
- Add long/short timezone names to
timeZoneInfo
results.
- Enhanced type safety for unit factor conversions.
- Fixed missing
node-fetch
runtime dependency for@phensley/cldr-compiler
package.
- 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: true
to 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
timeData
method.
- Add
Calendars.timeData
method 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: true
to add Typescript source code to source maps.
- Upgrade to tzdb 2021a
- The
cldr-compiler pack
command 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 schema
will 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
CalendarDate
for ISO weeks.
- Upgrade to tzdb 2020f
-
The
phensley/timezone
package includes a newTZ.zoneMeta
method 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.timeZoneInfo
resultTimeZoneInfo
now includes the same properties asTZ.zoneMeta
above, plus the following property:metazone
Current 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.x
constraint. - 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.minor
version of the@phensley/cldr-core
package at runtime to ensure schema compatibility.