Skip to content

Latest commit

 

History

History
148 lines (77 loc) · 7 KB

CHANGELOG.md

File metadata and controls

148 lines (77 loc) · 7 KB

Change Log

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

7.3.0 (2023-05-03)

Features

  • Add --json flag to examples command (#30)

7.2.0 (2022-11-16)

Features

7.1.0 (2022-02-06)

Features

7.0.0 (2021-08-27)

⚠ Breaking Changes

  • While using ES6 syntax for functions does not change their behaviour in any way, it will need to be transpiled if the target environment (e.g. IE 11) does not support it.
  • yargs 17 no longer supports Node.js 10; the new minimum is Node.js 12.

Features

  • Update to CLDR 39 (ed2bdbc)
  • Use const and => notation for function stringification (b9da90a)
  • Add ranges command (902cfa0)
  • Add examples command (ab33114)

Bug Fixes

  • Drop cli dependency on common-tags; streamline UMD wrapper (1404ac6)

6.2.1 (2020-08-09)

Note: Version bump only for package make-plural-cli

6.2.0 (2020-04-05)

Features

  • Add d.ts typings for pluralCategories (ae7472e)
  • Add d.ts typings for plurals (db6e4b5)
  • Include type PluralCategory in all d.ts files (9b368fc)

6.1.0 (2020-03-08)

Bug Fixes

  • Always set __esModule in UMD builds (eemeli/intl-pluralrules#15) (57d90bc)

Features

  • compiler: Drop line folding & unnecessary (wrapping) (c5d31f6)

6.0.1 (2019-10-18)

Bug Fixes

  • Include __esModule: true in CommonJS export (eemeli/intl-pluralrules#12) (70daa3d)

6.0.0 (2019-10-17)

BREAKING CHANGES

  • This changes the syntax of the CLI options, now requiring a secondary command to select the output type.
  • This drops the default export of the ES6 module, and for the UMD module renames "pt-PT" as pt_PT & "in" as _in.

Features

  • Add locale option to module prints (7f4f480)
  • Add max-repeat option to customise common functions & categories (e47a725)
  • Automate common-categories detection (3421285)
  • Automate common-plurals detection (a6838a1)
  • Harmonise ES6 & UMD exports (c24b666)
  • Improve category printing, including vars for strings (9c0a8d8)
  • Switch from minimist to yargs commands (0680298)
  • Account for aliased locale codes (f538772)
  • Add named exports to ES6 modules, for tree-shaking (37021e6)
  • Update cldr-core from 34 to 36 (a9d2547)

Bug Fixes

  • Refactor cli.js, splitting out print-categories, print-plurals & print-umd (76f1941)
  • Refactor common.js as common-plurals.js (d14b3d4)
  • Split & refactor get-compiler.js from cli.js (1ccc8db)
  • Stop mixing import & require() (ec8028b)
  • Wrap runtime code in main() (02d2110)
  • Use proper full locale list for --no-cardinals (c8a1cff)
  • Update dependencies (9991e86)

5.0.0 (2019-07-15)

BREAKING CHANGES

  • Split make-plural-cli into its own package
  • Move the CLI binary here from make-plural

Features

  • Add --width to CLI, use slightly longer lines in published plurals (19dad34)
  • Include hashbang line directly in src/cli.js (7f2b5d1)
  • Refactor references to common plurals/categories when printing module (ecb5bf9)
  • Use non-anonymous functions in module export (5316a1a)

Bug Fixes

  • Refactor module printing internals (cac8cbf)
  • Switch from console.log to a custom wrapper for process.stdout.write (f24d312)
  • Use property() from safe-identifier to quote appropriately (6499ba5)
  • Use source`` from common-tags for easier-to-read code (a3ec74f)