Skip to content

Releases: eemeli/intl-pluralrules

v2.0.1

06 Jul 15:03
Compare
Choose a tag to compare
  • Fix module resolution for react-native (#38)

v2.0.0

05 Apr 08:19
Compare
Choose a tag to compare

This release adds support for Intl.PluralRules.prototype.selectRange().

The code is now tested against the relevant test262 tests, and its behaviour is more aligned with the documented API. Browser tests are now run by the CI to ensure that the polyfill works in supported browsers (i.e. matching the Browserslist expression > 0.25%, not dead)

Breaking Changes

  • The function exported from 'intl-pluralrules/factory' gets a new required fourth argument, getRangeSelector.
  • The 'intl-pluralrules/pseudo-number-format' endpoint is dropped (#30)
  • IE 11 support is dropped (#36)

New Features

  • Add support for selectRange() (#23)

Other Changes

  • Add tests & fixes for test262 compliance (#27)
  • Behave more normally for locale resolution (#28)
  • Switch from Jest to Mocha, add browser tests (#29)

Full Changelog: v1.3.1...v2.0.0

v2.0.0-1

03 Sep 17:50
Compare
Choose a tag to compare
v2.0.0-1 Pre-release
Pre-release

The main feature of this release is to add & satisfy test262 tests, and to also otherwise make the behaviour more in line with the documented API. Browser tests are now run by the CI to ensure that the polyfill works in IE11.

Released under the next tag on npm, so install with:

npm install --save-exact intl-pluralrules@next

Breaking Changes

  • The intl-pluralrules/pseudo-number-format endpoint is dropped #30

Other Changes

  • Add tests & fixes for test262 compliance #27
  • Behave more normally for locale resolution #28
  • Switch from Jest to Mocha, add IE11 browser tests #29

Full Changelog: v2.0.0-0...v2.0.0-1

v2.0.0-0

24 Sep 15:04
Compare
Choose a tag to compare
v2.0.0-0 Pre-release
Pre-release

This release adds support for selectRange() from Intl.Numberformat v3 (#23), which is currently a Stage 3 proposal. Hence also the prerelease versioning, as that API may still change.

Released under the next tag on npm, so install with:

npm install --save-exact intl-pluralrules@next

Breaking Changes

  • The function exported from 'intl-pluralrules/factory' gets a new required fourth argument, getRangeSelector.

v1.3.1

17 Sep 11:30
Compare
Choose a tag to compare
  • Do not exclude node_modules from Babel transpilation (#24)

v1.3.0

27 Aug 12:04
Compare
Choose a tag to compare
  • Update make-plural to v7, and thereby to CLDR v39
  • Update dependencies, including jest@27

v1.2.2

26 Aug 16:52
Compare
Choose a tag to compare
  • Include factory.js instead of .mjs on react-native (#20)
  • Update dev dependencies
  • Switch CI from Travis to GitHub Actions
  • Skip a test due to a V8 bug

v1.2.1

09 Aug 09:55
Compare
Choose a tag to compare
  • Include ./package.json in "exports" (#18)

v1.2.0

05 Apr 19:08
Compare
Choose a tag to compare
  • Use Rollup to vendor in make-plural
  • Set Intl.PluralRules.polyfill = true if appropriate
  • Add factory.d.ts & pseudo-number-format.d.ts

v1.1.2

08 Mar 12:55
Compare
Choose a tag to compare
  • Use CommonJS plurals for pony/polyfill + ensure right import object (#15)
  • Update dependencies, including make-plural 6.1 & jest 25 (#15)
  • Move baseline version of Node in CI from 6 to 8 due to Jest 25 support
  • Add tests to reach 100% code coverage
  • Add index.html for examples
  • Drop cardinals example