NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
npm, #5400 most downloaded on npm
Configuration and scripts for Create React App.
Latest stable
5.0.1
Last release 2 years ago
no release in 18 months
Ships unpredictably
gaps range from 3 weeks to 2.8 years
Nearly every release is documented
notes for 57 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
10 years old
135 releases · first in 2016
Drag across the ruler to compare, or tap a release to open it.
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Nothing published for this version
Nothing published for this version
[#4866](https://github.com/facebook/create-react-app/pull/4866) Fix a Windows-only vulnerability (`CVE-2018-6342`) in the development server (@acdlite…
react-scripts
webpack-dev-server dependencyreact-dev-utils
CVE-2018-6342) in the development server (@acdlite)
react-dev-utils: react-dev-utils@1.0.4, react-dev-utils@2.0.2, react-dev-utils@3.1.2, react-dev-utils@4.2.2, react-dev-utils@5.0.2, and react-dev-utils@6.0.0-next.a671462csockjs-client dependencyInside any created project that has not been ejected, run:
npm install --save --save-exact react-scripts@1.1.5
or
yarn add --exact react-scripts@1.1.5
Inside any created project that has not been ejected, run:
Inside any created project that has not been ejected, run:
npm install --save --save-exact react-scripts@1.1.4
or
yarn add --exact react-scripts@1.1.4
Inside any created project that has not been ejected, run:
react-scripts
Inside any created project that has not been ejected, run:
npm install --save --save-exact react-scripts@1.1.3
or
yarn add --exact react-scripts@1.1.3
Inside any created project that has not been ejected, run:
react-scripts
Inside any created project that has not been ejected, run:
npm install --save --save-exact react-scripts@1.1.2
or
yarn add --exact react-scripts@1.1.2
Inside any created project that has not been ejected, run:
react-scripts
{json,css} files in prettier command. (@reyronald)Inside any created project that has not been ejected, run:
npm install --save --save-exact react-scripts@1.1.1
or
yarn add --exact react-scripts@1.1.1
babel-preset-react-app, react-scripts
react-scripts
react-error-overlay
create-react-app
--info flag to help gather bug reports. (@tabrindle)--use-npm flag to bypass Yarn even on systems that have it. (@tabrindle)--scripts-version to include .tar.gz format. (@SaschaDens)"file:<path>" --scripts-version values. (@GreenGremlin)babel-preset-react-app, react-scripts
react-dev-utils
GET. (@doshisid)lsof. (@rmccue)++ in the name. (@Norris1z)create-react-app
.npmrc. (@mdogadailo)react-scripts
react-scripts
create-react-app
react-dev-utils
code-insiders to the editor list. (@shrynx)react-dev-utils, react-error-overlay
react-dev-utils, react-scripts
eslint-config-react-app
User Guide
Other
eslint-config-react-app
Other
cra.sh development task to javascript. (@ianschmitz)dismissRuntimeErrors function. (@skidding)printHostingInstructions a bit. (@GreenGremlin)FileSizeReporter for multi build Webpack setups. (@iiska)react-dev-utils. (@xjlim)Inside any created project that has not been ejected, run:
npm install --save --save-exact react-scripts@1.1.0
or
yarn add --exact react-scripts@1.1.0
Kenneth Auchenberg (auchenberg)
react-scripts
Inside any created project that has not been ejected, run:
npm install --save --save-exact react-scripts@1.0.17
or
yarn add --exact react-scripts@1.0.17
Inside any created project that has not been ejected, run:
react-scripts
react-dev-utils
Inside any created project that has not been ejected, run:
npm install --save --save-exact react-scripts@1.0.16
or
yarn add --exact react-scripts@1.0.16
babel-preset-react-app, react-dev-utils, react-error-overlay, react-scripts
react-scripts
react-dev-utils, react-scripts
react-scripts
babel-preset-react-app, react-dev-utils, react-error-overlay, react-scripts
react-dev-utils, react-error-overlay
create-react-app
User Guide
npm-run-all to build Sass and JS. (@shime)README
Other
react-error-overlay
react-error-overlay in production. (@Timer)react-error-overlay has no dependencies now (it's bundled). (@Timer)react-scripts
registerServiceWorker.js. (@dunglas)output.path from dev webpack config. (@nikolas)reason-react support. (@lpalmes)style-loader and disable inclusion of its HMR code in builds. (@insin)url-loader to 0.6.2 for mime ReDoS vulnerability. (@d3viant0ne)<!doctype html> -> <!DOCTYPE html>. (@Hurtak)Inside any created project that has not been ejected, run:
npm install --save --save-exact react-scripts@1.0.15
or
yarn add --exact react-scripts@1.0.15
create-react-app, react-dev-utils, react-error-overlay, react-scripts
react-dev-utils
react-error-overlay
react-dev-utils
Other
react-scripts
#2908 Note that class fields have progressed to stage 3. (@rickbeerendonk)
#3160 Update unclear wording in webpack configuration (file loader section). (@kristiehoward)
eslint-config-react-app
react-scripts
#2989 Update install template to match accessibility guidelines. (@davidleger95)
react-error-overlay
create-react-app, react-dev-utils, react-error-overlay, react-scripts
#3058 Re-run prettier for all files and pin the version. (@viankakrisna)
#3107 Run CI on npm@^4. (@viankakrisna)
Inside any created project that has not been ejected, run:
npm install --save --save-exact react-scripts@1.0.14
or
yarn add --exact react-scripts@1.0.14
react-dev-utils, react-error-overlay
react-error-overlay
react-dev-utils
react-scripts
react-scripts
child_process to let some libraries compile. (@McFlurriez)react-dev-utils, react-error-overlay
Inside any created project that has not been ejected, run:
npm install --save --save-exact react-scripts@1.0.13
or
yarn add --exact react-scripts@1.0.13
react-error-overlay, react-scripts
react-error-overlay
react-dev-utils
react-scripts
react-scripts
react-dev-utils
react-error-overlay, react-scripts
babel-runtime dependency (@christophehurpeau)react-dev-utils, react-error-overlay, react-scripts
react-error-overlay to React (@tharakawj)Inside any created project that has not been ejected, run:
npm install --save --save-exact react-scripts@1.0.12
or
yarn add --exact react-scripts@1.0.12
When a Yarn proxy is set, we will check its connectivity if we cannot reach Yarn's registry. This is often the case when DNS lookups must be made thro
create-react-app
#2884 Improve offline heuristic for proxied environments. (@bsyk)
When a Yarn proxy is set, we will check its connectivity if we cannot reach Yarn's registry. This is often the case when DNS lookups must be made through the proxy.
#2853 Allow use of scoped packages with a pinned version. (@wileybenet)
react-dev-utils
react-dev-utils, react-scripts
react-scripts
node file resolution. (@mostafah)react-scripts
#2818 Allow sourcemaps to be disabled. (@viankakrisna)
As applications grow more complex, it is possible webpack may run out of memory while generating source maps. They may now be disabled by setting GENERATE_SOURCEMAP=false.
#2913 Allow flags to be passed to node when running react-scripts. (@koistya)
#2747 Simplify webpack configuration using Rule.oneOf. (@Furizaa)
react-dev-utils, react-scripts
package.json. (@iamdoron)create-react-app
react-dev-utils
eslint-config-react-app, react-scripts
eslint@4. (@trungdq88)eslint-config-react-app
allowTaggedTemplates to true (eslint). (@denkristoffer)react-dev-utils
webpackHotDevClient support. (@ForbesLindesay)react-scripts
babel-preset-react-app
create-react-app, eslint-config-react-app, react-dev-utils, react-error-overlay, react-scripts
eslint-config-react-app
react-scripts
Inside any created project that has not been ejected, run:
npm install --save --save-exact react-scripts@1.0.11
or
yarn add --exact react-scripts@1.0.11
Forbes Lindesay (ForbesLindesay)
react-dev-utils
create-react-app
README
gluestick to the alternatives section. (@JoeCortopassi)Inside any created project that has not been ejected, run:
npm install --save --save-exact react-scripts@1.0.10
or
yarn add --exact react-scripts@1.0.10
Ade Viankakrisna Fadlil (viankakrisna)
react-scripts
Inside any created project that has not been ejected, run:
npm install --save --save-exact react-scripts@1.0.9
or
yarn add --exact react-scripts@1.0.9
If you previously used `HTTPS=true` environment variable in development, make sure you aren't affected by a now-fixed vulnerability in Webpack by visi…
react-scripts
CI variable is set to true. (@varnav)PUBLIC_URL for CDN. (@jeffposnick)index.css over App.css. (@bryankang)react-dev-utils
ModuleScopePlugin. (@diligiant)react-scripts
.web.js extension for React Native Web. (@mini-eggs)sw-precache-webpack-plugin to lastest version. (@goldhand)dgram Node module. (@micopiira)service-worker.js is not found. (@ro-savage)babel-preset-react-app, react-dev-utils, react-scripts
create-react-app, react-scripts
react-dev-utils
yarn build in output. (@gaearon)create-react-app
User Guide
source-map-explorer. (@gr33nfury)REACT_EDITOR environment variable. (@wirmar)jest-enzyme section. (@luftywiranda13)README
Other
react-scripts
react-dev-utils
Inside any created project that has not been ejected, run:
npm install --save-dev --save-exact react-scripts@1.0.8
or
yarn add --dev --exact react-scripts@1.0.8
You may optionally then move react-scripts from devDependencies to dependencies since that’s how we’ll structure newly created projects. It is not necessary though.
If you previously used HTTPS=true environment variable in development, make sure you aren't affected by a now-fixed vulnerability in Webpack by visiting this page. You can read more about the vulnerability here.
If you left the service worker integration enabled and didn’t change how it works, you can replace src/registerServiceWorker.js with this updated version.
If you haven't changed the default CSS organization, you may want to apply this fix that makes index.css take precedence over App.css in your project.
Inside any created project that has not been ejected, run:
react-scripts
comparisons feature in uglify compression. (@davidascher)react-scripts
react-dev-utils, react-scripts
react-scripts
now deployments. (@purplecones)Inside any created project that has not been ejected, run:
npm install --save-dev --save-exact react-scripts@1.0.7
or
yarn add --dev --exact react-scripts@1.0.7
Nothing published for this version
eslint-config-react-app, react-error-overlay, react-scripts
eslint-config-react-app, react-error-overlay, react-scripts
react-dev-utils
react-scripts
/__* URLs to fix Firebase hosting. (@ryansully)README
Inside any created project that has not been ejected, run:
npm install --save-dev --save-exact react-scripts@1.0.6
or
yarn add --dev --exact react-scripts@1.0.6
Inside any created project that has not been ejected, run:
react-dev-utils, react-scripts
react-dev-utils
eslint-config-react-app
Inside any created project that has not been ejected, run:
npm install --save-dev --save-exact react-scripts@1.0.5
or
yarn add --dev --exact react-scripts@1.0.5
Fix a regression in published package.
react-error-overlay
Inside any created project that has not been ejected, run:
npm install --save-dev --save-exact react-scripts@1.0.4
or
yarn add --dev --exact react-scripts@1.0.4
react-dev-utils, react-error-overlay
react-dev-utils
eslint-config-react-app
react-dev-utils, react-error-overlay
console calls into a check. (@BrodaNoel)react-scripts
Inside any created project that has not been ejected, run:
npm install --save-dev --save-exact react-scripts@1.0.3
or
yarn add --dev --exact react-scripts@1.0.3
react-dev-utils, react-error-overlay
react-dev-utils, react-scripts
react-dev-utils, react-error-overlay
react-dev-utils
react-scripts
git status. (@milocosmopolitan)Inside any created project that has not been ejected, run:
npm install --save-dev --save-exact react-scripts@1.0.2
or
yarn add --dev --exact react-scripts@1.0.2
If you previously had issues with an Invalid Host Header error, follow these new instructions to fix it.
react-dev-utils, react-error-overlay
react-scripts
NODE_PATH=src for npm start and npm run build. (@ApacheEx)NODE_PATH=src for Jest. (@gaearon)"homepage" field. (@gaearon).env.local in test environment. (@gaearon)react-dev-utils
react-dev-utils, react-error-overlay
react-error-overlay
eslint-config-react-app
react-scripts
<noscript> to template's index.html. (@viankakrisna)react-scripts
.env.* files are supported. (@AJamesPhillips)Inside any created project that has not been ejected, run:
npm install --save-dev --save-exact react-scripts@1.0.1
or
yarn add --dev --exact react-scripts@1.0.1
Please refer to the Jest 19 and Jest 20 breaking changes for migration instructions.
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.
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:
npm install --save-dev --save-exact react-scripts@1.0.0
You may also optionally update the global command-line utility for bug fixes:
npm install -g create-react-app
src/We've never supported importing files from outside src/, nor have we supported running tests outside of src/.<br>
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:
You attempted to import ... which falls outside of the project src/ directory.
To remedy this, simply move any files that you import within src/ and update your relative imports accordingly. This enforces that files that import each other stay in src/, and other folders serve different purposes (e.g. the public/ 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) into src/. Conversely, if you have some similarly named files that you don’t want Jest to run, move them outside of src/.
Moment.js locales are now purposely excluded from the bundle unless explicitly depended on.
Please import the locales you need:
import moment from 'moment';
import 'moment/locale/fr';
import 'moment/locale/es';
You can no longer import a file and expect to receive its contents as an encoded string.<br> 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:
// sample.txt
export default `i want
this data as a string
`;
You can then import this as so:
import sampleText from './sample.txt';
// ...
window qualifierPlease prefix any global method with window., you may experience this with methods such as confirm.
Simply update references from confirm to window.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.
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.
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.
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.
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.
The old, 2009 specification for Flexbox is deprecated and is 2.3x slower than the latest specification.
We are no longer polyfilling it automatically.
Follow these steps if you see errors about missing lint rules in the editor.
npm install in your project (or yarn)If you still have the problem please file an issue.
After the regular update procedure above, add these line to <head> in public/index.html:
<meta name="theme-color" content="#000000">
<!--
manifest.json provides metadata used when your web app is added to the
homescreen on Android. See https://developers.google.com/web/fundamentals/engage-and-retain/web-app-manifest/
-->
<link rel="manifest" href="%PUBLIC_URL%/manifest.json">
Then create a file called public/manifest.json that looks like this:
{
"short_name": "React App",
"name": "Create React App Sample",
"icons": [
{
"src": "favicon.ico",
"sizes": "192x192",
"type": "image/png"
}
],
"start_url": "./index.html",
"display": "standalone",
"theme_color": "#000000",
"background_color": "#ffffff"
}
Finally, create src/registerServiceWorker.js with this template, import it from src/index.js and call the function it exports.
This was a large release, and we might have missed something.
Please file an issue and we will try to help.
Unhandled Promise rejections will now crash tests. You can fix them by explicitly catching the errors you don’t care about.
For a readable summary of the changes, check out our blog post.
react-dev-utils, react-scripts
react-scripts
src/ (#544). (@motevets)eslint-config-react-app, react-dev-utils
eslint-config-react-app, react-error-overlay, react-scripts
eslint-plugin-jsx-a11y and activate more rules. (@AlmeroSteyn)eslint-config-react-app, react-scripts
react-scripts
react-dev-utils, react-scripts
eslint-config-react-app, react-scripts
eslint-plugin-jsx-a11y and activate more rules. (@AlmeroSteyn)react-scripts
react-scripts and add require.resolve() to loaders. (@gaearon).eslintignore. (@Timer)localhost when offline (Windows). (@bunshar)http:// or https://. (@bunshar)detect-port. (@Andreyco)react-dev-utils
openBrowser now supports urls with more than one parameter. (@alisonmonteiro)openBrowser() when BROWSER=open on macOS. (@bpierre)cwd. (@chrisdrackett)create-react-app
react-dev-utils, react-scripts
react-dev-utils, react-error-overlay
react-scripts
yarn build instead of yarn run build. (@geoffdavis92)serve for running in production. (@leo)yarn instead of yarnpkg when creating a new application. (@lpalmes)X-FORWARDED headers for proxy requests. (@johann-sonntagbauer)eslint-config-react-app, react-dev-utils
react-error-overlay, react-scripts
babel-preset-react-app, eslint-config-react-app, react-dev-utils, react-error-overlay, react-scripts
eslint-config-react-app
eslint-config-react-app, react-scripts
react-dev-utils
create-react-app
react-scripts
.eslintrc effects. (@luftywiranda13).eslintrc for IDE lint plugins. (@gaearon)node-sass alternative. (@michaelwayman).env for enabling polling mode. (@gaearon)npm run watch-css command. (@mklemme)yarn.lock. (@viankakrisna)babel-preset-react-app
react-scripts
url import in Webpack config. (@pd4d10)react-dev-utils, react-scripts
babel-preset-react-app, react-scripts
create-react-app, react-dev-utils, react-scripts
appveyor.yml. (@Timer)babel-preset-react-app, create-react-app, eslint-config-react-app, react-dev-utils, react-scripts
eslint-config-react-app
eslint-config-react-app, react-dev-utils, react-scripts
react-dev-utils
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Inside any created project that has not been ejected, run:
react-scripts
npm start. (@ryanwalters)eslint-config-react-app
react-scripts
Inside any created project that has not been ejected, run:
npm install --save-dev --save-exact react-scripts@0.9.5
You may now specify a scoped package for --scripts-version and obtain a working installation.
create-react-app
react-scripts
react-dev-utils
#1690 Fix openBrowser() when BROWSER=open on macOS. (@bpierre)
#1696 Improve reliability of port detection. (@chrisdrackett)
eslint-config-react-app, react-scripts
#1705 Add support for ignoreRestSiblings in no-unused-vars. (@chrisdrackett)
Linter no longer warns when using rest properties to remove variables from an object.
react-dev-utils, react-scripts
react-dev-utils. (@viankakrisna)Other
react-scripts
react-scripts
eslint-config-react-app
eslint-config-react-app, react-dev-utils, react-scripts
react-dev-utils
lerna version. (@viankakrisna)Inside any created project that has not been ejected, run:
npm install --save-dev --save-exact react-scripts@0.9.4
You may also optionally update the global command-line utility for scoped package support:
npm install -g create-react-app@1.3.0
If you are using Yarn, and you have created at least one app previously, Create React App now works offline.
create-react-app
If you are using Yarn, and you have created at least one app previously, Create React App now works offline.
<img src="http://i.imgur.com/1FLa9Tg.gif" width="500" alt="Yarn offline installation demo">
react-scripts
create-react-app
react-scripts
X-FORWARDED headers for proxy requests. (@johann-sonntagbauer)react-scripts
Inside any created project that has not been ejected, run:
npm install --save-dev --save-exact react-scripts@0.9.3
You may also optionally update the global command-line utility for offline Yarn cache support:
npm install -g create-react-app@1.2.1
React, ReactDOM, and react-scripts are now installed in the same install instead of two different installs. This reduces app creation time by a notice
create-react-app
#1253 Install time optimization. (@n3tr)
React, ReactDOM, and react-scripts are now installed in the same install instead of two different installs. This reduces app creation time by a noticeable amount.
#1512 Graceful error handling. (@chitchu)
If an error occurs while create-react-app is running, it will now clean up and not leave a broken project to reduce confusion.
#1193 Suggest upgrading to NPM >= 3 for faster install times. (@mobinni)
#1603 Allow app creation in a WebStorm project. (@driquelme)
#1570 Allow git urls in --scripts-version. (@tomconroy)
react-scripts
recursive-readdir. (@wtgtybhertgeghgtwtg)react-scripts
#1635 Fix Jest configuration. (@Timer)
Fixes ejecting on Windows for macOS and Linux machines.
#1356 Fix workflow if react-scripts package is linked via npm-link. (@tuchk4)
Advanced users may opt to fork react-scripts instead of ejecting so they still receive upstream updates.<br>
react-scripts will now function as expected when linking to a development version.<br>
Previously, you could not test changes with an existing application via linking.
#1585 Ensure PORT environment variable is an integer. (@matoilic)
#1628 Show correct port for pushstate-server URL text. (@mattccrampton)
react-snapshot. (@superhighfives)jest-enzyme documentation. (@kiranps)jest-enzyme for simplifying test matchers. (@blainekasten)babel-preset-react-app
test -e in e2e. (@igetgames)Note: 0.9.1 had known issues so you should skip it.
Inside any created project that has not been ejected, run:
npm install --save-dev --save-exact react-scripts@0.9.2
You may also optionally update the global command-line utility for more efficient installs (thanks @n3tr):
npm install -g create-react-app@1.1.0
This release has known issue. Please skip it and update to 0.9.2 instead.
This release has known issue. Please skip it and update to 0.9.2 instead.
Jest has been updated to 18 and has introduced some breaking changes and new features.
react-scripts
#1489 Support setting "homepage" to "." to generate relative asset paths. (@tibdex)
Applications that don’t use the HTML5 pushState API can now be built to be served from any relative URL. To enable this, specify "." as your homepage setting in package.json. It used to be possible before with a few known bugs, but they should be fixed now. See Serving the Same Build from Different Paths.
#937 Add PUBLIC_URL environment variable for advanced use. (@EnoahNetzach)
If you use a CDN to serve the app, you can now specify PUBLIC_URL environment variable to override the base URL (including the hostname) for resources referenced from the built code. This new variable is mentioned in the new Advanced Configuration section.
#1440 Make all REACT_APP_* environment variables accessible in index.html. (@jihchi)
This makes all environment variables previously available in JS, also available in the HTML file, for example %REACT_APP_MY_VARIABLE%. See Referencing Environment Variables in HTML.
react-dev-utils
#1148 Configure which browser to open with npm start. (@GAumala)
You can now disable the automatic browser launching by setting the BROWSER environment variable to none. You can also specify a different browser (or an arbitrary script) to open by default, as supported by opn command that we use under the hood. See Advanced Configuration.
react-scripts
#1311 Updated babel-jest and jest packages to 18.0.0. (@lopezator)
Jest has been updated to 18 and has introduced some breaking changes and new features.
react-scripts, react-dev-utils
#1264 Remove interactive shell check when opening browser on start. (@CaryLandholt)
Non-interactive terminals no longer automatically disable launching of the browser. Instead, you need to specify none as BROWSER environment variable if you wish to disable it.
react-scripts
#1441 Added babel-runtime dependency to deduplicate dependencies when using Yarn. (@jkimbo)
This works around a bug in Yarn that caused newly created projects to be over 400MB. Now they are down to 126MB, just like with npm 3.
#1458 Additionally remove react-scripts from dependencies on eject. (@creynders)
#1309 Bump babel-loader version (#1009). (@frontsideair)
#1267 Only gitignore directories in root, not deep. (@jayphelps)
react-dev-utils
react-scripts
env.CI = true warnings causing failures. (@jayphelps)babel-jest and jest packages to 18.0.0. (@lopezator)'\n' to the end of package.json file. (@pd4d10)&& in deploy script. (@zpao)create-react-app
Inside any created project that has not been ejected, run:
npm install --save-dev --save-exact react-scripts@0.9.0
Then, run your tests. If you are affected by breaking changes from Jest 18, consult blog post, changelog, and documentation. You might need to update any snapshots since their format might have changed.
If you relied on the browser not starting in non-interactive terminals, you now need to explicitly specify BROWSER=none as an environment variable to disable it.
create-react-app, react-scripts
create-react-app, react-scripts
Inside any created project that has not been ejected, run:
npm install --save-dev --save-exact react-scripts@0.8.5
You may also optionally update the global command-line utility:
npm install -g create-react-app@1.0.3
We added Subresource Integrity checks to the build output in 0.8.2 but it turns out that they may fail in browsers using special compression proxies,
react-scripts
#1233 Disable subresource integrity temporarily. (@Timer)
We added Subresource Integrity checks to the build output in 0.8.2 but it turns out that they may fail in browsers using special compression proxies, such as Chrome on Android, when served over HTTP. We disabled the checks until we can find a safe way to add them.
react-dev-utils
create-react-app
Fixes noisy output on Windows when Yarn is not installed.
react-scripts
#1237 Clear scrollback in test mode. (@gaearon)
Ensures test watcher clears the console before running.
#1229 Disable jest watch mode when --coverage flag is present [#1207]. (@BenoitAverty)
Since coverage doesn't work well with watch mode, we don’t run the watcher on npm test -- --coverage anymore.
#1212 Proxy rewrites Origin header to match the target server URL. (@koles)
Makes sure more API endpoints can work with the proxy setting.
#1222 Disable gh-page setup instruction if scripts.deploy has been added. (@n3tr)
Suppresses the instructions printed at the end of npm run build if npm run deploy already exists.
create-react-app
#1236 Tweak console messages. (@gaearon)
Makes error messages more friendly.
#1195 Use "commander" for cli argv handling. (@EnoahNetzach)
Adds create-react-app --help with a list of options.
react-dev-utils
react-dev-utils
react-scripts
react-scripts
Inside any created project that has not been ejected, run:
npm install --save-dev --save-exact react-scripts@0.8.4
You may also optionally update the global command-line utility:
npm install -g create-react-app@1.0.2
Fixes a crash when running create-react-app in some cases.
create-react-app
react-scripts
#1203 Update webpack-subresource-integrity to fix Windows builds. (@gaearon)
Fixes a crash when running npm run build on Windows.
#1201 Instruct Jest to load native components from RNW instead of RN. (@remon-georgy)
Fixes tests for users of React Native Web.
react-scripts
Inside any created project that has not been ejected, run:
npm install --save-dev --save-exact react-scripts@0.8.3
You can optionally update the global CLI too:
npm install -g create-react-app@1.0.1
The generated HTML now includes Subresource Integrity attributes ensuring that your users aren't served malicious code if your CDN gets compromised.
react-scripts
#1176 Add Subresource Integrity support. (@XVincentX)
The generated HTML now includes Subresource Integrity attributes ensuring that your users aren't served malicious code if your CDN gets compromised.
react-scripts
#1197 Let Jest handle all file types. (@gaearon)
Since 0.8.0, we started treating imports of any unknown file extensions as URLs. However, we had to revert this change for the test configuration in 0.8.1 because of a bug causing false positives. In 0.8.2, we are fixing this and making test configuration treat imports with unknown extensions the same way as we do in the browser environment.
#1194 Only honor relative NODE_PATH. (@gaearon)
Historically we have allowed specifying NODE_PATH environment variable as a way to allow “absolute imports”. For example, running NODE_PATH=src npm start in Bash or set NODE_PATH=src&&npm start in Windows Cmd would let you import anything inside src without specifying a relative path. However, we found a few nasty edge cases when Node.js core modules end up being in NODE_PATH and erroneously become bundled. As a result the build would crash on some systems when some libraries are imported. To fix this, we now only honor relative paths from NODE_PATH in Create React App. This means the existing use case for absolute imports is still supported (src in the example above is relative), but absolute paths in NODE_PATH (such as paths to Node.js core modules) will be ignored.
#1188 Update Webpack to fix source map issues. (@gaearon)
Since 0.8.0, we show source maps in development instead of the compiled code. However, it has come to our attention that Webpack's source map implementation had issues interpreting Babel output, and caused source maps to be wrong and breakpoints to be unusable in some cases. Webpack has released a fix for this, and we have updated the minimal version of Webpack that we are using.
#1180 Use file-loader for svgs. (@bogdansoare)
Since 0.8.0, we are treating all imports with non-JS/CSS extensions the same way. Importing them gives you a string with their URL, and if their content is small enough (less than 10K), the URL is in fact an inlined data URI. However, this doesn't work well with SVGs in case you use them for a sprite system since fragments don't work in data URIs, and it's wasteful to inline the same sprite SVG many times. To fix this, we have added an exception so that SVG files never get inlined.
react-dev-utils
babel-preset-react-app
eslint-config-react-app
#1191 Relax peerDependencies for ESLint preset. (@gaearon)
This allows the preset to be used in more apps without peer dependency conflicts. We still pin the exact versions in apps that haven't ejected for extra safety.
#1159 Make jsx-no-undef rule an error. (@existentialism)
Using an undefined type in JSX is now treated as a hard lint error because it is guaranteed to crash application at runtime.
react-scripts
#1175 Remove path module from webpack config on eject. (@harunhasdal)
This makes the output after ejecting a bit cleaner.
#1120 Add testURL to Jest config. (@spudly)
This fixes an error when running tests that interact with History API in jsdom.
react-scripts
Inside any created project that has not been ejected, run:
npm install --save-dev --save-exact react-scripts@0.8.2
Inside any created project that has not been ejected, run:
Linter warnings and errors are now checked during a continuous integration build (set by the CI environment variable) and the build will fail if any i
react-scripts
#944 Crash the build during CI whenever linter warnings are encountered. (@excitement-engineer)
Linter warnings and errors are now checked during a continuous integration build (set by the CI environment variable) and the build will fail if any issues are found. See Continuous Integration for more information.
create-react-app, react-scripts
Yarn is a new fast, reliable and secure alternative to the npm client. If you have Yarn installed, create-react-app will use it to install packages when you create an app. It also creates a yarn.lock file that should be checked into source control (e.g. git). This ensures the same versions of packages will be installed each time yarn install is run, on any machine.
react-scripts now also displays instructions using yarn commands for projects using Yarn (projects having a yarn.lock file).
To create a project using Yarn, simply install yarn and use create-react-app like before:
npm install -g yarn create-react-app@latest
create-react-app my-app # Packages are now installed with Yarn.
babel-preset-react-app
#902 Enable useBuiltIns option on object-rest-spread. (@existentialism)
Object rest spread and JSX now use the native Object.assign() method instead of Babel's helper function. If you are using babel-preset-react-app directly in your project and targeting browsers that don't have Object.assign() available, from now on you need a polyfill for it (e.g. object-assign).
Note: react-scripts already adds this polyfill, so no changes are necessary in Create React App projects.
react-scripts
#978 Move the remove-on-eject-end tag at the end of the file. (@EnoahNetzach)
Fixes a bug in ejected configuration.
#1017 Don't look for .babelrc file during test. (@nhajidin)
Fixes a .babelrc file in a parent directory interfering with the npm test command.
#951 Check for presence of folders before continuing eject. (@heldinz)
Fixes a bug where eject failed when a scripts or config folder already existed in the project.
react-dev-utils
#1035 Fix Chrome tab reuse. (@einarlove)
Fixes a bug with the app not opening in the existing tab in Chrome.
#964 Catch and noop call to open web browser. (@spadin)
Not being able to open a browser doesn't crash the development server now.
eslint-config-react-app, react-scripts
react-scripts
#1059 Use url-loader with limit 10k as a default loader. (@bebbi)
react-scripts now treats imports with any unknown file extension as a resource. Files with a size below 10 KB are inlined using a data URI and larger files copied to the build folder. This removes the need for an internal whitelist of supported file extensions. Any file that's not JS or CSS is now handled the same way.
#924 Enable JavaScript source maps in development. (@ekaradon)
#1058 Add missing dev argument in build script message. (@nhajidin)
#961 Add collectCoverageFrom option to collect coverage on files without any tests. (@pmackcode)
The test script now considers all files in the project when calculating test coverage.
#968 Enable gzip compression in the development server (#966). (@frontsideair)
react-dev-utils, react-scripts
#816 add logging of existing default port process on start. (@ianmcnally)
react-scripts can guess which process is running on the port 3000 when it's not available:
Something is already running on port 3000. Probably:
my-app
in /Users/ian/dev/my-app
Would you like to run the app on another port instead?
react-dev-utils
react-scripts
function from export statement. (@gnowoel)react-scripts
babel-preset-react-app
You may optionally update the global command (it’s not required, but it adds Yarn support for new projects):
npm install -g create-react-app@1.0.0
Inside any created project that has not been ejected, run:
npm install --save-dev --save-exact react-scripts@0.8.0
Updates Jest to version 16.0, with an upgraded CLI, improved snapshot testing, new matchers and more. (@chase in #858)
react-scripts)src/setupTests.js is now called after test framework initialization to support loading custom matchers. (@just-boris in #846)process.env object. (@dvkndn in #807)@import statements. (@nhunzaker in #929)eslint-config-react-app)import/no-webpack-loader-syntax rule that forbids using custom Webpack specific syntax to specify Webpack loaders in import statements. (@fson in #803)react/react-in-jsx-scope rule ("React must be in scope") is now an error. (@gaearon in #822)no-unused-expressions rule now allows the use of short circuit and ternary expressions. (@cannona in #724)babel-preset-react-app)babel-preset-env. (@shubheksha in #878, @JeffreyATW in #927
)babel-plugin-transform-regenerator. (@akofman in #864)react-dev-utils)webpackHotDevClient. (@michalkvasnicak in #840)create-react-app)--scripts-version argument. (@pdillon in #826)--scripts-version argument. (@jihchi in #876)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
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
Nothing published for this version
Nothing published for this version
Babel and ESLint configuration is now placed into package.json after ejecting. (@montogeek in #773)
react-scripts)package.json after ejecting. (@montogeek in #773)react-dev-utils)Inside any created project that has not been ejected, run:
npm install --save-dev --save-exact react-scripts@0.6.1
Adds an overlay for syntax errors in development. (@gaearon in #744)
react-scripts)react-dev-utils)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, ensure react-scripts is 0.6.0 in your package.json, and run npm install again. There seems to be an npm bug affecting this update.
This is the browser window when you make a syntax error:
Updates react-dev-utils dependency
react-scripts)react-dev-utils dependencyreact-dev-utils)Inside any created project that has not been ejected, run:
npm install --save-dev --save-exact react-scripts@0.5.1
Adds support for `public` folder with arbitrary assets. (@gaearon in #703)
react-scripts)public folder with arbitrary assets. (@gaearon in #703).env file. (@ayrton in #695).babelrc and .eslintrc. (@fson in #689, @gaearon in #705)npm start doesn’t fail in a composed Docker container. (@arekkas in #711)eject are now cleaner. (@gaearon in #723)eslint-config-react-app)react/no-danger-with-children and react/style-prop-object rules. (@fson in #696)babel-preset-react-app)react-dev-utils)create-react-app)README to npm. There were no other changes.Inside any created project that has not been ejected, run:
npm install --save-dev --save-exact react-scripts@0.5.0
If you used a global ESLint installation for the editor integration, you’ll need to install these versions of global ESLint packages.
index.html into public FolderYou’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.
This is a hotfix release for a broken package. It contained no changes to the code.
This is a hotfix release for a broken package.
It contained no changes to the code.
react-scripts)Inside any created project that has not been ejected, run:
npm install --save-dev --save-exact react-scripts@0.4.3
One column per quarter.