Update dependency babel-preset-react-app to v9- autoclosed #13
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:
0.2.1->9.1.2Release Notes
facebook/create-react-app
v9.1.2Compare Source
v9.1.1Compare Source
v9.1.0Compare Source
v9.0.2Compare Source
v9.0.1Compare Source
v9.0.0Compare Source
v8.0.0Compare Source
v7.0.2Compare Source
v7.0.1Compare Source
v7.0.0Compare Source
v6.1.0Compare Source
v5.0.3Compare Source
v5.0.2Compare Source
v5.0.1Compare Source
v5.0.0v4.0.0v3.1.2Compare Source
v3.1.2 is a maintenance release that includes minor bug fixes and documentation updates.
🐛 Bug Fix
react-scriptsbabel-preset-react-app,react-error-overlay,react-scripts💅 Enhancement
react-scripts📝 Documentation
🏠 Internal
react-scripts🔨 Underlying Tools
babel-plugin-named-asset-import,confusing-browser-globals,react-app-polyfill,react-dev-utils,react-error-overlay,react-scriptsreact-scriptseslint-config-react-app,react-scriptsCommitters: 20
Migrating from 3.1.1 to 3.1.2
Inside any created project that has not been ejected, run:
or
v3.1.1Compare Source
v3.1.1 is a maintenance release that includes minor bug fixes and documentation updates.
🐛 Bug Fix
react-scripts💅 Enhancement
eslint-config-react-app📝 Documentation
Committers: 3
Migrating from 3.1.0 to 3.1.1
Optionally remove
Disallow: /static/frompublic/robots.txtif you want to allow your images and other static files to be indexed by search engines #7508Inside any created project that has not been ejected, run:
or
v3.1.0Compare Source
v3.1.0 is a minor release that adds ESLint 6 support as well as experimental support for extended and customizing the ESLint config along with other minor bug fixes and documentation updates. The upgrade to ESLint 6 is a breaking change only if you're using
eslint-config-react-apporreact-error-overlayoutside of Create React App.v3.0.3Compare Source
v3.0.2Compare Source
v3.0.1Compare Source
v3.0.1 is a maintenance release that adjusts some ESLint rules for TypeScript along with other minor bug fixes and documentation updates.
💥 Breaking Change
babel-preset-react-app🐛 Bug Fix
react-error-overlay,react-scriptsbabel-jest(@ianschmitz)babel-jestpreflight error (@ianschmitz)eslint-config-react-appno-dupe-class-membersrule for TypeScript (@ianschmitz)no-useless-constructorrule in TypeScript (@ianschmitz)eslint-config-react-app,react-scriptsdefault-caselint rule for TypeScript (@ianschmitz)react-dev-utils💅 Enhancement
react-dev-utils,react-scriptsbabel-preset-react-appreact-scripts📝 Documentation
react-app-polyfill🏠 Internal
react-scriptsObject.assignfromMiniCssExtractPluginoptions (@swashcap)Committers: 12
Migrating from 3.0.0 to 3.0.1
Inside any created project that has not been ejected, run:
or
v3.0.0Compare Source
Inside any created project that has not been ejected, run:
or
NOTE: You may need to delete your
node_modulesfolder and reinstall your dependencies by runningyarn(ornpm install) if you encounter errors after upgrading.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 is now supported out of the box.
Breaking Changes
Like any major release,
react-scripts@3.0.0contains a few breaking changes. We expect that they won't affect every user, but we recommend you look over this section to see if something is relevant to you. If we missed something, please file a new issue.Jest 24
We've updated from Jest 23 to get the latest improvements in Jest 24. We've noticed some differences in snapshot serialization in Jest 24, so you may need to adjust your tests slightly once you update. You can read more about what's changed in the Jest 24 blog post.
Hooks support
We now enforce Rules of Hooks with
eslint-plugin-react-hooks. If you are breaking any of the rules of Hooks this will cause your build to fail.TypeScript linting
We now lint TypeScript files. You can see the list of rules we enforce to check if your project is compatible. If you're using Visual Studio Code you can follow our guide to setup up your editor to display lint warnings.
browserslistsupport in @babel/preset-envThe
browserslistconfig in yourpackage.jsonis now used to control the output of your JavaScript files. You can use separate configuration fordevelopmentandproduction. See here for a good starting point which gives a good development experience, especially when using language features such as async/await, but still provides high compatibility with many browsers in productionRemove --no-watch flag
We've removed the
--no-watchflag from thestartscript in favor of Jest's own--watchAll=false.New structure in
asset-manifest.jsonAll asset paths have been moved under the
fileskey inasset-manifest.json.New Features
using
jsconfig.json/tsconfig.jsonWe now support setting
baseUrlinjsconfig.jsonandtsconfig.json. To configurebaseUrlto point to thesrcdirectory in your JavaScript project, create ajsconfig.jsonfile in your project root:{ "compilerOptions": { "baseUrl": "src" }, "include": ["src"] }If you have a TypeScript project you can configure
baseUrlthe same way in yourtsconfig.json.Currently the only supported options for
baseUrlarenode_modules(the default) andsrc.PostCSS Normalize
You can now include a version of Normalize.css in your project that will use your
browserslistsetting to generate the appropriate styles for your target browsers. To include it simply add@import-normalizeat the top of one of your CSS files.v2.2.0Compare Source
v2.1.1Compare Source
2.1.1 (October 31, 2018)
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.02.1.0 (October 29, 2018)
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.0Compare Source
v1.0.0Compare Source
1.0.0 (May 18, 2017)
We’ve been working on this release for the past few months, and there are many big impovements, from migrating to webpack 2 to a brand new runtime error overlay and built-in support for Progressive Web Apps.
So instead of just enumerating them here, we decided to write a blog post about all the new features.
Check it out: What’s New in Create React App.
Have you read it? Now let's see how to update your app to the latest version.
Migrating from 0.9.5 to 1.0.0
First, ensure you are using the latest Node 6 LTS or newer. In 1.0.0, we have dropped support for Node 4 and NPM 2.
Inside any created project that has not been ejected, run:
You may also optionally update the global command-line utility for bug fixes:
Ensure application and test files reside in
src/We've never supported importing files from outside
src/, nor have we supported running tests outside ofsrc/.We also never explicitly forbid doing so, which caused confusion when things didn't work like they should.
When running or building your application, you may see a message like so:
To remedy this, simply move any files that you
importwithinsrc/and update your relative imports accordingly. This enforces that files thatimporteach other stay insrc/, and other folders serve different purposes (e.g. thepublic/folder just gets served from the root).If you used relative imports outside the project directory as a way to share code with another project, consider using a monorepo instead, so that other projects are symlinked to your project's
node_modules/. Then you can import them as a Node modules.While running
npm test, you may notice some of your tests are missing. Please move any top-level test directory (i.e.__test__,__spec__) or files (i.e.*.test.js,*.spec.js) intosrc/. Conversely, if you have some similarly named files that you don’t want Jest to run, move them outside ofsrc/.Import required locales for Moment.js
Moment.js locales are now purposely excluded from the bundle unless explicitly depended on.
Please import the locales you need:
You can no longer import file content
You can no longer import a file and expect to receive its contents as an encoded string.
This behavior was confusing and inconsistent depending on the file size.
Importing files with unknown extensions will now always include them into the build and return a valid URL.
If you'd like to import a file's contents as a string, consider contributing to #1944.
For the time being, you must embed assets within an export:
You can then import this as so:
Confusing window globals can no longer be used without
windowqualifierPlease prefix any global method with
window., you may experience this with methods such asconfirm.Simply update references from
confirmtowindow.confirm.Note that this new lint error will likely uncover legitimate accidental uses of global variables where you meant to define a local variable instead.
Why is my import erroring out?
You can no longer use AMD import syntax, nor define an import anywhere other than the top of the file.
This is to reduce confusion around import statements, which do not allow you to evaluate code between them.
I see many accessibility warnings
We have enabled a new set of rules to help make applications more accessible, please take time to learn about the errors and fix them.
You can search for every lint rule name in the right column and read its description on the web. The fixes are usually very simple.
I see many warnings about PropTypes and createClass
We have enabled the lint warnings about React APIs deprecated in React 15.5.
You can automatically convert your project to fix them by running the corresponding codemods.
How do I make my tests work with Jest 20?
Please refer to the Jest 19 and Jest 20 breaking changes for migration instructions.
If you use snapshots, you will likely need to update them once because of the change in format.
Flexbox 2009 spec is no longer polyfilled
The old, 2009 specification for Flexbox is deprecated and is 2.3x slower than the latest specification.
We are no longer polyfilling it automatically.
I see "Definition for rule 'jsx-a11y/alt-text' was not found (jsx-a11y/alt-text)" in the editor
Follow these steps if you see errors about missing lint rules in the editor.
npm installin your project (oryarn)If you still have the problem please file an issue.
How to turn my app into a Progressive Web App?
After the regular update procedure above, add these line to
<head>inpublic/index.html:Then create a file called
public/manifest.jsonthat looks like this:Finally, create
src/registerServiceWorker.jswith this template, import it fromsrc/index.jsand call the function it exports.Anything missing?
This was a large release, and we might have missed something.
Please file an issue and we will try to help.
Some of my tests started crashing because of unhandled rejections
Unhandled Promise rejections will now crash tests. You can fix them by explicitly catching the errors you don’t care about.
Detailed Changelog
For a readable summary of the changes, check out our blog post.
💥 Breaking Change
react-dev-utils,react-scriptsModuleScopePluginto ensure files reside insrc/. (@Timer)react-scriptssrc/(#544). (@motevets)19(now 20). (@rogeliog)eslint-config-react-app,react-dev-utilseslint-config-react-app,react-error-overlay,react-scriptseslint-plugin-jsx-a11yand activate more rules. (@AlmeroSteyn)eslint-config-react-app,react-scripts🚀 New Feature
react-scriptsreact-dev-utils,react-scriptsreact-error-overlay, our new crash overlay. (@Timer)eslint-config-react-app,react-scriptseslint-plugin-jsx-a11yand activate more rules. (@AlmeroSteyn)🐛 Bug Fix
react-scriptsreact-scriptsand addrequire.resolve()to loaders. (@gaearon).eslintignore. (@Timer)localhostwhen offline (Windows). (@bunshar)http://orhttps://. (@bunshar)detect-port. (@Andreyco)react-dev-utilsopenBrowsernow supports urls with more than one parameter. (@alisonmonteiro)openBrowser()whenBROWSER=openon macOS. (@bpierre)cwd. (@chrisdrackett)create-react-app💅 Enhancement
react-dev-utils,react-scriptsreact-dev-utils,react-error-overlayreact-scripts19(now 20). (@rogeliog)yarn buildinstead ofyarn run build. (@geoffdavis92)servefor running in production. (@leo)yarninstead ofyarnpkgwhen creating a new application. (@lpalmes)X-FORWARDEDheaders for proxy requests. (@johann-sonntagbauer)eslint-config-react-app,react-dev-utilsreact-error-overlay,react-scriptsbabel-preset-react-app,eslint-config-react-app,react-dev-utils,react-error-overlay,react-scriptseslint-config-react-appeslint-config-react-app,react-scriptsignoreRestSiblingsinno-unused-vars. (@chrisdrackett)react-dev-utilscreate-react-app📝 Documentation
react-scripts.eslintrceffects. (@luftywiranda13).eslintrcfor IDE lint plugins. (@gaearon)node-sassalternative. (@michaelwayman)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 you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by WhiteSource Renovate. View repository job log here.