Skip to content

v2.0.0

Latest

Choose a tag to compare

@github-actions github-actions released this 16 Nov 02:43
· 14 commits to main since this release

2.0.0 (2025-11-16)

⚠ BREAKING CHANGES

  • The default locale of 'en' has been removed. If a locale is not provided, it will be auto-determined by the Intl API. To keep the previous functionality, set the default locale like so: new Tally({locales: 'en'})
  • The Tally constructor now takes a single options object instead of a locale string. The locale option has also been renamed to locales to indicate that multiple locales can be provided. This matches the behavior of Intl.Segmenter. To set a locale, pass an object like {locales: 'en'} to the Tally constructor.

Features

  • allow use of custom Intl.Segmenter implementation (bae9b49)
  • remove 'en' as default locale (92cc59b)