build: update dependency typescript to ~4.8.0 (#47367)

See associated pull request for more information.

> **Note**
> This is a backport of #47293 to the `14.2.x` branch.

PR Close #47367
This commit is contained in:
George Kalpakas
2022-09-07 08:41:17 +03:00
committed by Andrew Kushnir
parent b75a37491e
commit 16ba9aaaef
14 changed files with 1872 additions and 1607 deletions
@@ -49,6 +49,6 @@
"supertest": "^6.0.0", "supertest": "^6.0.0",
"tslint": "^6.1.3", "tslint": "^6.1.3",
"tslint-jasmine-noSkipOrFocus": "^1.0.9", "tslint-jasmine-noSkipOrFocus": "^1.0.9",
"typescript": "~4.7.2" "typescript": "~4.8.0"
} }
} }
@@ -1668,10 +1668,10 @@ type-is@~1.6.18:
media-typer "0.3.0" media-typer "0.3.0"
mime-types "~2.1.24" mime-types "~2.1.24"
typescript@~4.7.2: typescript@~4.8.0:
version "4.7.4" version "4.8.2"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.7.4.tgz#1a88596d1cf47d59507a1bcdfb5b9dfe4d488235" resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.8.2.tgz#e3b33d5ccfb5914e4eeab6699cf208adee3fd790"
integrity sha512-C0WQT0gezHuw6AdY1M2jxUO83Rjf0HP7Sk1DtXj6j1EwkQNZrHAg2XPWlq62oqEhYvONq5pkC2Y9oPljWToLmQ== integrity sha512-C0I1UsrrDHo2fYI5oaCGbSejwX4ch+9Y5jTQELvovfmFkK3HHSZJB8MSJcWLmCUBzQBchCrZ9rMRV6GuNrvGtw==
unbox-primitive@^1.0.2: unbox-primitive@^1.0.2:
version "1.0.2" version "1.0.2"
+18 -18
View File
@@ -87,32 +87,32 @@
}, },
"private": true, "private": true,
"dependencies": { "dependencies": {
"@angular/animations": "^14.1.0-next", "@angular/animations": "^14.2.0",
"@angular/cdk": "^14.1.0-next", "@angular/cdk": "^14.2.0",
"@angular/common": "^14.1.0-next", "@angular/common": "^14.2.0",
"@angular/compiler": "^14.1.0-next", "@angular/compiler": "^14.2.0",
"@angular/core": "^14.1.0-next", "@angular/core": "^14.2.0",
"@angular/elements": "^14.1.0-next", "@angular/elements": "^14.2.0",
"@angular/forms": "^14.1.0-next", "@angular/forms": "^14.2.0",
"@angular/material": "^14.1.0-next", "@angular/material": "^14.2.0",
"@angular/platform-browser": "^14.1.0-next", "@angular/platform-browser": "^14.2.0",
"@angular/platform-browser-dynamic": "^14.1.0-next", "@angular/platform-browser-dynamic": "^14.2.0",
"@angular/router": "^14.1.0-next", "@angular/router": "^14.2.0",
"@angular/service-worker": "^14.1.0-next", "@angular/service-worker": "^14.2.0",
"rxjs": "~7.5.0", "rxjs": "~7.5.0",
"safevalues": "^0.3.1", "safevalues": "^0.3.1",
"tslib": "^2.3.0", "tslib": "^2.3.0",
"zone.js": "~0.11.4" "zone.js": "~0.11.4"
}, },
"devDependencies": { "devDependencies": {
"@angular-devkit/architect-cli": "0.1401.0-rc.3", "@angular-devkit/architect-cli": "0.1402.1",
"@angular-devkit/build-angular": "^14.1.0-next", "@angular-devkit/build-angular": "^14.2.1",
"@angular-eslint/builder": "^14.0.0", "@angular-eslint/builder": "^14.0.0",
"@angular-eslint/eslint-plugin": "^14.0.0", "@angular-eslint/eslint-plugin": "^14.0.0",
"@angular-eslint/eslint-plugin-template": "^14.0.0", "@angular-eslint/eslint-plugin-template": "^14.0.0",
"@angular-eslint/template-parser": "^14.0.0", "@angular-eslint/template-parser": "^14.0.0",
"@angular/cli": "~14.0.0", "@angular/cli": "^14.2.1",
"@angular/compiler-cli": "^14.1.0-next", "@angular/compiler-cli": "^14.2.0",
"@bazel/bazelisk": "^1.7.5", "@bazel/bazelisk": "^1.7.5",
"@types/jasmine": "~4.0.0", "@types/jasmine": "~4.0.0",
"@types/lunr": "^2.3.3", "@types/lunr": "^2.3.3",
@@ -131,7 +131,7 @@
"cross-spawn": "^7.0.3", "cross-spawn": "^7.0.3",
"css-selector-parser": "^1.4.1", "css-selector-parser": "^1.4.1",
"dgeni": "^0.4.14", "dgeni": "^0.4.14",
"dgeni-packages": "^0.29.3", "dgeni-packages": "^0.29.5",
"entities": "^4.0.0", "entities": "^4.0.0",
"eslint": "^8.0.0", "eslint": "^8.0.0",
"eslint-plugin-import": "^2.23.4", "eslint-plugin-import": "^2.23.4",
@@ -178,7 +178,7 @@
"ts-node": "^10.8.1", "ts-node": "^10.8.1",
"tsec": "^0.2.2", "tsec": "^0.2.2",
"tslint": "~6.1.3", "tslint": "~6.1.3",
"typescript": "~4.7.2", "typescript": "~4.8.0",
"uglify-js": "^3.13.3", "uglify-js": "^3.13.3",
"unist-util-filter": "^2.0.3", "unist-util-filter": "^2.0.3",
"unist-util-source": "^3.0.0", "unist-util-source": "^3.0.0",
@@ -13,14 +13,14 @@
}, },
"private": true, "private": true,
"dependencies": { "dependencies": {
"@angular/animations": "^14.1.0-next", "@angular/animations": "^14.2.0",
"@angular/common": "^14.1.0-next", "@angular/common": "^14.2.0",
"@angular/compiler": "^14.1.0-next", "@angular/compiler": "^14.2.0",
"@angular/core": "^14.1.0-next", "@angular/core": "^14.2.0",
"@angular/forms": "^14.1.0-next", "@angular/forms": "^14.2.0",
"@angular/platform-browser": "^14.1.0-next", "@angular/platform-browser": "^14.2.0",
"@angular/platform-browser-dynamic": "^14.1.0-next", "@angular/platform-browser-dynamic": "^14.2.0",
"@angular/router": "^14.1.0-next", "@angular/router": "^14.2.0",
"angular": "^1.8.3", "angular": "^1.8.3",
"angular-in-memory-web-api": "~0.14.0", "angular-in-memory-web-api": "~0.14.0",
"angular-route": "1.8.3", "angular-route": "1.8.3",
@@ -29,9 +29,9 @@
"zone.js": "~0.11.4" "zone.js": "~0.11.4"
}, },
"devDependencies": { "devDependencies": {
"@angular-devkit/build-angular": "^14.1.0-next", "@angular-devkit/build-angular": "^14.2.1",
"@angular/cli": "~14.0.0", "@angular/cli": "^14.2.1",
"@angular/compiler-cli": "^14.1.0-next", "@angular/compiler-cli": "^14.2.0",
"@types/angular": "^1.8.4", "@types/angular": "^1.8.4",
"@types/angular-route": "^1.7.2", "@types/angular-route": "^1.7.2",
"@types/jasmine": "~4.0.0", "@types/jasmine": "~4.0.0",
@@ -46,6 +46,6 @@
"karma-jasmine-html-reporter": "~2.0.0", "karma-jasmine-html-reporter": "~2.0.0",
"protractor": "~7.0.0", "protractor": "~7.0.0",
"ts-node": "~10.9.0", "ts-node": "~10.9.0",
"typescript": "~4.7.2" "typescript": "~4.8.0"
} }
} }
@@ -13,23 +13,23 @@
}, },
"private": true, "private": true,
"dependencies": { "dependencies": {
"@angular/animations": "^14.1.0-next", "@angular/animations": "^14.2.0",
"@angular/common": "^14.1.0-next", "@angular/common": "^14.2.0",
"@angular/compiler": "^14.1.0-next", "@angular/compiler": "^14.2.0",
"@angular/core": "^14.1.0-next", "@angular/core": "^14.2.0",
"@angular/forms": "^14.1.0-next", "@angular/forms": "^14.2.0",
"@angular/platform-browser": "^14.1.0-next", "@angular/platform-browser": "^14.2.0",
"@angular/platform-browser-dynamic": "^14.1.0-next", "@angular/platform-browser-dynamic": "^14.2.0",
"@angular/router": "^14.1.0-next", "@angular/router": "^14.2.0",
"angular-in-memory-web-api": "~0.14.0", "angular-in-memory-web-api": "~0.14.0",
"rxjs": "~7.5.0", "rxjs": "~7.5.0",
"tslib": "^2.3.0", "tslib": "^2.3.0",
"zone.js": "~0.11.4" "zone.js": "~0.11.4"
}, },
"devDependencies": { "devDependencies": {
"@angular-devkit/build-angular": "^14.1.0-next", "@angular-devkit/build-angular": "^14.2.1",
"@angular/cli": "~14.0.0", "@angular/cli": "^14.2.1",
"@angular/compiler-cli": "^14.1.0-next", "@angular/compiler-cli": "^14.2.0",
"@types/jasmine": "~4.0.0", "@types/jasmine": "~4.0.0",
"@types/node": "^16.11.35", "@types/node": "^16.11.35",
"copyfiles": "^2.4.1", "copyfiles": "^2.4.1",
@@ -43,6 +43,6 @@
"karma-jasmine-html-reporter": "~2.0.0", "karma-jasmine-html-reporter": "~2.0.0",
"protractor": "~7.0.0", "protractor": "~7.0.0",
"ts-node": "~10.9.0", "ts-node": "~10.9.0",
"typescript": "~4.7.2" "typescript": "~4.8.0"
} }
} }
@@ -13,24 +13,24 @@
}, },
"private": true, "private": true,
"dependencies": { "dependencies": {
"@angular/animations": "^14.1.0-next", "@angular/animations": "^14.2.0",
"@angular/common": "^14.1.0-next", "@angular/common": "^14.2.0",
"@angular/compiler": "^14.1.0-next", "@angular/compiler": "^14.2.0",
"@angular/core": "^14.1.0-next", "@angular/core": "^14.2.0",
"@angular/elements": "^14.1.0-next", "@angular/elements": "^14.2.0",
"@angular/forms": "^14.1.0-next", "@angular/forms": "^14.2.0",
"@angular/platform-browser": "^14.1.0-next", "@angular/platform-browser": "^14.2.0",
"@angular/platform-browser-dynamic": "^14.1.0-next", "@angular/platform-browser-dynamic": "^14.2.0",
"@angular/router": "^14.1.0-next", "@angular/router": "^14.2.0",
"angular-in-memory-web-api": "~0.14.0", "angular-in-memory-web-api": "~0.14.0",
"rxjs": "~7.5.0", "rxjs": "~7.5.0",
"tslib": "^2.3.0", "tslib": "^2.3.0",
"zone.js": "~0.11.4" "zone.js": "~0.11.4"
}, },
"devDependencies": { "devDependencies": {
"@angular-devkit/build-angular": "^14.1.0-next", "@angular-devkit/build-angular": "^14.2.1",
"@angular/cli": "~14.0.0", "@angular/cli": "^14.2.1",
"@angular/compiler-cli": "^14.1.0-next", "@angular/compiler-cli": "^14.2.0",
"@types/jasmine": "~4.0.0", "@types/jasmine": "~4.0.0",
"@types/node": "^16.11.35", "@types/node": "^16.11.35",
"jasmine-core": "~4.3.0", "jasmine-core": "~4.3.0",
@@ -43,6 +43,6 @@
"karma-jasmine-html-reporter": "~2.0.0", "karma-jasmine-html-reporter": "~2.0.0",
"protractor": "~7.0.0", "protractor": "~7.0.0",
"ts-node": "~10.9.0", "ts-node": "~10.9.0",
"typescript": "~4.7.2" "typescript": "~4.8.0"
} }
} }
@@ -15,24 +15,24 @@
}, },
"private": true, "private": true,
"dependencies": { "dependencies": {
"@angular/animations": "^14.1.0-next", "@angular/animations": "^14.2.0",
"@angular/common": "^14.1.0-next", "@angular/common": "^14.2.0",
"@angular/compiler": "^14.1.0-next", "@angular/compiler": "^14.2.0",
"@angular/core": "^14.1.0-next", "@angular/core": "^14.2.0",
"@angular/forms": "^14.1.0-next", "@angular/forms": "^14.2.0",
"@angular/localize": "^14.1.0-next", "@angular/localize": "^14.2.0",
"@angular/platform-browser": "^14.1.0-next", "@angular/platform-browser": "^14.2.0",
"@angular/platform-browser-dynamic": "^14.1.0-next", "@angular/platform-browser-dynamic": "^14.2.0",
"@angular/router": "^14.1.0-next", "@angular/router": "^14.2.0",
"angular-in-memory-web-api": "~0.14.0", "angular-in-memory-web-api": "~0.14.0",
"rxjs": "~7.5.0", "rxjs": "~7.5.0",
"tslib": "^2.3.0", "tslib": "^2.3.0",
"zone.js": "~0.11.4" "zone.js": "~0.11.4"
}, },
"devDependencies": { "devDependencies": {
"@angular-devkit/build-angular": "^14.1.0-next", "@angular-devkit/build-angular": "^14.2.1",
"@angular/cli": "~14.0.0", "@angular/cli": "^14.2.1",
"@angular/compiler-cli": "^14.1.0-next", "@angular/compiler-cli": "^14.2.0",
"@types/jasmine": "~4.0.0", "@types/jasmine": "~4.0.0",
"@types/node": "^16.11.35", "@types/node": "^16.11.35",
"jasmine-core": "~4.3.0", "jasmine-core": "~4.3.0",
@@ -45,6 +45,6 @@
"karma-jasmine-html-reporter": "~2.0.0", "karma-jasmine-html-reporter": "~2.0.0",
"protractor": "~7.0.0", "protractor": "~7.0.0",
"ts-node": "~10.9.0", "ts-node": "~10.9.0",
"typescript": "~4.7.2" "typescript": "~4.8.0"
} }
} }
@@ -13,24 +13,24 @@
}, },
"private": true, "private": true,
"dependencies": { "dependencies": {
"@angular/animations": "^14.1.0-next", "@angular/animations": "^14.2.0",
"@angular/common": "^14.1.0-next", "@angular/common": "^14.2.0",
"@angular/compiler": "^14.1.0-next", "@angular/compiler": "^14.2.0",
"@angular/core": "^14.1.0-next", "@angular/core": "^14.2.0",
"@angular/forms": "^14.1.0-next", "@angular/forms": "^14.2.0",
"@angular/platform-browser": "^14.1.0-next", "@angular/platform-browser": "^14.2.0",
"@angular/platform-browser-dynamic": "^14.1.0-next", "@angular/platform-browser-dynamic": "^14.2.0",
"@angular/router": "^14.1.0-next", "@angular/router": "^14.2.0",
"@angular/service-worker": "^14.1.0-next", "@angular/service-worker": "^14.2.0",
"angular-in-memory-web-api": "~0.14.0", "angular-in-memory-web-api": "~0.14.0",
"rxjs": "~7.5.0", "rxjs": "~7.5.0",
"tslib": "^2.3.0", "tslib": "^2.3.0",
"zone.js": "~0.11.4" "zone.js": "~0.11.4"
}, },
"devDependencies": { "devDependencies": {
"@angular-devkit/build-angular": "^14.1.0-next", "@angular-devkit/build-angular": "^14.2.1",
"@angular/cli": "~14.0.0", "@angular/cli": "^14.2.1",
"@angular/compiler-cli": "^14.1.0-next", "@angular/compiler-cli": "^14.2.0",
"@types/jasmine": "~4.0.0", "@types/jasmine": "~4.0.0",
"@types/node": "^16.11.35", "@types/node": "^16.11.35",
"jasmine-core": "~4.3.0", "jasmine-core": "~4.3.0",
@@ -43,6 +43,6 @@
"karma-jasmine-html-reporter": "~2.0.0", "karma-jasmine-html-reporter": "~2.0.0",
"protractor": "~7.0.0", "protractor": "~7.0.0",
"ts-node": "~10.9.0", "ts-node": "~10.9.0",
"typescript": "~4.7.2" "typescript": "~4.8.0"
} }
} }
@@ -25,15 +25,15 @@
}, },
"private": true, "private": true,
"dependencies": { "dependencies": {
"@angular/animations": "^14.1.0-next", "@angular/animations": "^14.2.0",
"@angular/common": "^14.1.0-next", "@angular/common": "^14.2.0",
"@angular/compiler": "^14.1.0-next", "@angular/compiler": "^14.2.0",
"@angular/core": "^14.1.0-next", "@angular/core": "^14.2.0",
"@angular/forms": "^14.1.0-next", "@angular/forms": "^14.2.0",
"@angular/platform-browser": "^14.1.0-next", "@angular/platform-browser": "^14.2.0",
"@angular/platform-browser-dynamic": "^14.1.0-next", "@angular/platform-browser-dynamic": "^14.2.0",
"@angular/router": "^14.1.0-next", "@angular/router": "^14.2.0",
"@angular/upgrade": "^14.1.0-next", "@angular/upgrade": "^14.2.0",
"core-js": "^2.5.4", "core-js": "^2.5.4",
"rxjs": "~7.5.0", "rxjs": "~7.5.0",
"systemjs": "~0.19.39", "systemjs": "~0.19.39",
@@ -42,7 +42,7 @@
"zone.js": "~0.11.4" "zone.js": "~0.11.4"
}, },
"devDependencies": { "devDependencies": {
"@angular/compiler-cli": "^14.1.0-next", "@angular/compiler-cli": "^14.2.0",
"@rollup/plugin-commonjs": "^22.0.0", "@rollup/plugin-commonjs": "^22.0.0",
"@rollup/plugin-node-resolve": "^13.2.0", "@rollup/plugin-node-resolve": "^13.2.0",
"@types/angular": "^1.8.4", "@types/angular": "^1.8.4",
@@ -63,6 +63,6 @@
"protractor": "~7.0.0", "protractor": "~7.0.0",
"rollup": "^2.70.1", "rollup": "^2.70.1",
"rollup-plugin-terser": "^7.0.2", "rollup-plugin-terser": "^7.0.2",
"typescript": "~4.7.2" "typescript": "~4.8.0"
} }
} }
@@ -17,15 +17,15 @@
}, },
"private": true, "private": true,
"dependencies": { "dependencies": {
"@angular/animations": "^14.1.0-next", "@angular/animations": "^14.2.0",
"@angular/common": "^14.1.0-next", "@angular/common": "^14.2.0",
"@angular/compiler": "^14.1.0-next", "@angular/compiler": "^14.2.0",
"@angular/core": "^14.1.0-next", "@angular/core": "^14.2.0",
"@angular/forms": "^14.1.0-next", "@angular/forms": "^14.2.0",
"@angular/platform-browser": "^14.1.0-next", "@angular/platform-browser": "^14.2.0",
"@angular/platform-browser-dynamic": "^14.1.0-next", "@angular/platform-browser-dynamic": "^14.2.0",
"@angular/platform-server": "^14.1.0-next", "@angular/platform-server": "^14.2.0",
"@angular/router": "^14.1.0-next", "@angular/router": "^14.2.0",
"@nguniversal/express-engine": "~14.0.0", "@nguniversal/express-engine": "~14.0.0",
"angular-in-memory-web-api": "~0.14.0", "angular-in-memory-web-api": "~0.14.0",
"express": "^4.18.1", "express": "^4.18.1",
@@ -34,9 +34,9 @@
"zone.js": "~0.11.4" "zone.js": "~0.11.4"
}, },
"devDependencies": { "devDependencies": {
"@angular-devkit/build-angular": "^14.1.0-next", "@angular-devkit/build-angular": "^14.2.1",
"@angular/cli": "~14.0.0", "@angular/cli": "^14.2.1",
"@angular/compiler-cli": "^14.1.0-next", "@angular/compiler-cli": "^14.2.0",
"@nguniversal/builders": "~14.0.0", "@nguniversal/builders": "~14.0.0",
"@types/express": "^4.17.13", "@types/express": "^4.17.13",
"@types/jasmine": "~4.0.0", "@types/jasmine": "~4.0.0",
@@ -51,6 +51,6 @@
"karma-jasmine-html-reporter": "~2.0.0", "karma-jasmine-html-reporter": "~2.0.0",
"protractor": "~7.0.0", "protractor": "~7.0.0",
"ts-node": "~10.9.0", "ts-node": "~10.9.0",
"typescript": "~4.7.2" "typescript": "~4.8.0"
} }
} }
+17 -17
View File
@@ -21,19 +21,19 @@
"license": "MIT", "license": "MIT",
"repository": {}, "repository": {},
"dependencies": { "dependencies": {
"@angular/animations": "^14.1.0-next", "@angular/animations": "^14.2.0",
"@angular/common": "^14.1.0-next", "@angular/common": "^14.2.0",
"@angular/compiler": "^14.1.0-next", "@angular/compiler": "^14.2.0",
"@angular/core": "^14.1.0-next", "@angular/core": "^14.2.0",
"@angular/elements": "^14.1.0-next", "@angular/elements": "^14.2.0",
"@angular/forms": "^14.1.0-next", "@angular/forms": "^14.2.0",
"@angular/localize": "^14.1.0-next", "@angular/localize": "^14.2.0",
"@angular/platform-browser": "^14.1.0-next", "@angular/platform-browser": "^14.2.0",
"@angular/platform-browser-dynamic": "^14.1.0-next", "@angular/platform-browser-dynamic": "^14.2.0",
"@angular/platform-server": "^14.1.0-next", "@angular/platform-server": "^14.2.0",
"@angular/router": "^14.1.0-next", "@angular/router": "^14.2.0",
"@angular/service-worker": "^14.1.0-next", "@angular/service-worker": "^14.2.0",
"@angular/upgrade": "^14.1.0-next", "@angular/upgrade": "^14.2.0",
"@nguniversal/express-engine": "~14.0.0", "@nguniversal/express-engine": "~14.0.0",
"angular": "^1.8.3", "angular": "^1.8.3",
"angular-in-memory-web-api": "~0.14.0", "angular-in-memory-web-api": "~0.14.0",
@@ -47,9 +47,9 @@
"zone.js": "~0.11.4" "zone.js": "~0.11.4"
}, },
"devDependencies": { "devDependencies": {
"@angular-devkit/build-angular": "^14.1.0-next", "@angular-devkit/build-angular": "^14.2.1",
"@angular/cli": "~14.0.0", "@angular/cli": "^14.2.1",
"@angular/compiler-cli": "^14.1.0-next", "@angular/compiler-cli": "^14.2.0",
"@nguniversal/builders": "~14.0.0", "@nguniversal/builders": "~14.0.0",
"@rollup/plugin-commonjs": "^22.0.0", "@rollup/plugin-commonjs": "^22.0.0",
"@rollup/plugin-node-resolve": "^13.2.0", "@rollup/plugin-node-resolve": "^13.2.0",
@@ -83,6 +83,6 @@
"rollup-plugin-terser": "^7.0.2", "rollup-plugin-terser": "^7.0.2",
"source-map-explorer": "^2.0.0", "source-map-explorer": "^2.0.0",
"ts-node": "~10.9.0", "ts-node": "~10.9.0",
"typescript": "~4.7.2" "typescript": "~4.8.0"
} }
} }
File diff suppressed because it is too large Load Diff
@@ -1,5 +1,5 @@
/* eslint jasmine/prefer-toHaveBeenCalledWith:0 */ /* eslint jasmine/prefer-toHaveBeenCalledWith:0 */
const fs = require('fs'); const fs = require('fs/promises');
const {resolve} = require('canonical-path'); const {resolve} = require('canonical-path');
const {generateDocs} = require('./index.js'); const {generateDocs} = require('./index.js');
const { DOCS_OUTPUT_PATH } = require('../config'); const { DOCS_OUTPUT_PATH } = require('../config');
@@ -17,10 +17,7 @@ describe('authors-package (integration tests)', () => {
beforeEach(() => { beforeEach(() => {
files = []; files = [];
spyOn(fs, 'writeFile').and.callFake((file, content, callback) => { spyOn(fs, 'writeFile').and.callFake(async file => files.push(file));
files.push(file);
callback();
});
}); });
it('should generate marketing docs if the "fileChanged" is a marketing doc', () => { it('should generate marketing docs if the "fileChanged" is a marketing doc', () => {
+886 -918
View File
File diff suppressed because it is too large Load Diff