create-react-app
5.1.0 · 15 Feb 2025MIT34.4k / weekRepositoryHomepagenpmAtom feed
0.7.0 is the newest release of 0.5.x.
In short
3 new7 changed
Release note
Build Dependency (react-scripts)
Adds support for
publicfolder with arbitrary assets. (@gaearon in #703)You can now specify defaults for environment variables with
.envfile. (@ayrton in #695)Ejecting now generates proper
.babelrcand.eslintrc. (@fson in #689, @gaearon in #705)Some React warnings now include the component stacktrace. (@gaearon in #716)
npm startdoesn’t fail in a composed Docker container. (@arekkas in #711)The projects generated with
ejectare now cleaner. (@gaearon in #723)The project is now managed as a monorepo. (@ryanyogan in #419, @fson in #678)
ESLint Config (eslint-config-react-app)
Added
react/no-danger-with-childrenandreact/style-prop-objectrules. (@fson in #696)
Babel Preset (babel-preset-react-app)
Utilities (react-dev-utils)
Global CLI (create-react-app)
Added
READMEto npm. There were no other changes.
Migrating from 0.4.3 to 0.5.0
Inside any created project that has not been ejected, run:
npm install --save-dev --save-exact react-scripts@0.5.0
Breaking Changes in 0.5.0
Global ESLint Plugin Versions
If you used a global ESLint installation for the editor integration, you’ll need to install these versions of global ESLint packages.
Moving index.html into public Folder
You’ll also need to create a new folder called public in the root of your project. Then, move index.html and files it references (such as a favicon) into that folder.
You can no longer reference any files from ./src in index.html. Instead, public/index.html can now only reference files other inside of the public folder using a special variable called %PUBLIC_URL%.
For example, instead of:
<link rel="shortcut icon" href="./src/favicon.ico">
You would need to move both index.html and src/favicon.ico into the public folder, and change <link> to look like this:
<link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico">
This ensures it become a part of the build output, and resolves correctly both with client-side routing and non-root homepage in package.json. Read more about using the public folder and why these changes were made.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.