Skip to content

Commit c0b177d

Browse files
committed
Merge branch 'react-scripts-3.4.1' into 3.4.0
# Conflicts: # packages/react-scripts/package.json
2 parents f2b8933 + d2f813f commit c0b177d

File tree

27 files changed

+923
-589
lines changed

27 files changed

+923
-589
lines changed

CHANGELOG.md

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,66 @@
1+
## 3.4.1 (2020-03-20)
2+
3+
v3.4.1 is a maintenance release that includes minor bug fixes and documentation updates including upgrading Babel to fix a bug in the 7.8 release line. This release also brings support for TypeScript 3.8.
4+
5+
#### :bug: Bug Fix
6+
7+
- `react-scripts`
8+
- [#8276](https://github.com/facebook/create-react-app/pull/8276) Use native ESLint behaviour when extending ([@mrmckeb](https://github.com/mrmckeb))
9+
- [#7203](https://github.com/facebook/create-react-app/pull/7203) Closes webpack dev server and exits process on "end" stdin ([@kelseyleftwich](https://github.com/kelseyleftwich))
10+
- `babel-preset-react-app`
11+
- [#8526](https://github.com/facebook/create-react-app/pull/8526) Fix optional chaining and nullish coalescing support ([@ianschmitz](https://github.com/ianschmitz))
12+
- `cra-template`, `eslint-config-react-app`, `react-scripts`
13+
- [#7790](https://github.com/facebook/create-react-app/pull/7790) Widen eslint-config-react-app peer dependency versions ([@lukyth](https://github.com/lukyth))
14+
15+
#### :nail_care: Enhancement
16+
17+
- `cra-template-typescript`, `cra-template`
18+
- [#8558](https://github.com/facebook/create-react-app/pull/8558) Add React.StrictMode to default templates ([@connkat](https://github.com/connkat))
19+
- `react-scripts`
20+
- [#8539](https://github.com/facebook/create-react-app/pull/8539) allow specification of package.main in template.json ([@EvanBoyle](https://github.com/EvanBoyle))
21+
22+
#### :memo: Documentation
23+
24+
- Other
25+
- [#8515](https://github.com/facebook/create-react-app/pull/8515) Fix proxying API request docs ([@hjr3](https://github.com/hjr3))
26+
- [#8561](https://github.com/facebook/create-react-app/pull/8561) Indicate that the file structure is the template's ([@Vinnl](https://github.com/Vinnl))
27+
- `react-scripts`
28+
- [#8276](https://github.com/facebook/create-react-app/pull/8276) Use native ESLint behaviour when extending ([@mrmckeb](https://github.com/mrmckeb))
29+
30+
#### :hammer: Underlying Tools
31+
32+
- `babel-preset-react-app`, `create-react-app`, `react-dev-utils`, `react-error-overlay`, `react-scripts`
33+
- [#8681](https://github.com/facebook/create-react-app/pull/8681) Update to Babel 7.9 ([@ianschmitz](https://github.com/ianschmitz))
34+
- [#8620](https://github.com/facebook/create-react-app/pull/8620) Bump dependencies ([@ianschmitz](https://github.com/ianschmitz))
35+
- `react-scripts`
36+
- [#8509](https://github.com/facebook/create-react-app/pull/8509) Bumps pnp-webpack-plugin ([@arcanis](https://github.com/arcanis))
37+
38+
#### Committers: 9
39+
40+
- Brody McKee ([@mrmckeb](https://github.com/mrmckeb))
41+
- Evan Boyle ([@EvanBoyle](https://github.com/EvanBoyle))
42+
- Herman J. Radtke III ([@hjr3](https://github.com/hjr3))
43+
- Ian Schmitz ([@ianschmitz](https://github.com/ianschmitz))
44+
- Kanitkorn Sujautra ([@lukyth](https://github.com/lukyth))
45+
- KatCon ([@connkat](https://github.com/connkat))
46+
- Kelsey Leftwich ([@kelseyleftwich](https://github.com/kelseyleftwich))
47+
- Maël Nison ([@arcanis](https://github.com/arcanis))
48+
- Vincent ([@Vinnl](https://github.com/Vinnl))
49+
50+
### Migrating from 3.4.0 to 3.4.1
51+
52+
Inside any created project that has not been ejected, run:
53+
54+
```sh
55+
npm install --save --save-exact [email protected]
56+
```
57+
58+
or
59+
60+
```sh
61+
yarn add --exact [email protected]
62+
```
63+
164
## 3.4.0 (2020-02-14)
265

366
v3.4.0 is a minor release that adds new features, including support for SSL and setting `PUBLIC_URL` in development. It also includes a fix for Hot Module Reloading with CSS Modules as well as other bug fixes.

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ npx create-react-app my-app
1616
cd my-app
1717
npm start
1818
```
19+
1920
If you've previously installed `create-react-app` globally via `npm install -g create-react-app`, we recommend you uninstall the package using `npm uninstall -g create-react-app` to ensure that npx always uses the latest version.
2021

2122
_([npx](https://medium.com/@maybekatz/introducing-npx-an-npm-package-runner-55f7d4bd282b) comes with npm 5.2+ and higher, see [instructions for older npm versions](https://gist.github.com/gaearon/4064d3c23a77c74a3614c498a8bb1c5f))_

azure-pipelines.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,12 @@ jobs:
5757
name: Behavior
5858
testScript: tasks/e2e-behavior.sh
5959
configurations:
60-
LinuxNode8: { vmImage: 'ubuntu-16.04', nodeVersion: 8.x }
61-
LinuxNode10: { vmImage: 'ubuntu-16.04', nodeVersion: 10.x }
60+
LinuxNode8: { vmImage: 'ubuntu-18.04', nodeVersion: 8.x }
61+
LinuxNode10: { vmImage: 'ubuntu-18.04', nodeVersion: 10.x }
6262
# WindowsNode8: { vmImage: 'vs2017-win2016', nodeVersion: 8.x }
6363
# WindowsNode10: { vmImage: 'vs2017-win2016', nodeVersion: 10.x }
64-
MacNode8: { vmImage: 'macOS-10.13', nodeVersion: 8.x }
65-
MacNode10: { vmImage: 'macOS-10.13', nodeVersion: 10.x }
64+
MacNode8: { vmImage: 'macOS-10.15', nodeVersion: 8.x }
65+
MacNode10: { vmImage: 'macOS-10.15', nodeVersion: 10.x }
6666

6767
# ******************************************************************************
6868
# Old Node test suite

docusaurus/docs/advanced-configuration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,5 @@ You can adjust various development and production settings by setting environmen
2525
| NODE_PATH | ✅ Used | ✅ Used | Same as [`NODE_PATH` in Node.js](https://nodejs.org/api/modules.html#modules_loading_from_the_global_folders), but only relative folders are allowed. Can be handy for emulating a monorepo setup by setting `NODE_PATH=src`. |
2626
| 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. |
2727
| 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. |
28-
| 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. |
28+
| EXTEND_ESLINT | ✅ Used | ✅ Used | When set to `true`, user provided ESLint configs will be used by `eslint-loader`. Note that any rules set to `"error"` will stop the application from building. |
2929
| 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/custom-templates.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ If you're interested in building a custom template, first take a look at how we'
3131
A template must have the following structure:
3232

3333
```
34-
my-app/
34+
cra-template-[template-name]/
3535
README.md (for npm)
3636
template.json
3737
package.json

docusaurus/docs/integrating-with-an-api-backend.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ It allows creating hypermedia and GraphQL APIs in minutes.
2424
It is shipped with an official Progressive Web App generator as well as a dynamic administration interface, both built for Create React App.
2525
Check out [this tutorial](https://api-platform.com/docs/distribution).
2626

27-
2827
## C# (ASP.NET Core)
2928

3029
ASP.NET Core has a React project template that uses Create React App. Check out [their documentation](https://docs.microsoft.com/en-us/aspnet/core/client-side/spa/react).

docusaurus/docs/proxying-api-requests-in-development.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ $ yarn add http-proxy-middleware
8585
Next, create `src/setupProxy.js` and place the following contents in it:
8686

8787
```js
88-
const proxy = require('http-proxy-middleware');
88+
const { createProxyMiddleware } = require('http-proxy-middleware');
8989

9090
module.exports = function(app) {
9191
// ...
@@ -95,12 +95,12 @@ module.exports = function(app) {
9595
You can now register proxies as you wish! Here's an example using the above `http-proxy-middleware`:
9696

9797
```js
98-
const proxy = require('http-proxy-middleware');
98+
const { createProxyMiddleware } = require('http-proxy-middleware');
9999

100100
module.exports = function(app) {
101101
app.use(
102102
'/api',
103-
proxy({
103+
createProxyMiddleware({
104104
target: 'http://localhost:5000',
105105
changeOrigin: true,
106106
})

docusaurus/docs/setting-up-your-editor.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ Note that any rules set to `"error"` will stop the project from building.
3535
There are a few things to remember:
3636

3737
1. We highly recommend extending the base config, as removing it could introduce hard-to-find issues.
38-
1. `.eslintignore` files will be respected
3938
1. When working with TypeScript, you'll need to provide an `overrides` object for rules that should _only_ target TypeScript files.
4039

4140
In the below example:

docusaurus/docs/using-https-in-development.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ HTTPS=true npm start
3232

3333
Note that the server will use a self-signed certificate, so your web browser will almost definitely display a warning upon accessing the page.
3434

35-
3635
## Custom SSL certificate
3736

3837
To set a custom certificate, set the `SSL_CRT_FILE` and `SSL_KEY_FILE` environment variables to the path of the certificate and key files in the same way you do for `HTTPS` above. Note that you will also need to set `HTTPS=true`.
@@ -43,7 +42,6 @@ To set a custom certificate, set the `SSL_CRT_FILE` and `SSL_KEY_FILE` environme
4342
HTTPS=true SSL_CRT_FILE=cert.crt SSL_KEY_FILE=cert.key npm start
4443
```
4544

46-
4745
To avoid having to set the environment variable each time, you can either include in the `npm start` script like so:
4846

4947
```json
@@ -54,4 +52,3 @@ To avoid having to set the environment variable each time, you can either includ
5452

5553
Or you can create a `.env` file with `HTTPS=true` set.
5654
[Learn more about environment variables in CRA](https://create-react-app.dev/docs/adding-custom-environment-variables).
57-

packages/babel-preset-react-app/create.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,12 @@ module.exports = function(api, opts, env) {
185185
removeImport: true,
186186
},
187187
],
188+
// Optional chaining and nullish coalescing are supported in @babel/preset-env,
189+
// but not yet supported in webpack due to support missing from acorn.
190+
// These can be removed once webpack has support.
191+
// See https://github.com/facebook/create-react-app/issues/8445#issuecomment-588512250
192+
require('@babel/plugin-proposal-optional-chaining').default,
193+
require('@babel/plugin-proposal-nullish-coalescing-operator').default,
188194
].filter(Boolean),
189195
overrides: [
190196
isFlowEnabled && {

0 commit comments

Comments
 (0)