Skip to content

Commit

Permalink
Upgrade React to 16.8.4: Welcome React Hooks (#14400)
Browse files Browse the repository at this point in the history
  • Loading branch information
youknowriad authored Mar 13, 2019
1 parent 1e541fb commit c7d14ca
Show file tree
Hide file tree
Showing 7 changed files with 142 additions and 189 deletions.
19 changes: 15 additions & 4 deletions lib/client-assets.php
Original file line number Diff line number Diff line change
Expand Up @@ -380,10 +380,21 @@ function gutenberg_register_scripts_and_styles() {
* @since 0.1.0
*/
function gutenberg_register_vendor_scripts() {
/*
* This function is kept as an empty stub, in case Gutenberg should need to
* explicitly provide a version newer than that provided by core.
*/
$suffix = SCRIPT_DEBUG ? '' : '.min';

// Vendor Scripts.
$react_suffix = ( SCRIPT_DEBUG ? '.development' : '.production' ) . $suffix;

gutenberg_register_vendor_script(
'react',
'https://unpkg.com/react@16.8.4/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',
array( 'react' )
);
}

/**
Expand Down
209 changes: 32 additions & 177 deletions package-lock.json

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

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,9 @@
"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": "16.8.4",
"react-dom": "16.8.4",
"react-test-renderer": "16.8.4",
"redux": "4.0.0",
"rimraf": "2.6.2",
"rtlcss": "2.4.0",
Expand Down
Loading

0 comments on commit c7d14ca

Please sign in to comment.