|
| 1 | +## 0.8.0 (2016-12-03) |
| 2 | + |
| 3 | +#### :rocket: New Feature |
| 4 | +* `react-scripts` |
| 5 | + * [#944](https://github.com/facebookincubator/create-react-app/pull/944) Crash the build during CI whenever linter warnings are encountered. ([@excitement-engineer](https://github.com/excitement-engineer)) |
| 6 | + |
| 7 | + 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](https://github.com/facebookincubator/create-react-app/blob/master/packages/react-scripts/template/README.md#continuous-integration) for more information. |
| 8 | + |
| 9 | + * [#1090](https://github.com/facebookincubator/create-react-app/pull/1090) Enable proxying of WebSockets. ([@dceddia](https://github.com/dceddia)) |
| 10 | + |
| 11 | +* `create-react-app`, `react-scripts` |
| 12 | + * [#898](https://github.com/facebookincubator/create-react-app/pull/898) Support Yarn. ([@fson](https://github.com/fson)) |
| 13 | + |
| 14 | + 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. |
| 15 | + |
| 16 | + `react-scripts` now also displays instructions using `yarn` commands for projects using Yarn (projects having a `yarn.lock` file). |
| 17 | + |
| 18 | + To create a project using Yarn, simply install `yarn` and use `create-react-app` like before: |
| 19 | + ``` |
| 20 | + npm install -g yarn create-react-app@latest |
| 21 | +
|
| 22 | + create-react-app my-app # Packages are now installed with Yarn. |
| 23 | + ``` |
| 24 | +
|
| 25 | +#### :boom: Breaking Change |
| 26 | +* `babel-preset-react-app` |
| 27 | + * [#902](https://github.com/facebookincubator/create-react-app/pull/902) Enable useBuiltIns option on object-rest-spread. ([@existentialism](https://github.com/existentialism)) |
| 28 | +
|
| 29 | + 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`](https://www.npmjs.com/package/object-assign)). |
| 30 | +
|
| 31 | + **Note:** `react-scripts` already adds this polyfill, so no changes are necessary in Create React App projects. |
| 32 | +
|
| 33 | +#### :bug: Bug Fix |
| 34 | +* `react-scripts` |
| 35 | + * [#978](https://github.com/facebookincubator/create-react-app/pull/978) Move the remove-on-eject-end tag at the end of the file. ([@EnoahNetzach](https://github.com/EnoahNetzach)) |
| 36 | +
|
| 37 | + Fixes a bug in ejected configuration. |
| 38 | +
|
| 39 | + * [#1017](https://github.com/facebookincubator/create-react-app/pull/1017) Don't look for `.babelrc` file during test. ([@nhajidin](https://github.com/nhajidin)) |
| 40 | +
|
| 41 | + Fixes a `.babelrc` file in a parent directory interfering with the `npm test` command. |
| 42 | +
|
| 43 | + * [#951](https://github.com/facebookincubator/create-react-app/pull/951) Check for presence of folders before continuing eject. ([@heldinz](https://github.com/heldinz)) |
| 44 | +
|
| 45 | + Fixes a bug where `eject` failed when a `scripts` or `config` folder already existed in the project. |
| 46 | +
|
| 47 | +* `react-dev-utils` |
| 48 | + * [#1035](https://github.com/facebookincubator/create-react-app/pull/1035) Fix Chrome tab reuse. ([@einarlove](https://github.com/einarlove)) |
| 49 | +
|
| 50 | + Fixes a bug with the app not opening in the existing tab in Chrome. |
| 51 | +
|
| 52 | + * [#964](https://github.com/facebookincubator/create-react-app/pull/964) Catch and noop call to open web browser. ([@spadin](https://github.com/spadin)) |
| 53 | +
|
| 54 | + Not being able to open a browser doesn't crash the development server now. |
| 55 | +
|
| 56 | +* `eslint-config-react-app`, `react-scripts` |
| 57 | + * [#953](https://github.com/facebookincubator/create-react-app/pull/953) Fix `.ico` file extension being handled by test configuration. ([@vadzim](https://github.com/vadzim)) |
| 58 | +
|
| 59 | +#### :nail_care: Enhancement |
| 60 | +* `react-scripts` |
| 61 | + * [#1032](https://github.com/facebookincubator/create-react-app/pull/1032) Add support for non-interactive terminal. ([@sheerun](https://github.com/sheerun)) |
| 62 | + * [#1078](https://github.com/facebookincubator/create-react-app/pull/1078) Upgrade Jest to 17.0. ([@fson](https://github.com/fson)) |
| 63 | + * [#1059](https://github.com/facebookincubator/create-react-app/pull/1059) Use `url-loader` with limit 10k as a default loader. ([@bebbi](https://github.com/bebbi)) |
| 64 | +
|
| 65 | + `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](https://github.com/facebookincubator/create-react-app/issues/667). Any file that's not JS or CSS is now handled the same way. |
| 66 | +
|
| 67 | + * [#924](https://github.com/facebookincubator/create-react-app/pull/924) Enable JavaScript source maps in development. ([@ekaradon](https://github.com/ekaradon)) |
| 68 | + * [#1058](https://github.com/facebookincubator/create-react-app/pull/1058) Add missing dev argument in build script message. ([@nhajidin](https://github.com/nhajidin)) |
| 69 | + * [#961](https://github.com/facebookincubator/create-react-app/pull/961) Add `collectCoverageFrom` option to collect coverage on files without any tests. ([@pmackcode](https://github.com/pmackcode)) |
| 70 | +
|
| 71 | + The test script now considers all files in the project when calculating test coverage. |
| 72 | +
|
| 73 | + * [#968](https://github.com/facebookincubator/create-react-app/pull/968) Enable gzip compression in the development server (#966). ([@frontsideair](https://github.com/frontsideair)) |
| 74 | +* `react-dev-utils`, `react-scripts` |
| 75 | + * [#816](https://github.com/facebookincubator/create-react-app/pull/816) add logging of existing default port process on start. ([@ianmcnally](https://github.com/ianmcnally)) |
| 76 | +
|
| 77 | + `react-scripts` can guess which process is running on the port 3000 when it's not available: |
| 78 | + ``` |
| 79 | + Something is already running on port 3000. Probably: |
| 80 | + my-app |
| 81 | + in /Users/ian/dev/my-app |
| 82 | +
|
| 83 | + Would you like to run the app on another port instead? |
| 84 | + ``` |
| 85 | +* `react-dev-utils` |
| 86 | + * [#963](https://github.com/facebookincubator/create-react-app/pull/963) Allow webpack 2 as a peerDependency in react-dev-utils. ([@einarlove](https://github.com/einarlove)) |
| 87 | +
|
| 88 | +#### :memo: Documentation |
| 89 | +* `react-scripts` |
| 90 | + * [#1126](https://github.com/facebookincubator/create-react-app/pull/1126) Add a note about vscode-jest. ([@orta](https://github.com/orta)) |
| 91 | + * [#1080](https://github.com/facebookincubator/create-react-app/pull/1080) Add a note for OSX users about watchman and jest. ([@dmr](https://github.com/dmr)) |
| 92 | + * [#1071](https://github.com/facebookincubator/create-react-app/pull/1071) Adds to docs - deployment with S3/CloudFront. ([@marcgarreau](https://github.com/marcgarreau)) |
| 93 | + * [#976](https://github.com/facebookincubator/create-react-app/pull/976) Added info on using global variables. ([@jhorneman](https://github.com/jhorneman)) |
| 94 | + * [#996](https://github.com/facebookincubator/create-react-app/pull/996) Remove redundant `function` from export statement. ([@gnowoel](https://github.com/gnowoel)) |
| 95 | + * [#959](https://github.com/facebookincubator/create-react-app/pull/959) Always build before deploying to gh-pages. ([@dsernst](https://github.com/dsernst)) |
| 96 | + * [#974](https://github.com/facebookincubator/create-react-app/pull/974) Gently nudge users towards https by default. ([@Swizec](https://github.com/Swizec)) |
| 97 | +* Other |
| 98 | + * [#1031](https://github.com/facebookincubator/create-react-app/pull/1031) No Configuration -> Convention over Configuration. ([@sheerun](https://github.com/sheerun)) |
| 99 | + * [#995](https://github.com/facebookincubator/create-react-app/pull/995) Add Gatsby to alternatives. ([@KyleAMathews](https://github.com/KyleAMathews)) |
| 100 | +
|
| 101 | +#### :house: Internal |
| 102 | +* `react-scripts` |
| 103 | + * [#1072](https://github.com/facebookincubator/create-react-app/pull/1072) Replace rimraf with fs-extra functions. ([@existentialism](https://github.com/existentialism)) |
| 104 | + * [#1068](https://github.com/facebookincubator/create-react-app/pull/1068) Remove bundledDependencies. ([@fson](https://github.com/fson)) |
| 105 | + * [#1057](https://github.com/facebookincubator/create-react-app/pull/1057) Update `css-loader`. ([@nhajidin](https://github.com/nhajidin)) |
| 106 | + * [#983](https://github.com/facebookincubator/create-react-app/pull/983) Remove custom babel-loader cache dir config. ([@fson](https://github.com/fson)) |
| 107 | +* `babel-preset-react-app` |
| 108 | + * [#1052](https://github.com/facebookincubator/create-react-app/pull/1052) Remove unnecessary transform plugins for object spread to work. ([@valscion](https://github.com/valscion)) |
| 109 | + * [#992](https://github.com/facebookincubator/create-react-app/pull/992) Explain the usage of react-jsx-source & react-jsx-self. ([@bboysathish](https://github.com/bboysathish)) |
| 110 | + * [#1051](https://github.com/facebookincubator/create-react-app/pull/1051) Update babel-present-env and use node: 'current' as target. ([@valscion](https://github.com/valscion)) |
| 111 | +
|
| 112 | +#### Committers: 27 |
| 113 | +- Adam Stankiewicz ([sheerun](https://github.com/sheerun)) |
| 114 | +- Alice Rose ([heldinz](https://github.com/heldinz)) |
| 115 | +- Arunoda Susiripala ([arunoda](https://github.com/arunoda)) |
| 116 | +- Brian Ng ([existentialism](https://github.com/existentialism)) |
| 117 | +- Daniel Rech ([dmr](https://github.com/dmr)) |
| 118 | +- Dave Ceddia ([dceddia](https://github.com/dceddia)) |
| 119 | +- David Ernst ([dsernst](https://github.com/dsernst)) |
| 120 | +- Dirk-Jan Rutten ([excitement-engineer](https://github.com/excitement-engineer)) |
| 121 | +- Einar Löve ([einarlove](https://github.com/einarlove)) |
| 122 | +- Fabrizio Castellarin ([EnoahNetzach](https://github.com/EnoahNetzach)) |
| 123 | +- Fatih ([frontsideair](https://github.com/frontsideair)) |
| 124 | +- Ian McNally ([ianmcnally](https://github.com/ianmcnally)) |
| 125 | +- Jurie Horneman ([jhorneman](https://github.com/jhorneman)) |
| 126 | +- Kyle Mathews ([KyleAMathews](https://github.com/KyleAMathews)) |
| 127 | +- Leo Wong ([gnowoel](https://github.com/gnowoel)) |
| 128 | +- Marc Garreau ([marcgarreau](https://github.com/marcgarreau)) |
| 129 | +- Nazim Hajidin ([nhajidin](https://github.com/nhajidin)) |
| 130 | +- Orta ([orta](https://github.com/orta)) |
| 131 | +- Patrick Mackinder ([pmackcode](https://github.com/pmackcode)) |
| 132 | +- Sandro Padin ([spadin](https://github.com/spadin)) |
| 133 | +- Sathish ([bboysathish](https://github.com/bboysathish)) |
| 134 | +- Stefan ([bebbi](https://github.com/bebbi)) |
| 135 | +- Swizec Teller ([Swizec](https://github.com/Swizec)) |
| 136 | +- Vadzim ([vadzim](https://github.com/vadzim)) |
| 137 | +- Vesa Laakso ([valscion](https://github.com/valscion)) |
| 138 | +- Ville Immonen ([fson](https://github.com/fson)) |
| 139 | +- [ekaradon](https://github.com/ekaradon) |
| 140 | +
|
| 141 | +### Migrating from 0.7.0 to 0.8.0 |
| 142 | +
|
| 143 | +You may optionally update the global command (it’s not required, but it adds Yarn support for new projects): |
| 144 | +
|
| 145 | +``` |
| 146 | + |
| 147 | +``` |
| 148 | +
|
| 149 | +Inside any created project that has not been ejected, run: |
| 150 | +
|
| 151 | +``` |
| 152 | +npm install --save-dev --save-exact [email protected] |
| 153 | +``` |
| 154 | +
|
1 | 155 | ## 0.7.0 (October 22, 2016)
|
2 | 156 |
|
3 | 157 | ### Build Dependency (`react-scripts`)
|
|
0 commit comments