Skip to content

Commit 960f3d9

Browse files
committed
Merge branch 'react-scripts-4.0.3'
2 parents 7450863 + ab2b39c commit 960f3d9

37 files changed

+2521
-2629
lines changed

.github/FUNDING.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
open_collective: create-react-app

CHANGELOG.md

Lines changed: 179 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,182 @@
1+
## 4.0.3 (2021-02-22)
2+
3+
v4.0.3 is a maintenance release that includes minor bug fixes and dependency updates.
4+
5+
#### :bug: Bug Fix
6+
7+
- `react-scripts`
8+
- [#10590](https://github.com/facebook/create-react-app/pull/10590) Upgrade eslint-webpack-plugin to fix opt-out flag ([@mrmckeb](https://github.com/mrmckeb))
9+
10+
#### :house: Internal
11+
12+
- `react-dev-utils`
13+
- [#10412](https://github.com/facebook/create-react-app/pull/10412) update immer to 8.0.1 to address vulnerability ([@wclem4](https://github.com/wclem4))
14+
- `create-react-app`
15+
- [#10384](https://github.com/facebook/create-react-app/pull/10384) tests: update test case to match the description ([@jamesgeorge007](https://github.com/jamesgeorge007))
16+
17+
#### Committers: 4
18+
19+
- Brody McKee ([@mrmckeb](https://github.com/mrmckeb))
20+
- Dion Woolley ([@Awarua-](https://github.com/Awarua-))
21+
- James George ([@jamesgeorge007](https://github.com/jamesgeorge007))
22+
- Walker Clem ([@wclem4](https://github.com/wclem4))
23+
24+
# Migrating from 4.0.2 to 4.0.3
25+
26+
Inside any created project that has not been ejected, run:
27+
28+
```bash
29+
npm install --save --save-exact react-scripts@4.0.3
30+
```
31+
32+
or
33+
34+
```
35+
yarn add --exact react-scripts@4.0.3
36+
```
37+
38+
## 4.0.2 (2021-02-03)
39+
40+
v4.0.2 is a maintenance release that includes minor bug fixes and documentation updates.
41+
42+
#### :rocket: New Feature
43+
44+
- `react-scripts`
45+
- [#8986](https://github.com/facebook/create-react-app/pull/8986) Add support for new BUILD_PATH advanced configuration variable ([@ajhyndman](https://github.com/ajhyndman))
46+
47+
#### :bug: Bug Fix
48+
49+
- `react-scripts`
50+
- [#10170](https://github.com/facebook/create-react-app/pull/10170) Add opt-out for eslint-webpack-plugin ([@mrmckeb](https://github.com/mrmckeb))
51+
- [#9872](https://github.com/facebook/create-react-app/pull/9872) fix(react-scripts): add missing peer dependency react and update react-refresh-webpack-plugin ([@merceyz](https://github.com/merceyz))
52+
- [#9964](https://github.com/facebook/create-react-app/pull/9964) Add TypeScript 4.x as peerDependency to react-scripts ([@sheepsteak](https://github.com/sheepsteak))
53+
54+
#### :nail_care: Enhancement
55+
56+
- `react-scripts`
57+
- [#9977](https://github.com/facebook/create-react-app/pull/9977) Move ESLint cache file into node_modules ([@ehsankhfr](https://github.com/ehsankhfr))
58+
- [#9569](https://github.com/facebook/create-react-app/pull/9569) Improve vendor chunk names in development ([@jrr](https://github.com/jrr))
59+
60+
#### :memo: Documentation
61+
62+
- [#9473](https://github.com/facebook/create-react-app/pull/9473) docs: add missing override options for Jest config ([@tobiasbueschel](https://github.com/tobiasbueschel))
63+
- [#10314](https://github.com/facebook/create-react-app/pull/10314) Update using-the-public-folder.md ([@Avivhdr](https://github.com/Avivhdr))
64+
- [#10214](https://github.com/facebook/create-react-app/pull/10214) Remove references to Node 8 ([@ianschmitz](https://github.com/ianschmitz))
65+
66+
#### :house: Internal
67+
68+
- `react-scripts`
69+
- [#10027](https://github.com/facebook/create-react-app/pull/10027) appTsConfig immutability handling by immer ([@josezone](https://github.com/josezone))
70+
- `create-react-app`
71+
- [#10217](https://github.com/facebook/create-react-app/pull/10217) Fix CI tests ([@ianschmitz](https://github.com/ianschmitz))
72+
- `react-dev-utils`, `react-error-overlay`, `react-scripts`
73+
- [#10091](https://github.com/facebook/create-react-app/pull/10091) Recovered some integration tests ([@maxsbelt](https://github.com/maxsbelt))
74+
75+
#### :hammer: Underlying Tools
76+
77+
- `react-scripts`
78+
- [#10216](https://github.com/facebook/create-react-app/pull/10216) Revert "Update postcss packages" ([@ianschmitz](https://github.com/ianschmitz))
79+
- [#9988](https://github.com/facebook/create-react-app/pull/9988) Upgrade sass-loader ([@ehsankhfr](https://github.com/ehsankhfr))
80+
- [#10003](https://github.com/facebook/create-react-app/pull/10003) Update postcss packages ([@raix](https://github.com/raix))
81+
- [#10213](https://github.com/facebook/create-react-app/pull/10213) Upgrade @svgr/webpack to fix build error ([@jabranr](https://github.com/jabranr))
82+
- `react-dev-utils`
83+
- [#10198](https://github.com/facebook/create-react-app/pull/10198) remove chalk from formatWebpackMessages ([@jasonwilliams](https://github.com/jasonwilliams))
84+
- `cra-template-typescript`
85+
- [#10141](https://github.com/facebook/create-react-app/pull/10141) chore: bump typescript version ([@trainto](https://github.com/trainto))
86+
- `cra-template-typescript`, `cra-template`
87+
- [#10143](https://github.com/facebook/create-react-app/pull/10143) chore: bump web-vital dependency version ([@sahilpurav](https://github.com/sahilpurav))
88+
89+
#### Committers: 15
90+
91+
- Andrew Hyndman ([@ajhyndman](https://github.com/ajhyndman))
92+
- Aviv Hadar ([@Avivhdr](https://github.com/Avivhdr))
93+
- Brody McKee ([@mrmckeb](https://github.com/mrmckeb))
94+
- Chris Shepherd ([@sheepsteak](https://github.com/sheepsteak))
95+
- EhsanKhaki ([@ehsankhfr](https://github.com/ehsankhfr))
96+
- Hakjoon Sim ([@trainto](https://github.com/trainto))
97+
- Ian Schmitz ([@ianschmitz](https://github.com/ianschmitz))
98+
- Jabran Rafique⚡️ ([@jabranr](https://github.com/jabranr))
99+
- Jason Williams ([@jasonwilliams](https://github.com/jasonwilliams))
100+
- John Ruble ([@jrr](https://github.com/jrr))
101+
- Kristoffer K. ([@merceyz](https://github.com/merceyz))
102+
- Morten N.O. Nørgaard Henriksen ([@raix](https://github.com/raix))
103+
- Sahil Purav ([@sahilpurav](https://github.com/sahilpurav))
104+
- Sergey Makarov ([@maxsbelt](https://github.com/maxsbelt))
105+
- Tobias Büschel ([@tobiasbueschel](https://github.com/tobiasbueschel))
106+
- mad-jose ([@josezone](https://github.com/josezone))
107+
108+
# Migrating from 4.0.1 to 4.0.2
109+
110+
Inside any created project that has not been ejected, run:
111+
112+
```bash
113+
npm install --save --save-exact react-scripts@4.0.2
114+
```
115+
116+
or
117+
118+
```
119+
yarn add --exact react-scripts@4.0.2
120+
```
121+
122+
## 4.0.1 (2020-11-23)
123+
124+
v4.0.1 is a maintenance release that includes minor bug fixes and documentation updates.
125+
126+
#### :bug: Bug Fix
127+
128+
- `react-scripts`
129+
- [#9921](https://github.com/facebook/create-react-app/pull/9921) Fix noFallthroughCasesInSwitch/jsx object is not extensible ([@ryota-murakami](https://github.com/ryota-murakami))
130+
- [#9869](https://github.com/facebook/create-react-app/pull/9869) Fix react-jsx error ([@benneq](https://github.com/benneq))
131+
- [#9885](https://github.com/facebook/create-react-app/pull/9885) fix: `React is not defined` compilation error after ejected ([@n3tr](https://github.com/n3tr))
132+
- [#9911](https://github.com/facebook/create-react-app/pull/9911) fix: slow recompile time ([@FezVrasta](https://github.com/FezVrasta))
133+
- `react-dev-utils`
134+
- [#9884](https://github.com/facebook/create-react-app/pull/9884) fix: page doesn't get refreshed when FAST_REFRESH=false ([@n3tr](https://github.com/n3tr))
135+
136+
#### :nail_care: Enhancement
137+
138+
- `react-scripts`
139+
- [#10048](https://github.com/facebook/create-react-app/pull/10048) Increase Workbox's maximumFileSizeToCacheInBytes ([@jeffposnick](https://github.com/jeffposnick))
140+
141+
#### :memo: Documentation
142+
143+
- [#10052](https://github.com/facebook/create-react-app/pull/10052) docs: add React Testing Library as a library requiring jsdom ([@anyulled](https://github.com/anyulled))
144+
145+
#### :house: Internal
146+
147+
- `create-react-app`, `react-dev-utils`, `react-scripts`
148+
- [#10083](https://github.com/facebook/create-react-app/pull/10083) replace inquirer with prompts ([@EvanBacon](https://github.com/EvanBacon))
149+
- `cra-template-typescript`, `cra-template`, `react-scripts`
150+
- [#9516](https://github.com/facebook/create-react-app/pull/9516) [ImgBot] Optimize images ([@MichaelDeBoey](https://github.com/MichaelDeBoey))
151+
- Other
152+
- [#9860](https://github.com/facebook/create-react-app/pull/9860) chore: Update .prettierrc ([@MichaelDeBoey](https://github.com/MichaelDeBoey))
153+
154+
#### Committers: 9
155+
156+
- Anyul Rivas ([@anyulled](https://github.com/anyulled))
157+
- Ben M ([@benneq](https://github.com/benneq))
158+
- Evan Bacon ([@EvanBacon](https://github.com/EvanBacon))
159+
- Federico Zivolo ([@FezVrasta](https://github.com/FezVrasta))
160+
- Jeffrey Posnick ([@jeffposnick](https://github.com/jeffposnick))
161+
- Jirat Ki. ([@n3tr](https://github.com/n3tr))
162+
- Michaël De Boey ([@MichaelDeBoey](https://github.com/MichaelDeBoey))
163+
- Ryota Murakami ([@ryota-murakami](https://github.com/ryota-murakami))
164+
- sho90 ([@sho-t](https://github.com/sho-t))
165+
166+
# Migrating from 4.0.0 to 4.0.1
167+
168+
Inside any created project that has not been ejected, run:
169+
170+
```bash
171+
npm install --save --save-exact react-scripts@4.0.1
172+
```
173+
174+
or
175+
176+
```
177+
yarn add --exact react-scripts@4.0.1
178+
```
179+
1180
## 4.0.0 (2020-10-23)
2181

3182
Create React App 4.0 is a major release with several new features, including support for Fast Refresh!

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Create a project, and you’re good to go.
3939

4040
## Creating an App
4141

42-
**You’ll need to have Node 8.16.0 or Node 10.16.0 or later version on your local development machine** (but it’s not required on the server). You can use [nvm](https://github.com/creationix/nvm#installation) (macOS/Linux) or [nvm-windows](https://github.com/coreybutler/nvm-windows#node-version-manager-nvm-for-windows) to switch Node versions between different projects.
42+
**You’ll need to have Node 10.16.0 or later version on your local development machine** (but it’s not required on the server). We recommend using the latest LTS version. You can use [nvm](https://github.com/creationix/nvm#installation) (macOS/Linux) or [nvm-windows](https://github.com/coreybutler/nvm-windows#node-version-manager-nvm-for-windows) to switch Node versions between different projects.
4343

4444
To create a new app, you may choose one of the following methods:
4545

@@ -217,4 +217,4 @@ We are grateful to the authors of existing related projects for their ideas and
217217

218218
## License
219219

220-
Create React App is open source software [licensed as MIT](https://github.com/facebook/create-react-app/blob/master/LICENSE). The Create React App logo is licensed under a [Creative Commons Attribution 4.0 International license](https://creativecommons.org/licenses/by/4.0/).
220+
Create React App is open source software [licensed as MIT](https://github.com/facebook/create-react-app/blob/master/LICENSE). The Create React App logo is licensed under a [Creative Commons Attribution 4.0 International license](https://creativecommons.org/licenses/by/4.0/).

docusaurus/docs/advanced-configuration.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ You can adjust various development and production settings by setting environmen
1818
| WDS_SOCKET_PATH | ✅ Used | 🚫 Ignored | When set, Create React App will run the development server with a custom websocket path for hot module reloading. Normally, `webpack-dev-server` defaults to `/sockjs-node` for the SockJS pathname. You may use this variable to start local development on more than one Create React App project at a time. See [webpack-dev-server documentation](https://webpack.js.org/configuration/dev-server/#devserversockpath) for more details. |
1919
| WDS_SOCKET_PORT | ✅ Used | 🚫 Ignored | When set, Create React App will run the development server with a custom websocket port for hot module reloading. Normally, `webpack-dev-server` defaults to `window.location.port` for the SockJS port. You may use this variable to start local development on more than one Create React App project at a time. See [webpack-dev-server documentation](https://webpack.js.org/configuration/dev-server/#devserversockport) for more details. |
2020
| PUBLIC_URL | ✅ Used | ✅ Used | Create React App assumes your application is hosted at the serving web server's root or a subpath as specified in [`package.json` (`homepage`)](deployment#building-for-relative-paths). Normally, Create React App ignores the hostname. You may use this variable to force assets to be referenced verbatim to the url you provide (hostname included). This may be particularly useful when using a CDN to host your application. |
21+
| BUILD_PATH | 🚫 Ignored | ✅ Used | By default, Create React App will output compiled assets to a `/build` directory adjacent to your `/src`. You may use this variable to specify a new path for Create React App to output assets. BUILD_PATH should be specified as a path relative to the root of your project. |
2122
| CI | ✅ Used | ✅ Used | When set to `true`, Create React App treats warnings as failures in the build. It also makes the test runner non-watching. Most CIs set this flag by default. |
2223
| REACT_EDITOR | ✅ Used | 🚫 Ignored | When an app crashes in development, you will see an error overlay with clickable stack trace. When you click on it, Create React App will try to determine the editor you are using based on currently running processes, and open the relevant source file. You can [send a pull request to detect your editor of choice](https://github.com/facebook/create-react-app/issues/2636). Setting this environment variable overrides the automatic detection. If you do it, make sure your systems [PATH](<https://en.wikipedia.org/wiki/PATH_(variable)>) environment variable points to your editor’s bin folder. You can also set it to `none` to disable it completely. |
2324
| CHOKIDAR_USEPOLLING | ✅ Used | 🚫 Ignored | When set to `true`, the watcher runs in polling mode, as necessary inside a VM. Use this option if `npm start` isn't detecting changes. |
@@ -26,4 +27,6 @@ You can adjust various development and production settings by setting environmen
2627
| 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. |
2728
| FAST_REFRESH | ✅ Used | 🚫 Ignored | When set to `false`, disables experimental support for Fast Refresh to allow you to tweak your components in real time without reloading the page. |
2829
| 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. |
30+
| ESLINT_NO_DEV_ERRORS | ✅ Used | 🚫 Ignored | When set to `true`, ESLint errors are converted to warnings during development. As a result, ESLint output will no longer appear in the error overlay. |
31+
| DISABLE_ESLINT_PLUGIN | ✅ Used | ✅ Used | When set to `true`, [eslint-webpack-plugin](https://github.com/webpack-contrib/eslint-webpack-plugin) will be completely disabled. |
2932
| DISABLE_NEW_JSX_TRANSFORM | ✅ Used | ✅ Used | When set to `true`, disables the [new JSX transform](https://reactjs.org/blog/2020/09/22/introducing-the-new-jsx-transform.html) introduced in React 17 and backported to React 16.14.0, 15.7.0, and 0.14.10. New projects will use a version of React that supports this by default but you may need to disable it in existing projects if you can't upgrade React. |

docusaurus/docs/debugging-tests.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ sidebar_label: Debugging Tests
66

77
There are various ways to setup a debugger for your Jest tests. We cover debugging in Chrome and [Visual Studio Code](https://code.visualstudio.com/).
88

9-
> Note: debugging tests requires Node 8 or higher.
10-
119
## Debugging Tests in Chrome
1210

1311
Add the following to the `scripts` section in your project's `package.json`

0 commit comments

Comments
 (0)