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
- Internal Test Suite
- #1519 Add test cases for PUBLIC_URL and relative path. (@Timer)
- #1484 Improve e2e-kitchensink and Jest coverage. (@Timer)
- #1463 Minor code style and wrong expect. (@tuchk4)
- #1470 E2e jsdom fix. (@EnoahNetzach)
- #1187 Use a more sophisticated template for end-to-end testing.. (@EnoahNetzach)
- Other
- #1289 Remove path-exists from dependencies and replace it with fs.existsSync. (@halfzebra)
Committers: 35
- Alex Driaguine (alexdriaguine)
- Anders D. Johnson (adjohnson916)
- Anthony F. (frehner)
- Brandon Istenes (brandones)
- Calvin Webster (calweb)
- Cary Landholt (CaryLandholt)
- Chandan Rai (crowchirp)
- Christian Raidl (Chris-R3)
- Dan Abramov (gaearon)
- Daniel Schep (dschep)
- David (lopezator)
- Dinuka De Silva (dinukadesilva)
- Eduard Kyvenko (halfzebra)
- Fabrizio Castellarin (EnoahNetzach)
- Fatih (frontsideair)
- Gabriel Aumala (GAumala)
- Jay Phelps (jayphelps)
- Jih-Chi Lee (jihchi)
- Jimmy Miller (jimmyhmiller)
- Joe Haddad (Timer)
- Johnny Magrippis (jmagrippis)
- Jonathan Kim (jkimbo)
- MUA (MsUzoAgu)
- Matthew Holloway (holloway)
- Nguyen Le Vu Long (vulong23)
- Paul O’Shannessy (zpao)
- Pedro Nauck (pedronauck)
- Robbie H (TheBlackBolt)
- Thibault Derousseaux (tibdex)
- Valerii (tuchk4)
- Vasiliy Taranov (jetpackpony)
- RodrigoHahn
- creynders (creynders)
- pd4d10 (pd4d10)
- soo (carlsagan21)
Migrating from 0.8.5 to 0.9.0
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.