Skip to content

Commit 9e1a0da

Browse files
committed
Merge tag 'v3.2.0' into modifications
2 parents 00e85f6 + 7fae307 commit 9e1a0da

File tree

57 files changed

+1602
-1172
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+1602
-1172
lines changed

CHANGELOG.md

Lines changed: 171 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,172 @@
1+
## 3.2.0 (2019-10-03)
2+
3+
v3.2.0 is a minor release that adds support for production profiling and ignoring TypeScript type errors to make migrating JavaScript projects to TypeScript easier. It also includes other minor bug fixes and documentation updates.
4+
5+
#### :rocket: New Feature
6+
7+
- `react-scripts`
8+
- [#7737](https://github.com/facebook/create-react-app/pull/7737) Support production profiling with React Developer Tools ([@JacobMGEvans](https://github.com/JacobMGEvans))
9+
- `react-dev-utils`, `react-scripts`
10+
- [#6931](https://github.com/facebook/create-react-app/pull/6931) Adds TSC_COMPILE_ON_ERROR env var... ([@kylebebak](https://github.com/kylebebak))
11+
12+
#### :bug: Bug Fix
13+
14+
- `react-scripts`
15+
- [#7754](https://github.com/facebook/create-react-app/pull/7754) Fix linting error when using rest props ([@alexandrtovmach](https://github.com/alexandrtovmach))
16+
- `react-app-polyfill`
17+
- [#7205](https://github.com/facebook/create-react-app/pull/7205) Guard polyfills against window possibly being undefined ([@jxom](https://github.com/jxom))
18+
19+
#### :nail_care: Enhancement
20+
21+
- `react-scripts`
22+
- [#7687](https://github.com/facebook/create-react-app/pull/7687) Use installing package manager in README ([@ashr81](https://github.com/ashr81))
23+
- [#7755](https://github.com/facebook/create-react-app/pull/7755) Support setting baseUrl to root directory ([@rovansteen](https://github.com/rovansteen))
24+
- [#7530](https://github.com/facebook/create-react-app/pull/7530) only load eslint config when EXTEND_ESLINT environment variable is specified/ do not swallow eslint config errors ([@n1ru4l](https://github.com/n1ru4l))
25+
- [#7742](https://github.com/facebook/create-react-app/pull/7742) set output.globalObject to 'this' ([@kentcdodds](https://github.com/kentcdodds))
26+
- [#7721](https://github.com/facebook/create-react-app/pull/7721) Add "entrypoints" key to asset manifest ([@samuelmeuli](https://github.com/samuelmeuli))
27+
- [#7562](https://github.com/facebook/create-react-app/pull/7562) enable .eslintignore again ([@igtm](https://github.com/igtm))
28+
- `react-dev-utils`
29+
- [#6980](https://github.com/facebook/create-react-app/pull/6980) Stop hiding the column number of ESLint errors ([@justingrant](https://github.com/justingrant))
30+
31+
#### :memo: Documentation
32+
33+
- [#7302](https://github.com/facebook/create-react-app/pull/7302) docs: note that 2 to 3 migration may require deletion of node_modules ([@kimpers](https://github.com/kimpers))
34+
- [#7757](https://github.com/facebook/create-react-app/pull/7757) Documentation typo fix: accessbile→accessible ([@tomer](https://github.com/tomer))
35+
- [#7601](https://github.com/facebook/create-react-app/pull/7601) [Documentation] Updated list of supported Jest config overrides ([@neilbryson](https://github.com/neilbryson))
36+
- [#7705](https://github.com/facebook/create-react-app/pull/7705) Update runtime chunk name separator in docs ([@samuelmeuli](https://github.com/samuelmeuli))
37+
38+
#### :house: Internal
39+
40+
- `react-scripts`
41+
- [#7752](https://github.com/facebook/create-react-app/pull/7752) Fix wrong letter casing ([@lewislbr](https://github.com/lewislbr))
42+
- `react-dev-utils`, `react-scripts`
43+
- [#7707](https://github.com/facebook/create-react-app/pull/7707) Remove 'shortcut' link type before 'icon' ([@lewislbr](https://github.com/lewislbr))
44+
45+
#### :hammer: Underlying Tools
46+
47+
- `react-scripts`
48+
- [#7729](https://github.com/facebook/create-react-app/pull/7729) Remove switch case ([@andrelmlins](https://github.com/andrelmlins))
49+
50+
#### Committers: 19
51+
52+
- Alexandr Tovmach ([@alexandrtovmach](https://github.com/alexandrtovmach))
53+
- André Lins ([@andrelmlins](https://github.com/andrelmlins))
54+
- Ashrith Reddy ([@ashr81](https://github.com/ashr81))
55+
- Federico Zivolo ([@FezVrasta](https://github.com/FezVrasta))
56+
- Iguchi Tomokatsu ([@igtm](https://github.com/igtm))
57+
- Jacob M-G Evans ([@JacobMGEvans](https://github.com/JacobMGEvans))
58+
- Jake Moxey ([@jxom](https://github.com/jxom))
59+
- Justin Grant ([@justingrant](https://github.com/justingrant))
60+
- Kent C. Dodds ([@kentcdodds](https://github.com/kentcdodds))
61+
- Kim Persson ([@kimpers](https://github.com/kimpers))
62+
- Kyle Bebak ([@kylebebak](https://github.com/kylebebak))
63+
- Laurin Quast ([@n1ru4l](https://github.com/n1ru4l))
64+
- Lewis Llobera ([@lewislbr](https://github.com/lewislbr))
65+
- Rakan Nimer ([@rakannimer](https://github.com/rakannimer))
66+
- Reece Dunham ([@RDIL](https://github.com/RDIL))
67+
- Robert van Steen ([@rovansteen](https://github.com/rovansteen))
68+
- Samuel Meuli ([@samuelmeuli](https://github.com/samuelmeuli))
69+
- Tomer Cohen ([@tomer](https://github.com/tomer))
70+
- neilbryson ([@neilbryson](https://github.com/neilbryson))
71+
72+
### Migrating from 3.1.2 to 3.2.0
73+
74+
Inside any created project that has not been ejected, run:
75+
76+
```sh
77+
npm install --save --save-exact react-scripts@3.2.0
78+
```
79+
80+
or
81+
82+
```sh
83+
yarn add --exact react-scripts@3.2.0
84+
```
85+
86+
## 3.1.2 (2019-09-19)
87+
88+
v3.1.2 is a maintenance release that includes minor bug fixes and documentation updates.
89+
90+
#### :bug: Bug Fix
91+
92+
- `react-scripts`
93+
- [#7679](https://github.com/facebook/create-react-app/pull/7679) Change runtime chunk name separator from tilde to dash ([@javadoug](https://github.com/javadoug))
94+
- [#7538](https://github.com/facebook/create-react-app/pull/7538) Explicitly checking that EXTEND_ESLINT is true ([@BrockWills](https://github.com/BrockWills))
95+
- `babel-preset-react-app`, `react-error-overlay`, `react-scripts`
96+
- [#7662](https://github.com/facebook/create-react-app/pull/7662) Fix build ([@ianschmitz](https://github.com/ianschmitz))
97+
98+
#### :nail_care: Enhancement
99+
100+
- `react-scripts`
101+
- [#7704](https://github.com/facebook/create-react-app/pull/7704) Add new logo ([@iansu](https://github.com/iansu))
102+
- [#7587](https://github.com/facebook/create-react-app/pull/7587) Minor performance improvements ([@deftomat](https://github.com/deftomat))
103+
- [#7633](https://github.com/facebook/create-react-app/pull/7633) Disable babel-loader's cacheCompression ([@jleclanche](https://github.com/jleclanche))
104+
105+
#### :memo: Documentation
106+
107+
- [#7616](https://github.com/facebook/create-react-app/pull/7616) Update deployment.md with another AWS example ([@AndrewBestbier](https://github.com/AndrewBestbier))
108+
- [#7663](https://github.com/facebook/create-react-app/pull/7663) Remove --single-quote from prettier examples ([@brlewis](https://github.com/brlewis))
109+
- [#7659](https://github.com/facebook/create-react-app/pull/7659) Update running-tests.md ([@weyert](https://github.com/weyert))
110+
- [#7459](https://github.com/facebook/create-react-app/pull/7459) Update troubleshooting.md ([@prevostc](https://github.com/prevostc))
111+
- [#7650](https://github.com/facebook/create-react-app/pull/7650) Adopt Contributor Covenant ([@iansu](https://github.com/iansu))
112+
- [#7620](https://github.com/facebook/create-react-app/pull/7620) cleanup-after-each is no longer necessary! ([@iHmD](https://github.com/iHmD))
113+
- [#7613](https://github.com/facebook/create-react-app/pull/7613) Fix seams between changelog majors ([@emilpalsson](https://github.com/emilpalsson))
114+
- [#7368](https://github.com/facebook/create-react-app/pull/7368) Correcting proxy sample ([@szabolcs-szilagyi](https://github.com/szabolcs-szilagyi))
115+
- [#7536](https://github.com/facebook/create-react-app/pull/7536) add a migration step to remove static from robots.txt ([@lookfirst](https://github.com/lookfirst))
116+
- [#7521](https://github.com/facebook/create-react-app/pull/7521) Show logo for mobile views in create-react-app.dev ([@GrooChu](https://github.com/GrooChu))
117+
118+
#### :house: Internal
119+
120+
- `react-scripts`
121+
- [#7526](https://github.com/facebook/create-react-app/pull/7526) The variable dotenvFiles is never reassigned - use const instead ([@Primajin](https://github.com/Primajin))
122+
- [#7585](https://github.com/facebook/create-react-app/pull/7585) remove trailing spaces ([@xiaoxiangmoe](https://github.com/xiaoxiangmoe))
123+
124+
#### :hammer: Underlying Tools
125+
126+
- `babel-plugin-named-asset-import`, `confusing-browser-globals`, `react-app-polyfill`, `react-dev-utils`, `react-error-overlay`, `react-scripts`
127+
- [#7681](https://github.com/facebook/create-react-app/pull/7681) Bump dependencies ([@ianschmitz](https://github.com/ianschmitz))
128+
- `react-scripts`
129+
- [#7531](https://github.com/facebook/create-react-app/pull/7531) Upgrade dotenv-expand to fix issues ([@DominicTobias](https://github.com/DominicTobias))
130+
- `eslint-config-react-app`, `react-scripts`
131+
- [#7540](https://github.com/facebook/create-react-app/pull/7540) Bump version of @typescript-eslint/\* ([@pierreneter](https://github.com/pierreneter))
132+
133+
#### Committers: 20
134+
135+
- Andrew ([@AndrewBestbier](https://github.com/AndrewBestbier))
136+
- Brock Wills ([@BrockWills](https://github.com/BrockWills))
137+
- Clément Prévost ([@prevostc](https://github.com/prevostc))
138+
- Dominic Tobias ([@DominicTobias](https://github.com/DominicTobias))
139+
- Doug Ross ([@javadoug](https://github.com/javadoug))
140+
- Emil Pålsson ([@emilpalsson](https://github.com/emilpalsson))
141+
- Federico Zivolo ([@FezVrasta](https://github.com/FezVrasta))
142+
- Ian Schmitz ([@ianschmitz](https://github.com/ianschmitz))
143+
- Ian Sutherland ([@iansu](https://github.com/iansu))
144+
- Jannis Hell ([@Primajin](https://github.com/Primajin))
145+
- Jerome Leclanche ([@jleclanche](https://github.com/jleclanche))
146+
- Jon Stevens ([@lookfirst](https://github.com/lookfirst))
147+
- Sabesh Rajendran ([@GrooChu](https://github.com/GrooChu))
148+
- Tomáš Szabo ([@deftomat](https://github.com/deftomat))
149+
- Weyert de Boer ([@weyert](https://github.com/weyert))
150+
- ZHAO Jinxiang ([@xiaoxiangmoe](https://github.com/xiaoxiangmoe))
151+
- [@brlewis](https://github.com/brlewis)
152+
- [@iHmD](https://github.com/iHmD)
153+
- [@pierreneter](https://github.com/pierreneter)
154+
- szabi ([@szabolcs-szilagyi](https://github.com/szabolcs-szilagyi))
155+
156+
### Migrating from 3.1.1 to 3.1.2
157+
158+
Inside any created project that has not been ejected, run:
159+
160+
```sh
161+
npm install --save --save-exact react-scripts@3.1.2
162+
```
163+
164+
or
165+
166+
```sh
167+
yarn add --exact react-scripts@3.1.2
168+
```
169+
1170
## 3.1.1 (2019-08-13)
2171

3172
v3.1.1 is a maintenance release that includes minor bug fixes and documentation updates.
@@ -329,6 +498,8 @@ or
329498
yarn add --exact react-scripts@3.0.0
330499
```
331500

501+
**NOTE: You may need to delete your `node_modules` folder and reinstall your dependencies by running `yarn` (or `npm install`) if you encounter errors after upgrading.**
502+
332503
If you previously ejected but now want to upgrade, one common solution is to find the commits where you ejected (and any subsequent commits changing the configuration), revert them, upgrade, and later optionally eject again. It’s also possible that the feature you ejected for is now supported out of the box.
333504

334505
## Breaking Changes

docusaurus/docs/adding-flow.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ make sure to add the following line to your `.flowconfig` to make Flow aware of
2222

2323
```diff
2424
[options]
25-
+ module.name_mapper='^\(.*\)$' -> '<PROJECT_ROOT>/src/\1'
25+
+ module.name_mapper='^\([^\.].*\)$' -> '<PROJECT_ROOT>/src/\1'
2626
```
2727

2828
To learn more about Flow, check out [its documentation](https://flow.org/).

docusaurus/docs/adding-images-fonts-and-files.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,4 +60,4 @@ const App = () => (
6060

6161
This is handy if you don't want to load SVG as a separate file. Don't forget the curly braces in the import! The `ReactComponent` import name is special and tells Create React App that you want a React component that renders an SVG, rather than its filename.
6262

63-
> **Tip:** The imported SVG React Component accepts a `title` prop along with other props that a `svg` element accepts. Use this prop to add an accessbile title to your svg component.
63+
> **Tip:** The imported SVG React Component accepts a `title` prop along with other props that a `svg` element accepts. Use this prop to add an accessible title to your svg component.

docusaurus/docs/adding-typescript.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ yarn add typescript @types/node @types/react @types/react-dom @types/jest
3131

3232
Next, rename any file to be a TypeScript file (e.g. `src/index.js` to `src/index.tsx`) and **restart your development server**!
3333

34-
Type errors will show up in the same console as the build one.
34+
Type errors will show up in the same console as the build one. You'll have to fix these type errors before you continue development or build your project. For advanced configuration, [see here](advanced-configuration.md).
3535

3636
To learn more about TypeScript, check out [its documentation](https://www.typescriptlang.org/).
3737

docusaurus/docs/advanced-configuration.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,4 @@ You can adjust various development and production settings by setting environmen
2323
| INLINE_RUNTIME_CHUNK | 🚫 Ignored | ✅ Used | By default, Create React App will embed the runtime script into `index.html` during the production build. When set to `false`, the script will not be embedded and will be imported as usual. This is normally required when dealing with CSP. |
2424
| IMAGE_INLINE_SIZE_LIMIT | 🚫 Ignored | ✅ Used | By default, images smaller than 10,000 bytes are encoded as a data URI in base64 and inlined in the CSS or JS build artifact. Set this to control the size limit in bytes. Setting it to 0 will disable the inlining of images. |
2525
| EXTEND_ESLINT | ✅ Used | ✅ Used | When set to `true`, ESLint configs that extend `eslint-config-react-app` will be used by `eslint-loader`. Any rules that are set to `"error"` will stop the application from building. |
26+
| TSC_COMPILE_ON_ERROR | ✅ Used | ✅ Used | When set to `true`, you can run and properly build TypeScript projects even if there are TypeScript type check errors. These errors are printed as warnings in the terminal and/or browser console. |

docusaurus/docs/available-scripts.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Launches the test runner in the interactive watch mode. See the section about [r
2020

2121
Builds the app for production to the `build` folder. It correctly bundles React in production mode and optimizes the build for the best performance.
2222

23-
The build is minified and the filenames include the hashes. See the [production build](production-build.md) section for more information.
23+
The build is minified and the filenames include the hashes. If necessary, classnames and function names can be enabled for profiling purposes. See the [production build](production-build.md) section for more information.
2424

2525
Your app is ready to be deployed! See the section about [deployment](deployment.md) for more information about deploying your application to popular hosting providers.
2626

docusaurus/docs/deployment.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ Use invite code `cra` to sign up or use [this link](https://render.com/i/cra).
476476
477477
## [S3](https://aws.amazon.com/s3) and [CloudFront](https://aws.amazon.com/cloudfront/)
478478
479-
See this [blog post](https://medium.com/@omgwtfmarc/deploying-create-react-app-to-s3-or-cloudfront-48dae4ce0af) on how to deploy your React app to Amazon Web Services S3 and CloudFront.
479+
See this [blog post](https://medium.com/@omgwtfmarc/deploying-create-react-app-to-s3-or-cloudfront-48dae4ce0af) on how to deploy your React app to Amazon Web Services S3 and CloudFront. If you are looking to add a custom domain, HTTPS and continuous deployment see this [blog post](https://medium.com/dailyjs/a-guide-to-deploying-your-react-app-with-aws-s3-including-https-a-custom-domain-a-cdn-and-58245251f081).
480480
481481
## [Surge](https://surge.sh/)
482482

docusaurus/docs/production-build.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ When running a production build of freshly created Create React App application,
1515

1616
- These files can either be _vendor_ code, or [code splitting chunks](code-splitting.md). _Vendor_ code includes modules that you've imported from within `node_modules`. One of the potential advantages with splitting your _vendor_ and _application_ code is to enable [long term caching techniques](#static-file-caching) to improve application loading performance. Since _vendor_ code tends to change less often than the actual _application_ code, the browser will be able to cache them separately, and won't re-download them each time the app code changes.
1717

18-
`runtime~main.[hash].js`
18+
`runtime-main.[hash].js`
1919

2020
- This is a small chunk of [webpack runtime](https://webpack.js.org/configuration/optimization/#optimization-runtimechunk) logic which is used to load and run your application. The contents of this will be embedded in your `build/index.html` file by default to save an additional network request. You can opt out of this by specifying `INLINE_RUNTIME_CHUNK=false` as documented in our [advanced configuration](advanced-configuration.md), which will load this chunk instead of embedding it in your `index.html`.
2121

@@ -28,3 +28,9 @@ Each file inside of the `build/static` directory will have a unique hash appende
2828
To deliver the best performance to your users, it's best practice to specify a `Cache-Control` header for `index.html`, as well as the files within `build/static`. This header allows you to control the length of time that the browser as well as CDNs will cache your static assets. If you aren't familiar with what `Cache-Control` does, see [this article](https://jakearchibald.com/2016/caching-best-practices/) for a great introduction.
2929

3030
Using `Cache-Control: max-age=31536000` for your `build/static` assets, and `Cache-Control: no-cache` for everything else is a safe and effective starting point that ensures your user's browser will always check for an updated `index.html` file, and will cache all of the `build/static` files for one year. Note that you can use the one year expiration on `build/static` safely because the file contents hash is embedded into the filename.
31+
32+
## Profiling
33+
34+
ReactDOM automatically supports profiling in development mode for v16.5+, but since profiling adds some small
35+
additional overhead it is opt-in for production mode. You can opt-in by using the `--profile` flag. Use `npm run build -- --profile` or `yarn build --profile` to enable profiling in the production build. See the [React docs](https://reactjs.org/docs/optimizing-performance.html#profiling-components-with-the-devtools-profiler) for details about profiling
36+
using the React DevTools.

0 commit comments

Comments
 (0)