Skip to content

4.0.0

Compare
Choose a tag to compare
@joshswan joshswan released this 20 Feb 05:05
· 31 commits to master since this release
e69f534

4.0.0 (2020-02-20)

React Native Globalize v4 is out! This is a major update including a TypeScript rewrite, the addition of hooks, and an overhaul of locale (CLDR) data handling.

Check out the migration guide for details on how to upgrade to v4!

⚠ BREAKING CHANGES

  • CLDR data is no longer loaded automatically - individual locales must be
    specifically loaded as needed
  • FormattedProvider no longer accepts the cldr or messages props as they were
    unreliable with regards to updates. Additionally, advanced users will need to convert from the old
    new Globalize(locale...) signature to the new createGlobalize(options) one.

Features

  • refactor internals, simplify API & add useGlobalize hook (a79024c), closes #47
  • replace withGlobalize HOC for better backwards compatibility (86cdee3)
  • rewrite with TypeScript and hooks (d91338a), closes #47
  • separate CLDR data by locale and bundle all locales (b30f906), closes #7
  • support alt narrow currency symbol (c8e9ea3), closes #34