Skip to content

Releases: joshswan/react-native-globalize

4.5.1

03 Jan 19:34
8ac8e23
Compare
Choose a tag to compare

4.5.1 (2021-01-03)

Bug Fixes

  • move react & react-native types to dev deps (#61) (d4645a0)

4.5.0

17 Dec 23:09
0aa9702
Compare
Choose a tag to compare

4.5.0 (2020-12-17)

Features

  • add defaultLocale option to globalize config and GlobalizeProvider (2fe9dc1), closes #59
  • expose Globalize instance via ref (3426195)

4.4.0

22 Sep 21:59
caddf38
Compare
Choose a tag to compare

4.4.0 (2020-09-22)

Features

  • add defaultLocale option to globalize config and GlobalizeProvider (2fe9dc1), closes #59

4.3.1

21 May 18:13
c7585b2
Compare
Choose a tag to compare

4.3.1 (2020-05-21)

Features

  • getcurrencysymbol: use currency from Globalize if none passed (3e3c63a), closes #55

4.2.0

20 Mar 01:01
cb5b04d
Compare
Choose a tag to compare

Re-released as v4.3.0-alpha.0

4.1.0

06 Mar 01:49
0f23792
Compare
Choose a tag to compare

4.1.0 (2020-03-06)

Features

  • add hoist-non-react-statics for withGlobalize (#51) (d7f600a)

Bug Fixes

4.0.2

05 Mar 03:54
632248e
Compare
Choose a tag to compare

4.0.2 (2020-03-05)

Bug Fixes

4.0.0

20 Feb 05:05
e69f534
Compare
Choose a tag to compare

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

3.0.0

10 Mar 01:08
3.0.0
24239c6
Compare
Choose a tag to compare

New Stuff:

  • Added FormattedUnit and getUnitFormatter 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.

2.2.0

09 Oct 19:03
2.2.0
899f06d
Compare
Choose a tag to compare

New Stuff:

  • Added support for adjustsFontSizeToFit and allowFontScaling props in all Formatted* Components