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)
- Marc Garreau (marcgarreau)
- Nazim Hajidin (nhajidin)
- Orta (orta)
- Patrick Mackinder (pmackcode)
- Sandro Padin (spadin)
- Sathish (bboysathish)
- Stefan (bebbi)
- Swizec Teller (Swizec)
- Vadzim (vadzim)
- Vesa Laakso (valscion)
- Ville Immonen (fson)
- ekaradon
Migrating from 0.7.0 to 0.8.0
You may optionally update the global command (itβs not required, but it adds Yarn support for new projects):
npm install -g [email protected]
Inside any created project that has not been ejected, run:
npm install --save-dev --save-exact [email protected]