Skip to content

Latest commit

 

History

History
1104 lines (358 loc) · 41.4 KB

CHANGELOG.md

File metadata and controls

1104 lines (358 loc) · 41.4 KB

Change Log

All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.

6.1.4 (2021-01-27)

Note: Version bump only for package @formatjs/intl-numberformat

6.1.3 (2021-01-05)

Note: Version bump only for package @formatjs/intl-numberformat

6.1.2 (2021-01-01)

Note: Version bump only for package @formatjs/intl-numberformat

6.1.1 (2020-12-18)

Bug Fixes

  • @formatjs/intl-numberformat: fix webpack5 issue, fix #2417 (3cf812c)

6.1.0 (2020-12-16)

Features

  • @formatjs/intl-numberformat: add ability to add additional units data (73c0460), closes #2398

6.0.1 (2020-12-01)

Bug Fixes

  • @formatjs/intl-numberformat: add index file (8ffb7a3)

6.0.0 (2020-11-20)

Features

  • @formatjs/ecma402-abstract: remove unpackData (18cd5ae)
  • @formatjs/intl-numberformat: enhance best fit locale negotiation (08f9606)

BREAKING CHANGES

  • @formatjs/intl-numberformat: This polyfill now requires Intl.Locale, or @formatjs/intl-locale polyfill

5.7.6 (2020-11-12)

Note: Version bump only for package @formatjs/intl-numberformat

5.7.5 (2020-11-09)

Note: Version bump only for package @formatjs/intl-numberformat

5.7.4 (2020-11-09)

Note: Version bump only for package @formatjs/intl-numberformat

5.7.3 (2020-11-05)

Bug Fixes

  • @formatjs/intl-numberformat: fix legacy constructor handling (8c561f8)
  • @formatjs/intl-numberformat: lock down monorepo dep version (a440940)

5.7.2 (2020-11-04)

Note: Version bump only for package @formatjs/intl-numberformat

5.7.1 (2020-10-26)

Bug Fixes

  • @formatjs/intl-numberformat: fix UMD bundle (bc8f573)

5.7.0 (2020-10-25)

Features

  • @formatjs/intl-numberformat: upgrade cldr to v37 (3e6d0ce)

5.6.5 (2020-10-10)

Bug Fixes

  • @formatjs/intl-numberformat: fix err message for missing locale data, fix #2203 (f37b4ca)

5.6.4 (2020-10-08)

Note: Version bump only for package @formatjs/intl-numberformat

5.6.3 (2020-10-01)

Note: Version bump only for package @formatjs/intl-numberformat

5.6.2 (2020-09-18)

Note: Version bump only for package @formatjs/intl-numberformat

5.6.1 (2020-09-09)

