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

Upgrade React to 16.8.2: Welcome React Hooks #13992

Merged
merged 3 commits into from
Feb 21, 2019
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
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 @@ -540,12 +540,12 @@ function gutenberg_register_vendor_scripts() {

gutenberg_register_vendor_script(
'react',
'https://unpkg.com/react@16.6.3/umd/react' . $react_suffix . '.js',
'https://unpkg.com/react@16.8.2/umd/react' . $react_suffix . '.js',
array( 'wp-polyfill' )
);
gutenberg_register_vendor_script(
'react-dom',
'https://unpkg.com/react-dom@16.6.3/umd/react-dom' . $react_suffix . '.js',
'https://unpkg.com/react-dom@16.8.2/umd/react-dom' . $react_suffix . '.js',
array( 'react' )
);
$moment_script = SCRIPT_DEBUG ? 'moment.js' : 'min/moment.min.js';
Expand Down
200 changes: 32 additions & 168 deletions package-lock.json

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

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@
"pegjs": "0.10.0",
"phpegjs": "1.0.0-beta7",
"postcss": "7.0.13",
"react-dom": "16.6.3",
"react-test-renderer": "16.6.3",
"react-dom": "16.8.2",
"react-test-renderer": "16.8.2",
"redux": "4.0.0",
"rimraf": "2.6.2",
"rtlcss": "2.4.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/element/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@
"@babel/runtime": "^7.3.1",
"@wordpress/escape-html": "file:../escape-html",
"lodash": "^4.17.11",
"react": "^16.6.3",
"react-dom": "^16.6.3"
"react": "^16.8.2",
"react-dom": "^16.8.2"
},
"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.6.3/umd/react.development.js',
'https://unpkg.com/react@16.8.2/umd/react.development.js',
'react-handle.HASH.js',
),
array(
'react-dom-handle',
'https://unpkg.com/react-dom@16.6.3/umd/react-dom.development.js',
'https://unpkg.com/react-dom@16.8.2/umd/react-dom.development.js',
'react-dom-handle.HASH.js',
),
// Production mode scripts.
array(
'react-handle',
'https://unpkg.com/react@16.6.3/umd/react.production.min.js',
'https://unpkg.com/react@16.8.2/umd/react.production.min.js',
'react-handle.min.HASH.js',
),
array(
'react-dom-handle',
'https://unpkg.com/react-dom@16.6.3/umd/react-dom.production.min.js',
'https://unpkg.com/react-dom@16.8.2/umd/react-dom.production.min.js',
'react-dom-handle.min.HASH.js',
),
// Other cases.
Expand Down