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
CIenvironment 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
npmclient. If you have Yarn installed,create-react-appwill use it to install packages when you create an app. It also creates ayarn.lockfile that should be checked into source control (e.g. git). This ensures the same versions of packages will be installed each timeyarn installis run, on any machine.react-scriptsnow also displays instructions usingyarncommands for projects using Yarn (projects having ayarn.lockfile).To create a project using Yarn, simply install
yarnand usecreate-react-applike 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-appdirectly 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-scriptsalready 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
.babelrcfile during test. (@nhajidin)Fixes a
.babelrcfile in a parent directory interfering with thenpm testcommand. -
#951 Check for presence of folders before continuing eject. (@heldinz)
Fixes a bug where
ejectfailed when ascriptsorconfigfolder 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-loaderwith limit 10k as a default loader. (@bebbi)react-scriptsnow 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
collectCoverageFromoption 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-scriptscan 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
functionfrom 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 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