forked from angular/angular
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switches the repository to TypeScript 4.3 and the latest version of tslib. This involves updating the peer dependency ranges on `typescript` for the compiler CLI and for the Bazel package. Tests for new TypeScript features have been added to ensure compatibility with Angular's ngtsc compiler.
- Loading branch information
1 parent
5960d4c
commit d90de8d
Showing
65 changed files
with
384 additions
and
147 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12175,7 +12175,7 @@ ts-node@^9.1.1: | |
source-map-support "^0.5.17" | ||
yn "3.1.1" | ||
|
||
[email protected], tslib@^2.0.0, tslib@^2.0.1, tslib@^2.1.0: | ||
[email protected], tslib@^2.0.0, tslib@^2.0.1, tslib@^2.1.0, tslib@^2.2.0: | ||
version "2.2.0" | ||
resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.2.0.tgz#fb2c475977e35e241311ede2693cee1ec6698f5c" | ||
integrity sha512-gS9GVHRU+RGn5KQM2rllAlR3dU6m7AcpJKdtH8gFvQiC4Otgk98XnmMU+nZenHt/+VhnBPWwgrJsyrdcw6i23w== | ||
|
@@ -12302,7 +12302,7 @@ typedarray@^0.0.6: | |
resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777" | ||
integrity sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c= | ||
|
||
[email protected], typescript@~4.2.4: | ||
[email protected]: | ||
version "4.2.4" | ||
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.2.4.tgz#8610b59747de028fda898a8aef0e103f156d0961" | ||
integrity sha512-V+evlYHZnQkaz8TRBuxTA92yZBPotr5H+WhQ7bD3hZUndx5tGOa1fuCgeSjxAzM1RiN5IzvadIXTVefuuwZCRg== | ||
|
@@ -12312,6 +12312,11 @@ typescript@~3.2.2: | |
resolved "https://registry.yarnpkg.com/typescript/-/typescript-3.2.4.tgz#c585cb952912263d915b462726ce244ba510ef3d" | ||
integrity sha512-0RNDbSdEokBeEAkgNbxJ+BLwSManFy9TeXz8uW+48j/xhEXv1ePME60olyzw2XzUqUBNAYFeJadIqAgNqIACwg== | ||
|
||
typescript@~4.3.0-dev.20210510: | ||
version "4.3.0-dev.20210510" | ||
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.3.0-dev.20210510.tgz#a50dd4f9a6e616f82cb33148c7f5ee80cc07857b" | ||
integrity sha512-HR21ZkELulLWOHfHIA57/6rD1rkadgjyMp1TVeXQ5v82/rn0V3ROkAnd1elt+Mrjc2pTXcIwom7E/N5RCUUxMg== | ||
|
||
ua-parser-js@^0.7.23: | ||
version "0.7.28" | ||
resolved "https://registry.yarnpkg.com/ua-parser-js/-/ua-parser-js-0.7.28.tgz#8ba04e653f35ce210239c64661685bf9121dec31" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
/** | ||
* @license | ||
* Copyright Google LLC All Rights Reserved. | ||
* | ||
* Use of this source code is governed by an MIT-style license that can be | ||
* found in the LICENSE file at https://angular.io/license | ||
*/ | ||
|
||
|
||
|
||
import * as animations from '@angular/animations'; | ||
import * as animationsBrowser from '@angular/animations/browser'; | ||
import * as animationsBrowserTesting from '@angular/animations/browser/testing'; | ||
import * as common from '@angular/common'; | ||
import * as commonHttp from '@angular/common/http'; | ||
import * as commonTesting from '@angular/common/testing'; | ||
import * as commonHttpTesting from '@angular/common/testing'; | ||
import * as compiler from '@angular/compiler'; | ||
import * as compilerTesting from '@angular/compiler/testing'; | ||
import * as core from '@angular/core'; | ||
import * as coreTesting from '@angular/core/testing'; | ||
import * as elements from '@angular/elements'; | ||
import * as forms from '@angular/forms'; | ||
import * as platformBrowser from '@angular/platform-browser'; | ||
import * as platformBrowserDynamic from '@angular/platform-browser-dynamic'; | ||
import * as platformBrowserDynamicTesting from '@angular/platform-browser-dynamic/testing'; | ||
import * as platformBrowserAnimations from '@angular/platform-browser/animations'; | ||
import * as platformBrowserTesting from '@angular/platform-browser/testing'; | ||
import * as platformServer from '@angular/platform-server'; | ||
import * as platformServerInit from '@angular/platform-server/init'; | ||
import * as platformServerTesting from '@angular/platform-server/testing'; | ||
import * as router from '@angular/router'; | ||
import * as routerTesting from '@angular/router/testing'; | ||
import * as routerUpgrade from '@angular/router/upgrade'; | ||
import * as serviceWorker from '@angular/service-worker'; | ||
import * as upgrade from '@angular/upgrade'; | ||
import * as upgradeStatic from '@angular/upgrade/static'; | ||
import * as upgradeTesting from '@angular/upgrade/static/testing'; | ||
|
||
export default { | ||
animations, | ||
animationsBrowser, | ||
animationsBrowserTesting, | ||
common, | ||
commonTesting, | ||
commonHttp, | ||
commonHttpTesting, | ||
compiler, | ||
compilerTesting, | ||
core, | ||
coreTesting, | ||
elements, | ||
forms, | ||
platformBrowser, | ||
platformBrowserTesting, | ||
platformBrowserDynamic, | ||
platformBrowserDynamicTesting, | ||
platformBrowserAnimations, | ||
platformServer, | ||
platformServerInit, | ||
platformServerTesting, | ||
router, | ||
routerTesting, | ||
routerUpgrade, | ||
serviceWorker, | ||
upgrade, | ||
upgradeStatic, | ||
upgradeTesting, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ | ||
"name": "angular-integration", | ||
"description": "Assert that users with TypeScript 4.3 can type-check an Angular application", | ||
"version": "0.0.0", | ||
"license": "MIT", | ||
"dependencies": { | ||
"@angular/animations": "file:../../dist/packages-dist/animations", | ||
"@angular/common": "file:../../dist/packages-dist/common", | ||
"@angular/compiler": "file:../../dist/packages-dist/compiler", | ||
"@angular/compiler-cli": "file:../../dist/packages-dist/compiler-cli", | ||
"@angular/core": "file:../../dist/packages-dist/core", | ||
"@angular/elements": "file:../../dist/packages-dist/elements", | ||
"@angular/forms": "file:../../dist/packages-dist/forms", | ||
"@angular/platform-browser": "file:../../dist/packages-dist/platform-browser", | ||
"@angular/platform-browser-dynamic": "file:../../dist/packages-dist/platform-browser-dynamic", | ||
"@angular/platform-server": "file:../../dist/packages-dist/platform-server", | ||
"@angular/router": "file:../../dist/packages-dist/router", | ||
"@angular/service-worker": "file:../../dist/packages-dist/service-worker", | ||
"@angular/upgrade": "file:../../dist/packages-dist/upgrade", | ||
"@types/jasmine": "file:../../node_modules/@types/jasmine", | ||
"rxjs": "file:../../node_modules/rxjs", | ||
"typescript": "4.3.0-dev.20210510", | ||
"zone.js": "file:../../dist/zone.js-dist/archive/zone.js.tgz" | ||
}, | ||
"scripts": { | ||
"test": "tsc" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{ | ||
"compilerOptions": { | ||
"forceConsistentCasingInFileNames": true, | ||
"strict": true, | ||
"noImplicitReturns": true, | ||
"noFallthroughCasesInSwitch": true, | ||
"experimentalDecorators": true, | ||
"module": "commonjs", | ||
"moduleResolution": "node", | ||
"outDir": "./dist/out-tsc", | ||
"rootDir": ".", | ||
"target": "es5", | ||
"lib": [ | ||
"es5", | ||
"dom", | ||
"es2015.collection", | ||
"es2015.iterable", | ||
"es2015.promise" | ||
], | ||
"types": [], | ||
}, | ||
"files": [ | ||
"include-all.ts", | ||
"node_modules/@types/jasmine/index.d.ts" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.