{"action":"published","release":{"url":"https://api.github.com/repos/yahoo/react-intl/releases/2773627","assets_url":"https://api.github.com/repos/yahoo/react-intl/releases/2773627/assets","upload_url":"https://uploads.github.com/repos/yahoo/react-intl/releases/2773627/assets{?name,label}","html_url":"https://github.com/yahoo/react-intl/releases/tag/v2.0.0-rc-1","id":2773627,"tag_name":"v2.0.0-rc-1","target_commitish":"master","name":"","draft":false,"author":{"login":"ericf","id":29096,"avatar_url":"https://avatars.githubusercontent.com/u/29096?v=3","gravatar_id":"","url":"https://api.github.com/users/ericf","html_url":"https://github.com/ericf","followers_url":"https://api.github.com/users/ericf/followers","following_url":"https://api.github.com/users/ericf/following{/other_user}","gists_url":"https://api.github.com/users/ericf/gists{/gist_id}","starred_url":"https://api.github.com/users/ericf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ericf/subscriptions","organizations_url":"https://api.github.com/users/ericf/orgs","repos_url":"https://api.github.com/users/ericf/repos","events_url":"https://api.github.com/users/ericf/events{/privacy}","received_events_url":"https://api.github.com/users/ericf/received_events","type":"User","site_admin":false},"prerelease":true,"created_at":"2016-03-09T06:19:04Z","published_at":"2016-03-09T06:26:01Z","assets":[],"tarball_url":"https://api.github.com/repos/yahoo/react-intl/tarball/v2.0.0-rc-1","zipball_url":"https://api.github.com/repos/yahoo/react-intl/zipball/v2.0.0-rc-1","body":"**This is the first RC release of React Intl v2!**\r\n\r\nThis release is expected to be the last one before **`v2.0.0` final.** The reason for the release candidate is to have you test it before the final release is cut in case there are some major issues that need to be fixed. While everyone is testing this release, we'll be working on finishing up the docs.\r\n\r\n```\r\n$ npm install react-intl@next\r\n```\r\n\r\n## New Breaking Changes\r\n\r\n### Refactored Builds and Package Layout\r\n\r\nReact Intl's build and npm package layout have been refactored. While these changes have simplified the build and package layout, **the location of the locale data has changed, so paths to it need to be udpated.**\r\n\r\nLocale data is now package-relative and can more easily be loaded:\r\n```js\r\nimport enLocaleData from 'react-intl/locale-data/en';\r\n```\r\n\r\nThere is now only one copy of these locale data files in the package and they are UMD modules which export the locale data for a language.\r\n\r\nRollup is now being used to build a _single-file_ React Intl module for three different targets:\r\n\r\n- **UMD (`ReactIntl` global):** Browser build with bundled dependencies\r\n- **CommonJS (`main`):** For Node/Browserify/Webpack with `require()`-d dependencies\r\n- **ES6 (`jsnext:main`):** For consumption via `import` with `import`-d dependencies\r\n\r\nAll of the builds are compiled with Babel and bundled into a _single-file_ modules. Rollup is used to fold all of the internal `src/` modules into one compiled module. The difference between `lib/index.js` and `lib/index.es.js` is the latter has everything compiled expect the `import`/`export` statements for React Intl as a whole package.\r\n\r\n**These changes result is a smaller and faster package.**\r\n\r\n**See: #203, #204, #275, #277, #282**\r\n\r\n## New Features\r\n\r\n### Added Documentation\r\n\r\n**React Intl v2 now has _some_ docs on the [GitHub Wiki](https://github.com/yahoo/react-intl/wiki)!**\r\n\r\nThe plan is to move React Intl's documentation from the FormatJS to the GitHub Wiki because it's easier for us **and you** to update. React Intl's page on the website will soon redirect to the GitHub Wiki.\r\n\r\n**The docs are still a work in progress**, but the following pages have some useful info:\r\n\r\n- [API](https://github.com/yahoo/react-intl/wiki/API)\r\n- [Testing with React Intl](https://github.com/yahoo/react-intl/wiki/Testing-with-React-Intl)\r\n- [Upgrade Guide](https://github.com/yahoo/react-intl/wiki/Upgrade-Guide)\r\n\r\n### Added Unit and Functional Tests\r\n\r\nReact Intl now has **255 tests** running with **React 14 and 15** on **Node 0.10, 0.12, 4.2 LTS, and 5.x** with **95% code branch coverage!**\r\n\r\nMuch of the work between beta-2 and rc-1 was adding unit and functional tests. While this doesn't provide any new features, it does ensure stability going forward and uncovered a few bugs that are now fixed.\r\n\r\nWork can still be done to add more functional tests that run in Node and browsers.\r\n\r\n**See: #250, #293**\r\n\r\n### Upgraded to CLDR 28\r\n\r\nReact Intl's locale data comes from the [Unicode CLDR](http://cldr.unicode.org) project. We have been using an older version of CLDR (24) for a couple years because it's been difficult to update to the newer releases. Now the CLDR data is on npm and we've upgraded to [CLDR 28](http://cldr.unicode.org/index/downloads/cldr-28).\r\n\r\nThe locale data is always evolving as cultures change so you might notice some differences in the formatted strings React Intl produces. You might find that tests which expect a specific string will fail, but those should be straight forward to update. If you find another other issues related to locale data, please report them.\r\n\r\n**See: #338, #348**\r\n\r\n### Improved Performance of `<FormattedMessage>`\r\n\r\nThe rendering performance of `<FormattedMessage>` is now **up to 3x faster!**\r\n\r\nIt's common for apps to have hundreds of strings that they format, and many of them are simple messages _without_ placeholders. In beta-2 improvements were made at the `formatMessage()` level, and this change builds on those but removing unnecessary work at within `<FormattedMessage>` component.\r\n\r\n**See: #350**\r\n\r\n### More Fallbacks for Error Conditions\r\n\r\nOne of the themes in v2 was to handle formatting errors better by providing reasonable fallbacks. In production if _something_ reasonable can be displayed instead of an error, it should.\r\n\r\nIn the previous v2 pre-releases string/message formatting got a sophisticated fallback algorithm. **The changes in rc-1 add fallbacks for number and date formatting.**\r\n\r\n**See: #339**\r\n\r\n### Added Support for React 15\r\n\r\nThis release adds support for the _just released_ [React 15 RC1](http://facebook.github.io/react/blog/2016/03/07/react-v15-rc1.html).\r\n\r\nReact Intl's `peerDependencies` on `react` has been updated to:\r\n```\r\n\"peerDependencies\": {\r\n  \"react\": \"^0.14.0 || ^15.0.0-rc.1\"\r\n},\r\n```\r\n\r\n**See: #353**\r\n\r\n## Bug Fixes\r\n\r\n- Reduced message formatting warning noise: #251\r\n- Added default options for time formatting: #263\r\n- Added ES3 Babel transforms in build\r\n- Improved `shouldComponentUpdate()` in `<Formatted*>` components: #250\r\n- Changed how `<IntlProvider>`'s default props applied: #250\r\n- Fixed `<FormattedRelative>`'s auto-updating with `props.value` strings\r\n\r\n----\r\n\r\n[**Changelog**](https://github.com/yahoo/react-intl/compare/v2.0.0-beta-2...v2.0.0-rc-1)\r\n"}}