|
| 1 | +## 2.1.0 (October 29, 2018) |
| 2 | + |
| 3 | +Create React App 2.1 adds support for TypeScript! Read [the documentation](https://github.com/facebook/create-react-app/blob/master/docusaurus/docs/adding-typescript.md) to get started. |
| 4 | + |
| 5 | +New applications can be created using TypeScript by running: |
| 6 | + |
| 7 | +```bash |
| 8 | +$ npx create-react-app my-app --typescript |
| 9 | +``` |
| 10 | + |
| 11 | +#### :rocket: New Feature |
| 12 | + |
| 13 | +- `create-react-app`, `react-scripts` |
| 14 | + - [#5550](https://github.com/facebook/create-react-app/pull/5550) Add TypeScript app creation ([@Timer](https://github.com/Timer)) |
| 15 | +- `babel-preset-react-app`, `react-scripts` |
| 16 | + - [#4837](https://github.com/facebook/create-react-app/pull/4837) TypeScript support using Babel 7 ([@brunolemos](https://github.com/brunolemos)) |
| 17 | + |
| 18 | +#### :bug: Bug Fix |
| 19 | + |
| 20 | +- `react-scripts` |
| 21 | + - [#5611](https://github.com/facebook/create-react-app/pull/5611) Remove react-scripts type reference on eject. ([@Timer](https://github.com/Timer)) |
| 22 | + - [#5614](https://github.com/facebook/create-react-app/pull/5614) Ignore json files from TypeScript type checking. ([@brunolemos](https://github.com/brunolemos)) |
| 23 | + - [#5609](https://github.com/facebook/create-react-app/pull/5609) Remove unsupported options. ([@Timer](https://github.com/Timer)) |
| 24 | + - [#5608](https://github.com/facebook/create-react-app/pull/5608) Ignore test files from reported type errors. ([@Timer](https://github.com/Timer)) |
| 25 | + - [#5589](https://github.com/facebook/create-react-app/pull/5589) Update react-app.d.ts. ([@brunolemos](https://github.com/brunolemos)) |
| 26 | + - [#5557](https://github.com/facebook/create-react-app/pull/5557) Add typings for process.env. ([@brunolemos](https://github.com/brunolemos)) |
| 27 | + - [#5532](https://github.com/facebook/create-react-app/pull/5532) Use TypeScript parser to read tsconfig.json. ([@brunolemos](https://github.com/brunolemos)) |
| 28 | + - [#5527](https://github.com/facebook/create-react-app/pull/5527) Update Workbox dependency. ([@jeffposnick](https://github.com/jeffposnick)) |
| 29 | +- `react-dev-utils`, `react-scripts` |
| 30 | + - [#5549](https://github.com/facebook/create-react-app/pull/5549) Automatically setup TypeScript when detected. ([@Timer](https://github.com/Timer)) |
| 31 | + - [#5537](https://github.com/facebook/create-react-app/pull/5537) Respect tsconfig.json extends when validating config. ([@ianschmitz](https://github.com/ianschmitz)) |
| 32 | + |
| 33 | +#### :nail_care: Enhancement |
| 34 | + |
| 35 | +- `create-react-app`, `react-scripts` |
| 36 | + - [#5593](https://github.com/facebook/create-react-app/pull/5593) Refine how TypeScript types are handled. ([@Timer](https://github.com/Timer)) |
| 37 | +- `react-scripts` |
| 38 | + - [#5531](https://github.com/facebook/create-react-app/pull/5531) Enable TypeScript json module resolver. ([@brunolemos](https://github.com/brunolemos)) |
| 39 | + - [#5524](https://github.com/facebook/create-react-app/pull/5524) Validate tsconfig when using TypeScript. ([@Timer](https://github.com/Timer)) |
| 40 | + - [#5516](https://github.com/facebook/create-react-app/pull/5516) Check for TypeScript install in preflight. ([@Timer](https://github.com/Timer)) |
| 41 | + - [#5515](https://github.com/facebook/create-react-app/pull/5515) Always type check TypeScript when being used. ([@Timer](https://github.com/Timer)) |
| 42 | +- `react-dev-utils`, `react-scripts` |
| 43 | + - [#5529](https://github.com/facebook/create-react-app/pull/5529) Add TypeScript error formatting. ([@Timer](https://github.com/Timer)) |
| 44 | + |
| 45 | +#### :memo: Documentation |
| 46 | + |
| 47 | +- Other |
| 48 | + - [#5552](https://github.com/facebook/create-react-app/pull/5552) Fixing Internal Links. ([@ehfeng](https://github.com/ehfeng)) |
| 49 | + - [#5551](https://github.com/facebook/create-react-app/pull/5551) Add Algolia search bar to Docusaurus. ([@amyrlam](https://github.com/amyrlam)) |
| 50 | + - [#5533](https://github.com/facebook/create-react-app/pull/5533) Simplified TypeScript steps. ([@brunolemos](https://github.com/brunolemos)) |
| 51 | + - [#5492](https://github.com/facebook/create-react-app/pull/5492) Add "edit" feature to Docusaurus pages. ([@amyrlam](https://github.com/amyrlam)) |
| 52 | + - [#5499](https://github.com/facebook/create-react-app/pull/5499) Fix title on Safari. ([@yuyokk](https://github.com/yuyokk)) |
| 53 | + - [#5494](https://github.com/facebook/create-react-app/pull/5494) Fix typo. ([@noelyoo](https://github.com/noelyoo)) |
| 54 | + - [#5493](https://github.com/facebook/create-react-app/pull/5493) Fixed typo in getting-started. ([@jessepeterman](https://github.com/jessepeterman)) |
| 55 | + - [#5344](https://github.com/facebook/create-react-app/pull/5344) Add some headings to the getting started section. ([@selbekk](https://github.com/selbekk)) |
| 56 | + - [#5251](https://github.com/facebook/create-react-app/pull/5251) Add SoMe links to documentation. ([@selbekk](https://github.com/selbekk)) |
| 57 | +- `react-scripts` |
| 58 | + - [#5512](https://github.com/facebook/create-react-app/pull/5512) Update doc links in template README. ([@iansu](https://github.com/iansu)) |
| 59 | + - [#5475](https://github.com/facebook/create-react-app/pull/5475) Fix typo. ([@thompk2](https://github.com/thompk2)) |
| 60 | + - [#5449](https://github.com/facebook/create-react-app/pull/5449) Remove dot from the end of the link to fix it when using from GitHub. ([@ranyitz](https://github.com/ranyitz)) |
| 61 | + |
| 62 | +#### :house: Internal |
| 63 | + |
| 64 | +- `react-scripts` |
| 65 | + - [#5607](https://github.com/facebook/create-react-app/pull/5607) Turn on certain TypeScript options. ([@Timer](https://github.com/Timer)) |
| 66 | + - [#5559](https://github.com/facebook/create-react-app/pull/5559) Change import syntax from typescript declaration. ([@brunolemos](https://github.com/brunolemos)) |
| 67 | + - [#5469](https://github.com/facebook/create-react-app/pull/5469) Avoid pushing .pnp folder to git. ([@NShahri](https://github.com/NShahri)) |
| 68 | + - [#5527](https://github.com/facebook/create-react-app/pull/5527) Update Workbox dependency. ([@jeffposnick](https://github.com/jeffposnick)) |
| 69 | +- `eslint-config-react-app` |
| 70 | + - [#5586](https://github.com/facebook/create-react-app/pull/5586) Fixing the code splitting links in the ESLint output. ([@jheijmans](https://github.com/jheijmans)) |
| 71 | + |
| 72 | +#### Committers: 15 |
| 73 | + |
| 74 | +- Amy Lam ([amyrlam](https://github.com/amyrlam)) |
| 75 | +- Bruno Lemos ([brunolemos](https://github.com/brunolemos)) |
| 76 | +- Eric Feng ([ehfeng](https://github.com/ehfeng)) |
| 77 | +- Ian Schmitz ([ianschmitz](https://github.com/ianschmitz)) |
| 78 | +- Ian Sutherland ([iansu](https://github.com/iansu)) |
| 79 | +- Iurii Kucherov ([yuyokk](https://github.com/yuyokk)) |
| 80 | +- Jeffrey Posnick ([jeffposnick](https://github.com/jeffposnick)) |
| 81 | +- Jeroen Heijmans ([jheijmans](https://github.com/jheijmans)) |
| 82 | +- Jesse Peterman ([jessepeterman](https://github.com/jessepeterman)) |
| 83 | +- Joe Haddad ([Timer](https://github.com/Timer)) |
| 84 | +- Kit Thompson ([thompk2](https://github.com/thompk2)) |
| 85 | +- Kristofer Selbekk ([selbekk](https://github.com/selbekk)) |
| 86 | +- Nima Shahri ([NShahri](https://github.com/NShahri)) |
| 87 | +- Noel Yoo ([noelyoo](https://github.com/noelyoo)) |
| 88 | +- Ran Yitzhaki ([ranyitz](https://github.com/ranyitz)) |
| 89 | + |
| 90 | +### Migrating from 2.0.5 to 2.1.0 |
| 91 | + |
| 92 | +Inside any created project that has not been ejected, run: |
| 93 | + |
| 94 | +```bash |
| 95 | +npm install --save --save-exact react-scripts@2.1.0 |
| 96 | +``` |
| 97 | + |
| 98 | +or |
| 99 | + |
| 100 | +``` |
| 101 | +yarn add --exact react-scripts@2.1.0 |
| 102 | +``` |
| 103 | + |
1 | 104 | ## 2.0.5 (October 14, 2018)
|
2 | 105 |
|
3 | 106 | #### :bug: Bug Fix
|
4 |
| -* `react-dev-utils` |
5 |
| - * [#5431](https://github.com/facebook/create-react-app/pull/5431) Fix click-to-open on Windows. ([@gaearon](https://github.com/gaearon)) |
6 |
| - * [#5335](https://github.com/facebook/create-react-app/pull/5335) Fix file size report after build. ([@OskarPersson](https://github.com/OskarPersson)) |
7 | 107 |
|
8 |
| -* `create-react-app` |
9 |
| - * [#5362](https://github.com/facebook/create-react-app/pull/5362) Fix CI: non-semver compliant Yarn versions. ([@Timer](https://github.com/Timer)) |
| 108 | +- `react-dev-utils` |
10 | 109 |
|
11 |
| -* `react-scripts` |
12 |
| - * [#5301](https://github.com/facebook/create-react-app/pull/5301) Fix TypeError when registering service workers without config. ([@peterbe](https://github.com/peterbe)) |
| 110 | + - [#5431](https://github.com/facebook/create-react-app/pull/5431) Fix click-to-open on Windows. ([@gaearon](https://github.com/gaearon)) |
| 111 | + - [#5335](https://github.com/facebook/create-react-app/pull/5335) Fix file size report after build. ([@OskarPersson](https://github.com/OskarPersson)) |
| 112 | + |
| 113 | +- `create-react-app` |
| 114 | + |
| 115 | + - [#5362](https://github.com/facebook/create-react-app/pull/5362) Fix CI: non-semver compliant Yarn versions. ([@Timer](https://github.com/Timer)) |
| 116 | + |
| 117 | +- `react-scripts` |
| 118 | + - [#5301](https://github.com/facebook/create-react-app/pull/5301) Fix TypeError when registering service workers without config. ([@peterbe](https://github.com/peterbe)) |
13 | 119 |
|
14 | 120 | #### :nail_care: Enhancement
|
15 |
| -* `babel-preset-react-app` |
16 |
| - * [#4984](https://github.com/facebook/create-react-app/pull/4984) Use the correct dependency for `babel-plugin-dynamic-import-node`. ([@vikr01](https://github.com/vikr01)) |
17 | 121 |
|
18 |
| -* `react-scripts` |
19 |
| - * [#5354](https://github.com/facebook/create-react-app/pull/5354) Add environment variable to optionaly disable inlining of chunks. ([@0xdeafcafe](https://github.com/0xdeafcafe)) |
20 |
| - * [#5330](https://github.com/facebook/create-react-app/pull/5330) Update `eslint-plugin-jsx-a11y` version. ([@AlmeroSteyn](https://github.com/AlmeroSteyn)) |
| 122 | +- `babel-preset-react-app` |
| 123 | + |
| 124 | + - [#4984](https://github.com/facebook/create-react-app/pull/4984) Use the correct dependency for `babel-plugin-dynamic-import-node`. ([@vikr01](https://github.com/vikr01)) |
| 125 | + |
| 126 | +- `react-scripts` |
| 127 | + - [#5354](https://github.com/facebook/create-react-app/pull/5354) Add environment variable to optionaly disable inlining of chunks. ([@0xdeafcafe](https://github.com/0xdeafcafe)) |
| 128 | + - [#5330](https://github.com/facebook/create-react-app/pull/5330) Update `eslint-plugin-jsx-a11y` version. ([@AlmeroSteyn](https://github.com/AlmeroSteyn)) |
21 | 129 |
|
22 | 130 | #### :memo: Documentation
|
23 |
| -* `react-scripts` |
24 |
| - * [#5321](https://github.com/facebook/create-react-app/pull/5321) Added note on update to `.flowconfig` for .scss imports. ([@rlueder](https://github.com/rlueder)) |
25 |
| - * [#5394](https://github.com/facebook/create-react-app/pull/5394) Correct instructions for HTTPS and PowerShell. ([@gavinbarron](https://github.com/gavinbarron)) |
26 |
| - * [#5410](https://github.com/facebook/create-react-app/pull/5410) Updates to clarify the "waiting" SW behavior. ([@jeffposnick](https://github.com/jeffposnick)) |
27 |
| - * [#5302](https://github.com/facebook/create-react-app/pull/5302) Update README.md. ([@simonCordovaByte9](https://github.com/simonCordovaByte9)) |
28 |
| - * [#5334](https://github.com/facebook/create-react-app/pull/5334) Update README due to deprecation of react-testing-library's toBeInTheDOM. ([@rrebase](https://github.com/rrebase)) |
29 |
| - * [#5326](https://github.com/facebook/create-react-app/pull/5326) README link fixes. ([@davidgilbertson](https://github.com/davidgilbertson)) |
30 |
| - * [#5327](https://github.com/facebook/create-react-app/pull/5327) Updated the URL in index.html. ([@behzod](https://github.com/behzod)) |
31 |
| - * [#5296](https://github.com/facebook/create-react-app/pull/5296) Adding documentation about git init. ([@ryancogswell](https://github.com/ryancogswell)) |
32 |
| - * [#5290](https://github.com/facebook/create-react-app/pull/5290) Add react-testing-library documentation/examples (#4679). ([@gnapse](https://github.com/gnapse)) |
33 |
| - * [#5286](https://github.com/facebook/create-react-app/pull/5286) Fix broken links to src/serviceWorker.js. ([@adambowles](https://github.com/adambowles)) |
34 |
| -* Other |
35 |
| - * [#5374](https://github.com/facebook/create-react-app/pull/5374) Add the new SVGs feature from the template README to the root README. ([@neo](https://github.com/neo)) |
36 |
| - * [#5371](https://github.com/facebook/create-react-app/pull/5371) Update path to serviceWorker.js in graphical folder structure. ([@jonscottclark](https://github.com/jonscottclark)) |
37 |
| - * [#5337](https://github.com/facebook/create-react-app/pull/5337) Fix typo. ([@mvasin](https://github.com/mvasin)) |
38 |
| - |
39 |
| -* `eslint-config-react-app` |
40 |
| - * [#5416](https://github.com/facebook/create-react-app/pull/5416) Fix eslint config docs. ([@ludovicofischer](https://github.com/ludovicofischer)) |
| 131 | + |
| 132 | +- `react-scripts` |
| 133 | + - [#5321](https://github.com/facebook/create-react-app/pull/5321) Added note on update to `.flowconfig` for .scss imports. ([@rlueder](https://github.com/rlueder)) |
| 134 | + - [#5394](https://github.com/facebook/create-react-app/pull/5394) Correct instructions for HTTPS and PowerShell. ([@gavinbarron](https://github.com/gavinbarron)) |
| 135 | + - [#5410](https://github.com/facebook/create-react-app/pull/5410) Updates to clarify the "waiting" SW behavior. ([@jeffposnick](https://github.com/jeffposnick)) |
| 136 | + - [#5302](https://github.com/facebook/create-react-app/pull/5302) Update README.md. ([@simonCordovaByte9](https://github.com/simonCordovaByte9)) |
| 137 | + - [#5334](https://github.com/facebook/create-react-app/pull/5334) Update README due to deprecation of react-testing-library's toBeInTheDOM. ([@rrebase](https://github.com/rrebase)) |
| 138 | + - [#5326](https://github.com/facebook/create-react-app/pull/5326) README link fixes. ([@davidgilbertson](https://github.com/davidgilbertson)) |
| 139 | + - [#5327](https://github.com/facebook/create-react-app/pull/5327) Updated the URL in index.html. ([@behzod](https://github.com/behzod)) |
| 140 | + - [#5296](https://github.com/facebook/create-react-app/pull/5296) Adding documentation about git init. ([@ryancogswell](https://github.com/ryancogswell)) |
| 141 | + - [#5290](https://github.com/facebook/create-react-app/pull/5290) Add react-testing-library documentation/examples (#4679). ([@gnapse](https://github.com/gnapse)) |
| 142 | + - [#5286](https://github.com/facebook/create-react-app/pull/5286) Fix broken links to src/serviceWorker.js. ([@adambowles](https://github.com/adambowles)) |
| 143 | +- Other |
| 144 | + |
| 145 | + - [#5374](https://github.com/facebook/create-react-app/pull/5374) Add the new SVGs feature from the template README to the root README. ([@neo](https://github.com/neo)) |
| 146 | + - [#5371](https://github.com/facebook/create-react-app/pull/5371) Update path to serviceWorker.js in graphical folder structure. ([@jonscottclark](https://github.com/jonscottclark)) |
| 147 | + - [#5337](https://github.com/facebook/create-react-app/pull/5337) Fix typo. ([@mvasin](https://github.com/mvasin)) |
| 148 | + |
| 149 | +- `eslint-config-react-app` |
| 150 | + - [#5416](https://github.com/facebook/create-react-app/pull/5416) Fix eslint config docs. ([@ludovicofischer](https://github.com/ludovicofischer)) |
41 | 151 |
|
42 | 152 | #### :house: Internal
|
43 |
| -* Other |
44 |
| - * [#5365](https://github.com/facebook/create-react-app/pull/5365) Clean up the behavior tests. ([@Timer](https://github.com/Timer)) |
45 | 153 |
|
46 |
| -* `create-react-app` |
47 |
| - * [#5362](https://github.com/facebook/create-react-app/pull/5362) Fix CI: non-semver compliant Yarn versions. ([@Timer](https://github.com/Timer)) |
48 |
| -* `react-scripts` |
49 |
| - * [#5317](https://github.com/facebook/create-react-app/pull/5317) Remove unused require for getCacheIdentifier after ejecting. ([@benbrandt](https://github.com/benbrandt)) |
| 154 | +- Other |
| 155 | + |
| 156 | + - [#5365](https://github.com/facebook/create-react-app/pull/5365) Clean up the behavior tests. ([@Timer](https://github.com/Timer)) |
| 157 | + |
| 158 | +- `create-react-app` |
| 159 | + - [#5362](https://github.com/facebook/create-react-app/pull/5362) Fix CI: non-semver compliant Yarn versions. ([@Timer](https://github.com/Timer)) |
| 160 | +- `react-scripts` |
| 161 | + - [#5317](https://github.com/facebook/create-react-app/pull/5317) Remove unused require for getCacheIdentifier after ejecting. ([@benbrandt](https://github.com/benbrandt)) |
50 | 162 |
|
51 | 163 | #### Committers: 23
|
| 164 | + |
52 | 165 | - Adam Bowles ([adambowles](https://github.com/adambowles))
|
53 | 166 | - Alex Forbes-Reed ([0xdeafcafe](https://github.com/0xdeafcafe))
|
54 | 167 | - Almero Steyn ([AlmeroSteyn](https://github.com/AlmeroSteyn))
|
|
0 commit comments