Skip to content

Commit 9523728

Browse files
committed
Merge remote-tracking branch 'upstream/master'
* upstream/master: (210 commits) Support setupTests.ts (facebook#5698) Remove unnecessary whitespace in template HTML Run prettier on HTML files (facebook#5839) Some Grammar fixes (facebook#5858) Fix link to page about running tests (facebook#5883) fix: make typescriptformatter support 0.5 of fork checker (facebook#5879) Always test with the latest stable Node version on Travis (facebook#5546) Fix propertyDecorator test Upgrade babel deps Fix annotated var test Fix TypeScript decorator support (facebook#5783) fix: add `sideEffects: false` to react-error-overlay (facebook#5451) Add allowESModules option to babel-preset-react-app (facebook#5487) Make named-asset-import plugin work with export-as syntax (facebook#5573) React native repository updated in README.md (facebook#5849) extra polyfills must be included manually (facebook#5814) Rename 'getting started' link to 'docs' (facebook#5806) docs: Simplify installing Storybook with npx (facebook#5788) Don't polyfill fetch for Node -- additional files (facebook#5789) docs: Change Storybook install documentation (facebook#5779) ...
2 parents 1d0b7a5 + 49e258b commit 9523728

File tree

127 files changed

+6021
-4417
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

127 files changed

+6021
-4417
lines changed

.github/lock.yml

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Configuration for lock-threads - https://github.com/dessant/lock-threads
2+
3+
# Number of days of inactivity before a closed issue or pull request is locked
4+
daysUntilLock: 5
5+
6+
# Do not comment when locking
7+
setLockReason: false
8+
lockComment: false

.github/stale.yml

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# Configuration for probot-stale - https://github.com/probot/stale
2+
3+
# Number of days of inactivity before an Issue or Pull Request becomes stale
4+
daysUntilStale: 30
5+
6+
# Number of days of inactivity before a stale Issue or Pull Request is closed.
7+
# Set to false to disable. If disabled, issues still need to be closed manually, but will remain marked as stale.
8+
daysUntilClose: 5
9+
10+
# Issues or Pull Requests with these labels will never be considered stale. Set to `[]` to disable
11+
exemptLabels:
12+
- "issue: proposal"
13+
- "issue: announcement"
14+
15+
# Set to true to ignore issues in a project (defaults to false)
16+
exemptProjects: true
17+
18+
# Set to true to ignore issues in a milestone (defaults to false)
19+
exemptMilestones: true
20+
21+
# Label to use when marking as stale
22+
staleLabel: stale
23+
24+
# Limit the number of actions per hour, from 1-30. Default is 30
25+
limitPerRun: 30
26+
27+
issues:
28+
# Comment to post when marking Issues as stale.
29+
markComment: >
30+
This issue has been automatically marked as stale because it has not had any
31+
recent activity. It will be closed in 5 days if no further activity occurs.
32+
33+
# Comment to post when closing a stale Issue.
34+
closeComment: >
35+
This issue has been automatically closed because it has not had any recent
36+
activity. If you have a question or comment, please open a new issue.
37+
38+
pulls:
39+
# Comment to post when marking Pull Request as stale.
40+
markComment: >
41+
This pull request has been automatically marked as stale because it has not
42+
had any recent activity. It will be closed in 5 days if no further activity
43+
occurs.
44+
45+
# Comment to post when closing a stale Pull Request.
46+
closeComment: >
47+
This pull request has been automatically closed because it has not had any
48+
recent activity. If you have a question or comment, please open a new
49+
issue. Thank you for your contribution!

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ npm-debug.log*
1111
yarn-debug.log*
1212
yarn-error.log*
1313
/.changelog
14+
.npm/

.travis.yml

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ language: node_js
44
node_js:
55
- 8
66
- 10
7+
- node
78
cache:
89
yarn: true
910
directories:

CHANGELOG.md

+272
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,261 @@
1+
## 2.1.1 (October 31, 2018)
2+
3+
Happy Halloween 🎃 👻! This spooky release brings a treat: decorator support in TypeScript files!
4+
5+
#### :bug: Bug Fix
6+
7+
- `babel-preset-react-app`
8+
- [#5659](https://github.com/facebook/create-react-app/pull/5659) Add support for decorators. ([@Timer](https://github.com/Timer))
9+
- `react-scripts`
10+
- [#5621](https://github.com/facebook/create-react-app/pull/5621) fix 'Duplicate string index signature' in ProcessEnv. ([@xiaoxiangmoe](https://github.com/xiaoxiangmoe))
11+
12+
#### :nail_care: Enhancement
13+
14+
- `babel-preset-react-app`
15+
- [#5659](https://github.com/facebook/create-react-app/pull/5659) Add support for decorators. ([@Timer](https://github.com/Timer))
16+
17+
#### :memo: Documentation
18+
19+
- [#5658](https://github.com/facebook/create-react-app/pull/5658) Update making-a-progressive-web-app.md. ([@jakeboone02](https://github.com/jakeboone02))
20+
- [#5635](https://github.com/facebook/create-react-app/pull/5635) Update minimum node version to 8.10 in README. ([@iansu](https://github.com/iansu))
21+
- [#5629](https://github.com/facebook/create-react-app/pull/5629) Add link to cra-ts migration guide. ([@Vinnl](https://github.com/Vinnl))
22+
23+
#### :house: Internal
24+
25+
- `react-error-overlay`
26+
- [#4709](https://github.com/facebook/create-react-app/pull/4709) Expose `reportRuntimeError`. ([@hipstersmoothie](https://github.com/hipstersmoothie))
27+
- `babel-plugin-named-asset-import`
28+
- [#5575](https://github.com/facebook/create-react-app/pull/5575) add tests for named-asset-imports plugin. ([@NShahri](https://github.com/NShahri))
29+
- `react-scripts`
30+
- [#5651](https://github.com/facebook/create-react-app/pull/5651) Make serviceWorker config argument optional in typescript. ([@eddedd88](https://github.com/eddedd88))
31+
32+
#### Committers: 8
33+
34+
- Andrew Lisowski ([hipstersmoothie](https://github.com/hipstersmoothie))
35+
- Eduardo Duran ([eddedd88](https://github.com/eddedd88))
36+
- Ian Sutherland ([iansu](https://github.com/iansu))
37+
- Jake Boone ([jakeboone02](https://github.com/jakeboone02))
38+
- Joe Haddad ([Timer](https://github.com/Timer))
39+
- Nima Shahri ([NShahri](https://github.com/NShahri))
40+
- Vincent ([Vinnl](https://github.com/Vinnl))
41+
- ZHAO Jinxiang ([xiaoxiangmoe](https://github.com/xiaoxiangmoe))
42+
43+
### Migrating from 2.1.0 to 2.1.1
44+
45+
Inside any created project that has not been ejected, run:
46+
47+
```bash
48+
npm install --save --save-exact react-scripts@2.1.1
49+
```
50+
51+
or
52+
53+
```
54+
yarn add --exact react-scripts@2.1.1
55+
```
56+
57+
## 2.1.0 (October 29, 2018)
58+
59+
Create React App 2.1 adds support for TypeScript! Read [the documentation](https://facebook.github.io/create-react-app/docs/adding-typescript) to get started.
60+
61+
New applications can be created using TypeScript by running:
62+
63+
```bash
64+
$ npx create-react-app my-app --typescript
65+
```
66+
67+
#### :rocket: New Feature
68+
69+
- `create-react-app`, `react-scripts`
70+
- [#5550](https://github.com/facebook/create-react-app/pull/5550) Add TypeScript app creation ([@Timer](https://github.com/Timer))
71+
- `babel-preset-react-app`, `react-scripts`
72+
- [#4837](https://github.com/facebook/create-react-app/pull/4837) TypeScript support using Babel 7 ([@brunolemos](https://github.com/brunolemos))
73+
74+
#### :bug: Bug Fix
75+
76+
- `react-scripts`
77+
- [#5611](https://github.com/facebook/create-react-app/pull/5611) Remove react-scripts type reference on eject. ([@Timer](https://github.com/Timer))
78+
- [#5614](https://github.com/facebook/create-react-app/pull/5614) Ignore json files from TypeScript type checking. ([@brunolemos](https://github.com/brunolemos))
79+
- [#5609](https://github.com/facebook/create-react-app/pull/5609) Remove unsupported options. ([@Timer](https://github.com/Timer))
80+
- [#5608](https://github.com/facebook/create-react-app/pull/5608) Ignore test files from reported type errors. ([@Timer](https://github.com/Timer))
81+
- [#5589](https://github.com/facebook/create-react-app/pull/5589) Update react-app.d.ts. ([@brunolemos](https://github.com/brunolemos))
82+
- [#5557](https://github.com/facebook/create-react-app/pull/5557) Add typings for process.env. ([@brunolemos](https://github.com/brunolemos))
83+
- [#5532](https://github.com/facebook/create-react-app/pull/5532) Use TypeScript parser to read tsconfig.json. ([@brunolemos](https://github.com/brunolemos))
84+
- [#5527](https://github.com/facebook/create-react-app/pull/5527) Update Workbox dependency. ([@jeffposnick](https://github.com/jeffposnick))
85+
- `react-dev-utils`, `react-scripts`
86+
- [#5549](https://github.com/facebook/create-react-app/pull/5549) Automatically setup TypeScript when detected. ([@Timer](https://github.com/Timer))
87+
- [#5537](https://github.com/facebook/create-react-app/pull/5537) Respect tsconfig.json extends when validating config. ([@ianschmitz](https://github.com/ianschmitz))
88+
89+
#### :nail_care: Enhancement
90+
91+
- `create-react-app`, `react-scripts`
92+
- [#5593](https://github.com/facebook/create-react-app/pull/5593) Refine how TypeScript types are handled. ([@Timer](https://github.com/Timer))
93+
- `react-scripts`
94+
- [#5531](https://github.com/facebook/create-react-app/pull/5531) Enable TypeScript json module resolver. ([@brunolemos](https://github.com/brunolemos))
95+
- [#5524](https://github.com/facebook/create-react-app/pull/5524) Validate tsconfig when using TypeScript. ([@Timer](https://github.com/Timer))
96+
- [#5516](https://github.com/facebook/create-react-app/pull/5516) Check for TypeScript install in preflight. ([@Timer](https://github.com/Timer))
97+
- [#5515](https://github.com/facebook/create-react-app/pull/5515) Always type check TypeScript when being used. ([@Timer](https://github.com/Timer))
98+
- `react-dev-utils`, `react-scripts`
99+
- [#5529](https://github.com/facebook/create-react-app/pull/5529) Add TypeScript error formatting. ([@Timer](https://github.com/Timer))
100+
101+
#### :memo: Documentation
102+
103+
- Other
104+
- [#5552](https://github.com/facebook/create-react-app/pull/5552) Fixing Internal Links. ([@ehfeng](https://github.com/ehfeng))
105+
- [#5551](https://github.com/facebook/create-react-app/pull/5551) Add Algolia search bar to Docusaurus. ([@amyrlam](https://github.com/amyrlam))
106+
- [#5533](https://github.com/facebook/create-react-app/pull/5533) Simplified TypeScript steps. ([@brunolemos](https://github.com/brunolemos))
107+
- [#5492](https://github.com/facebook/create-react-app/pull/5492) Add "edit" feature to Docusaurus pages. ([@amyrlam](https://github.com/amyrlam))
108+
- [#5499](https://github.com/facebook/create-react-app/pull/5499) Fix title on Safari. ([@yuyokk](https://github.com/yuyokk))
109+
- [#5494](https://github.com/facebook/create-react-app/pull/5494) Fix typo. ([@noelyoo](https://github.com/noelyoo))
110+
- [#5493](https://github.com/facebook/create-react-app/pull/5493) Fixed typo in getting-started. ([@jessepeterman](https://github.com/jessepeterman))
111+
- [#5344](https://github.com/facebook/create-react-app/pull/5344) Add some headings to the getting started section. ([@selbekk](https://github.com/selbekk))
112+
- [#5251](https://github.com/facebook/create-react-app/pull/5251) Add SoMe links to documentation. ([@selbekk](https://github.com/selbekk))
113+
- `react-scripts`
114+
- [#5512](https://github.com/facebook/create-react-app/pull/5512) Update doc links in template README. ([@iansu](https://github.com/iansu))
115+
- [#5475](https://github.com/facebook/create-react-app/pull/5475) Fix typo. ([@thompk2](https://github.com/thompk2))
116+
- [#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))
117+
118+
#### :house: Internal
119+
120+
- `react-scripts`
121+
- [#5607](https://github.com/facebook/create-react-app/pull/5607) Turn on certain TypeScript options. ([@Timer](https://github.com/Timer))
122+
- [#5559](https://github.com/facebook/create-react-app/pull/5559) Change import syntax from typescript declaration. ([@brunolemos](https://github.com/brunolemos))
123+
- [#5469](https://github.com/facebook/create-react-app/pull/5469) Avoid pushing .pnp folder to git. ([@NShahri](https://github.com/NShahri))
124+
- [#5527](https://github.com/facebook/create-react-app/pull/5527) Update Workbox dependency. ([@jeffposnick](https://github.com/jeffposnick))
125+
- `eslint-config-react-app`
126+
- [#5586](https://github.com/facebook/create-react-app/pull/5586) Fixing the code splitting links in the ESLint output. ([@jheijmans](https://github.com/jheijmans))
127+
128+
#### Committers: 15
129+
130+
- Amy Lam ([amyrlam](https://github.com/amyrlam))
131+
- Bruno Lemos ([brunolemos](https://github.com/brunolemos))
132+
- Eric Feng ([ehfeng](https://github.com/ehfeng))
133+
- Ian Schmitz ([ianschmitz](https://github.com/ianschmitz))
134+
- Ian Sutherland ([iansu](https://github.com/iansu))
135+
- Iurii Kucherov ([yuyokk](https://github.com/yuyokk))
136+
- Jeffrey Posnick ([jeffposnick](https://github.com/jeffposnick))
137+
- Jeroen Heijmans ([jheijmans](https://github.com/jheijmans))
138+
- Jesse Peterman ([jessepeterman](https://github.com/jessepeterman))
139+
- Joe Haddad ([Timer](https://github.com/Timer))
140+
- Kit Thompson ([thompk2](https://github.com/thompk2))
141+
- Kristofer Selbekk ([selbekk](https://github.com/selbekk))
142+
- Nima Shahri ([NShahri](https://github.com/NShahri))
143+
- Noel Yoo ([noelyoo](https://github.com/noelyoo))
144+
- Ran Yitzhaki ([ranyitz](https://github.com/ranyitz))
145+
146+
### Migrating from 2.0.5 to 2.1.0
147+
148+
Inside any created project that has not been ejected, run:
149+
150+
```bash
151+
npm install --save --save-exact react-scripts@2.1.0
152+
```
153+
154+
or
155+
156+
```
157+
yarn add --exact react-scripts@2.1.0
158+
```
159+
160+
## 2.0.5 (October 14, 2018)
161+
162+
#### :bug: Bug Fix
163+
164+
- `react-dev-utils`
165+
166+
- [#5431](https://github.com/facebook/create-react-app/pull/5431) Fix click-to-open on Windows. ([@gaearon](https://github.com/gaearon))
167+
- [#5335](https://github.com/facebook/create-react-app/pull/5335) Fix file size report after build. ([@OskarPersson](https://github.com/OskarPersson))
168+
169+
- `create-react-app`
170+
171+
- [#5362](https://github.com/facebook/create-react-app/pull/5362) Fix CI: non-semver compliant Yarn versions. ([@Timer](https://github.com/Timer))
172+
173+
- `react-scripts`
174+
- [#5301](https://github.com/facebook/create-react-app/pull/5301) Fix TypeError when registering service workers without config. ([@peterbe](https://github.com/peterbe))
175+
176+
#### :nail_care: Enhancement
177+
178+
- `babel-preset-react-app`
179+
180+
- [#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))
181+
182+
- `react-scripts`
183+
- [#5354](https://github.com/facebook/create-react-app/pull/5354) Add environment variable to optionaly disable inlining of chunks. ([@0xdeafcafe](https://github.com/0xdeafcafe))
184+
- [#5330](https://github.com/facebook/create-react-app/pull/5330) Update `eslint-plugin-jsx-a11y` version. ([@AlmeroSteyn](https://github.com/AlmeroSteyn))
185+
186+
#### :memo: Documentation
187+
188+
- `react-scripts`
189+
- [#5321](https://github.com/facebook/create-react-app/pull/5321) Added note on update to `.flowconfig` for .scss imports. ([@rlueder](https://github.com/rlueder))
190+
- [#5394](https://github.com/facebook/create-react-app/pull/5394) Correct instructions for HTTPS and PowerShell. ([@gavinbarron](https://github.com/gavinbarron))
191+
- [#5410](https://github.com/facebook/create-react-app/pull/5410) Updates to clarify the "waiting" SW behavior. ([@jeffposnick](https://github.com/jeffposnick))
192+
- [#5302](https://github.com/facebook/create-react-app/pull/5302) Update README.md. ([@simonCordovaByte9](https://github.com/simonCordovaByte9))
193+
- [#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))
194+
- [#5326](https://github.com/facebook/create-react-app/pull/5326) README link fixes. ([@davidgilbertson](https://github.com/davidgilbertson))
195+
- [#5327](https://github.com/facebook/create-react-app/pull/5327) Updated the URL in index.html. ([@behzod](https://github.com/behzod))
196+
- [#5296](https://github.com/facebook/create-react-app/pull/5296) Adding documentation about git init. ([@ryancogswell](https://github.com/ryancogswell))
197+
- [#5290](https://github.com/facebook/create-react-app/pull/5290) Add react-testing-library documentation/examples (#4679). ([@gnapse](https://github.com/gnapse))
198+
- [#5286](https://github.com/facebook/create-react-app/pull/5286) Fix broken links to src/serviceWorker.js. ([@adambowles](https://github.com/adambowles))
199+
- Other
200+
201+
- [#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))
202+
- [#5371](https://github.com/facebook/create-react-app/pull/5371) Update path to serviceWorker.js in graphical folder structure. ([@jonscottclark](https://github.com/jonscottclark))
203+
- [#5337](https://github.com/facebook/create-react-app/pull/5337) Fix typo. ([@mvasin](https://github.com/mvasin))
204+
205+
- `eslint-config-react-app`
206+
- [#5416](https://github.com/facebook/create-react-app/pull/5416) Fix eslint config docs. ([@ludovicofischer](https://github.com/ludovicofischer))
207+
208+
#### :house: Internal
209+
210+
- Other
211+
212+
- [#5365](https://github.com/facebook/create-react-app/pull/5365) Clean up the behavior tests. ([@Timer](https://github.com/Timer))
213+
214+
- `create-react-app`
215+
- [#5362](https://github.com/facebook/create-react-app/pull/5362) Fix CI: non-semver compliant Yarn versions. ([@Timer](https://github.com/Timer))
216+
- `react-scripts`
217+
- [#5317](https://github.com/facebook/create-react-app/pull/5317) Remove unused require for getCacheIdentifier after ejecting. ([@benbrandt](https://github.com/benbrandt))
218+
219+
#### Committers: 23
220+
221+
- Adam Bowles ([adambowles](https://github.com/adambowles))
222+
- Alex Forbes-Reed ([0xdeafcafe](https://github.com/0xdeafcafe))
223+
- Almero Steyn ([AlmeroSteyn](https://github.com/AlmeroSteyn))
224+
- Behzod Saidov ([behzod](https://github.com/behzod))
225+
- Ben Brandt ([benbrandt](https://github.com/benbrandt))
226+
- Dan Abramov ([gaearon](https://github.com/gaearon))
227+
- David Gilbertson ([davidgilbertson](https://github.com/davidgilbertson))
228+
- Ernesto García ([gnapse](https://github.com/gnapse))
229+
- Gavin Barron ([gavinbarron](https://github.com/gavinbarron))
230+
- Jeffrey Posnick ([jeffposnick](https://github.com/jeffposnick))
231+
- Joe Haddad ([Timer](https://github.com/Timer))
232+
- Jon Clark ([jonscottclark](https://github.com/jonscottclark))
233+
- Kristofer Selbekk ([selbekk](https://github.com/selbekk))
234+
- Ludovico Fischer ([ludovicofischer](https://github.com/ludovicofischer))
235+
- Mikhail Vasin ([mvasin](https://github.com/mvasin))
236+
- Oskar Persson ([OskarPersson](https://github.com/OskarPersson))
237+
- Peter Bengtsson ([peterbe](https://github.com/peterbe))
238+
- Rafael Lüder ([rlueder](https://github.com/rlueder))
239+
- Ragnar Rebase ([rrebase](https://github.com/rrebase))
240+
- Ryan Cogswell ([ryancogswell](https://github.com/ryancogswell))
241+
- Vikram Rangaraj ([vikr01](https://github.com/vikr01))
242+
- Wenchen Li ([neo](https://github.com/neo))
243+
- [simonCordovaByte9](https://github.com/simonCordovaByte9)
244+
245+
### Migrating from 2.0.4 to 2.0.5
246+
247+
Inside any created project that has not been ejected, run:
248+
249+
```bash
250+
npm install --save --save-exact react-scripts@2.0.5
251+
```
252+
253+
or
254+
255+
```
256+
yarn add --exact react-scripts@2.0.5
257+
```
258+
1259
## 2.0.4 (October 3, 2018)
2260

3261
#### :bug: Bug Fix
@@ -50,6 +308,20 @@
50308
- Shubham Tiwari ([@lockround](https://github.com/lockround))
51309
- Zacharias Knudsen ([@zachasme](https://github.com/zachasme))
52310

311+
### Migrating from 2.0.3 to 2.0.4
312+
313+
Inside any created project that has not been ejected, run:
314+
315+
```bash
316+
npm install --save --save-exact react-scripts@2.0.4
317+
```
318+
319+
or
320+
321+
```
322+
yarn add --exact react-scripts@2.0.4
323+
```
324+
53325
## 2.0.3 (October 1, 2018)
54326

55327
Create React App 2.0 brings a year’s worth of improvements in a single dependency update.

CONTRIBUTING.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,9 @@ By default git would use `CRLF` line endings which would cause the scripts to fa
142142
9. Wait for a long time, and it will get published. Don’t worry that it’s stuck. In the end the publish script will prompt for versions before publishing the packages.
143143
10. After publishing, create a GitHub Release with the same text as the changelog entry. See previous Releases for inspiration.
144144

145-
Make sure to test the released version! If you want to be extra careful, you can publish a prerelease by running `npm run publish -- --tag next` instead of `npm run publish`.
145+
Make sure to test the released version! If you want to be extra careful, you can publish a prerelease by running `npm run publish -- --npm-tag=next` instead of `npm run publish`.
146+
147+
Optionally, you can cut a prerelease instead by running `npm run publish -- --canary=next --exact --cd-version patch --npm-tag=next`.
146148

147149
---
148150

docusaurus/docs/README.md

-3
This file was deleted.

0 commit comments

Comments
 (0)