Skip to content

Commit d2e9edd

Browse files
crisbetodgp1130
authored andcommitted
build: update to TypeScript 4.7 final
Bumps up the TypeScript 4.7 for our own build as well as any newly-created apps.
1 parent b485e48 commit d2e9edd

File tree

9 files changed

+24
-26
lines changed

9 files changed

+24
-26
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@
209209
"tree-kill": "1.2.2",
210210
"ts-node": "^10.0.0",
211211
"tslib": "2.4.0",
212-
"typescript": "4.7.1-rc",
212+
"typescript": "~4.7.2",
213213
"verdaccio": "5.10.2",
214214
"verdaccio-auth-memory": "^10.0.0",
215215
"webpack": "5.72.1",

packages/angular_devkit/schematics_cli/blank/project-files/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"dependencies": {
1616
"@angular-devkit/core": "^<%= coreVersion %>",
1717
"@angular-devkit/schematics": "^<%= schematicsVersion %>",
18-
"typescript": "~4.6.2"
18+
"typescript": "~4.7.2"
1919
},
2020
"devDependencies": {
2121
"@types/node": "^14.15.0",

packages/angular_devkit/schematics_cli/schematic/files/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"dependencies": {
1616
"@angular-devkit/core": "^<%= coreVersion %>",
1717
"@angular-devkit/schematics": "^<%= schematicsVersion %>",
18-
"typescript": "~4.6.2"
18+
"typescript": "~4.7.2"
1919
},
2020
"devDependencies": {
2121
"@types/node": "^14.15.0",

packages/ngtools/webpack/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"@angular-devkit/core": "0.0.0-PLACEHOLDER",
3131
"@angular/compiler": "14.0.0-rc.1",
3232
"@angular/compiler-cli": "14.0.0-rc.1",
33-
"typescript": "4.7.1-rc",
33+
"typescript": "~4.7.2",
3434
"webpack": "5.72.1"
3535
}
3636
}

packages/schematics/angular/third_party/github.com/Microsoft/TypeScript/BUILD.bazel

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
load("//tools:defaults.bzl", "ts_library")
22

3-
# files fetched on 2022-05-06 from
4-
# https://github.com/microsoft/TypeScript/releases/tag/v4.7-rc
3+
# files fetched on 2022-05-25 from
4+
# https://github.com/microsoft/TypeScript/releases/tag/v4.7.2
55

66
# Commands to download:
7-
# curl https://raw.githubusercontent.com/microsoft/TypeScript/v4.7-rc/lib/typescript.d.ts -o packages/schematics/angular/third_party/github.com/Microsoft/TypeScript/lib/typescript.d.ts
8-
# curl https://raw.githubusercontent.com/microsoft/TypeScript/v4.7-rc/lib/typescript.js -o packages/schematics/angular/third_party/github.com/Microsoft/TypeScript/lib/typescript.js
7+
# curl https://raw.githubusercontent.com/microsoft/TypeScript/v4.7.2/lib/typescript.d.ts -o packages/schematics/angular/third_party/github.com/Microsoft/TypeScript/lib/typescript.d.ts
8+
# curl https://raw.githubusercontent.com/microsoft/TypeScript/v4.7.2/lib/typescript.js -o packages/schematics/angular/third_party/github.com/Microsoft/TypeScript/lib/typescript.js
99

1010
licenses(["notice"]) # Apache 2.0
1111

