Packages

create-react-app

5.1.0 · 15 Feb 2025MIT34.4k / weekRepositoryHomepagenpmAtom feed

Your version

2.1.0

30 Oct 2018Where it was published

2.1.8 is the newest release of 2.x.

In short

1 removed10 new9 fixed5 changed9 internal

  • Removed

    react-scripts: Remove unsupported options. (@Timer)

Release note

Create React App 2.1 adds support for TypeScript! Read the documentation to get started.

New applications can be created using TypeScript by running:

$ npx create-react-app my-app --typescript

:rocket: New Feature

  • create-react-app, react-scripts: Add TypeScript app creation (@Timer)

  • babel-preset-react-app, react-scripts: TypeScript support using Babel 7 (@brunolemos)

:bug: Bug Fix

  • react-scripts: Remove react-scripts type reference on eject. (@Timer)

  • react-scripts: Ignore json files from TypeScript type checking. (@brunolemos)

  • Removed

    react-scripts: Remove unsupported options. (@Timer)

  • react-scripts: Ignore test files from reported type errors. (@Timer)

  • react-scripts: Update react-app.d.ts. (@brunolemos)

  • react-scripts: Add typings for process.env. (@brunolemos)

  • react-scripts: Use TypeScript parser to read tsconfig.json. (@brunolemos)

  • react-scripts: Update Workbox dependency. (@jeffposnick)

  • react-dev-utils, react-scripts: Automatically setup TypeScript when detected. (@Timer)

  • react-dev-utils, react-scripts: Respect tsconfig.json extends when validating config. (@ianschmitz)

:nail_care: Enhancement

  • create-react-app, react-scripts: Refine how TypeScript types are handled. (@Timer)

  • react-scripts: Enable TypeScript json module resolver. (@brunolemos)

  • react-scripts: Validate tsconfig when using TypeScript. (@Timer)

  • react-scripts: Check for TypeScript install in preflight. (@Timer)

  • react-scripts: Always type check TypeScript when being used. (@Timer)

  • react-dev-utils, react-scripts: Add TypeScript error formatting. (@Timer)

:memo: Documentation

  • Other

  • react-scripts: Update doc links in template README. (@iansu)

  • react-scripts: Remove dot from the end of the link to fix it when using from GitHub. (@ranyitz)

:house: Internal

  • react-scripts: Turn on certain TypeScript options. (@Timer)

  • react-scripts: Change import syntax from typescript declaration. (@brunolemos)

  • react-scripts: Avoid pushing .pnp folder to git. (@NShahri)

  • react-scripts: Update Workbox dependency. (@jeffposnick)

  • eslint-config-react-app: Fixing the code splitting links in the ESLint output. (@jheijmans)

Migrating from 2.0.5 to 2.1.0

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

npm install --save --save-exact react-scripts@2.1.0

or

yarn add --exact react-scripts@2.1.0

A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.