Changelog
*Sourced from [react-scripts's changelog](https://github.com/facebook/create-react-app/blob/master/CHANGELOG.md).*
> ## 3.3.0 (2019-12-04)
>
> v3.3.0 is a minor release that adds new features, including custom templates and support for the new optional chaining and nullish coalescing operators.
>
> ### Custom Templates
>
> You can now create a new app using custom templates.
>
> We've published our existing templates as [`cra-template`](https://github.com/facebook/create-react-app/tree/master/packages/cra-template) and [`cra-template-typescript`](https://github.com/facebook/create-react-app/tree/master/packages/cra-template-typescript), but we expect to see many great templates from the community over the coming weeks.
>
> The below command shows how you can create a new app with `cra-template-typescript`.
>
> ```sh
> npx create-react-app my-app --template typescript
> ```
>
> Note that you can omit the prefix `cra-template-` when specifying which template you would like. For TypeScript users, we're deprecating `--typescript` in favour of `--template typescript`.
>
> If you don't set a template, we'll create your new app with `cra-template` - which is just a new name for our base template.
>
> ### Optional Chaining and Nullish Coalescing Operators
>
> We now support the [optional chaining](https://github.com/TC39/proposal-optional-chaining) and [nullish coalescing](https://github.com/tc39/proposal-nullish-coalescing) operators!
>
> ```js
> // Optional chaining
> a?.(); // undefined if `a` is null/undefined
> b?.c; // undefined if `b` is null/undefined
>
> // Nullish coalescing
> undefined ?? 'some other default'; // result: 'some other default'
> null ?? 'some other default'; // result: 'some other default'
> '' ?? 'some other default'; // result: ''
> 0 ?? 300; // result: 0
> false ?? true; // result: false
> ```
>
> **If your're using TypeScript, you will need to upgrade your `typescript` dependency to `3.7.0` or later if you wish to use the new operators.**
>
> **If you're using Visual Studio Code 1.40 (the latest as of this release) or earlier, you will need to configure your editor if you want it to understand the new operators.**
>
> If you're using TypeScript in your project and have already upgrade its version as described above, then you can [configure VS Code to `Use Workspace Version` of TypeScript](https://code.visualstudio.com/docs/typescript/typescript-compiling#_using-newer-typescript-versions). If your project isn't using TypeScript, you can use the [JavaScript and TypeScript Nightly extension](https://marketplace.visualstudio.com/items?itemName=ms-vscode.vscode-typescript-next) until VS Code releases a newer version including TypeScript `3.7.0` or newer.
>
> ### Numeric Separators
>
> We've added support for [numeric separators](https://github.com/tc39/proposal-numeric-separator) to improve readability of numeric literals.
>
> ```js
> 1000000000; // Is this a billion? a hundred millions? Ten millions?
> 101475938.38; // what scale is this? what power of 10?
> ... (truncated)
Commits
- [`9a817dd`](https://github.com/facebook/create-react-app/commit/9a817dd0d780ec401afb1f99dbc0f3bdbcd51683) Publish
- [`f6ba862`](https://github.com/facebook/create-react-app/commit/f6ba8625002f7b7884193bb2e5940d2ba74fd468) Add TypeScript peer dependency to react-scripts ([#8038](https://github.com/facebook/create-react-app/tree/HEAD/packages/react-scripts/issues/8038))
- [`1a66971`](https://github.com/facebook/create-react-app/commit/1a66971f9e2f255d6278ade61e70517faf5839db) Bump dependencies ([#8024](https://github.com/facebook/create-react-app/tree/HEAD/packages/react-scripts/issues/8024))
- [`82009f5`](https://github.com/facebook/create-react-app/commit/82009f570d5aa7a85310fb00b6ecff6c752a1135) Bump webpack-dev-server ([#7988](https://github.com/facebook/create-react-app/tree/HEAD/packages/react-scripts/issues/7988))
- [`23d5776`](https://github.com/facebook/create-react-app/commit/23d5776724adb6a3760019a31ded4de2c3227d18) Add scripts support to templates ([#7989](https://github.com/facebook/create-react-app/tree/HEAD/packages/react-scripts/issues/7989))
- [`58b4738`](https://github.com/facebook/create-react-app/commit/58b4738a490f9643f540e9fdb74431c4d73e3ad7) Bump dependencies ([#7986](https://github.com/facebook/create-react-app/tree/HEAD/packages/react-scripts/issues/7986))
- [`915108b`](https://github.com/facebook/create-react-app/commit/915108b650635c28a96e0f5c9eedf672ee8ec0b1) Add placeholders where old template READMEs used to be ([#7972](https://github.com/facebook/create-react-app/tree/HEAD/packages/react-scripts/issues/7972))
- [`f01bfac`](https://github.com/facebook/create-react-app/commit/f01bfac19049bb0db89529430ee52be5275ccab3) Upgrade jest-watch-typeahead ([#7956](https://github.com/facebook/create-react-app/tree/HEAD/packages/react-scripts/issues/7956))
- [`5cdc3cc`](https://github.com/facebook/create-react-app/commit/5cdc3cc0b0bc80f72244c05e2b02b9cbf0cee3f8) Add tests for optional chaining and null coalescing ([#7952](https://github.com/facebook/create-react-app/tree/HEAD/packages/react-scripts/issues/7952))
- [`211694a`](https://github.com/facebook/create-react-app/commit/211694a8a22a4c4b954e729e0d7eb946cf0f8d60) Fix CI ([#7951](https://github.com/facebook/create-react-app/tree/HEAD/packages/react-scripts/issues/7951))
- Additional commits viewable in [compare view](https://github.com/facebook/create-react-app/commits/react-scripts@3.3.0/packages/react-scripts)
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
If all status checks pass Dependabot will automatically merge this pull request.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
- `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language
- `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language
- `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language
- `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language
- `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme
Additionally, you can set the following in your Dependabot [dashboard](https://app.dependabot.com):
- Update frequency (including time of day and day of week)
- Pull request limits (per update run and/or open at any time)
- Automerge options (never/patch/minor, and dev/runtime dependencies)
- Out-of-range updates (receive only lockfile updates, if desired)
- Security updates (receive only security updates, if desired)
Bumps react-scripts from 3.2.0 to 3.3.0.
Changelog
*Sourced from [react-scripts's changelog](https://github.com/facebook/create-react-app/blob/master/CHANGELOG.md).* > ## 3.3.0 (2019-12-04) > > v3.3.0 is a minor release that adds new features, including custom templates and support for the new optional chaining and nullish coalescing operators. > > ### Custom Templates > > You can now create a new app using custom templates. > > We've published our existing templates as [`cra-template`](https://github.com/facebook/create-react-app/tree/master/packages/cra-template) and [`cra-template-typescript`](https://github.com/facebook/create-react-app/tree/master/packages/cra-template-typescript), but we expect to see many great templates from the community over the coming weeks. > > The below command shows how you can create a new app with `cra-template-typescript`. > > ```sh > npx create-react-app my-app --template typescript > ``` > > Note that you can omit the prefix `cra-template-` when specifying which template you would like. For TypeScript users, we're deprecating `--typescript` in favour of `--template typescript`. > > If you don't set a template, we'll create your new app with `cra-template` - which is just a new name for our base template. > > ### Optional Chaining and Nullish Coalescing Operators > > We now support the [optional chaining](https://github.com/TC39/proposal-optional-chaining) and [nullish coalescing](https://github.com/tc39/proposal-nullish-coalescing) operators! > > ```js > // Optional chaining > a?.(); // undefined if `a` is null/undefined > b?.c; // undefined if `b` is null/undefined > > // Nullish coalescing > undefined ?? 'some other default'; // result: 'some other default' > null ?? 'some other default'; // result: 'some other default' > '' ?? 'some other default'; // result: '' > 0 ?? 300; // result: 0 > false ?? true; // result: false > ``` > > **If your're using TypeScript, you will need to upgrade your `typescript` dependency to `3.7.0` or later if you wish to use the new operators.** > > **If you're using Visual Studio Code 1.40 (the latest as of this release) or earlier, you will need to configure your editor if you want it to understand the new operators.** > > If you're using TypeScript in your project and have already upgrade its version as described above, then you can [configure VS Code to `Use Workspace Version` of TypeScript](https://code.visualstudio.com/docs/typescript/typescript-compiling#_using-newer-typescript-versions). If your project isn't using TypeScript, you can use the [JavaScript and TypeScript Nightly extension](https://marketplace.visualstudio.com/items?itemName=ms-vscode.vscode-typescript-next) until VS Code releases a newer version including TypeScript `3.7.0` or newer. > > ### Numeric Separators > > We've added support for [numeric separators](https://github.com/tc39/proposal-numeric-separator) to improve readability of numeric literals. > > ```js > 1000000000; // Is this a billion? a hundred millions? Ten millions? > 101475938.38; // what scale is this? what power of 10? > ... (truncated)Commits
- [`9a817dd`](https://github.com/facebook/create-react-app/commit/9a817dd0d780ec401afb1f99dbc0f3bdbcd51683) Publish - [`f6ba862`](https://github.com/facebook/create-react-app/commit/f6ba8625002f7b7884193bb2e5940d2ba74fd468) Add TypeScript peer dependency to react-scripts ([#8038](https://github.com/facebook/create-react-app/tree/HEAD/packages/react-scripts/issues/8038)) - [`1a66971`](https://github.com/facebook/create-react-app/commit/1a66971f9e2f255d6278ade61e70517faf5839db) Bump dependencies ([#8024](https://github.com/facebook/create-react-app/tree/HEAD/packages/react-scripts/issues/8024)) - [`82009f5`](https://github.com/facebook/create-react-app/commit/82009f570d5aa7a85310fb00b6ecff6c752a1135) Bump webpack-dev-server ([#7988](https://github.com/facebook/create-react-app/tree/HEAD/packages/react-scripts/issues/7988)) - [`23d5776`](https://github.com/facebook/create-react-app/commit/23d5776724adb6a3760019a31ded4de2c3227d18) Add scripts support to templates ([#7989](https://github.com/facebook/create-react-app/tree/HEAD/packages/react-scripts/issues/7989)) - [`58b4738`](https://github.com/facebook/create-react-app/commit/58b4738a490f9643f540e9fdb74431c4d73e3ad7) Bump dependencies ([#7986](https://github.com/facebook/create-react-app/tree/HEAD/packages/react-scripts/issues/7986)) - [`915108b`](https://github.com/facebook/create-react-app/commit/915108b650635c28a96e0f5c9eedf672ee8ec0b1) Add placeholders where old template READMEs used to be ([#7972](https://github.com/facebook/create-react-app/tree/HEAD/packages/react-scripts/issues/7972)) - [`f01bfac`](https://github.com/facebook/create-react-app/commit/f01bfac19049bb0db89529430ee52be5275ccab3) Upgrade jest-watch-typeahead ([#7956](https://github.com/facebook/create-react-app/tree/HEAD/packages/react-scripts/issues/7956)) - [`5cdc3cc`](https://github.com/facebook/create-react-app/commit/5cdc3cc0b0bc80f72244c05e2b02b9cbf0cee3f8) Add tests for optional chaining and null coalescing ([#7952](https://github.com/facebook/create-react-app/tree/HEAD/packages/react-scripts/issues/7952)) - [`211694a`](https://github.com/facebook/create-react-app/commit/211694a8a22a4c4b954e729e0d7eb946cf0f8d60) Fix CI ([#7951](https://github.com/facebook/create-react-app/tree/HEAD/packages/react-scripts/issues/7951)) - Additional commits viewable in [compare view](https://github.com/facebook/create-react-app/commits/react-scripts@3.3.0/packages/react-scripts)Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.If all status checks pass Dependabot will automatically merge this pull request.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) - `@dependabot use these labels` will set the current labels as the default for future PRs for this repo and language - `@dependabot use these reviewers` will set the current reviewers as the default for future PRs for this repo and language - `@dependabot use these assignees` will set the current assignees as the default for future PRs for this repo and language - `@dependabot use this milestone` will set the current milestone as the default for future PRs for this repo and language - `@dependabot badge me` will comment on this PR with code to add a "Dependabot enabled" badge to your readme Additionally, you can set the following in your Dependabot [dashboard](https://app.dependabot.com): - Update frequency (including time of day and day of week) - Pull request limits (per update run and/or open at any time) - Automerge options (never/patch/minor, and dev/runtime dependencies) - Out-of-range updates (receive only lockfile updates, if desired) - Security updates (receive only security updates, if desired)