Skip to content

Commit b0080a2

Browse files
committed
Merge branch 'master' into fix-comparable-in-switch
2 parents 83d6abc + f307948 commit b0080a2

File tree

1,024 files changed

+135289
-108844
lines changed

Some content is hidden

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

1,024 files changed

+135289
-108844
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,9 @@ tests/cases/**/*.js.map
4141
scripts/debug.bat
4242
scripts/run.bat
4343
scripts/word2md.js
44+
scripts/buildProtocol.js
4445
scripts/ior.js
46+
scripts/buildProtocol.js
4547
scripts/*.js.map
4648
scripts/typings/
4749
coverage/

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ matrix:
1515
branches:
1616
only:
1717
- master
18-
- release-2.0
18+
- release-2.1
1919

2020
install:
2121
- npm uninstall typescript

CONTRIBUTING.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,5 +183,3 @@ jake baseline-accept
183183
```
184184

185185
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.
186-
187-
**Note** that `baseline-accept` should only be run after a full test run! Accepting baselines after running a subset of tests will delete baseline files for the tests that didn't run.

Jakefile.js

Lines changed: 17 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -70,13 +70,15 @@ var compilerSources = [
7070
"visitor.ts",
7171
"transformers/destructuring.ts",
7272
"transformers/ts.ts",
73-
"transformers/module/es6.ts",
74-
"transformers/module/system.ts",
75-
"transformers/module/module.ts",
7673
"transformers/jsx.ts",
77-
"transformers/es7.ts",
74+
"transformers/es2017.ts",
75+
"transformers/es2016.ts",
76+
"transformers/es2015.ts",
7877
"transformers/generators.ts",
79-
"transformers/es6.ts",
78+
"transformers/es5.ts",
79+
"transformers/module/es2015.ts",
80+
"transformers/module/system.ts",
81+
"transformers/module/module.ts",
8082
"transformer.ts",
8183
"sourcemap.ts",
8284
"comments.ts",
@@ -104,13 +106,15 @@ var servicesSources = [
104106
"visitor.ts",
105107
"transformers/destructuring.ts",
106108
"transformers/ts.ts",
107-
"transformers/module/es6.ts",
108-
"transformers/module/system.ts",
109-
"transformers/module/module.ts",
110109
"transformers/jsx.ts",
111-
"transformers/es7.ts",
110+
"transformers/es2017.ts",
111+
"transformers/es2016.ts",
112+
"transformers/es2015.ts",
112113
"transformers/generators.ts",
113-
"transformers/es6.ts",
114+
"transformers/es5.ts",
115+
"transformers/module/es2015.ts",
116+
"transformers/module/system.ts",
117+
"transformers/module/module.ts",
114118
"transformer.ts",
115119
"sourcemap.ts",
116120
"comments.ts",
@@ -353,6 +357,7 @@ function concatenateFiles(destinationFile, sourceFiles) {
353357
if (!fs.existsSync(sourceFiles[i])) {
354358
fail(sourceFiles[i] + " does not exist!");
355359
}
360+
fs.appendFileSync(temp, "\n\n");
356361
fs.appendFileSync(temp, fs.readFileSync(sourceFiles[i]));
357362
}
358363
// Move the file to the final destination
@@ -443,6 +448,8 @@ function compileFile(outFile, sources, prereqs, prefixes, useBuiltCompiler, opts
443448
options += " --stripInternal";
444449
}
445450

451+
options += " --target es5 --noUnusedLocals --noUnusedParameters";
452+
446453
var cmd = host + " " + compilerPath + " " + options + " ";
447454
cmd = cmd + sources.join(" ");
448455
console.log(cmd + "\n");

issue_template.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<!-- QUESTIONS: This is not a general support forum! Ask Qs at http://stackoverflow.com/questions/tagged/typescript -->
33
<!-- SUGGESTIONS: See https://github.com/Microsoft/TypeScript-wiki/blob/master/Writing-Good-Design-Proposals.md -->
44

5-
**TypeScript Version:** 1.8.0 / nightly (2.0.0-dev.201xxxxx)
5+
**TypeScript Version:** 2.0.3 / nightly (2.1.0-dev.201xxxxx)
66

77
**Code**
88

jenkins.sh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
#!/usr/bin/env bash
2+
3+
# Set up NVM
4+
export NVM_DIR="/home/dotnet-bot/.nvm"
5+
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"
6+
7+
nvm install $1
8+
9+
npm uninstall typescript
10+
npm uninstall tslint
11+
npm install
12+
npm update
13+
npm test

lib/cancellationToken.js

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/lib.d.ts

Lines changed: 227 additions & 189 deletions
Large diffs are not rendered by default.

lib/lib.dom.d.ts

Lines changed: 195 additions & 190 deletions
Large diffs are not rendered by default.

lib/lib.dom.iterable.d.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,11 @@ See the Apache Version 2.0 License for specific language governing permissions
1313
and limitations under the License.
1414
***************************************************************************** */
1515

16+
17+
1618
/// <reference no-default-lib="true"/>
19+
20+
1721
/// <reference path="lib.dom.d.ts" />
1822

1923
interface DOMTokenList {

0 commit comments

Comments
 (0)