From 00029a5ae89b73be5ee872825ff9777c64390dde Mon Sep 17 00:00:00 2001 From: Seghir Nadir Date: Fri, 9 Aug 2019 12:37:16 +0100 Subject: [PATCH] update react --- lib/client-assets.php | 4 +- package-lock.json | 45 +++++++++++-------- package.json | 6 +-- packages/element/package.json | 4 +- phpunit/class-vendor-script-filename-test.php | 8 ++-- 5 files changed, 37 insertions(+), 30 deletions(-) diff --git a/lib/client-assets.php b/lib/client-assets.php index 669f9597c76a16..6fd7e9524fb4a5 100644 --- a/lib/client-assets.php +++ b/lib/client-assets.php @@ -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' ) ); diff --git a/package-lock.json b/package-lock.json index 501d8c5034ff11..5d9cfcf883b806 100644 --- a/package-lock.json +++ b/package-lock.json @@ -5077,8 +5077,8 @@ "@babel/runtime": "^7.4.4", "@wordpress/escape-html": "file:packages/escape-html", "lodash": "^4.17.14", - "react": "^16.8.4", - "react-dom": "^16.8.4" + "react": "^16.9.0", + "react-dom": "^16.9.0" } }, "@wordpress/escape-html": { @@ -22548,14 +22548,13 @@ } }, "react": { - "version": "16.8.4", - "resolved": "https://registry.npmjs.org/react/-/react-16.8.4.tgz", - "integrity": "sha512-0GQ6gFXfUH7aZcjGVymlPOASTuSjlQL4ZtVC5YKH+3JL6bBLCVO21DknzmaPlI90LN253ojj02nsapy+j7wIjg==", + "version": "16.9.0", + "resolved": "https://registry.npmjs.org/react/-/react-16.9.0.tgz", + "integrity": "sha512-+7LQnFBwkiw+BobzOF6N//BdoNw0ouwmSJTEm9cglOOmsg/TMiFHZLe2sEoN5M7LgJTj9oHH0gxklfnQe66S1w==", "requires": { "loose-envify": "^1.1.0", "object-assign": "^4.1.1", - "prop-types": "^15.6.2", - "scheduler": "^0.13.4" + "prop-types": "^15.6.2" } }, "react-addons-shallow-compare": { @@ -22633,14 +22632,14 @@ } }, "react-dom": { - "version": "16.8.4", - "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-16.8.4.tgz", - "integrity": "sha512-Ob2wK7XG2tUDt7ps7LtLzGYYB6DXMCLj0G5fO6WeEICtT4/HdpOi7W/xLzZnR6RCG1tYza60nMdqtxzA8FaPJQ==", + "version": "16.9.0", + "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-16.9.0.tgz", + "integrity": "sha512-YFT2rxO9hM70ewk9jq0y6sQk8cL02xm4+IzYBz75CQGlClQQ1Bxq0nhHF6OtSbit+AIahujJgb/CPRibFkMNJQ==", "requires": { "loose-envify": "^1.1.0", "object-assign": "^4.1.1", "prop-types": "^15.6.2", - "scheduler": "^0.13.4" + "scheduler": "^0.15.0" } }, "react-is": { @@ -23176,15 +23175,23 @@ } }, "react-test-renderer": { - "version": "16.8.4", - "resolved": "https://registry.npmjs.org/react-test-renderer/-/react-test-renderer-16.8.4.tgz", - "integrity": "sha512-jQ9Tf/ilIGSr55Cz23AZ/7H3ABEdo9oy2zF9nDHZyhLHDSLKuoILxw2ifpBfuuwQvj4LCoqdru9iZf7gwFH28A==", + "version": "16.9.0", + "resolved": "https://registry.npmjs.org/react-test-renderer/-/react-test-renderer-16.9.0.tgz", + "integrity": "sha512-R62stB73qZyhrJo7wmCW9jgl/07ai+YzvouvCXIJLBkRlRqLx4j9RqcLEAfNfU3OxTGucqR2Whmn3/Aad6L3hQ==", "dev": true, "requires": { "object-assign": "^4.1.1", "prop-types": "^15.6.2", - "react-is": "^16.8.4", - "scheduler": "^0.13.4" + "react-is": "^16.9.0", + "scheduler": "^0.15.0" + }, + "dependencies": { + "react-is": { + "version": "16.9.0", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.9.0.tgz", + "integrity": "sha512-tJBzzzIgnnRfEm046qRcURvwQnZVXmuCbscxUO5RWrGTXpon2d4c8mI0D8WE6ydVIm29JiLB6+RslkIvym9Rjw==", + "dev": true + } } }, "react-transform-hmr": { @@ -24332,9 +24339,9 @@ "dev": true }, "scheduler": { - "version": "0.13.4", - "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.13.4.tgz", - "integrity": "sha512-cvSOlRPxOHs5dAhP9yiS/6IDmVAVxmk33f0CtTJRkmUWcb1Us+t7b1wqdzoC0REw2muC9V5f1L/w5R5uKGaepA==", + "version": "0.15.0", + "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.15.0.tgz", + "integrity": "sha512-xAefmSfN6jqAa7Kuq7LIJY0bwAPG3xlCj0HMEBQk1lxYiDKZscY2xJ5U/61ZTrYbmNQbXa+gc7czPkVo11tnCg==", "requires": { "loose-envify": "^1.1.0", "object-assign": "^4.1.1" diff --git a/package.json b/package.json index d816fa8a0a5e1f..197e8dcca494e8 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/packages/element/package.json b/packages/element/package.json index a201997b1c2a1f..c6b314028019af 100644 --- a/packages/element/package.json +++ b/packages/element/package.json @@ -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" diff --git a/phpunit/class-vendor-script-filename-test.php b/phpunit/class-vendor-script-filename-test.php index e3febd3557f260..b472377ec2fbfc 100644 --- a/phpunit/class-vendor-script-filename-test.php +++ b/phpunit/class-vendor-script-filename-test.php @@ -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.