Skip to content

Commit 62240ee

Browse files
author
Andy Hanson
committed
Merge branch 'master' into dts-first
2 parents 2564ca6 + 8bce69e commit 62240ee

File tree

15,847 files changed

+1368829
-293738
lines changed

Some content is hidden

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

15,847 files changed

+1368829
-293738
lines changed

.gitignore

+17-7
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,6 @@ tests/baselines/local/projectOutput/*
1919
tests/baselines/reference/testresults.tap
2020
tests/services/baselines/prototyping/local/*
2121
tests/services/browser/typescriptServices.js
22-
scripts/authors.js
23-
scripts/configureNightly.js
24-
scripts/processDiagnosticMessages.d.ts
25-
scripts/processDiagnosticMessages.js
26-
scripts/importDefinitelyTypedTests/importDefinitelyTypedTests.js
2722
src/harness/*.js
2823
src/compiler/diagnosticInformationMap.generated.ts
2924
src/compiler/diagnosticMessages.generated.json
@@ -43,7 +38,12 @@ scripts/run.bat
4338
scripts/word2md.js
4439
scripts/buildProtocol.js
4540
scripts/ior.js
46-
scripts/buildProtocol.js
41+
scripts/authors.js
42+
scripts/configureNightly.js
43+
scripts/processDiagnosticMessages.d.ts
44+
scripts/processDiagnosticMessages.js
45+
scripts/importDefinitelyTypedTests/importDefinitelyTypedTests.js
46+
scripts/generateLocalizedDiagnosticMessages.js
4747
scripts/*.js.map
4848
scripts/typings/
4949
coverage/
@@ -58,4 +58,14 @@ internal/
5858
!tests/baselines/reference/project/nodeModules*/**/*
5959
.idea
6060
yarn.lock
61-
package-lock.json
61+
yarn-error.log
62+
.parallelperf.*
63+
tests/cases/user/*/package-lock.json
64+
tests/cases/user/*/node_modules/
65+
tests/cases/user/*/**/*.js
66+
tests/cases/user/*/**/*.js.map
67+
tests/cases/user/*/**/*.d.ts
68+
!tests/cases/user/zone.js/
69+
!tests/cases/user/bignumber.js/
70+
!tests/cases/user/discord.js/
71+
tests/baselines/reference/dt

.gitmodules

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
[submodule "tests/cases/user/TypeScript-React-Starter/TypeScript-React-Starter"]
2+
path = tests/cases/user/TypeScript-React-Starter/TypeScript-React-Starter
3+
url = https://github.com/Microsoft/TypeScript-React-Starter
4+
ignore = all
5+
[submodule "tests/cases/user/TypeScript-Node-Starter/TypeScript-Node-Starter"]
6+
path = tests/cases/user/TypeScript-Node-Starter/TypeScript-Node-Starter
7+
url = https://github.com/Microsoft/TypeScript-Node-Starter.git
8+
ignore = all
9+
[submodule "tests/cases/user/TypeScript-React-Native-Starter/TypeScript-React-Native-Starter"]
10+
path = tests/cases/user/TypeScript-React-Native-Starter/TypeScript-React-Native-Starter
11+
url = https://github.com/Microsoft/TypeScript-React-Native-Starter.git
12+
ignore = all
13+
[submodule "tests/cases/user/TypeScript-Vue-Starter/TypeScript-Vue-Starter"]
14+
path = tests/cases/user/TypeScript-Vue-Starter/TypeScript-Vue-Starter
15+
url = https://github.com/Microsoft/TypeScript-Vue-Starter.git
16+
ignore = all
17+
[submodule "tests/cases/user/TypeScript-WeChat-Starter/TypeScript-WeChat-Starter"]
18+
path = tests/cases/user/TypeScript-WeChat-Starter/TypeScript-WeChat-Starter
19+
url = https://github.com/Microsoft/TypeScript-WeChat-Starter.git
20+
ignore = all

.mailmap

+22-2
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ Andy Hanson <[email protected]> Andy <[email protected]>
1717
Anil Anar <[email protected]>
1818
Anton Tolmachev <[email protected]>
1919
Anubha Mathur <[email protected]> anubmat <[email protected]>
20+
Armando Aguirre <[email protected]>
21+
Arnaud Tournier <[email protected]>
2022
Arnavion <[email protected]> # Arnav Singh
2123
Arthur Ozga <[email protected]> Arthur Ozga <[email protected]> Arthur Ozga <[email protected]> Arthur Ozga <[email protected]> Arthur Ozga <[email protected]>
2224
Asad Saeeduddin <[email protected]>
@@ -26,6 +28,7 @@ Bill Ticehurst <[email protected]> Bill Ticehurst <[email protected]>
2628
Ben Duffield <[email protected]>
2729
Ben Mosher <[email protected]>
2830
Benjamin Bock <[email protected]>
31+
Benjamin Lichtman <[email protected]> uniqueiniquity <[email protected]>
2932
Blake Embrey <[email protected]>
3033
Bowden Kelly <[email protected]>
3134
Brett Mayen <[email protected]>
@@ -59,6 +62,7 @@ Evan Sebastian <[email protected]>
5962
Eyas <[email protected]> # Eyas Sharaiha
6063
Fabian Cook <[email protected]>
6164
falsandtru <[email protected]> # @falsandtru
65+
Filipe Silva <[email protected]>
6266
flowmemo <[email protected]> # @flowmemo
6367
Frank Wallis <[email protected]>
6468
František Žiacik <[email protected]> František Žiacik <[email protected]>
@@ -192,7 +196,7 @@ TruongSinh Tran-Nguyen <[email protected]>
192196
vilicvane <[email protected]> # Vilic Vane
193197
Vladimir Matveev <[email protected]> vladima <[email protected]> v2m <[email protected]>
194198
Vadi Taslim <[email protected]>
195-
Wesley Wigham <[email protected]> Wesley Wigham <[email protected]>
199+
Wesley Wigham <[email protected]> Wesley Wigham <[email protected]> Wesley Wigham <[email protected]>
196200
197201
Yuichi Nukiyama <[email protected]> YuichiNukiyama <[email protected]>
198202
Zev Spitz <[email protected]>
@@ -267,4 +271,20 @@ Reiner Dolp <[email protected]>
267271
268272
TravCav <[email protected]> # @TravCav
269273
Vladimir Kurchatkin <[email protected]>
270-
William Orr <[email protected]>
274+
William Orr <[email protected]>
275+
Francois Wouts <[email protected]>
276+
Jan Melcher <[email protected]> Jan Melcher <[email protected]>
277+
Matt Mitchell <[email protected]>
278+
Maxwell Paul Brickner <[email protected]>
279+
Tycho Grouwstra <[email protected]>
280+
Adrian Leonhard <[email protected]>
281+
Alex Chugaev <[email protected]>
282+
Henry Mercer <[email protected]>
283+
Ivan Enderlin <[email protected]>
284+
Joe Calzaretta <[email protected]>
285+
Magnus Kulke <[email protected]>
286+
Stas Vilchik <[email protected]>
287+
Taras Mankovski <[email protected]>
288+
Thomas den Hollander <[email protected]>
289+
Vakhurin Sergey <[email protected]>
290+
Zeeshan Ahmed <[email protected]>

.npmignore

+3-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ internal
55
issue_template.md
66
jenkins.sh
77
lib/README.md
8+
lib/enu
89
netci.groovy
910
pull_request_template.md
1011
scripts
@@ -16,4 +17,5 @@ Jakefile.js
1617
.gitattributes
1718
.settings/
1819
.travis.yml
19-
.vscode/
20+
.vscode/
21+
test.config

.travis.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ language: node_js
22

33
node_js:
44
- 'stable'
5+
- '8'
56
- '6'
6-
- '4'
77

88
sudo: false
99

@@ -16,6 +16,9 @@ matrix:
1616
branches:
1717
only:
1818
- master
19+
- release-2.5
20+
- release-2.6
21+
- release-2.7
1922

2023
install:
2124
- npm uninstall typescript --no-save

.vscode/tasks.json

+7
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,13 @@
1818
"problemMatcher": [
1919
"$tsc"
2020
]
21+
},
22+
{
23+
"taskName": "tests",
24+
"showOutput": "silent",
25+
"problemMatcher": [
26+
"$tsc"
27+
]
2128
}
2229
]
2330
}

AUTHORS.md

+20
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@ TypeScript is authored by:
33
* Abubaker Bashir
44
* Adam Freidin
55
* Adi Dahiya
6+
* Adrian Leonhard
67
* Ahmad Farid
78
* Akshar Patel
9+
* Alex Chugaev
810
* Alex Eagle
911
* Alexander Kuvaev
1012
* Alexander Rusakov
@@ -25,6 +27,8 @@ TypeScript is authored by:
2527
* Anton Khlynovskiy
2628
* Anton Tolmachev
2729
* Anubha Mathur
30+
* Armando Aguirre
31+
* Arnaud Tournier
2832
* Arnav Singh
2933
* Arthur Ozga
3034
* Asad Saeeduddin
@@ -33,6 +37,7 @@ TypeScript is authored by:
3337
* Ben Duffield
3438
* Ben Mosher
3539
* Benjamin Bock
40+
* Benjamin Lichtman
3641
* Benny Neugebauer
3742
* Bill Ticehurst
3843
* Blaine Bublitz
@@ -85,7 +90,9 @@ TypeScript is authored by:
8590
* Eyas Sharaiha
8691
* Fabian Cook
8792
* @falsandtru
93+
* Filipe Silva
8894
* @flowmemo
95+
* Francois Wouts
8996
* Frank Wallis
9097
* Franklin Tse
9198
* František Žiacik
@@ -100,18 +107,21 @@ TypeScript is authored by:
100107
* Halasi Tamás
101108
* Harald Niesche
102109
* Hendrik Liebau
110+
* Henry Mercer
103111
* Herrington Darkholme
104112
* Homa Wong
105113
* Iain Monro
106114
* Igor Novozhilov
107115
* Ika
108116
* Ingvar Stepanyan
109117
* Isiah Meadows
118+
* Ivan Enderlin
110119
* Ivo Gabe de Wolff
111120
* Iwata Hidetaka
112121
* Jakub Młokosiewicz
113122
* James Henry
114123
* James Whitney
124+
* Jan Melcher
115125
* Jason Freeman
116126
* Jason Jarrett
117127
* Jason Killian
@@ -121,6 +131,7 @@ TypeScript is authored by:
121131
* Jeffrey Morlan
122132
* Jesse Schalken
123133
* Jiri Tobisek
134+
* Joe Calzaretta
124135
* Joe Chung
125136
* Joel Day
126137
* Joey Wilson
@@ -155,16 +166,19 @@ TypeScript is authored by:
155166
* Lucien Greathouse
156167
* Lukas Elmer
157168
* Magnus Hiie
169+
* Magnus Kulke
158170
* Manish Giri
159171
* Marin Marinov
160172
* Marius Schulz
161173
* Martin Vseticka
162174
* Masahiro Wakame
163175
* Matt Bierner
164176
* Matt McCutchen
177+
* Matt Mitchell
165178
* Mattias Buelens
166179
* Mattias Buelens
167180
* Max Deepfield
181+
* Maxwell Paul Brickner
168182
* Micah Zoltu
169183
* Michael
170184
* Michael Bromley
@@ -224,13 +238,16 @@ TypeScript is authored by:
224238
* Soo Jae Hwang
225239
* Stan Thomas
226240
* Stanislav Sysoev
241+
* Stas Vilchik
227242
* Steve Lucco
228243
* Sudheesh Singanamalla
229244
* Sébastien Arod
230245
* @T18970237136
231246
* @t_
247+
* Taras Mankovski
232248
* Tarik Ozket
233249
* Tetsuharu Ohzeki
250+
* Thomas den Hollander
234251
* Thomas Loubiou
235252
* Tien Hoanhtien
236253
* Tim Lancina
@@ -243,7 +260,9 @@ TypeScript is authored by:
243260
* Torben Fitschen
244261
* @TravCav
245262
* TruongSinh Tran-Nguyen
263+
* Tycho Grouwstra
246264
* Vadi Taslim
265+
* Vakhurin Sergey
247266
* Vidar Tonaas Fauske
248267
* Viktor Zozulyak
249268
* Vilic Vane
@@ -254,5 +273,6 @@ TypeScript is authored by:
254273
* York Yao
255274
* @yortus
256275
* Yuichi Nukiyama
276+
* Zeeshan Ahmed
257277
* Zev Spitz
258278
* Zhengbo Li

CONTRIBUTING.md

+15-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,14 @@ Issues that ask questions answered in the FAQ will be closed without elaboration
88

99
## 2. Search for Duplicates
1010

11-
[Search the existing issues](https://github.com/Microsoft/TypeScript/issues?utf8=%E2%9C%93&q=is%3Aissue) before logging a new one.
11+
[Search the existing issues](https://github.com/Microsoft/TypeScript/search?type=Issues) before logging a new one.
12+
13+
Some search tips:
14+
* *Don't* restrict your search to only open issues. An issue with a title similar to yours may have been closed as a duplicate of one with a less-findable title.
15+
* Check for synonyms. For example, if your bug involves an interface, it likely also occurs with type aliases or classes.
16+
* Search for the title of the issue you're about to log. This sounds obvious but 80% of the time this is sufficient to find a duplicate when one exists.
17+
* Read more than the first page of results. Many bugs here use the same words so relevancy sorting is not particularly strong.
18+
* If you have a crash, search for the first few topmost function names shown in the call stack.
1219

1320
## 3. Do you have a question?
1421

@@ -183,3 +190,10 @@ jake baseline-accept
183190
```
184191

185192
to establish the new baselines as the desired behavior. This will change the files in `tests\baselines\reference`, which should be included as part of your commit. It's important to carefully validate changes in the baselines.
193+
194+
## Localization
195+
196+
All strings the user may see are stored in [`diagnosticMessages.json`](./src/compiler/diagnosticMessages.json).
197+
If you make changes to it, run `jake generate-diagnostics` to push them to the `Diagnostic` interface in [`diagnosticInformationMap.generated.ts`](./src/compiler/diagnosticInformationMap.generated.ts).
198+
199+
See [coding guidelines on diagnostic messages](https://github.com/Microsoft/TypeScript/wiki/Coding-guidelines#diagnostic-messages).

CopyrightNotice.txt

+15-15
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
/*! *****************************************************************************
2-
Copyright (c) Microsoft Corporation. All rights reserved.
3-
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
4-
this file except in compliance with the License. You may obtain a copy of the
5-
License at http://www.apache.org/licenses/LICENSE-2.0
6-
7-
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
8-
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
9-
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
10-
MERCHANTABLITY OR NON-INFRINGEMENT.
11-
12-
See the Apache Version 2.0 License for specific language governing permissions
13-
and limitations under the License.
14-
***************************************************************************** */
15-
1+
/*! *****************************************************************************
2+
Copyright (c) Microsoft Corporation. All rights reserved.
3+
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
4+
this file except in compliance with the License. You may obtain a copy of the
5+
License at http://www.apache.org/licenses/LICENSE-2.0
6+
7+
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
8+
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
9+
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
10+
MERCHANTABLITY OR NON-INFRINGEMENT.
11+
12+
See the Apache Version 2.0 License for specific language governing permissions
13+
and limitations under the License.
14+
***************************************************************************** */
15+

0 commit comments

Comments
 (0)