Skip to content

Commit 3db8eb9

Browse files
committed
@fluent/react 0.11.0
1 parent 4addd4d commit 3db8eb9

File tree

2 files changed

+23
-3
lines changed

2 files changed

+23
-3
lines changed

fluent-react/CHANGELOG.md

+20
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,25 @@
11
# Changelog
22

3+
## @fluent/react 0.11.0 (January 23, 2020)
4+
5+
- Use the offical stable React Context API. (#406)
6+
7+
`@fluent/react` used to use the [legacy React Context
8+
API](https://reactjs.org/docs/legacy-context.html). Thanks to @Gregoor,
9+
we now use the official [React Context
10+
API](https://reactjs.org/docs/context.html) instead.
11+
12+
`@fluent/react` bundle size is now around 15% smaller (1.5 KB minified
13+
and gzipped).
14+
15+
- Require React 16.8+.
16+
17+
The switch to the new React Context API requires that we drop support for
18+
old versions of React, like 0.14 and 15. Additionally, `@fluent/react`
19+
uses hooks under the hood now, which require at least React 16.8.
20+
21+
- Accept `@fluent/bundle` 0.15 as peer dependency.
22+
323
## @fluent/react 0.10.0 (July 30, 2019)
424

525
- Update to `@fluent/bundle` 0.14.0.

fluent-react/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@fluent/react",
33
"description": "Fluent bindings for React",
4-
"version": "0.10.0",
4+
"version": "0.11.0",
55
"homepage": "https://projectfluent.org",
66
"author": "Mozilla <[email protected]>",
77
"license": "Apache-2.0",
@@ -51,8 +51,8 @@
5151
"prop-types": "^15.6.0"
5252
},
5353
"peerDependencies": {
54-
"@fluent/bundle": ">=0.14.0 <0.15.0",
55-
"react": "^0.14.9 || ^15.0.0 || ^16.0.0"
54+
"@fluent/bundle": ">=0.14.0 <0.16.0",
55+
"react": ">=16.8.0"
5656
},
5757
"devDependencies": {
5858
"@babel/preset-env": "^7.5.5",

0 commit comments

Comments
 (0)