github formatjs/formatjs v2.1.0

latest releases: vue-intl@6.5.0, react-intl@6.6.6, intl-messageformat@10.5.12...
8 years ago

Perf Improvements

shouldIntlComponentUpdate

Improved the perf of shouldIntlComponentUpdate util which now checks if context.intl is the same as nextContext.intl before doing a shallow compare of their filtered props.

(#421)

Nested <IntlProvider>s

Creating Intl* formatter instances is expensive, so <IntlProvider> memoizes the Intl* constructors to reuse the formatter instances. These memoized formatters are now shared with nested <IntlProvider> instances.

This sharing should increase the rendering perf of component architectures which use nested <IntlProvider> instances.

(#421)

Bug Fixes

  • Removed calls to Object.assign (#403)

Changelog

Don't miss a new formatjs release

NewReleases is sending notifications on new releases.