Skip to content

Commit

Permalink
Upgrade React 16.3.2 to React 16.4.1 (#7393)
Browse files Browse the repository at this point in the history
* Upgrade React 16.3.2 to React 16.4.1

* Removed caret ranges in version bumps

* removed package-lock.json from element package

* Changed hardcoded references in PHP from React 16.3.2 to React 16.4.1
  • Loading branch information
xyfi authored and gziolo committed Jun 20, 2018
1 parent 773e37f commit c6cbfb0
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 36 deletions.
4 changes: 2 additions & 2 deletions lib/client-assets.php
Original file line number Diff line number Diff line change
Expand Up @@ -592,11 +592,11 @@ function gutenberg_register_vendor_scripts() {

gutenberg_register_vendor_script(
'react',
'https://unpkg.com/react@16.3.2/umd/react' . $react_suffix . '.js'
'https://unpkg.com/react@16.4.1/umd/react' . $react_suffix . '.js'
);
gutenberg_register_vendor_script(
'react-dom',
'https://unpkg.com/react-dom@16.3.2/umd/react-dom' . $react_suffix . '.js',
'https://unpkg.com/react-dom@16.4.1/umd/react-dom' . $react_suffix . '.js',
array( 'react' )
);
$moment_script = SCRIPT_DEBUG ? 'moment.js' : 'min/moment.min.js';
Expand Down
47 changes: 22 additions & 25 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 @@ -44,12 +44,12 @@
"prop-types": "15.5.10",
"querystringify": "1.0.0",
"re-resizable": "4.4.8",
"react": "16.3.2",
"react": "16.4.1",
"react-autosize-textarea": "3.0.2",
"react-click-outside": "2.3.1",
"react-color": "2.13.4",
"react-datepicker": "1.4.1",
"react-dom": "16.3.2",
"react-dom": "16.4.1",
"redux": "3.7.2",
"redux-multi": "0.1.12",
"redux-optimist": "1.0.0",
Expand Down Expand Up @@ -95,7 +95,7 @@
"postcss-loader": "2.1.3",
"puppeteer": "1.2.0",
"raw-loader": "0.5.1",
"react-test-renderer": "16.3.2",
"react-test-renderer": "16.4.1",
"sass-loader": "6.0.7",
"sprintf-js": "1.1.1",
"style-loader": "0.20.3",
Expand Down
4 changes: 2 additions & 2 deletions packages/element/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
"@wordpress/deprecated": "^1.0.0-alpha.1",
"@wordpress/is-shallow-equal": "1.0.2",
"lodash": "4.17.5",
"react": "16.3.2",
"react-dom": "16.3.2"
"react": "16.4.1",
"react-dom": "16.4.1"
},
"devDependencies": {
"enzyme": "3.3.0"
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 @@ -10,11 +10,11 @@ function vendor_script_filename_cases() {
return array(
// Development mode scripts.
array(
'https://unpkg.com/react@16.3.2/umd/react.development.js',
'https://unpkg.com/react@16.4.1/umd/react.development.js',
'react.HASH.js',
),
array(
'https://unpkg.com/react-dom@16.3.2/umd/react-dom.development.js',
'https://unpkg.com/react-dom@16.4.1/umd/react-dom.development.js',
'react-dom.HASH.js',
),
array(
Expand All @@ -27,11 +27,11 @@ function vendor_script_filename_cases() {
),
// Production mode scripts.
array(
'https://unpkg.com/react@16.3.2/umd/react.production.min.js',
'https://unpkg.com/react@16.4.1/umd/react.production.min.js',
'react.min.HASH.js',
),
array(
'https://unpkg.com/react-dom@16.3.2/umd/react-dom.production.min.js',
'https://unpkg.com/react-dom@16.4.1/umd/react-dom.production.min.js',
'react-dom.min.HASH.js',
),
array(
Expand Down

0 comments on commit c6cbfb0

Please sign in to comment.