packages/schematics/angular/third_party/github.com/Microsoft/TypeScript/lib/typescript.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ var ts;
294294
// The following is baselined as a literal template type without intervention
295295
/** The version of the TypeScript compiler release */
296296
// eslint-disable-next-line @typescript-eslint/no-inferrable-types
297-
ts.version = "".concat(ts.versionMajorMinor, ".1-rc");
297+
ts.version = "4.7.2";
298298
/* @internal */
299299
var Comparison;
300300
(function (Comparison) {
@@ -59090,9 +59090,9 @@ var ts;
5909059090
t.flags & 2097152 /* TypeFlags.Intersection */ ? getApparentTypeOfIntersectionType(t) :
5909159091
t.flags & 402653316 /* TypeFlags.StringLike */ ? globalStringType :
5909259092
t.flags & 296 /* TypeFlags.NumberLike */ ? globalNumberType :
59093-
t.flags & 2112 /* TypeFlags.BigIntLike */ ? getGlobalBigIntType(/*reportErrors*/ languageVersion >= 7 /* ScriptTarget.ES2020 */) :
59093+
t.flags & 2112 /* TypeFlags.BigIntLike */ ? getGlobalBigIntType() :
5909459094
t.flags & 528 /* TypeFlags.BooleanLike */ ? globalBooleanType :
59095-
t.flags & 12288 /* TypeFlags.ESSymbolLike */ ? getGlobalESSymbolType(/*reportErrors*/ languageVersion >= 2 /* ScriptTarget.ES2015 */) :
59095+
t.flags & 12288 /* TypeFlags.ESSymbolLike */ ? getGlobalESSymbolType() :
5909659096
t.flags & 67108864 /* TypeFlags.NonPrimitive */ ? emptyObjectType :
5909759097
t.flags & 4194304 /* TypeFlags.Index */ ? keyofConstraintType :
5909859098
t.flags & 2 /* TypeFlags.Unknown */ && !strictNullChecks ? emptyObjectType :
@@ -60667,8 +60667,8 @@ var ts;
6066760667
function getGlobalESSymbolConstructorTypeSymbol(reportErrors) {
6066860668
return deferredGlobalESSymbolConstructorTypeSymbol || (deferredGlobalESSymbolConstructorTypeSymbol = getGlobalTypeSymbol("SymbolConstructor", reportErrors));
6066960669
}
60670-
function getGlobalESSymbolType(reportErrors) {
60671-
return (deferredGlobalESSymbolType || (deferredGlobalESSymbolType = getGlobalType("Symbol", /*arity*/ 0, reportErrors))) || emptyObjectType;
60670+
function getGlobalESSymbolType() {
60671+
return (deferredGlobalESSymbolType || (deferredGlobalESSymbolType = getGlobalType("Symbol", /*arity*/ 0, /*reportErrors*/ false))) || emptyObjectType;
6067260672
}
6067360673
function getGlobalPromiseType(reportErrors) {
6067460674
return (deferredGlobalPromiseType || (deferredGlobalPromiseType = getGlobalType("Promise", /*arity*/ 1, reportErrors))) || emptyGenericType;
@@ -60732,8 +60732,8 @@ var ts;
6073260732
deferredGlobalAwaitedSymbol || (deferredGlobalAwaitedSymbol = getGlobalTypeAliasSymbol("Awaited", /*arity*/ 1, reportErrors) || (reportErrors ? unknownSymbol : undefined));
6073360733
return deferredGlobalAwaitedSymbol === unknownSymbol ? undefined : deferredGlobalAwaitedSymbol;
6073460734
}
60735-
function getGlobalBigIntType(reportErrors) {
60736-
return (deferredGlobalBigIntType || (deferredGlobalBigIntType = getGlobalType("BigInt", /*arity*/ 0, reportErrors))) || emptyObjectType;
60735+
function getGlobalBigIntType() {
60736+
return (deferredGlobalBigIntType || (deferredGlobalBigIntType = getGlobalType("BigInt", /*arity*/ 0, /*reportErrors*/ false))) || emptyObjectType;
6073760737
}
6073860738
/**
6073960739
* Instantiates a global type that is generic with some element type, and returns that instantiation.
@@ -64885,7 +64885,7 @@ var ts;
6488564885
if ((globalStringType === source && stringType === target) ||
6488664886
(globalNumberType === source && numberType === target) ||
6488764887
(globalBooleanType === source && booleanType === target) ||
64888-
(getGlobalESSymbolType(/*reportErrors*/ false) === source && esSymbolType === target)) {
64888+
(getGlobalESSymbolType() === source && esSymbolType === target)) {
6488964889
reportError(ts.Diagnostics._0_is_a_primitive_but_1_is_a_wrapper_object_Prefer_using_0_when_possible, targetType, sourceType);
6489064890
}
6489164891
}
@@ -82697,7 +82697,7 @@ var ts;
8269782697
var childSymbol = getSymbolAtLocation(childNode);
8269882698
if (childSymbol && childSymbol === testedSymbol) {
8269982699
// If the test was a simple identifier, the above check is sufficient
82700-
if (ts.isIdentifier(expr)) {
82700+
if (ts.isIdentifier(expr) || ts.isIdentifier(testedNode) && ts.isBinaryExpression(testedNode.parent)) {
8270182701
return true;
8270282702
}
8270382703
// Otherwise we need to ensure the symbol is called on the same target

packages/schematics/angular/utility/latest-versions/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"rxjs": "~7.5.0",
1616
"tslib": "^2.3.0",
1717
"ts-node": "~10.8.0",
18-
"typescript": "~4.6.2",
18+
"typescript": "~4.7.2",
1919
"zone.js": "~0.11.4"
2020
}
2121
}

