Releases: joshswan/react-native-globalize
Releases · joshswan/react-native-globalize
4.5.1
4.5.0
4.4.0
4.3.1
4.2.0
4.1.0
4.0.2
4.0.0
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
ormessages
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 newcreateGlobalize(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
3.0.0
New Stuff:
- Added
FormattedUnit
andgetUnitFormatter
functionality to allow much more flexibility in number/unit formatted (e.g. you can now format "50 miles per hour" across different locales) - Now using the standard globalize library since React Native incompatibilities have been worked out
IMPORTANT:
New functionality has been enabled by modifying the included CLDR data. If you've forked and customized your included languages and currencies, you need to run gulp cldr
again to add the additional data and enable the new functionality.