chore(deps): update dependency react-scripts to v2 #71
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
1.0.17->2.1.8Release Notes
facebook/create-react-app
v2.1.8Compare Source
v2.1.8 is a maintenance release that reapplies the TypeScript speed improvements (#6406) in a new major version of
react-dev-utils.Migrating from 2.1.7 to 2.1.8
Inside any created project that has not been ejected, run:
or
v2.1.7Compare Source
v2.1.7 is a maintenance release that temporarily reverts the TypeScript speed improvements (#6406) to fix a dependency issue in
react-dev-utils.Migrating from 2.1.6 to 2.1.7
Inside any created project that has not been ejected, run:
or
v2.1.6Compare Source
v2.1.6 is a maintenance release that brings a few new improvements, most notably:
🐛 Bug Fix
react-dev-utilsreact-scripts💅 Enhancement
react-dev-utils,react-scriptscreate-react-appyarn.lock.cachedif using the default Yarn registry. (@hangryCat)react-scripts📝 Documentation
babel-preset-react-appbabel-preset-react-app,confusing-browser-globals,react-app-polyfillcreate-react-appreact-dev-utilssource-map-explorerdocs to analyze all chunks. (@Kamahl19)react-dev-utils,react-scripts🏠 Internal
🔨 Underlying Tools
react-scriptsCommitters: 15
Migrating from 2.1.5 to 2.1.6
Inside any created project that has not been ejected, run:
or
v2.1.5Compare Source
v2.1.5 is a maintenance release that reverts the TypeScript speed improvements (#5903) to fix a dependency issue in
react-dev-utils.Migrating from 2.1.4 to 2.1.5
Inside any created project that has not been ejected, run:
or
v2.1.4Compare Source
v2.1.4 is a maintenance release that brings a number of awesome improvements. A few notable ones include:
🐛 Bug Fix
react-scripts💅 Enhancement
react-scriptsreact-dev-utils,react-scripts📝 Documentation
--no-watch. (@ricokahler)serveport flag and add example. (@lyzhovnik)react-scripts🏠 Internal
react-scriptsmoduleto ignored node modules list. (@dotansimha)react-dev-utils,react-scriptsbabel-plugin-named-asset-import,react-scriptsreact-dev-utilsbabel-preset-react-app,react-app-polyfill,react-dev-utils,react-error-overlay,react-scripts🔨 Underlying Tools
babel-preset-react-app,react-app-polyfill,react-dev-utils,react-scriptsbabel-preset-react-appeslint-config-react-app,react-scriptsCommitters: 29
Migrating from 2.1.3 to 2.1.4
Inside any created project that has not been ejected, run:
or
v2.1.3Compare Source
v2.1.3 is a maintenance release to fix a vulnerability in webpack-dev-server.
📝 Documentation
react-scripts🏠 Internal
create-react-app,react-error-overlay🔨 Underlying Tools
react-scriptsCommitters: 8
Migrating from 2.1.2 to 2.1.3
Inside any created project that has not been ejected, run:
or
v2.1.2Compare Source
v2.1.2 is a maintenance release including various bug fixes.
🚀 New Feature
babel-preset-react-appallowESModulesoption tobabel-preset-react-app(@Pajn)🐛 Bug Fix
create-react-appcreate-react-app --info(@heyimalex)5.11.1(@tabrindle)babel-preset-react-appbabel-plugin-named-asset-importreact-app-polyfillreact-scriptspostcss-preset-envto latest (@BPScott)tsconfig.jsonlib suggested value (@ianschmitz)💅 Enhancement
react-scriptssetupTests.ts(@ianschmitz)📝 Documentation
file_extnote. (@alaycock)README.md. (@pavinthan)npx(@sagirk)sb init(@andys8)eslint-config-react-app.eslintrc(@ManoelLobo)babel-preset-react-app,create-react-app,eslint-config-react-app,react-dev-utils,react-scriptsreact-scriptsverifyPackageTree.js(@sjalgeo)react-app-polyfillbabel-preset-react-app,eslint-config-react-app,react-error-overlay,react-scripts🏠 Internal
react-scriptswebpsupport for TypeScript. (@dugagjin).eslintrc(@ManoelLobo)react-dev-utilsreact-error-overlaysideEffects: falseto react-error-overlay. (@SimenB)babel-preset-react-appcreate-react-appCommitters: 36
Migrating from 2.1.1 to 2.1.2
Inside any created project that has not been ejected, run:
or
v2.1.1Compare Source
Happy Halloween 🎃 👻! This spooky release brings a treat: decorator support in TypeScript files!
🐛 Bug Fix
babel-preset-react-appreact-scripts💅 Enhancement
babel-preset-react-app📝 Documentation
🏠 Internal
react-error-overlayreportRuntimeError. (@hipstersmoothie)babel-plugin-named-asset-importreact-scriptsCommitters: 8
Migrating from 2.1.0 to 2.1.1
Inside any created project that has not been ejected, run:
or
v2.1.0Compare Source
Create React App 2.1 adds support for TypeScript! Read the documentation to get started.
New applications can be created using TypeScript by running:
🚀 New Feature
create-react-app,react-scriptsbabel-preset-react-app,react-scripts🐛 Bug Fix
react-scriptsreact-dev-utils,react-scripts💅 Enhancement
create-react-app,react-scriptsreact-scriptsreact-dev-utils,react-scripts📝 Documentation
react-scripts🏠 Internal
react-scriptseslint-config-react-appCommitters: 15
Migrating from 2.0.5 to 2.1.0
Inside any created project that has not been ejected, run:
or
v2.0.5Compare Source
🐛 Bug Fix
react-dev-utilscreate-react-appreact-scripts💅 Enhancement
babel-preset-react-appbabel-plugin-dynamic-import-node. (@vikr01)react-scriptseslint-plugin-jsx-a11yversion. (@AlmeroSteyn)📝 Documentation
react-scripts.flowconfigfor .scss imports. (@rlueder)Other
eslint-config-react-app🏠 Internal
Other
create-react-appreact-scriptsCommitters: 23
Migrating from 2.0.4 to 2.0.5
Inside any created project that has not been ejected, run:
or
v2.0.4Compare Source
🐛 Bug Fix
react-scriptsGENERATE_SOURCEMAPenv not working for css sourcemap (@crux153)babel-preset-react-app💅 Enhancement
create-react-appreact-scripts.mjssupport back to webpack (@Timer)📝 Documentation
react-scripts🏠 Internal
Committers: 11
Migrating from 2.0.3 to 2.0.4
Inside any created project that has not been ejected, run:
or
v2.0.3Compare Source
Inside any created project that has not been ejected, run:
or
If you previously ejected but now want to upgrade, one common solution is to find the commits where you ejected (and any subsequent commits changing the configuration), revert them, upgrade, and later optionally eject again. It’s also possible that the feature you ejected for (maybe Sass or CSS Modules?) is now supported out of the box. You can find a list of notable new features in the Create React App 2.0 blog post.
Breaking Changes
Like any major release,
react-scripts@2.0contains a few breaking changes. We expect that they won't affect every user, but we recommend to scan over these sections to see if something is relevant to you. If we missed something, please file a new issue.Node 6 is no longer supported
Please upgrade to Node 8 (LTS) or later.
Polyfills for IE 9, IE 10, and IE 11 are no longer included by default (but you can opt in!)
We have dropped default support for Internet Explorer 9, 10, and 11. If you still need to support these browsers, follow the instructions below.
First, install
react-app-polyfill:or
Next, place one of the following lines at the very top of
src/index.js:You can read more about these polyfills here.
Dynamic
import()of a CommonJS module now has a.defaultpropertyWebpack 4 changed the behavior of
import()to be closer in line with the specification.Previously, importing a CommonJS module did not require you specify the default export. In most cases, this is now required.
If you see errors in your application about
... is not a function, you likely need to update your dynamic import, e.g.:require.ensure()is superseded by dynamicimport()We previously allowed code splitting with a webpack-specific directive,
require.ensure(). It is now disabled in favor ofimport(). To switch toimport(), follow the examples below:Single Module
Multiple Module
The default Jest environment was changed to
jsdomLook at the
testentry in thescriptssection of yourpackage.json.Here's a table how to change it from "before" and "after", depending on what you have there:
react-scripts test --env=jsdomreact-scripts testreact-scripts testreact-scripts test --env=nodeObject
proxyconfiguration is superseded bysrc/setupProxy.jsTo check if action is required, look for the
proxykey inpackage.jsonand follow this table:proxykey inpackage.jsonproxyis a string (e.g.http://localhost:5000)proxyis an objectIt's worth highlighting: if your
proxyfield is astring, e.g.http://localhost:5000, or you don't have it, skip this section. This feature is still supported and has the same behavior.If your
proxyis an object, that means you are using the advanced proxy configuration. It has become fully customizable so we removed the limited support for the object-style configuration. Here's how to recreate it.First, install
http-proxy-middlewareusing npm or Yarn:or
Next, create
src/setupProxy.jsand place the following contents in it:Now, migrate each entry in your
proxyobject one by one, e.g.:Place entries into
src/setupProxy.jslike so:You can also use completely custom logic there now! This wasn't possible before.
.mjsfile extension support is removedChange the extension of any files in your project using
.mjsto just.js.It was removed because of inconsistent support from underlying tools. We will add it back after it stops being experimental, and Jest gets built-in support for it.
PropTypesdefinitions are now removed in productionNormally, this shouldn't affect your logic and should make the resulting bundle smaller. However, you may be relying on PropTypes definition for production logic. This is not recommended, and will break now. If a library doe
Renovate configuration
📅 Schedule: At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻️ Rebasing: Whenever PR becomes conflicted, or if you modify the PR title to begin with "
rebase!".🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Renovate Bot. View repository job log here.