Skip to content
This repository has been archived by the owner on May 13, 2022. It is now read-only.

[WEBPLAT-641] Update to v4.0.3 #30

Merged
merged 46 commits into from
Apr 23, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
ceeb654
fix: slow recompile time (#9911)
FezVrasta Oct 26, 2020
c06f16c
chore: Update .prettierrc (#9860)
MichaelDeBoey Oct 26, 2020
b5fdadd
[ImgBot] Optimize images (#9516)
MichaelDeBoey Oct 26, 2020
7e48117
fix: page doesn't get refreshed when FAST_REFRESH=false (#9884)
n3tr Oct 26, 2020
027b03b
fix: `React is not defined` compilation error after ejected (#9885)
n3tr Oct 26, 2020
545d460
Fix react-jsx error (#9869)
benneq Oct 28, 2020
3a98ed1
Fix noFallthroughCasesInSwitch/jsx object is not extensible (#9921)
ryota-murakami Oct 30, 2020
aec42e2
Add logo license to README
iansu Nov 1, 2020
4e97dc7
Remove trailing space in reportWebVitals.ts (#10040)
sho-t Nov 10, 2020
aafe8af
docs: add React Testing Library as a library requiring jsdom (#10052)
anyulled Nov 10, 2020
5867170
Increase Workbox's maximumFileSizeToCacheInBytes (#10048)
jeffposnick Nov 10, 2020
8f03b91
Create FUNDING.yml
iansu Nov 11, 2020
8bf050a
replace inquirer with prompts (#10083)
EvanBacon Nov 17, 2020
90a0898
Prepare 4.0.1 release
iansu Nov 23, 2020
98a886d
Prepare 4.0.1 release
iansu Nov 23, 2020
de8b2b3
Publish
iansu Nov 23, 2020
9a79df2
chore: bump web-vital dependency version (#10143)
Nov 25, 2020
be6c193
chore: bump typescript version (#10141)
trainto Nov 25, 2020
9b08e3c
Add TypeScript 4.x as peerDependency to react-scripts(#9964)
sheepsteak Nov 26, 2020
91e28a4
remove chalk from formatWebpackMessages (#10198)
jasonwilliams Dec 4, 2020
723224f
Upgrade @svgr/webpack to fix build error (#10213)
jabranr Dec 8, 2020
8f2413e
Improve vendor chunk names in development (#9569)
jrr Dec 8, 2020
580ed5d
Update postcss packages (#10003)
raix Dec 8, 2020
54ad467
Recovered some integration tests (#10091)
maxsbelt Dec 8, 2020
6dce3f4
Upgrade sass-loader (#9988)
ehsankhfr Dec 8, 2020
e039ad3
Move ESLint cache file into node_modules (#9977)
ehsankhfr Dec 8, 2020
3968923
Revert "Update postcss packages" (#10216)
ianschmitz Dec 8, 2020
282c03f
Remove references to Node 8 (#10214)
ianschmitz Dec 14, 2020
a504e9d
fix(react-scripts): add missing peer dependency react and update reac…
merceyz Jan 13, 2021
0f6fc2b
Update using-the-public-folder.md (#10314)
Avivhdr Jan 14, 2021
c9a24db
docs: add missing override options for Jest config (#9473)
tobiasbueschel Feb 3, 2021
d229676
Fix CI tests (#10217)
ianschmitz Feb 3, 2021
6a39607
appTsConfig immutability handling by immer (#10027)
josezone Feb 3, 2021
8fa0a26
Add support for new BUILD_PATH advanced configuration variable (#8986)
ajhyndman Feb 3, 2021
b9963ab
Add opt-out for eslint-webpack-plugin (#10170)
mrmckeb Feb 3, 2021
32c06e6
Prepare 4.0.2 release
iansu Feb 3, 2021
9c75260
Publish
iansu Feb 3, 2021
3f5dea9
tests: update test case to match the description (#10384)
jamesgeorge007 Feb 3, 2021
9722ef1
Bump webpack-dev-server 3.11.0 -> 3.11.1 (#10312)
Awarua- Feb 18, 2021
18b5962
Upgrade eslint-webpack-plugin to fix opt-out flag (#10590)
mrmckeb Feb 22, 2021
6947896
update immer to 8.0.1 to address vulnerability (#10412)
wclem4 Feb 22, 2021
f710976
Prepare 4.0.3 release
iansu Feb 22, 2021
cce32fa
Update CHANGELOG
iansu Feb 22, 2021
f92c37a
Publish
iansu Feb 22, 2021
d7b4307
Merge tag 'v4.0.3' into merge-v4.0.3
gavinsharp Apr 22, 2021
a2d5d81
update yarn.lock
gavinsharp Apr 22, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
open_collective: create-react-app
1 change: 0 additions & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"arrowParens": "avoid",
"trailingComma": "es5",
"singleQuote": true,
"semi": true
}
179 changes: 179 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,182 @@
## 4.0.3 (2021-02-22)

v4.0.3 is a maintenance release that includes minor bug fixes and dependency updates.

#### :bug: Bug Fix

- `react-scripts`
- [#10590](https://github.com/facebook/create-react-app/pull/10590) Upgrade eslint-webpack-plugin to fix opt-out flag ([@mrmckeb](https://github.com/mrmckeb))

#### :house: Internal

- `react-dev-utils`
- [#10412](https://github.com/facebook/create-react-app/pull/10412) update immer to 8.0.1 to address vulnerability ([@wclem4](https://github.com/wclem4))
- `create-react-app`
- [#10384](https://github.com/facebook/create-react-app/pull/10384) tests: update test case to match the description ([@jamesgeorge007](https://github.com/jamesgeorge007))

#### Committers: 4

- Brody McKee ([@mrmckeb](https://github.com/mrmckeb))
- Dion Woolley ([@Awarua-](https://github.com/Awarua-))
- James George ([@jamesgeorge007](https://github.com/jamesgeorge007))
- Walker Clem ([@wclem4](https://github.com/wclem4))

# Migrating from 4.0.2 to 4.0.3

Inside any created project that has not been ejected, run:

```bash
npm install --save --save-exact [email protected]
```

or

```
yarn add --exact [email protected]
```

## 4.0.2 (2021-02-03)

v4.0.2 is a maintenance release that includes minor bug fixes and documentation updates.

#### :rocket: New Feature

- `react-scripts`
- [#8986](https://github.com/facebook/create-react-app/pull/8986) Add support for new BUILD_PATH advanced configuration variable ([@ajhyndman](https://github.com/ajhyndman))

#### :bug: Bug Fix

- `react-scripts`
- [#10170](https://github.com/facebook/create-react-app/pull/10170) Add opt-out for eslint-webpack-plugin ([@mrmckeb](https://github.com/mrmckeb))
- [#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))
- [#9964](https://github.com/facebook/create-react-app/pull/9964) Add TypeScript 4.x as peerDependency to react-scripts ([@sheepsteak](https://github.com/sheepsteak))

#### :nail_care: Enhancement

- `react-scripts`
- [#9977](https://github.com/facebook/create-react-app/pull/9977) Move ESLint cache file into node_modules ([@ehsankhfr](https://github.com/ehsankhfr))
- [#9569](https://github.com/facebook/create-react-app/pull/9569) Improve vendor chunk names in development ([@jrr](https://github.com/jrr))

#### :memo: Documentation

- [#9473](https://github.com/facebook/create-react-app/pull/9473) docs: add missing override options for Jest config ([@tobiasbueschel](https://github.com/tobiasbueschel))
- [#10314](https://github.com/facebook/create-react-app/pull/10314) Update using-the-public-folder.md ([@Avivhdr](https://github.com/Avivhdr))
- [#10214](https://github.com/facebook/create-react-app/pull/10214) Remove references to Node 8 ([@ianschmitz](https://github.com/ianschmitz))

#### :house: Internal

- `react-scripts`
- [#10027](https://github.com/facebook/create-react-app/pull/10027) appTsConfig immutability handling by immer ([@josezone](https://github.com/josezone))
- `create-react-app`
- [#10217](https://github.com/facebook/create-react-app/pull/10217) Fix CI tests ([@ianschmitz](https://github.com/ianschmitz))
- `react-dev-utils`, `react-error-overlay`, `react-scripts`
- [#10091](https://github.com/facebook/create-react-app/pull/10091) Recovered some integration tests ([@maxsbelt](https://github.com/maxsbelt))

#### :hammer: Underlying Tools

- `react-scripts`
- [#10216](https://github.com/facebook/create-react-app/pull/10216) Revert "Update postcss packages" ([@ianschmitz](https://github.com/ianschmitz))
- [#9988](https://github.com/facebook/create-react-app/pull/9988) Upgrade sass-loader ([@ehsankhfr](https://github.com/ehsankhfr))
- [#10003](https://github.com/facebook/create-react-app/pull/10003) Update postcss packages ([@raix](https://github.com/raix))
- [#10213](https://github.com/facebook/create-react-app/pull/10213) Upgrade @svgr/webpack to fix build error ([@jabranr](https://github.com/jabranr))
- `react-dev-utils`
- [#10198](https://github.com/facebook/create-react-app/pull/10198) remove chalk from formatWebpackMessages ([@jasonwilliams](https://github.com/jasonwilliams))
- `cra-template-typescript`
- [#10141](https://github.com/facebook/create-react-app/pull/10141) chore: bump typescript version ([@trainto](https://github.com/trainto))
- `cra-template-typescript`, `cra-template`
- [#10143](https://github.com/facebook/create-react-app/pull/10143) chore: bump web-vital dependency version ([@sahilpurav](https://github.com/sahilpurav))

#### Committers: 15

- Andrew Hyndman ([@ajhyndman](https://github.com/ajhyndman))
- Aviv Hadar ([@Avivhdr](https://github.com/Avivhdr))
- Brody McKee ([@mrmckeb](https://github.com/mrmckeb))
- Chris Shepherd ([@sheepsteak](https://github.com/sheepsteak))
- EhsanKhaki ([@ehsankhfr](https://github.com/ehsankhfr))
- Hakjoon Sim ([@trainto](https://github.com/trainto))
- Ian Schmitz ([@ianschmitz](https://github.com/ianschmitz))
- Jabran Rafique⚡️ ([@jabranr](https://github.com/jabranr))
- Jason Williams ([@jasonwilliams](https://github.com/jasonwilliams))
- John Ruble ([@jrr](https://github.com/jrr))
- Kristoffer K. ([@merceyz](https://github.com/merceyz))
- Morten N.O. Nørgaard Henriksen ([@raix](https://github.com/raix))
- Sahil Purav ([@sahilpurav](https://github.com/sahilpurav))
- Sergey Makarov ([@maxsbelt](https://github.com/maxsbelt))
- Tobias Büschel ([@tobiasbueschel](https://github.com/tobiasbueschel))
- mad-jose ([@josezone](https://github.com/josezone))

# Migrating from 4.0.1 to 4.0.2

Inside any created project that has not been ejected, run:

```bash
npm install --save --save-exact [email protected]
```

or

```
yarn add --exact [email protected]
```

## 4.0.1 (2020-11-23)

v4.0.1 is a maintenance release that includes minor bug fixes and documentation updates.

#### :bug: Bug Fix

- `react-scripts`
- [#9921](https://github.com/facebook/create-react-app/pull/9921) Fix noFallthroughCasesInSwitch/jsx object is not extensible ([@ryota-murakami](https://github.com/ryota-murakami))
- [#9869](https://github.com/facebook/create-react-app/pull/9869) Fix react-jsx error ([@benneq](https://github.com/benneq))
- [#9885](https://github.com/facebook/create-react-app/pull/9885) fix: `React is not defined` compilation error after ejected ([@n3tr](https://github.com/n3tr))
- [#9911](https://github.com/facebook/create-react-app/pull/9911) fix: slow recompile time ([@FezVrasta](https://github.com/FezVrasta))
- `react-dev-utils`
- [#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))

#### :nail_care: Enhancement

- `react-scripts`
- [#10048](https://github.com/facebook/create-react-app/pull/10048) Increase Workbox's maximumFileSizeToCacheInBytes ([@jeffposnick](https://github.com/jeffposnick))

#### :memo: Documentation

- [#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))

#### :house: Internal

- `create-react-app`, `react-dev-utils`, `react-scripts`
- [#10083](https://github.com/facebook/create-react-app/pull/10083) replace inquirer with prompts ([@EvanBacon](https://github.com/EvanBacon))
- `cra-template-typescript`, `cra-template`, `react-scripts`
- [#9516](https://github.com/facebook/create-react-app/pull/9516) [ImgBot] Optimize images ([@MichaelDeBoey](https://github.com/MichaelDeBoey))
- Other
- [#9860](https://github.com/facebook/create-react-app/pull/9860) chore: Update .prettierrc ([@MichaelDeBoey](https://github.com/MichaelDeBoey))

#### Committers: 9

- Anyul Rivas ([@anyulled](https://github.com/anyulled))
- Ben M ([@benneq](https://github.com/benneq))
- Evan Bacon ([@EvanBacon](https://github.com/EvanBacon))
- Federico Zivolo ([@FezVrasta](https://github.com/FezVrasta))
- Jeffrey Posnick ([@jeffposnick](https://github.com/jeffposnick))
- Jirat Ki. ([@n3tr](https://github.com/n3tr))
- Michaël De Boey ([@MichaelDeBoey](https://github.com/MichaelDeBoey))
- Ryota Murakami ([@ryota-murakami](https://github.com/ryota-murakami))
- sho90 ([@sho-t](https://github.com/sho-t))

# Migrating from 4.0.0 to 4.0.1

Inside any created project that has not been ejected, run:

```bash
npm install --save --save-exact [email protected]
```

or

```
yarn add --exact [email protected]
```

## 4.0.0 (2020-10-23)

Create React App 4.0 is a major release with several new features, including support for Fast Refresh!
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Create a project, and you’re good to go.

## Creating an App

**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.
**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.

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

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

## License

Create React App is open source software [licensed as MIT](https://github.com/facebook/create-react-app/blob/master/LICENSE).
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/).
3 changes: 3 additions & 0 deletions docusaurus/docs/advanced-configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ You can adjust various development and production settings by setting environmen
| 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. |
| 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. |
| 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. |
| 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. |
| 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. |
| 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. |
| 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. |
Expand All @@ -26,4 +27,6 @@ You can adjust various development and production settings by setting environmen
| 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. |
| 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. |
| 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. |
| 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. |
| DISABLE_ESLINT_PLUGIN | ✅ Used | ✅ Used | When set to `true`, [eslint-webpack-plugin](https://github.com/webpack-contrib/eslint-webpack-plugin) will be completely disabled. |
| 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. |
2 changes: 0 additions & 2 deletions docusaurus/docs/debugging-tests.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ sidebar_label: Debugging Tests

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/).

> Note: debugging tests requires Node 8 or higher.

## Debugging Tests in Chrome

Add the following to the `scripts` section in your project's `package.json`
Expand Down
Loading