tests/legacy-cli/e2e/assets/webpack/test-app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"devDependencies": {
1818
"sass": "^1.32.8",
1919
"sass-loader": "^11.0.1",
20-
"typescript": "~4.6.2",
20+
"typescript": "~4.7.2",
2121
"webpack": "^5.27.0",
2222
"webpack-cli": "^4.5.0"
2323
}

yarn.lock

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,6 @@
177177

178178
"@angular/dev-infra-private@https://github.com/angular/dev-infra-private-builds.git#6ee7dd89d71cbdfbd9144e1b84f2090b445e180b":
179179
version "0.0.0-2a50bf4f37f041d8b88c743fae45d09b400e917e"
180-
uid "6ee7dd89d71cbdfbd9144e1b84f2090b445e180b"
181180
resolved "https://github.com/angular/dev-infra-private-builds.git#6ee7dd89d71cbdfbd9144e1b84f2090b445e180b"
182181
dependencies:
183182
"@angular-devkit/build-angular" "14.0.0-rc.1"
@@ -9405,7 +9404,6 @@ sass@1.52.1, sass@^1.49.9:
94059404

94069405
"sauce-connect-proxy@https://saucelabs.com/downloads/sc-4.7.1-linux.tar.gz":
94079406
version "0.0.0"
9408-
uid e5d7f82ad98251a653d1b0537f1103e49eda5e11
94099407
resolved "https://saucelabs.com/downloads/sc-4.7.1-linux.tar.gz#e5d7f82ad98251a653d1b0537f1103e49eda5e11"
94109408

94119409
saucelabs@^1.5.0:
@@ -10531,16 +10529,16 @@ typedarray@^0.0.6:
1053110529
resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777"
1053210530
integrity sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=
1053310531

10534-
typescript@4.7.1-rc:
10535-
version "4.7.1-rc"
10536-
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.7.1-rc.tgz#23a0517d36c56de887b4457f29e2d265647bbd7c"
10537-
integrity sha512-EQd2NVelDe6ZVc2sO1CSpuSs+RHzY8c2n/kTNQAHw4um/eAXY+ZY4IKoUpNK0wO6C5hN+XcUXR7yqT8VbwwNIQ==
10538-
1053910532
typescript@^4.6.2, typescript@~4.6.2, typescript@~4.6.3:
1054010533
version "4.6.4"
1054110534
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.6.4.tgz#caa78bbc3a59e6a5c510d35703f6a09877ce45e9"
1054210535
integrity sha512-9ia/jWHIEbo49HfjrLGfKbZSuWo9iTMwXO+Ca3pRsSpbsMbc7/IU8NKdCZVRRBafVPGnoJeFL76ZOAA84I9fEg==
1054310536

10537+
typescript@~4.7.2:
10538+
version "4.7.2"
10539+
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.7.2.tgz#1f9aa2ceb9af87cca227813b4310fff0b51593c4"
10540+
integrity sha512-Mamb1iX2FDUpcTRzltPxgWMKy3fhg0TN378ylbktPGPK/99KbDtMQ4W1hwgsbPAsG3a0xKa1vmw4VKZQbkvz5A==
10541+
1054410542
ua-parser-js@1.0.2:
1054510543
version "1.0.2"
1054610544
resolved "https://registry.yarnpkg.com/ua-parser-js/-/ua-parser-js-1.0.2.tgz#e2976c34dbfb30b15d2c300b2a53eac87c57a775"

0 commit comments

Comments
 (0)