Skip to content

2.0.0

Compare
Choose a tag to compare
@joshswan joshswan released this 09 Apr 00:33
· 77 commits to master since this release
2.0.0
17862c5

Breaking:

  • Requires react >= 16.3.1 & react-native >= 0.55.0
  • FormattedWrapper has been replaced with FormattedProvider (drop-in replacement)

New Stuff:

  • Now using the new React Context API. The flaws of the previous context implementation meant that context changes did not trigger re-renders across PureComponent boundaries. This is now fixed.
  • Added withGlobalize HOC to inject globalize prop into any component assuming FormattedProvider is at the root of the application. This allows easy programatic access to the globalize methods in any component you want to wrap, and the globalize prop will be updated when the locale/currency is changed on FormattedProvider.
  • Added a test suite 🎉