Skip to content

v2.0.0

Compare
Choose a tag to compare
@github-actions github-actions released this 18 Aug 23:26
· 5 commits to master since this release

2.0.0 (2022-08-18)

Features

  • API for checking supported locales and plural forms (0b8fadc)
  • Declare CJS, UMD and ES exports in package.json (8beef35)

BREAKING CHANGES

  • Newer Node.js required, different command-line parsing, renamed CJS exports.
  • Node.js 14.8 or newer is required for the create-plural-data script. Also supports type, module, types and exports. The sources of the library didn't change, which means that the exported modules should still work in Node.js 6 and newer, but the're no tests proving that.
  • Command-line argument parsing done by a custom code instead of using commander. Boolean arguments cannot be joined to groups like -mpv. They have to be passed separately, for example: -m -p -v. Also, the command-line script requires Node.js with the ESM support, which means >= 14.8.
  • CJS modules in the dist directory end with the file extension .cjs instead of .js. (ES modules end with .mjs.) Usually imported main exports are not affected, because they are imported in both CJS and ES modules using the package name.