Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update react & react-dom & react-test-renderer to 16.9.0 #16982

Merged
merged 2 commits into from
Sep 13, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/client-assets.php
Original file line number Diff line number Diff line change
Expand Up @@ -402,12 +402,12 @@ function gutenberg_register_vendor_scripts() {

gutenberg_register_vendor_script(
'react',
'https://unpkg.com/react@16.8.4/umd/react' . $react_suffix . '.js',
'https://unpkg.com/react@16.9.0/umd/react' . $react_suffix . '.js',
array( 'wp-polyfill' )
);
gutenberg_register_vendor_script(
'react-dom',
'https://unpkg.com/react-dom@16.8.4/umd/react-dom' . $react_suffix . '.js',
'https://unpkg.com/react-dom@16.9.0/umd/react-dom' . $react_suffix . '.js',
array( 'react' )
);

Expand Down
45 changes: 26 additions & 19 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,10 @@
"parcel-bundler": "1.12.3",
"postcss": "7.0.13",
"progress": "2.0.3",
"react": "16.8.4",
"react-dom": "16.8.4",
"react": "16.9.0",
"react-dom": "16.9.0",
"react-native": "0.60.0",
"react-test-renderer": "16.8.4",
"react-test-renderer": "16.9.0",
"rimraf": "2.6.2",
"rtlcss": "2.4.0",
"sass-loader": "6.0.7",
Expand Down
7 changes: 7 additions & 0 deletions packages/element/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
## Master

### New Features

- The bundled `react` dependency has been updated from requiring `^16.8.4` to requiring `^16.9.0` ([#16982](https://github.com/WordPress/gutenberg/pull/16982)). It contains [new deprecations](https://reactjs.org/blog/2019/08/08/react-v16.9.0.html#new-deprecations) as well.
- The bundled `react-dom` dependency has been updated from requiring `^16.8.4` to requiring `^16.9.0` ([#16982](https://github.com/WordPress/gutenberg/pull/16982)).

## 2.4.0 (2019-05-21)

### New Features
Expand Down
4 changes: 2 additions & 2 deletions packages/element/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
"@babel/runtime": "^7.4.4",
"@wordpress/escape-html": "file:../escape-html",
"lodash": "^4.17.14",
"react": "^16.8.4",
"react-dom": "^16.8.4"
"react": "^16.9.0",
"react-dom": "^16.9.0"
},
"publishConfig": {
"access": "public"
Expand Down
8 changes: 4 additions & 4 deletions phpunit/class-vendor-script-filename-test.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,23 +11,23 @@ function vendor_script_filename_cases() {
// Development mode scripts.
array(
'react-handle',
'https://unpkg.com/react@16.8.4/umd/react.development.js',
'https://unpkg.com/react@16.9.0/umd/react.development.js',
'react-handle.HASH.js',
),
array(
'react-dom-handle',
'https://unpkg.com/react-dom@16.8.4/umd/react-dom.development.js',
'https://unpkg.com/react-dom@16.9.0/umd/react-dom.development.js',
'react-dom-handle.HASH.js',
),
// Production mode scripts.
array(
'react-handle',
'https://unpkg.com/react@16.8.4/umd/react.production.min.js',
'https://unpkg.com/react@16.9.0/umd/react.production.min.js',
'react-handle.min.HASH.js',
),
array(
'react-dom-handle',
'https://unpkg.com/react-dom@16.8.4/umd/react-dom.production.min.js',
'https://unpkg.com/react-dom@16.9.0/umd/react-dom.production.min.js',
'react-dom-handle.min.HASH.js',
),
// Other cases.
Expand Down