Bug Fixes

  • @formatjs/intl-numberformat: determine plurality using rounded number value (#2065) (4f7f791)

5.6.0 (2020-08-30)

Features

  • @formatjs/intl-numberformat: TS to 4.0 (d77b58d)

5.5.6 (2020-08-28)

Note: Version bump only for package @formatjs/intl-numberformat

5.5.5 (2020-08-25)

Note: Version bump only for package @formatjs/intl-numberformat

5.5.4 (2020-08-22)

Note: Version bump only for package @formatjs/intl-numberformat

5.5.3 (2020-08-21)

Bug Fixes

5.5.2 (2020-08-19)

Note: Version bump only for package @formatjs/intl-numberformat

5.5.1 (2020-08-19)

Note: Version bump only for package @formatjs/intl-numberformat

5.5.0 (2020-08-18)

Features

  • @formatjs/intl-numberformat: expose shouldPolyfill to detect if platform needs our polyfill (f12bde6)

5.4.2 (2020-08-17)

Bug Fixes

  • @formatjs/intl-numberformat: use grouping data from CLDR (#1985) (8edc4ae), closes #1949

5.4.1 (2020-08-14)

Note: Version bump only for package @formatjs/intl-numberformat

5.4.0 (2020-08-13)

Features

  • @formatjs/cli: switch from glob to fast-glob (6fc7bfb)

5.3.3 (2020-07-24)

Note: Version bump only for package @formatjs/intl-numberformat

5.3.2 (2020-07-21)

Note: Version bump only for package @formatjs/intl-numberformat

5.3.1 (2020-07-16)

Reverts

  • Revert "feat(@formatjs/intl-utils): remove custom LDMLPluralRuleType and use TS3.9 type" (1a6eeac)

5.3.0 (2020-07-14)

Bug Fixes

  • react-intl: fix rollup'ed type def file (bddb88e)

Features

  • @formatjs/intl-numberformat: add new digit mapping per spec, fix #1801 (aab965d)

5.2.1 (2020-07-14)

Bug Fixes

  • react-intl: fix rollup'ed type def file (bddb88e)

5.2.0 (2020-07-14)

Features

  • @formatjs/intl-utils: remove custom LDMLPluralRuleType and use TS3.9 type (8e433d5)

5.1.0 (2020-07-14)

Features

5.0.3 (2020-07-09)

Note: Version bump only for package @formatjs/intl-numberformat

5.0.2 (2020-07-03)

Note: Version bump only for package @formatjs/intl-numberformat

5.0.1 (2020-07-03)

Note: Version bump only for package @formatjs/intl-numberformat

5.0.0 (2020-07-03)

Bug Fixes

  • add locale-data to package.json files (52a1481)

Features

  • @formatjs/intl-numberformat: restructure locale-data output (4086a49)

BREAKING CHANGES

  • @formatjs/intl-numberformat: Remove ponyfill mechanism. Our polyfill mechanism also detects buggy native implementation so we can override.
  • @formatjs/intl-numberformat: Move locale-data outside of dist. This means new locale-data path would be @formatjs/intl-numberformat/locale-data instead of @formatjs/intl-numberformat/dist/locale-data

4.2.11 (2020-07-01)

Note: Version bump only for package @formatjs/intl-numberformat

4.2.10 (2020-06-26)

Bug Fixes

4.2.9 (2020-06-23)

Note: Version bump only for package @formatjs/intl-numberformat

4.2.8 (2020-06-23)

Note: Version bump only for package @formatjs/intl-numberformat

4.2.7 (2020-06-20)

Note: Version bump only for package @formatjs/intl-numberformat

4.2.6 (2020-06-06)

Note: Version bump only for package @formatjs/intl-numberformat

4.2.5 (2020-06-06)

Note: Version bump only for package @formatjs/intl-numberformat

4.2.4 (2020-06-04)

Note: Version bump only for package @formatjs/intl-numberformat

4.2.3 (2020-06-04)

Note: Version bump only for package @formatjs/intl-numberformat

4.2.2 (2020-06-03)

Bug Fixes

  • @formatjs/intl-utils: fix toRawPrecision (round up) and toRawFixed (with huge numbers) (#1696) (df68427), closes #1692

4.2.1 (2020-05-28)

Note: Version bump only for package @formatjs/intl-numberformat

4.2.0 (2020-05-27)

Bug Fixes

  • @formatjs/intl-numberformat: fix defineProperty issue in older browsers, fix karma tests (c3365e2)
  • website: editorial fixes of Intl.NumberFormat links (#1690) (1b4a248)

Features

  • formatjs-extract-cldr-data: rm this package (62bdd32)

4.1.0 (2020-05-25)

Features

  • @formatjs/intl-numberformat: reduce asset size since we use Intl.getCanonicalLocales (3ae64b2)

4.0.1 (2020-05-23)

Note: Version bump only for package @formatjs/intl-numberformat

4.0.0 (2020-05-23)

Features

  • @formatjs/intl-numberformat: Use native Intl.getCanonicalLocales (54cea38)

This is a rewrite of Intl.NumberFormat polyfill:

  • Feature compatible with ES2020 spec.
  • Pass most of Intl.NumberFormat test262 cases.
  • New version is 3 to 4 times faster in the benchmark of instantiating NumberFormat object + formatting numbers in currency or unit styles. It is almost 2 times faster in the benchmark variant that reuses the NumberFormat object.
  • Slightly reduce locale data JSON size.
  • Support compound unit like kilometer-per-second, where kilometer and second can be any simple unit whitelisted in [IsSanctionedSimpleUnitIdentifier][].
  • Polyfill for NumberFormat.prototype.toLocaleString.
  • Drop Unified prefix from the type definitions.
  • Reorganized source module structure.

BREAKING CHANGES

  • @formatjs/intl-numberformat: This requires @formatjs/intl-getcanonicallocales for IE11 and below

3.3.8 (2020-05-21)

Bug Fixes

  • @formatjs/intl-numberformat: rename intl-unified-numberformat to intl-numberformat (8f183d3)

3.3.7 (2020-05-16)

Note: Version bump only for package @formatjs/intl-unified-numberformat

3.3.6 (2020-05-05)

Note: Version bump only for package @formatjs/intl-unified-numberformat

3.3.5 (2020-04-28)

Note: Version bump only for package @formatjs/intl-unified-numberformat

3.3.4 (2020-04-24)

Bug Fixes

  • eslint-plugin-formatjs: add missing dep (776390e)

3.3.3 (2020-04-14)

Bug Fixes

  • clean up tsbuildinfo before full build (c301ca0)

3.3.2 (2020-04-12)

Bug Fixes

  • @formatjs/cli: do not read from stdin if glob pattern is pr… (#632) (54a7aea)

3.3.1 (2020-03-30)

Note: Version bump only for package @formatjs/intl-unified-numberformat

3.3.0 (2020-03-18)

Bug Fixes

  • @formatjs/intl-unified-numberformat: reduce install size by dropping unicode-12.1.0 dependency (#497) (b84ddc2)

Features

  • @formatjs/intl-utils: Add intl-unified-numberformat option types (e6a32d6)

3.2.0 (2020-01-27)

Bug Fixes

  • @formatjs/intl-unified-numberformat: reduce install size by dropping unicode-12.1.0 dependency (#497) (b84ddc2)

Features

  • @formatjs/intl-utils: Add intl-unified-numberformat option types (e6a32d6)

3.1.0 (2020-01-22)

Bug Fixes

  • @formatjs/intl-unified-numberformat: fix moar test262 cases (#464) (c3bec6e)
  • @formatjs/intl-unified-numberformat: fix some 262 test cases (3e8e931)

Features

  • @formatjs/intl-displaynames: initial commit (#469) (137b994)

3.0.4 (2020-01-09)

Bug Fixes

  • @formatjs/intl-unified-numberformat: address min2 grouping strategy for compact (fd1b22d)
  • @formatjs/intl-unified-numberformat: fix compact grouping regression (9a02dcb)
  • @formatjs/intl-utils: fix setNumberFormatDigitOptions (cb21c1f)

3.0.3 (2020-01-08)

Note: Version bump only for package @formatjs/intl-unified-numberformat

3.0.2 (2020-01-06)

Bug Fixes

  • @formatjs/intl-listformat: don’t treat en-US-POSIX as en-US because they are different (a37b091)
  • @formatjs/intl-unified-numberformat: account for DecimalFormatNum in internal slots (dc26b43)
  • @formatjs/intl-unified-numberformat: default to decimal symbol instead of currency (9a99e91)
  • @formatjs/intl-unified-numberformat: fix apostrophe escape in ILD extraction (de1eb0a)
  • @formatjs/intl-unified-numberformat: fix cases where {number} or {0} is in the middle of the pattern (3ca49d8)
  • @formatjs/intl-unified-numberformat: fix cases with compact for ko & zh (eb3c3ac)
  • @formatjs/intl-unified-numberformat: fix currency compact form having special plural rules (b0a6d4f)
  • @formatjs/intl-unified-numberformat: fix decimal tests (7cc56d0)
  • @formatjs/intl-unified-numberformat: fix ILD lookup for currency name in compact mode (76e8e5f)
  • @formatjs/intl-unified-numberformat: initialize PluralRules with the same opts as NumberFormat (cd8a67c)
  • @formatjs/intl-unified-numberformat: refactor + fix apostrophe-escaped issue in pattern (e45bc89)
  • @formatjs/intl-utils: fix getInternalSlot to prevent Object.prototype taint (334441b)

3.0.1 (2019-12-27)

Note: Version bump only for package @formatjs/intl-unified-numberformat

3.0.0 (2019-12-26)

Bug Fixes

  • @formatjs/intl-unified-numberformat: add back unpackData so we get the correct locale hierarchy (c778e19)
  • @formatjs/intl-unified-numberformat: add more tests (5bb5924)
  • @formatjs/intl-unified-numberformat: add more tests (5122cdc)
  • @formatjs/intl-unified-numberformat: add more tests for compact notation (0a5a180)
  • @formatjs/intl-unified-numberformat: add some currency support, update test snapshots (d603a3c)
  • @formatjs/intl-unified-numberformat: bound format/formatToParts, fix test262 case (a3a29e7)
  • @formatjs/intl-unified-numberformat: fix -0 case (c9351c5)
  • @formatjs/intl-unified-numberformat: fix #376 (4b7e10a)
  • @formatjs/intl-unified-numberformat: fix base log 10 and implement compact, fix #370 (2a7f478)
  • @formatjs/intl-unified-numberformat: fix currency digits (b624d54)
  • @formatjs/intl-unified-numberformat: fix more test262 cases (0da0657)
  • @formatjs/intl-unified-numberformat: fix more things (ad046f3)
  • @formatjs/intl-unified-numberformat: fix more things for test262 (35c3c5a)
  • @formatjs/intl-unified-numberformat: fix resolvedOptions (8b3af26)
  • @formatjs/intl-unified-numberformat: fix scientific notation for numbers < 1 (8c71872)
  • @formatjs/intl-unified-numberformat: fix scientific pattern for decimal (a0edba5)
  • @formatjs/intl-unified-numberformat: fix unit issue (8feb8e7)
  • @formatjs/intl-unified-numberformat: more currency fixes for scientific notation (6835bb4)
  • @formatjs/intl-unified-numberformat: more work on currency formatting (5a5b8e6)
  • @formatjs/intl-unified-numberformat: more work on fixing currency pattern (6cb0d67)
  • @formatjs/intl-unified-numberformat: move currency processing to lazy (6e1d621)
  • @formatjs/intl-unified-numberformat: pass tests for unit (a9bbc74)
  • @formatjs/intl-unified-numberformat: update snapshots (917aa7e)
  • @formatjs/intl-unified-numberformat: use CLDR symbol instead of ISO code for currencySymbol (4db663d)
  • @formatjs/intl-unified-numberformat: validate currency code, fix #371 (03f8ee6)
  • @formatjs/intl-unified-numberformat: validate unit, fix #372 (a93c324)

Features

  • @formatjs/intl-unified-numberformat: add currency support and currency matching algo (786858d)
  • @formatjs/intl-unified-numberformat: add currency-digits extractions (8261383)
  • @formatjs/intl-unified-numberformat: initial work on currency narrowSymbol (e379236)
  • @formatjs/intl-unified-numberformat: more work on stage-3 APIs (3f510ca)
  • @formatjs/intl-unified-numberformat: more work on stage-3 APIs (2ebf471)
  • @formatjs/intl-unified-numberformat: Update README with more examples, disable some tests (35dd2f0)
  • formatjs-extract-cldr-data: extract raw numbers (6fa5f3f)

BREAKING CHANGES

  • @formatjs/intl-unified-numberformat: Although API remains the same, the CLDR distributed data has changed

2.2.0 (2019-12-02)

Features

  • @formatjs/intl-unified-numberformat: add currencyDisplay… (#332) (0cf8629)

2.1.8 (2019-12-01)

Note: Version bump only for package @formatjs/intl-unified-numberformat

2.1.7 (2019-11-26)

Note: Version bump only for package @formatjs/intl-unified-numberformat

2.1.6 (2019-11-25)

Bug Fixes

  • @formatjs/intl-unified-numberformat: fix crash in numberformat (e3115e2), closes #293

2.1.5 (2019-11-23)

Note: Version bump only for package @formatjs/intl-unified-numberformat

2.1.4 (2019-11-21)

Bug Fixes

  • @formatjs/intl-relativetimeformat: use api-extractor to combine d.ts (bd803dd)
  • intl-messageformat: use api-extractor to combine type definitions (6c6af9d)

2.1.3 (2019-11-20)

Note: Version bump only for package @formatjs/intl-unified-numberformat

2.1.2 (2019-11-11)

Note: Version bump only for package @formatjs/intl-unified-numberformat

2.1.1 (2019-11-10)

Note: Version bump only for package @formatjs/intl-unified-numberformat

2.1.0 (2019-10-23)

Features

  • @formatjs/intl-unified-numberformat: add correct typings to UnifiedNumberFormatOptions (70b8baa)

2.0.1 (2019-10-23)

Note: Version bump only for package @formatjs/intl-unified-numberformat

2.0.0 (2019-10-01)

Features

  • @formatjs/intl-unified-numberformat: rename __addUnitLocaleData to __addLocaleData (d251733)
  • @formatjs/intl-utils: add IE11-safe getCanonicalLocales, (b5f37c4), closes #200

BREAKING CHANGES

  • @formatjs/intl-unified-numberformat: rename __addUnitLocaleData to __addLocaleData for consistency with other polyfills

1.0.1 (2019-09-27)

Note: Version bump only for package @formatjs/intl-unified-numberformat

1.0.0 (2019-09-20)

Bug Fixes

  • @formatjs/intl-relativetimeformat: add more side-effectful files (03d2a10)
  • @formatjs/intl-unified-numberformat: rm side effects array due to build complication (499df4f)

Features

  • @formatjs/intl-unified-numberformat: mark the package as side-effects free (d05c293)

BREAKING CHANGES

  • @formatjs/intl-unified-numberformat: This package no longer comes with en by default

0.5.2 (2019-09-17)

Note: Version bump only for package @formatjs/intl-unified-numberformat

0.5.1 (2019-09-15)

Note: Version bump only for package @formatjs/intl-unified-numberformat

0.5.0 (2019-09-13)

Bug Fixes

  • @formatjs/intl-utils: consolidate parent lookup (bac2eae)

Features

  • formatjs-extract-cldr-data: dedupe relative data, reduce relative time data by 40% (db12bf3)
  • formatjs-extract-cldr-data: even smaller locale data (66a0313)

0.4.9 (2019-09-03)

Note: Version bump only for package @formatjs/intl-unified-numberformat

0.4.8 (2019-09-03)

Note: Version bump only for package @formatjs/intl-unified-numberformat

0.4.7 (2019-09-03)

Bug Fixes

  • @formatjs/intl-relativetimeformat: pass in raw locales to lookup (9c2af2a)
  • @formatjs/intl-unified-numberformat: memoize Intl.PluralRules (429a7db)
  • @formatjs/intl-unified-numberformat: pass in raw locales to lookup (719c6f2)
  • @formatjs/intl-unified-numberformat: rely on Intl.PluralRules supported locales instead of both PL & NumberFormat (8c8578d)

0.4.6 (2019-08-29)

Note: Version bump only for package @formatjs/intl-unified-numberformat

0.4.5 (2019-08-30)

Bug Fixes

  • @formatjs/intl-unified-numberformat: fix cldr build (3cb5dae)

0.4.4 (2019-08-30)

Bug Fixes

  • @formatjs/intl-unified-numberformat: export types as well (99b886b)

0.4.3 (2019-08-29)

Bug Fixes

  • @formatjs/intl-unified-numberformat: fix package.json (5940281)

0.4.2 (2019-08-29)

Bug Fixes

  • @formatjs/intl-unified-numberformat: add .npmignore (3ebb117)

0.4.1 (2019-08-21)

Bug Fixes

  • @formatjs/intl-unified-numberformat: add DEFAULT_LOCALE in locale lookup (1f25453)
  • @formatjs/intl-unified-numberformat: dist polyfill with all locales (f4c494a)
  • @formatjs/intl-unified-numberformat: use locale-lookup from intl-utils (7f5eb9e)
  • intl-unified-numberformat: dist UMD (f568cdc), closes #159

0.4.0 (2019-08-19)

Bug Fixes

  • @formatjs/intl-utils: change default quarter to false in selectUnit (dadab10)

Features

  • @formatjs/intl-unified-numberformat: add polyfill option (4c1d692)
  • formatjs-extract-cldr-data: fix unit extraction (7e54a0b)

0.2.0 (2019-08-16)

Features

  • formatjs-extract-cldr-data: polyfill units (e291eeb)