create-react-app
5.1.0 · 15 Feb 2025MIT34.4k / weekRepositoryHomepagenpmAtom feed
58 stable releases, newest first, by release line. Notes are quoted as the maintainers published them.
- 0.7.x
0.7.0
3 Dec 2016Updates Jest to version 16.0, with an upgraded CLI, improved snapshot testing, new matchers and more. (@chase in #858)
Test setup file
src/setupTests.jsis now called after test framework initialization to support loading custom matchers. (@just-boris in #846)
Build Dependency (
react-scripts)Updates Jest to version 16.0, with an upgraded CLI, improved snapshot testing, new matchers and more. (@chase in #858)
Test setup file
src/setupTests.jsis now called after test framework initialization to support loading custom matchers. (@just-boris in #846)Build command shows better instructions for deploying the app to GitHub Pages (@Janpot in #841)
Build command now generates an asset manifest with mappings from each filename to its final output filename. (@lukyth in #891)
Build command exits, if there are errors from UglifyJS (@pdillon in #859)
Eject output is more beautiful now. (@azakordonets in #769)
Fixes opening the app in a new tab in Chrome. (@unixdev in #831)
Fixes environment variables not being defined as normal properties of the
process.envobject. (@dvkndn in #807)Fixes PostCSS autoprefixer not processing CSS files imported with CSS
@importstatements. (@nhunzaker in #929)
ESLint Config (
eslint-config-react-app)Adds
import/no-webpack-loader-syntaxrule that forbids using custom Webpack specific syntax to specify Webpack loaders in import statements. (@fson in #803)react/react-in-jsx-scoperule ("React must be in scope") is now an error. (@gaearon in #822)no-unused-expressionsrule now allows the use of short circuit and ternary expressions. (@cannona in #724)
Babel Preset (
babel-preset-react-app)The preset now detects the Node.js version in test environment and disables unnecessary ES2015 transforms using using
babel-preset-env. (@shubheksha in #878, @JeffreyATW in #927 )Fixes a duplicate dependency on
babel-plugin-transform-regenerator. (@akofman in #864)
Utilities (
react-dev-utils)The error overlay is now disposed after fixing linting errors. (@jarlef in #856)
Adds support for Webpack 2 to
webpackHotDevClient. (@michalkvasnicak in #840)
Global CLI (
create-react-app)Adds support for passing a scoped package name to the
--scripts-versionargument. (@pdillon in #826)Fixes installing pre-release versions using a tarball URL with the
--scripts-versionargument. (@jihchi in #876)
Migrating from 0.6.1 to 0.7.0
You may optionally update the global command (it’s not required):
npm install -g create-react-app@0.6.0
Inside any created project that has not been ejected, run:
npm install --save-dev --save-exact react-scripts@0.7.0
Breaking Change in 0.7.0
Updating Snapshots
Jest 16 includes improvements to snapshot testing and changes to the snapshot format. If your project uses snapshot testing, you'll need to update the snapshot files. To update the snapshots, run:
npm test -- -u
- 0.6.x
0.6.0
22 Oct 2016Build Dependency (
react-scripts)Utilities (
react-dev-utils)Migrating from 0.5.1 to 0.6.0
Inside any created project that has not been ejected, run:
npm install --save-dev --save-exact react-scripts@0.6.0
Note: If the project fails to start, remove
node_modules, ensurereact-scriptsis0.6.0in yourpackage.json, and runnpm installagain. There seems to be an npm bug affecting this update.Screenshot
This is the browser window when you make a syntax error:
- 0.5.x
0.5.0
23 Sep 2016Adds support for
publicfolder with arbitrary assets. (@gaearon in #703)You can now specify defaults for environment variables with
.envfile. (@ayrton in #695)
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.htmlintopublicFolderYou’ll also need to create a new folder called
publicin the root of your project. Then, moveindex.htmland files it references (such as a favicon) into that folder.You can no longer reference any files from
./srcinindex.html. Instead,public/index.htmlcan now only reference files other inside of thepublicfolder 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.htmlandsrc/favicon.icointo thepublicfolder, 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
homepageinpackage.json. Read more about using thepublicfolder and why these changes were made.- 0.4.x
0.4.2
18 Sep 2016Lint output in editor is now opt-in because, due to this ESLint issue, it is broken by default in Atom. (@fson in #649)
You can now import
jpeg,wav,mp3,m4a,aac, andoga. (@mareksuscak in #624, @danharper in #665)
Build Dependency (
react-scripts)Lint output in editor is now opt-in because, due to this ESLint issue, it is broken by default in Atom. (@fson in #649)
Fixes an issue causing compile errors when project folder is inside a symlink. (@motiz88 in #648)
You can now import
jpeg,wav,mp3,m4a,aac, andoga. (@mareksuscak in #624, @danharper in #665)Fixes false positives caused by the case sensitive import warning on Windows. (@Urthen in #593)
With Docker,
*.json.gzipfiles are no longer created in the project folder. (@thangngoc89 in #620)Proxy network errors now abort requests instead of hanging. (@cloudmu in #588)
Connection to the development server does not get interrupted in HTTPS mode. (@dceddia in #652)
Unsupported Node versions now print a warning. (@fson in #575)
Importing assets with special characters like
@now works with tests. (@fson in #584)Undefined variable lint rule is promoted from a warning to an error. (@gaearon in #669)
Variables starting with underscore no longer trigger the “unused variable” rule. (@valscion in #640)
We now print a friendly error when required files are missing. (@vnctaing in #653)
The output after creating a project is better formatted. (@btnwtn in #629)
Development server logs are less noisy. (@gaearon in 122068)
Global CLI (
create-react-app)It now runs on early Node versions to print a friendly warning instead of crashing. (@sotojuan in fc3ab4)
We now print a friendly message when you create a project with invalid name. (@mareksuscak in #628)
Passing a custom fork of
react-scriptstocreate-react-appwith--scripts-versionworks again. (@yesmeck in #632)
Migrating from 0.4.1 to 0.4.2
You may optionally update the global command (it’s not required):
npm install -g create-react-app@0.4.2
Inside any created project that has not been ejected, run:
npm install --save-dev --save-exact react-scripts@0.4.2
- 0.3.x
0.3.0
1 Sep 2016- Breaking
Local paths in
<link href>inindex.htmlwill now be correctly resolved, so deletingfavicon.icois not an error anymore. (@andreypopp in #428) Testing is now supported! (Jest project contributors, @cpojer in #250, @gaearon in #378, #530, #533)
Build Dependency (
react-scripts)Testing is now supported! (Jest project contributors, @cpojer in #250, @gaearon in #378, #530, #533)
Static files such as CSS, images, and fonts, can now exist outside
srcdirectory. (@fson in #504)- Breaking
Local paths in
<link href>inindex.htmlwill now be correctly resolved, so deletingfavicon.icois not an error anymore. (@andreypopp in #428) Removed an annoying lint rule that warned for
<div ref={node => this.node = node}>. (@mrscobbler in #529)Temporarily disabled
react-constant-elementsBabel transform because of its bugs. (@gaearon in #534)Fixed an issue with generator syntax in Jest that occurred in an alpha release. (@gaearon in #535)
Global CLI (
create-react-app)You can now create a project in a folder that already contains an
.ideafolder, which is necessary for future WebStorm integration. (@denofevil in #522)
Migrating from 0.2.3 to 0.3.0
You may optionally update the global command (it’s not required):
npm install -g create-react-app@0.3.0
Inside any created project that has not been ejected, run:
npm install --save-dev --save-exact react-scripts@0.3.0
Breaking Change
Now
favicon.icois not treated specially anymore.
If you use it, move it tosrcand add the following line to<head>in your HTML:<link rel="shortcut icon" href="./src/favicon.ico">
New Feature
Since 0.3.0 added a test runner, we recommend that you add it to the
scriptssection of yourpackage.jsonlike this:// ... "scripts": { // ... "test": "react-scripts test --env=jsdom" }- 0.2.x
0.2.0
28 Jul 2016Build Dependency (
react-scripts)You can now enable deployment to GitHub Pages by adding
homepagefield topackage.json(@dhruska in #94)Development server now runs on
0.0.0.0and works with VirtualBox (@JWo1F in #128)Cloud9 and Nitrous online IDEs are now supported (@gaearon in 2fe84e)
When
3000port is taken, we offer to use another port (@chocnut in #101, 2edf21)You can now
importCSS files from npm modules (@glennreyes in #105, @breaddevil in #178)fetchandPromisepolyfills are now always included (@gaearon in #235)Regenerator runtime is now included if you use ES6 generators (@gaearon in #238)
Generated project now contains
.gitignore(@npverni in #79, @chibicode in #112)ESLint config is now more compatible with Flow (@gaearon in #261)
A stylistic lint rule about method naming has been removed (@mxstbr in #152)
A few unobtrusive accessibility lint rules have been added (@evcohen in #175)
A
.babelrcin parent directory no longer causes an error (@alexzherdev in #236)Files with
.jsonextension are now discovered (@gaearon in a11d6a)Bug fixes from transitive dependencies are included
Linting now works with IDEs if you follow these instructions (@keyanzhang in #149)
149))After building, we now print gzipped bundle size (@lvwrence in #229)
Global CLI (
create-react-app)It enforces that you have Node >= 4 (@conorhastings in #88)
Migrating from 0.1.0 to 0.2.0
You may optionally update the global command (it’s not required):
npm install -g create-react-app@0.2.0
Inside any created project that has not been ejected, run:
npm install --save-dev --save-exact react-scripts@0.2.0
You may need to fix a few lint warnings about missing
<img alt>tag, but everything else should work out of the box. If you intend to deploy your site to GitHub Pages, you may now addhomepagefield topackage.json. If you had issues with integrating editor linter plugins, follow these new instructions.- 0.1.x
0.1.0
22 Jul 2016Initial public release
- 0.0.x
0.0.0
17 Jul 2016Reading the note…
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.