Releases: facebook/create-react-app
v0.9.0
0.9.0 (February 11, 2017)
🚀 New Feature
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 yourhomepage
setting inpackage.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 inindex.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 tonone
. You can also specify a different browser (or an arbitrary script) to open by default, as supported byopn
command that we use under the hood. See Advanced Configuration.
-
💥 Breaking Change
react-scripts
-
#1311 Updated
babel-jest
andjest
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
asBROWSER
environment variable if you wish to disable it.
-
🐛 Bug Fix
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
💅 Enhancement
react-scripts
- #1496 Make build exit with error code when interrupted. (@brandones)
- #1352 More descriptive error message for
env.CI = true
warnings causing failures. (@jayphelps) - #1264 Remove interactive shell check when opening browser on start. (@CaryLandholt)
- #1311 Updated
babel-jest
andjest
packages to 18.0.0. (@lopezator) - #1432 Bump Jest version. (@gaearon)
- #1507 fix: add yarn gitignores. (@adjohnson916)
- #1510 Add missing
'\n'
to the end ofpackage.json
file. (@pd4d10) - #1324 Use npm script hooks to avoid
&&
in deploy script. (@zpao)
create-react-app
- #1270 gh-1269: Enabling nested folder paths for project name. (@dinukadesilva)
📝 Documentation
- User Guide
- #1515 readme: Advanced Configuration. (@Timer)
- #1513 clarifying the use of custom environment variables. (@calweb)
- #1511 Change "OS X" references to "macOS". (@RodrigoHahn)
- #1482 Edit User Guide: Add ESLint config for VS Code users. (@vulong23)
- #1483 Reflect websocket proxy support on README (#1013). (@frontsideair)
- #1453 Readme: Removes experimental from Jest snapshot. (@frehner)
- #1437 Added links to tutorials for integrating cra with an api backend. (@alexdriaguine)
- #1422 Add causes of dev server not detecting changes. (@jetpackpony)
- #1260 Heroku Deployment: Adds a note on how to resolve "File/Module Not Found Errors" . (@MsUzoAgu)
- #1256 Add "Changing the Page Title" to User Guide. (@gaearon)
- #1245 Replace the Flow documentation section. (@gaearon)
- #1514 corrected minor typo. (@crowchirp)
- #1393 replace two space syntax with br tag. (@carlsagan21)
- #1384 Document Flow support. (@dschep)
- READMEs
- #1375 Change console.log for errors and warnings. (@jimmyhmiller)
- #1369 Add missing import in react-dev-utils README.md. (@pedronauck)
🏠 Internal
v0.8.5
0.8.5 (January 9, 2017)
🐛 Bug Fix
create-react-app
,react-scripts
Committers: 1
- Ville Immonen (fson)
Migrating from 0.8.4 to 0.8.5
Inside any created project that has not been ejected, run:
npm install --save-dev --save-exact [email protected]
You may also optionally update the global command-line utility:
npm install -g [email protected]
v0.8.4
0.8.4 (December 11, 2016)
🐛 Bug Fix
-
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.
💅 Enhancement
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
ifnpm 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
📝 Documentation
react-dev-utils
- #1232 [documentation] fix html-dev-plugin link in react-dev-utils doc. (@shogunsea)
react-scripts
🏠 Internal
react-scripts
- #1214 Bump babel-eslint version. (@existentialism)
Committers: 10
- Benoit Averty (BenoitAverty)
- Brian Ng (existentialism)
- Dan Abramov (gaearon)
- Dave Baskin (dfbaskin)
- Fabrizio Castellarin (EnoahNetzach)
- Jirat Ki. (n3tr)
- Joe Haddad (Timer)
- Pavel Kolesnikov (koles)
- Shogun Sea (shogunsea)
- Ville Immonen (fson)
Migrating from 0.8.3 to 0.8.4
Inside any created project that has not been ejected, run:
npm install --save-dev --save-exact [email protected]
You may also optionally update the global command-line utility:
npm install -g [email protected]
v0.8.3
0.8.3 (December 8, 2016)
🐛 Bug Fix
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.
-
📝 Documentation
react-scripts
- #806 Add syntax highlighting configuration guide. (@mareksuscak)
Committers: 3
- Dan Abramov (gaearon)
- Marek Suscak (mareksuscak)
- Remon Georgy (remon-georgy)
Migrating from 0.8.2 to 0.8.3
Inside any created project that has not been ejected, run:
npm install --save-dev --save-exact [email protected]
You can optionally update the global CLI too:
npm install -g [email protected]
v0.8.2
0.8.2 (December 7, 2016)
🚀 New Feature
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.
-
🐛 Bug Fix
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, runningNODE_PATH=src npm start
in Bash orset NODE_PATH=src&&npm start
in Windows Cmd would let you import anything insidesrc
without specifying a relative path. However, we found a few nasty edge cases when Node.js core modules end up being inNODE_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 fromNODE_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 inNODE_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
💅 Enhancement
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.
-
📝 Documentation
react-scripts
- #1143 Add deploy to Firebase CDN on template's README (Closes #374). (@guilhermebruzzi)
- #1099 Fix minor typo/grammar. (@alex-wilmer)
- #1168 Add "npm run build silently fails" to Troubleshooting. (@gaearon)
Committers: 12
- Alex Wilmer (alex-wilmer)
- Bogdan Soare (bogdansoare)
- Brian Ng (existentialism)
- Dan Abramov (gaearon)
- Fabrizio Castellarin (EnoahNetzach)
- Guilherme Heynemann Bruzzi (guilhermebruzzi)
- Harun (harunhasdal)
- James Newell (jameslnewell)
- Jirat Ki. (n3tr)
- Li Xuanji (zodiac)
- Stephen John Sorensen (spudly)
- Vincenzo Chianese (XVincentX)
Migrating from 0.8.1 to 0.8.2
Inside any created project that has not been ejected, run:
npm install --save-dev --save-exact [email protected]
v0.8.1
0.8.1 (December 4, 2016)
🐛 Bug Fix
react-scripts
Migrating from 0.8.0 to 0.8.1
Inside any created project that has not been ejected, run:
npm install --save-dev --save-exact [email protected]
v0.8.0
0.8.0 (December 3, 2016)
🚀 New Feature
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 ayarn.lock
file that should be checked into source control (e.g. git). This ensures the same versions of packages will be installed each timeyarn install
is run, on any machine.react-scripts
now also displays instructions usingyarn
commands for projects using Yarn (projects having ayarn.lock
file).To create a project using Yarn, simply install
yarn
and usecreate-react-app
like before:npm install -g yarn create-react-app@latest create-react-app my-app # Packages are now installed with Yarn.
-
💥 Breaking Change
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 usingbabel-preset-react-app
directly in your project and targeting browsers that don't haveObject.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.
-
🐛 Bug Fix
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 thenpm test
command. -
#951 Check for presence of folders before continuing eject. (@heldinz)
Fixes a bug where
eject
failed when ascripts
orconfig
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
💅 Enhancement
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
- #963 Allow webpack 2 as a peerDependency in react-dev-utils. (@einarlove)
📝 Documentation
react-scripts
- #1126 Add a note about vscode-jest. (@orta)
- #1080 Add a note for OSX users about watchman and jest. (@dmr)
- #1071 Adds to docs - deployment with S3/CloudFront. (@marcgarreau)
- #976 Added info on using global variables. (@jhorneman)
- #996 Remove redundant
function
from export statement. (@gnowoel) - #959 Always build before deploying to gh-pages. (@dsernst)
- #974 Gently nudge users towards https by default. (@Swizec)
- Other
- #1031 No Configuration -> Convention over Configuration. (@sheerun)
- #995 Add Gatsby to alternatives. (@KyleAMathews)
🏠 Internal
react-scripts
babel-preset-react-app
Committers: 27
- Adam Stankiewicz (sheerun)
- Alice Rose (heldinz)
- Arunoda Susiripala (arunoda)
- Brian Ng (existentialism)
- Daniel Rech (dmr)
- Dave Ceddia (dceddia)
- David Ernst (dsernst)
- Dirk-Jan Rutten (excitement-engineer)
- Einar Löve (einarlove)
- Fabrizio Castellarin (EnoahNetzach)
- Fatih (frontsideair)
- Ian McNally (ianmcnally)
- Jurie Horneman (jhorneman)
- Kyle Mathews (KyleAMathews)
- Leo Wong ([gnowoel](https://github.co...
v0.7.0
0.7.0 (October 22, 2016)
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.js
is 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.env
object. (@dvkndn in #807) - Fixes PostCSS autoprefixer not processing CSS files imported with CSS
@import
statements. (@nhunzaker in #929)
ESLint Config (eslint-config-react-app
)
- Adds
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 (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-version
argument. (@pdillon in #826) - Fixes installing pre-release versions using a tarball URL with the
--scripts-version
argument. (@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 [email protected]
Inside any created project that has not been ejected, run:
npm install --save-dev --save-exact [email protected]
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
v0.6.1
0.6.1 (September 27, 2016)
Build Dependency (react-scripts
)
- Babel and ESLint configuration is now placed into
package.json
after ejecting. (@montogeek in #773)
Utilities (react-dev-utils
)
Migrating from 0.6.0 to 0.6.1
Inside any created project that has not been ejected, run:
npm install --save-dev --save-exact [email protected]
v0.6.0
0.6.0 (September 25, 2016)
Build 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 [email protected]
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.
Screenshot
This is the browser window when you make a syntax error: