Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: facebook/create-react-app
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v3.0.0
Choose a base ref
...
head repository: facebook/create-react-app
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v3.0.1
Choose a head ref

Commits on Apr 24, 2019

  1. Fix typo in README.md (#6879)

    david-cho-lerat-HL2 authored and mrmckeb committed Apr 24, 2019

    Unverified

    This user has not yet uploaded their public signing key.
    Copy the full SHA
    c38aecf View commit details
  2. Unverified

    This user has not yet uploaded their public signing key.
    Copy the full SHA
    0022607 View commit details
  3. Remove body padding reset from templates (#6300)

    * remove padding 0 on body from default styles
    
    * Update index.css
    Hurtak authored and iansu committed Apr 24, 2019

    Unverified

    This user has not yet uploaded their public signing key.
    Copy the full SHA
    73d5579 View commit details
  4. Fix typo in deployment docs (#6881)

    Typo : preache => precache
    david-cho-lerat-HL2 authored and iansu committed Apr 24, 2019

    Unverified

    This user has not yet uploaded their public signing key.
    Copy the full SHA
    126bded View commit details

Commits on Apr 25, 2019

  1. Unverified

    This user has not yet uploaded their public signing key.
    Copy the full SHA
    18b399b View commit details
  2. 2

    Unverified

    This user has not yet uploaded their public signing key.
    Copy the full SHA
    785dd47 View commit details

Commits on Apr 28, 2019

  1. Grammar! (#6935)

    Fix copy
    wbr2y authored and amyrlam committed Apr 28, 2019

    Unverified

    This user has not yet uploaded their public signing key.
    Copy the full SHA
    e5f69b5 View commit details
  2. Change cssmodule classname hash to use repo relative paths (#6876)

    * Change cssmodule classname hash to use repo relative paths instead of system absolute paths
    vg-stan authored and ianschmitz committed Apr 28, 2019

    Unverified

    This user has not yet uploaded their public signing key.
    Copy the full SHA
    c80e3fe View commit details

Commits on Apr 29, 2019

  1. Update dependencies babel preset with recent changes (#6887)

    * Update dependencies preset to support browserslist
    
    * Loose mode array destructuring for hooks in dependencies
    skoging authored and ianschmitz committed Apr 29, 2019
    Copy the full SHA
    c34c743 View commit details
  2. Copy the full SHA
    a2ae8a7 View commit details

Commits on Apr 30, 2019

  1. Update GraphQL doc (#6898)

    * Need to install graphql package
    * Need to provide real graphql in the .graphql file, not gql wrapped graphql
    nagman authored and amyrlam committed Apr 30, 2019
    Copy the full SHA
    4b8b38b View commit details

Commits on May 1, 2019

  1. Add clarifying note to TypeScript docs warning about global install o…

    …f CRA (#6945)
    
    Added block quote with warning about issues when CRA is installed globally.
    methodbox authored and amyrlam committed May 1, 2019
    Copy the full SHA
    6710f52 View commit details
  2. Adds the configuration for PnP/Typescript (#6856)

    * Adds the configuration for PnP/Typescript
    
    * Adds the header
    
    * Bumps ts-pnp
    
    * Bumps fork-ts-checker-webpack-plugin
    arcanis authored and iansu committed May 1, 2019
    Copy the full SHA
    b36d1ea View commit details

Commits on May 3, 2019

  1. Copy the full SHA
    4397d06 View commit details

Commits on May 5, 2019

  1. Add note to restart the dev server after changing .env file (#6979)

    * Add note to restart the dev server after change .env file
    
    * Update copy
    
    Co-authored-by: Ian Sutherland <ian@iansutherland.ca>
    MostafaNawara and iansu committed May 5, 2019
    Copy the full SHA
    8a9e01c View commit details

Commits on May 7, 2019

  1. Temporary fix for babel-jest preflight error (#7002)

    * Temporary fix for babel-jest preflight error
    
    * Update babel-jest in react-error-overlay
    ianschmitz authored May 7, 2019
    Copy the full SHA
    bf886bc View commit details
  2. Copy the full SHA
    6ff2bfa View commit details
  3. Copy the full SHA
    4542185 View commit details

Commits on May 8, 2019

  1. Revert PR #6935 because CLA was not signed (#7016)

    This reverts commit e5f69b5.
    iansu authored May 8, 2019
    Copy the full SHA
    4ca3687 View commit details
  2. Prepare 3.0.1 release

    iansu committed May 8, 2019
    Copy the full SHA
    0905b51 View commit details
  3. Publish

     - babel-preset-react-app@9.0.0
     - create-react-app@3.0.1
     - eslint-config-react-app@4.0.1
     - react-app-polyfill@1.0.1
     - react-dev-utils@9.0.1
     - react-error-overlay@5.1.6
     - react-scripts@3.0.1
    iansu committed May 8, 2019
    1
    Copy the full SHA
    57ef103 View commit details
77 changes: 77 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,80 @@
## 3.0.1 (2019-05-08)

v3.0.1 is a maintenance release that adjusts some ESLint rules for TypeScript along with other minor bug fixes and documentation updates.

#### :boom: Breaking Change

- `babel-preset-react-app`
- [#6887](https://github.com/facebook/create-react-app/pull/6887) Update dependencies of Babel preset with recent changes ([@skoging](https://github.com/skoging))

#### :bug: Bug Fix

- `react-error-overlay`, `react-scripts`
- [#7007](https://github.com/facebook/create-react-app/pull/7007) Unpin `babel-jest` ([@ianschmitz](https://github.com/ianschmitz))
- [#7002](https://github.com/facebook/create-react-app/pull/7002) Temporary fix for `babel-jest` preflight error ([@ianschmitz](https://github.com/ianschmitz))
- `eslint-config-react-app`
- [#6987](https://github.com/facebook/create-react-app/pull/6987) Disable `no-dupe-class-members` rule for TypeScript ([@ianschmitz](https://github.com/ianschmitz))
- [#6862](https://github.com/facebook/create-react-app/pull/6862) Fix `no-useless-constructor` rule in TypeScript ([@ianschmitz](https://github.com/ianschmitz))
- `eslint-config-react-app`, `react-scripts`
- [#6937](https://github.com/facebook/create-react-app/pull/6937) Disable `default-case` lint rule for TypeScript ([@ianschmitz](https://github.com/ianschmitz))
- `react-dev-utils`
- [#6876](https://github.com/facebook/create-react-app/pull/6876) Change cssmodule classname hash to use relative paths ([@vg-stan](https://github.com/vg-stan))

#### :nail_care: Enhancement

- `react-dev-utils`, `react-scripts`
- [#6856](https://github.com/facebook/create-react-app/pull/6856) Adds the configuration for PnP/Typescript ([@arcanis](https://github.com/arcanis))
- `babel-preset-react-app`
- [#6887](https://github.com/facebook/create-react-app/pull/6887) Update dependencies of Babel preset with recent changes ([@skoging](https://github.com/skoging))
- `react-scripts`
- [#6706](https://github.com/facebook/create-react-app/pull/6706) Generate SVG component name in Jest fileTransform ([@dallonf](https://github.com/dallonf))
- [#6300](https://github.com/facebook/create-react-app/pull/6300) Remove body padding reset from templates ([@Hurtak](https://github.com/Hurtak))

#### :memo: Documentation

- Other
- [#6979](https://github.com/facebook/create-react-app/pull/6979) Add note to restart the dev server after changing .env file ([@MostafaNawara](https://github.com/MostafaNawara))
- [#6945](https://github.com/facebook/create-react-app/pull/6945) Add clarifying note to TypeScript docs warning about global install of CRA ([@methodbox](https://github.com/methodbox))
- [#6898](https://github.com/facebook/create-react-app/pull/6898) Update GraphQL docs ([@nagman](https://github.com/nagman))
- [#6810](https://github.com/facebook/create-react-app/pull/6810) Call to action button now reacts to being hovered ([@joerez](https://github.com/joerez))
- [#6881](https://github.com/facebook/create-react-app/pull/6881) Fix typo in deployment docs ([@david-cho-lerat-HL2](https://github.com/david-cho-lerat-HL2))
- `react-app-polyfill`
- [#6879](https://github.com/facebook/create-react-app/pull/6879) Update README.md ([@david-cho-lerat-HL2](https://github.com/david-cho-lerat-HL2))

#### :house: Internal

- `react-scripts`
- [#6854](https://github.com/facebook/create-react-app/pull/6854) Remove `Object.assign` from `MiniCssExtractPlugin` options ([@swashcap](https://github.com/swashcap))

#### Committers: 12

- Chris Shaffer ([@methodbox](https://github.com/methodbox))
- Cory Reed ([@swashcap](https://github.com/swashcap))
- Dallon Feldner ([@dallonf](https://github.com/dallonf))
- David Cho-Lerat ([@david-cho-lerat-HL2](https://github.com/david-cho-lerat-HL2))
- Ian Schmitz ([@ianschmitz](https://github.com/ianschmitz))
- Joe Rezendes ([@joerez](https://github.com/joerez))
- Maël Nison ([@arcanis](https://github.com/arcanis))
- Mostafa Nawara ([@MostafaNawara](https://github.com/MostafaNawara))
- Petr Huřťák ([@Hurtak](https://github.com/Hurtak))
- Tore Hammervoll ([@skoging](https://github.com/skoging))
- [@nagman](https://github.com/nagman)
- [@vg-stan](https://github.com/vg-stan)

### Migrating from 3.0.0 to 3.0.1

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

```sh
npm install --save --save-exact react-scripts@3.0.1
```

or

```sh
yarn add --exact react-scripts@3.0.1
```

## 3.0.0 (April 22, 2019)

Create React App 3.0 brings some exciting new features including support for [Hooks](https://reactjs.org/docs/hooks-intro.html)!
2 changes: 2 additions & 0 deletions docusaurus/docs/adding-custom-environment-variables.md
Original file line number Diff line number Diff line change
@@ -117,6 +117,8 @@ REACT_APP_NOT_SECRET_CODE=abcdef

> Note: You must create custom environment variables beginning with `REACT_APP_`. Any other variables except `NODE_ENV` will be ignored to avoid [accidentally exposing a private key on the machine that could have the same name](https://github.com/facebook/create-react-app/issues/865#issuecomment-252199527). Changing any environment variables will require you to restart the development server if it is running.
> Note: You need to restart the development server after changing `.env` files.
`.env` files **should be** checked into source control (with the exclusion of `.env*.local`).

### What other `.env` files can be used?
2 changes: 2 additions & 0 deletions docusaurus/docs/adding-typescript.md
Original file line number Diff line number Diff line change
@@ -17,6 +17,8 @@ npx create-react-app my-app --typescript
yarn create react-app my-app --typescript
```

> 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.
To add [TypeScript](https://www.typescriptlang.org/) to a Create React App project, first install it:

```sh
2 changes: 1 addition & 1 deletion docusaurus/docs/deployment.md
Original file line number Diff line number Diff line change
@@ -90,7 +90,7 @@ service worker navigation routing can be configured or disabled by
[`eject`ing](available-scripts.md#npm-run-eject) and then modifying the
[`navigateFallback`](https://github.com/GoogleChrome/sw-precache#navigatefallback-string)
and [`navigateFallbackWhitelist`](https://github.com/GoogleChrome/sw-precache#navigatefallbackwhitelist-arrayregexp)
options of the `SWPreachePlugin` [configuration](../config/webpack.config.prod.js).
options of the `SWPrecachePlugin` [configuration](../config/webpack.config.prod.js).

When users install your app to the homescreen of their device the default configuration will make a shortcut to `/index.html`. This may not work for client-side routers which expect the app to be served from `/`. Edit the web app manifest at [`public/manifest.json`](public/manifest.json) and change `start_url` to match the required URL scheme, for example:

16 changes: 7 additions & 9 deletions docusaurus/docs/loading-graphql-files.md
Original file line number Diff line number Diff line change
@@ -4,16 +4,16 @@ title: Loading .graphql Files
sidebar_label: Loading .graphql Files
---

To load `.gql` and `.graphql` files, first install the [`graphql.macro`](https://www.npmjs.com/package/graphql.macro) package by running:
To load `.gql` and `.graphql` files, first install the [`graphql`](https://www.npmjs.com/package/graphql) and [`graphql.macro`](https://www.npmjs.com/package/graphql.macro) packages by running:

```sh
npm install --save graphql.macro
npm install --save graphql graphql.macro
```

Alternatively you may use `yarn`:

```sh
yarn add graphql.macro
yarn add graphql graphql.macro
```

Then, whenever you want to load `.gql` or `.graphql` files, import the `loader` from the macro package:
@@ -27,13 +27,11 @@ const query = loader('./foo.graphql');
And your results get automatically inlined! This means that if the file above, `foo.graphql`, contains the following:

```graphql
gql`
query {
hello {
world
}
query {
hello {
world
}
`;
}
```

The previous example turns into:
6 changes: 6 additions & 0 deletions docusaurus/website/static/css/custom.css
Original file line number Diff line number Diff line change
@@ -9,6 +9,12 @@
.homeContainer .button {
background: #24292e;
border-color: white;
transition: background 0.3s, color 0.3s;
}

.homeContainer .button:hover {
background: white;
color: #282c34;
}

.homeContainer * {
39 changes: 28 additions & 11 deletions packages/babel-preset-react-app/dependencies.js
Original file line number Diff line number Diff line change
@@ -84,17 +84,11 @@ module.exports = function(api, opts) {
// Latest stable ECMAScript features
require('@babel/preset-env').default,
{
// We want Create React App to be IE 9 compatible until React itself
// no longer works with IE 9
targets: {
ie: 9,
},
// Users cannot override this behavior because this Babel
// configuration is highly tuned for ES5 support
ignoreBrowserslistConfig: true,
// If users import all core-js they're probably not concerned with
// bundle size. We shouldn't rely on magic to try and shrink it.
useBuiltIns: false,
// Allow importing core-js in entrypoint and use browserlist to select polyfills
useBuiltIns: 'entry',
// Set the corejs version we are using to avoid warnings in console
// This will need to change once we upgrade to corejs@3
corejs: 3,
// Do not transform modules to CJS
modules: false,
// Exclude transforms that make all code slower
@@ -103,6 +97,29 @@ module.exports = function(api, opts) {
],
].filter(Boolean),
plugins: [
// Necessary to include regardless of the environment because
// in practice some other transforms (such as object-rest-spread)
// don't work without it: https://github.com/babel/babel/issues/7215
[
require('@babel/plugin-transform-destructuring').default,
{
// Use loose mode for performance:
// https://github.com/facebook/create-react-app/issues/5602
loose: false,
selectiveLoose: [
'useState',
'useEffect',
'useContext',
'useReducer',
'useCallback',
'useMemo',
'useRef',
'useImperativeHandle',
'useLayoutEffect',
'useDebugValue',
],
},
],
// Polyfills the runtime needed for async/await, generators, and friends
// https://babeljs.io/docs/en/babel-plugin-transform-runtime
[
2 changes: 1 addition & 1 deletion packages/babel-preset-react-app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "babel-preset-react-app",
"version": "8.0.0",
"version": "9.0.0",
"description": "Babel preset used by Create React App",
"repository": {
"type": "git",
2 changes: 1 addition & 1 deletion packages/create-react-app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "create-react-app",
"version": "3.0.0",
"version": "3.0.1",
"keywords": [
"react"
],
Loading