|
| 1 | +## 0.5.0 (September 23, 2016) |
| 2 | + |
| 3 | +### Build Dependency (`react-scripts`) |
| 4 | + |
| 5 | +* Adds [support for `public` folder](https://github.com/facebookincubator/create-react-app/blob/master/packages/react-scripts/template/README.md#using-the-public-folder) with arbitrary assets. ([@gaearon](https://github.com/gaearon) in [#703](https://github.com/facebookincubator/create-react-app/pull/703)) |
| 6 | +* You can now [specify defaults](https://github.com/facebookincubator/create-react-app/blob/master/packages/react-scripts/template/README.md#adding-development-environment-variables-in-env) for environment variables with `.env` file. ([@ayrton](https://github.com/ayrton) in [#695](https://github.com/facebookincubator/create-react-app/pull/695)) |
| 7 | +* Ejecting now generates proper `.babelrc` and `.eslintrc`. ([@fson](https://github.com/fson) in [#689](https://github.com/facebookincubator/create-react-app/pull/689), [@gaearon](https://github.com/gaearon) in [#705](https://github.com/facebookincubator/create-react-app/pull/705)) |
| 8 | +* Some React warnings now [include the component stacktrace](https://twitter.com/dan_abramov/status/779308833399332864). ([@gaearon](https://github.com/gaearon) in [#716](https://github.com/facebookincubator/create-react-app/pull/716)) |
| 9 | +* `npm start` doesn’t fail in a composed Docker container. ([@arekkas](https://github.com/arekkas) in [#711](https://github.com/facebookincubator/create-react-app/issues/711)) |
| 10 | +* The projects generated with `eject` are now cleaner. ([@gaearon](https://github.com/gaearon) in [#723](https://github.com/facebookincubator/create-react-app/pull/723)) |
| 11 | +* The project is now managed as a monorepo. ([@ryanyogan](https://github.com/ryanyogan) in [#419](https://github.com/facebookincubator/create-react-app/pull/419), [@fson](https://github.com/fson) in [#678](https://github.com/facebookincubator/create-react-app/pull/678)) |
| 12 | + |
| 13 | +### ESLint Config (`eslint-config-react-app`) |
| 14 | + |
| 15 | +* Published for the first time! ([@fson](https://github.com/fson) in [#689](https://github.com/facebookincubator/create-react-app/pull/689)) |
| 16 | +* Added [`react/no-danger-with-children`](https://github.com/yannickcr/eslint-plugin-react/blob/v6.3.0/docs/rules/no-danger-with-children.md) and [`react/style-prop-object`](https://github.com/yannickcr/eslint-plugin-react/blob/v6.3.0/docs/rules/style-prop-object.md) rules. ([@fson](https://github.com/fson) in [#696](https://github.com/facebookincubator/create-react-app/pull/696)) |
| 17 | + |
| 18 | +### Babel Preset (`babel-preset-react-app`) |
| 19 | + |
| 20 | +* Published for the first time! ([@fson](https://github.com/fson) in [#701](https://github.com/facebookincubator/create-react-app/pull/701)) |
| 21 | + |
| 22 | +### Utilities (`react-dev-utils`) |
| 23 | + |
| 24 | +* Published for the first time! ([@gaearon](https://github.com/gaearon) in [#723](https://github.com/facebookincubator/create-react-app/pull/723)) |
| 25 | + |
| 26 | +### Global CLI (`create-react-app`) |
| 27 | + |
| 28 | +* Added `README` to npm. There were no other changes. |
| 29 | + |
| 30 | +### Migrating from 0.4.3 to 0.5.0 |
| 31 | + |
| 32 | +Inside any created project that has not been ejected, run: |
| 33 | + |
| 34 | +``` |
| 35 | +npm install --save-dev --save-exact [email protected] |
| 36 | +``` |
| 37 | + |
| 38 | +### Breaking Changes in 0.5.0 |
| 39 | + |
| 40 | +#### Global ESLint Plugin Versions |
| 41 | + |
| 42 | +If you used a global ESLint installation for the editor integration, you’ll need to install [these versions of global ESLint packages](https://github.com/facebookincubator/create-react-app/blob/c092086b1b256fd081f10744f90d216dd5217e29/packages/eslint-config-react-app/package.json#L14-L19). |
| 43 | + |
| 44 | +#### Moving `index.html` into `public` Folder |
| 45 | + |
| 46 | +You’ll also need to create a new folder called `public` in the root of your project. Then, move `index.html` and files it references (such as a favicon) into that folder. |
| 47 | + |
| 48 | +You can no longer reference any files from `./src` in `index.html`. Instead, `public/index.html` can now only reference files other inside of the `public` folder using a special variable called `%PUBLIC_URL%`. |
| 49 | + |
| 50 | +For example, instead of: |
| 51 | + |
| 52 | +```js |
| 53 | +<link rel="shortcut icon" href="./src/favicon.ico"> |
| 54 | +``` |
| 55 | + |
| 56 | +You would need to move both `index.html` and `src/favicon.ico` into the `public` folder, and change `<link>` to look like this: |
| 57 | + |
| 58 | +```html |
| 59 | +<link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico"> |
| 60 | +``` |
| 61 | + |
| 62 | +This ensures it become a part of the build output, and resolves correctly both with client-side routing and non-root `homepage` in `package.json`. Read more about [using the `public` folder](https://github.com/facebookincubator/create-react-app/blob/master/packages/react-scripts/template/README.md#using-the-public-folder) and [why these changes were made](https://github.com/facebookincubator/create-react-app/pull/703). |
| 63 | + |
1 | 64 | ## 0.4.3 (September 18, 2016)
|
2 | 65 |
|
3 | 66 | This is a hotfix release for a broken package.
|
|
0 commit comments