From ccc8c80cd034c8f1742ddd43d6ec825f3b9f65bf Mon Sep 17 00:00:00 2001 From: Kristiyan Kostadinov Date: Mon, 24 Jun 2024 10:58:53 +0200 Subject: [PATCH] build: update to TypeScript 5.5 stable (#56358) Updates the repo to the stable release of TypeScript 5.5. PR Close #56358 --- .../platform-browser-dynamic/index.api.md | 2 +- .../testing/index.api.md | 2 +- .../platform-browser/testing/index.api.md | 2 +- .../platform-server/testing/index.api.md | 2 +- integration/typings_test_ts55/package.json | 4 +- integration/typings_test_ts55/yarn.lock | 91 +++++++++--------- package.json | 2 +- .../ngtsc/file_system/src/compiler_host.ts | 11 +-- packages/compiler-cli/src/ngtsc/program.ts | 4 - .../src/ts_create_program_driver.ts | 17 +--- packages/compiler-cli/src/ngtsc/tsc_plugin.ts | 1 - .../src/ngtsc/typecheck/testing/BUILD.bazel | 1 + .../src/ngtsc/typecheck/testing/index.ts | 15 ++- .../test_cases/model_inputs/GOLDEN_PARTIAL.js | 6 +- .../output_function/GOLDEN_PARTIAL.js | 6 +- .../GOLDEN_PARTIAL.js | 10 +- .../content_projection/GOLDEN_PARTIAL.js | 6 +- .../custom_decorator_es5.js | 2 +- .../pipes/GOLDEN_PARTIAL.js | 2 +- .../queries/GOLDEN_PARTIAL.js | 18 ++-- .../signals/GOLDEN_PARTIAL.js | 6 +- .../standalone/GOLDEN_PARTIAL.js | 32 +++---- .../ng_modules/GOLDEN_PARTIAL.js | 2 +- .../r3_view_compiler/GOLDEN_PARTIAL.js | 2 +- .../GOLDEN_PARTIAL.js | 4 +- .../attribute_bindings/GOLDEN_PARTIAL.js | 2 +- .../host_bindings/GOLDEN_PARTIAL.js | 42 ++++---- .../property_bindings/GOLDEN_PARTIAL.js | 2 +- .../GOLDEN_PARTIAL.js | 86 ++++++++--------- .../GOLDEN_PARTIAL.js | 40 ++++---- .../host_directives/GOLDEN_PARTIAL.js | 20 ++-- .../matching/GOLDEN_PARTIAL.js | 2 +- .../r3_view_compiler_i18n/GOLDEN_PARTIAL.js | 6 +- .../element_attributes/GOLDEN_PARTIAL.js | 2 +- .../es5_support/GOLDEN_PARTIAL.js | 2 +- .../icu_logic/GOLDEN_PARTIAL.js | 8 +- .../namespaces/GOLDEN_PARTIAL.js | 4 +- .../nested_nodes/GOLDEN_PARTIAL.js | 22 ++--- .../GOLDEN_PARTIAL.js | 26 ++--- .../GOLDEN_PARTIAL.js | 8 +- .../GOLDEN_PARTIAL.js | 2 +- .../r3_view_compiler_let/GOLDEN_PARTIAL.js | 34 +++---- .../GOLDEN_PARTIAL.js | 18 ++-- .../component_animations/GOLDEN_PARTIAL.js | 4 +- .../host_bindings/GOLDEN_PARTIAL.js | 8 +- .../style_bindings/GOLDEN_PARTIAL.js | 2 +- .../GOLDEN_PARTIAL.js | 34 +++---- .../signal_inputs/GOLDEN_PARTIAL.js | 14 +-- .../signal_queries/GOLDEN_PARTIAL.js | 6 +- .../inline_templates/GOLDEN_PARTIAL.js | 96 +++++++++---------- .../doc_extraction/jsdoc_extraction_spec.ts | 5 +- .../test/ngtsc/template_mapping_spec.ts | 7 +- yarn.lock | 8 +- 53 files changed, 377 insertions(+), 383 deletions(-) diff --git a/goldens/public-api/platform-browser-dynamic/index.api.md b/goldens/public-api/platform-browser-dynamic/index.api.md index 5c0614c8f81..5129e504dff 100644 --- a/goldens/public-api/platform-browser-dynamic/index.api.md +++ b/goldens/public-api/platform-browser-dynamic/index.api.md @@ -18,7 +18,7 @@ export class JitCompilerFactory implements CompilerFactory { } // @public (undocumented) -export const platformBrowserDynamic: (extraProviders?: StaticProvider[] | undefined) => PlatformRef; +export const platformBrowserDynamic: (extraProviders?: StaticProvider[]) => PlatformRef; // @public (undocumented) export const VERSION: Version; diff --git a/goldens/public-api/platform-browser-dynamic/testing/index.api.md b/goldens/public-api/platform-browser-dynamic/testing/index.api.md index 6cca6cf1eb1..fbc1ef4f5d0 100644 --- a/goldens/public-api/platform-browser-dynamic/testing/index.api.md +++ b/goldens/public-api/platform-browser-dynamic/testing/index.api.md @@ -20,7 +20,7 @@ export class BrowserDynamicTestingModule { } // @public (undocumented) -export const platformBrowserDynamicTesting: (extraProviders?: StaticProvider[] | undefined) => PlatformRef; +export const platformBrowserDynamicTesting: (extraProviders?: StaticProvider[]) => PlatformRef; // (No @packageDocumentation comment for this package) diff --git a/goldens/public-api/platform-browser/testing/index.api.md b/goldens/public-api/platform-browser/testing/index.api.md index 6c0bce6d13b..13ee46c9a72 100644 --- a/goldens/public-api/platform-browser/testing/index.api.md +++ b/goldens/public-api/platform-browser/testing/index.api.md @@ -20,7 +20,7 @@ export class BrowserTestingModule { } // @public -export const platformBrowserTesting: (extraProviders?: StaticProvider[] | undefined) => PlatformRef; +export const platformBrowserTesting: (extraProviders?: StaticProvider[]) => PlatformRef; // (No @packageDocumentation comment for this package) diff --git a/goldens/public-api/platform-server/testing/index.api.md b/goldens/public-api/platform-server/testing/index.api.md index a8f8ff2594c..4ef4c87f99f 100644 --- a/goldens/public-api/platform-server/testing/index.api.md +++ b/goldens/public-api/platform-server/testing/index.api.md @@ -11,7 +11,7 @@ import { PlatformRef } from '@angular/core'; import { StaticProvider } from '@angular/core'; // @public -export const platformServerTesting: (extraProviders?: StaticProvider[] | undefined) => PlatformRef; +export const platformServerTesting: (extraProviders?: StaticProvider[]) => PlatformRef; // @public export class ServerTestingModule { diff --git a/integration/typings_test_ts55/package.json b/integration/typings_test_ts55/package.json index d01026d2ef3..8da8e3b5d0e 100644 --- a/integration/typings_test_ts55/package.json +++ b/integration/typings_test_ts55/package.json @@ -20,8 +20,8 @@ "@angular/upgrade": "file:../../dist/packages-dist/upgrade", "@types/jasmine": "file:../../node_modules/@types/jasmine", "rxjs": "file:../../node_modules/rxjs", - "typescript": "5.5.0-beta", - "zone.js": "file:../../dist/zone.js-dist/archive/zone.js.tgz" + "typescript": "5.5.2", + "zone.js": "0.14.0" }, "scripts": { "test": "tsc" diff --git a/integration/typings_test_ts55/yarn.lock b/integration/typings_test_ts55/yarn.lock index a26f79cbd8d..375cd4d92cb 100644 --- a/integration/typings_test_ts55/yarn.lock +++ b/integration/typings_test_ts55/yarn.lock @@ -11,19 +11,19 @@ "@jridgewell/trace-mapping" "^0.3.24" "@angular/animations@file:../../dist/packages-dist/animations": - version "18.1.0-next.1" + version "18.1.0-next.2" dependencies: tslib "^2.3.0" "@angular/common@file:../../dist/packages-dist/common": - version "18.1.0-next.1" + version "18.1.0-next.2" dependencies: tslib "^2.3.0" "@angular/compiler-cli@file:../../dist/packages-dist/compiler-cli": - version "18.1.0-next.1" + version "18.1.0-next.2" dependencies: - "@babel/core" "7.24.4" + "@babel/core" "7.24.7" "@jridgewell/sourcemap-codec" "^1.4.14" chokidar "^3.0.0" convert-source-map "^1.5.1" @@ -33,65 +33,65 @@ yargs "^17.2.1" "@angular/compiler@file:../../dist/packages-dist/compiler": - version "18.1.0-next.1" + version "18.1.0-next.2" dependencies: tslib "^2.3.0" "@angular/core@file:../../dist/packages-dist/core": - version "18.1.0-next.1" + version "18.1.0-next.2" dependencies: tslib "^2.3.0" "@angular/elements@file:../../dist/packages-dist/elements": - version "18.1.0-next.1" + version "18.1.0-next.2" dependencies: tslib "^2.3.0" "@angular/forms@file:../../dist/packages-dist/forms": - version "18.1.0-next.1" + version "18.1.0-next.2" dependencies: tslib "^2.3.0" "@angular/localize@file:../../dist/packages-dist/localize": - version "18.1.0-next.1" + version "18.1.0-next.2" dependencies: - "@babel/core" "7.24.4" + "@babel/core" "7.24.7" "@types/babel__core" "7.20.5" fast-glob "3.3.2" yargs "^17.2.1" "@angular/platform-browser-dynamic@file:../../dist/packages-dist/platform-browser-dynamic": - version "18.1.0-next.1" + version "18.1.0-next.2" dependencies: tslib "^2.3.0" "@angular/platform-browser@file:../../dist/packages-dist/platform-browser": - version "18.1.0-next.1" + version "18.1.0-next.2" dependencies: tslib "^2.3.0" "@angular/platform-server@file:../../dist/packages-dist/platform-server": - version "18.1.0-next.1" + version "18.1.0-next.2" dependencies: tslib "^2.3.0" xhr2 "^0.2.0" "@angular/router@file:../../dist/packages-dist/router": - version "18.1.0-next.1" + version "18.1.0-next.2" dependencies: tslib "^2.3.0" "@angular/service-worker@file:../../dist/packages-dist/service-worker": - version "18.1.0-next.1" + version "18.1.0-next.2" dependencies: tslib "^2.3.0" "@angular/upgrade@file:../../dist/packages-dist/upgrade": - version "18.1.0-next.1" + version "18.1.0-next.2" dependencies: tslib "^2.3.0" -"@babel/code-frame@^7.24.2", "@babel/code-frame@^7.24.7": +"@babel/code-frame@^7.24.7": version "7.24.7" resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.24.7.tgz#882fd9e09e8ee324e496bd040401c6f046ef4465" integrity sha512-BcYH1CVJBO9tvyIZ2jVeXgSIMvGZ2FDRvDdOIVQyuklNKSsx+eppDEBq/g47Ayw+RqNFE+URvOShmf+f/qwAlA== @@ -104,28 +104,28 @@ resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.24.7.tgz#d23bbea508c3883ba8251fb4164982c36ea577ed" integrity sha512-qJzAIcv03PyaWqxRgO4mSU3lihncDT296vnyuE2O8uA4w3UHWI4S3hgeZd1L8W1Bft40w9JxJ2b412iDUFFRhw== -"@babel/core@7.24.4": - version "7.24.4" - resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.24.4.tgz#1f758428e88e0d8c563874741bc4ffc4f71a4717" - integrity sha512-MBVlMXP+kkl5394RBLSxxk/iLTeVGuXTV3cIDXavPpMMqnSnt6apKgan/U8O3USWZCWZT/TbgfEpKa4uMgN4Dg== +"@babel/core@7.24.7": + version "7.24.7" + resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.24.7.tgz#b676450141e0b52a3d43bc91da86aa608f950ac4" + integrity sha512-nykK+LEK86ahTkX/3TgauT0ikKoNCfKHEaZYTUVupJdTLzGNvrblu4u6fa7DhZONAltdf8e662t/abY8idrd/g== dependencies: "@ampproject/remapping" "^2.2.0" - "@babel/code-frame" "^7.24.2" - "@babel/generator" "^7.24.4" - "@babel/helper-compilation-targets" "^7.23.6" - "@babel/helper-module-transforms" "^7.23.3" - "@babel/helpers" "^7.24.4" - "@babel/parser" "^7.24.4" - "@babel/template" "^7.24.0" - "@babel/traverse" "^7.24.1" - "@babel/types" "^7.24.0" + "@babel/code-frame" "^7.24.7" + "@babel/generator" "^7.24.7" + "@babel/helper-compilation-targets" "^7.24.7" + "@babel/helper-module-transforms" "^7.24.7" + "@babel/helpers" "^7.24.7" + "@babel/parser" "^7.24.7" + "@babel/template" "^7.24.7" + "@babel/traverse" "^7.24.7" + "@babel/types" "^7.24.7" convert-source-map "^2.0.0" debug "^4.1.0" gensync "^1.0.0-beta.2" json5 "^2.2.3" semver "^6.3.1" -"@babel/generator@^7.24.4", "@babel/generator@^7.24.7": +"@babel/generator@^7.24.7": version "7.24.7" resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.24.7.tgz#1654d01de20ad66b4b4d99c135471bc654c55e6d" integrity sha512-oipXieGC3i45Y1A41t4tAqpnEZWgB/lC6Ehh6+rOviR5XWpTtMmLN+fGjz9vOiNRt0p6RtO6DtD0pdU3vpqdSA== @@ -135,7 +135,7 @@ "@jridgewell/trace-mapping" "^0.3.25" jsesc "^2.5.1" -"@babel/helper-compilation-targets@^7.23.6": +"@babel/helper-compilation-targets@^7.24.7": version "7.24.7" resolved "https://registry.yarnpkg.com/@babel/helper-compilation-targets/-/helper-compilation-targets-7.24.7.tgz#4eb6c4a80d6ffeac25ab8cd9a21b5dfa48d503a9" integrity sha512-ctSdRHBi20qWOfy27RUb4Fhp07KSJ3sXcuSvTrXrc4aG8NSYDo1ici3Vhg9bg69y5bj0Mr1lh0aeEgTvc12rMg== @@ -176,7 +176,7 @@ "@babel/traverse" "^7.24.7" "@babel/types" "^7.24.7" -"@babel/helper-module-transforms@^7.23.3": +"@babel/helper-module-transforms@^7.24.7": version "7.24.7" resolved "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.24.7.tgz#31b6c9a2930679498db65b685b1698bfd6c7daf8" integrity sha512-1fuJEwIrp+97rM4RWdO+qrRsZlAeL1lQJoPqtCYWv0NL115XM93hIH4CSRln2w52SqvmY5hqdtauB6QFCDiZNQ== @@ -217,7 +217,7 @@ resolved "https://registry.yarnpkg.com/@babel/helper-validator-option/-/helper-validator-option-7.24.7.tgz#24c3bb77c7a425d1742eec8fb433b5a1b38e62f6" integrity sha512-yy1/KvjhV/ZCL+SM7hBrvnZJ3ZuT9OuZgIJAGpPEToANvc3iM6iDvBnRjtElWibHU6n8/LPR/EjX9EtIEYO3pw== -"@babel/helpers@^7.24.4": +"@babel/helpers@^7.24.7": version "7.24.7" resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.24.7.tgz#aa2ccda29f62185acb5d42fb4a3a1b1082107416" integrity sha512-NlmJJtvcw72yRJRcnCmGvSi+3jDEg8qFu3z0AFoymmzLx5ERVWyzd9kVXr7Th9/8yIJi2Zc6av4Tqz3wFs8QWg== @@ -235,12 +235,12 @@ js-tokens "^4.0.0" picocolors "^1.0.0" -"@babel/parser@^7.1.0", "@babel/parser@^7.20.7", "@babel/parser@^7.24.4", "@babel/parser@^7.24.7": +"@babel/parser@^7.1.0", "@babel/parser@^7.20.7", "@babel/parser@^7.24.7": version "7.24.7" resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.24.7.tgz#9a5226f92f0c5c8ead550b750f5608e766c8ce85" integrity sha512-9uUYRm6OqQrCqQdG1iCBwBPZgN8ciDBro2nIOFaiRz1/BCxaI7CNvQbDHvsArAC7Tw9Hda/B3U+6ui9u4HWXPw== -"@babel/template@^7.24.0", "@babel/template@^7.24.7": +"@babel/template@^7.24.7": version "7.24.7" resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.24.7.tgz#02efcee317d0609d2c07117cb70ef8fb17ab7315" integrity sha512-jYqfPrU9JTF0PmPy1tLYHW4Mp4KlgxJD9l2nP9fD6yT/ICi554DmrWBAEYpIelzjHf1msDP3PxJIRt/nFNfBig== @@ -249,7 +249,7 @@ "@babel/parser" "^7.24.7" "@babel/types" "^7.24.7" -"@babel/traverse@^7.24.1", "@babel/traverse@^7.24.7": +"@babel/traverse@^7.24.7": version "7.24.7" resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.24.7.tgz#de2b900163fa741721ba382163fe46a936c40cf5" integrity sha512-yb65Ed5S/QAcewNPh0nZczy9JdYXkkAbIsEo+P7BE7yO3txAY30Y/oPa3QkQ5It3xVG2kpKMg9MsdxZaO31uKA== @@ -265,7 +265,7 @@ debug "^4.3.1" globals "^11.1.0" -"@babel/types@^7.0.0", "@babel/types@^7.20.7", "@babel/types@^7.24.0", "@babel/types@^7.24.7": +"@babel/types@^7.0.0", "@babel/types@^7.20.7", "@babel/types@^7.24.7": version "7.24.7" resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.24.7.tgz#6027fe12bc1aa724cd32ab113fb7f1988f1f66f2" integrity sha512-XEFXSlxiG5td2EJRe8vOmRbaXVgfcBlszKujvVmWIK/UpywWljQCfzAv3RQCGujWQ1RD4YYWEAqDXfuJiy8f5Q== @@ -746,10 +746,10 @@ tslib@^2.1.0, tslib@^2.3.0: resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.6.3.tgz#0438f810ad7a9edcde7a241c3d80db693c8cbfe0" integrity sha512-xNvxJEOUiWPGhUuUdQgAJPKOOJfGnIyKySOc09XkKsgdUV/3E2zvwZYdejjmRgPCgcym1juLH3226yA7sEFJKQ== -typescript@5.5.0-beta: - version "5.5.0-beta" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.5.0-beta.tgz#ae6a2e3aa277f74478f1743e8771676cddfcdbec" - integrity sha512-FRg3e/aQg3olEG3ff8YjHOERsO4IM0m4qGrsE4UMvILaq4TdDZ6gQX4+2Rq9SjTpfSe/ebwiHcsjm/7FfWWQ6Q== +typescript@5.5.2: + version "5.5.2" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.5.2.tgz#c26f023cb0054e657ce04f72583ea2d85f8d0507" + integrity sha512-NcRtPEOsPFFWjobJEtfihkLCZCXZt/os3zf8nTxjVH3RvTSxjrCamJpbExGvYOF+tFHc3pA65qpdwPbzjohhew== update-browserslist-db@^1.0.16: version "1.0.16" @@ -801,8 +801,9 @@ yargs@^17.2.1: y18n "^5.0.5" yargs-parser "^21.1.1" -"zone.js@file:../../dist/zone.js-dist/archive/zone.js.tgz": - version "0.13.0" - resolved "file:../../dist/zone.js-dist/archive/zone.js.tgz#5cce033086dceb2d71222afdb4d901b217852fa8" +zone.js@0.14.0: + version "0.14.0" + resolved "https://registry.yarnpkg.com/zone.js/-/zone.js-0.14.0.tgz#ddab2133e8a88be4b225fc2a414e8357f9902a68" + integrity sha512-Sz0G0TjMuyApIcuTJeK742+xLLKEPjYtkdBEazBlYePHkICVp9DPKqI/4dJt3LCtQBd52sCxz23uAFJ2OJa6Ow== dependencies: tslib "^2.3.0" diff --git a/package.json b/package.json index 805d3733043..506cb5dea44 100644 --- a/package.json +++ b/package.json @@ -145,7 +145,7 @@ "tslib": "^2.3.0", "tslint": "6.1.3", "tsx": "^4.7.2", - "typescript": "5.5.0-beta", + "typescript": "5.5.2", "webtreemap": "^2.0.1", "ws": "^8.15.0", "xhr2": "0.2.1", diff --git a/packages/compiler-cli/src/ngtsc/file_system/src/compiler_host.ts b/packages/compiler-cli/src/ngtsc/file_system/src/compiler_host.ts index a31748d1a69..b01886195cd 100644 --- a/packages/compiler-cli/src/ngtsc/file_system/src/compiler_host.ts +++ b/packages/compiler-cli/src/ngtsc/file_system/src/compiler_host.ts @@ -22,16 +22,7 @@ export class NgtscCompilerHost implements ts.CompilerHost { getSourceFile(fileName: string, languageVersion: ts.ScriptTarget): ts.SourceFile | undefined { const text = this.readFile(fileName); return text !== undefined - ? ts.createSourceFile( - fileName, - text, - { - // Not passing the implied Node format appears not break program reuse in TS 5.5. - impliedNodeFormat: undefined, - languageVersion, - }, - true, - ) + ? ts.createSourceFile(fileName, text, languageVersion, true) : undefined; } diff --git a/packages/compiler-cli/src/ngtsc/program.ts b/packages/compiler-cli/src/ngtsc/program.ts index 1d0313cec47..4cfdc694cd6 100644 --- a/packages/compiler-cli/src/ngtsc/program.ts +++ b/packages/compiler-cli/src/ngtsc/program.ts @@ -88,10 +88,6 @@ export class NgtscProgram implements api.Program { this.host.postProgramCreationCleanup(); - // Shim tagging has served its purpose, and tags can now be removed from all `ts.SourceFile`s in - // the program. - untagAllTsFiles(this.tsProgram); - const programDriver = new TsCreateProgramDriver( this.tsProgram, this.host, diff --git a/packages/compiler-cli/src/ngtsc/program_driver/src/ts_create_program_driver.ts b/packages/compiler-cli/src/ngtsc/program_driver/src/ts_create_program_driver.ts index e5437817241..776f949b402 100644 --- a/packages/compiler-cli/src/ngtsc/program_driver/src/ts_create_program_driver.ts +++ b/packages/compiler-cli/src/ngtsc/program_driver/src/ts_create_program_driver.ts @@ -235,16 +235,7 @@ export class TsCreateProgramDriver implements ProgramDriver { } for (const [filePath, {newText, originalFile}] of contents.entries()) { - const sf = ts.createSourceFile( - filePath, - newText, - { - // Not passing the implied Node format appears not break program reuse in TS 5.5. - impliedNodeFormat: undefined, - languageVersion: ts.ScriptTarget.Latest, - }, - true, - ); + const sf = ts.createSourceFile(filePath, newText, ts.ScriptTarget.Latest, true); if (originalFile !== null) { (sf as MaybeSourceFileWithOriginalFile)[NgOriginalFile] = originalFile; @@ -272,9 +263,9 @@ export class TsCreateProgramDriver implements ProgramDriver { }); host.postProgramCreationCleanup(); - // And untag them afterwards. We explicitly untag both programs here, because the oldProgram - // may still be used for emit and needs to not contain tags. - untagAllTsFiles(this.program); + // Only untag the old program. The new program needs to keep the tagged files, because as of + // TS 5.5 not having the files tagged while producing diagnostics can lead to errors. See: + // https://github.com/microsoft/TypeScript/pull/58398 untagAllTsFiles(oldProgram); } } diff --git a/packages/compiler-cli/src/ngtsc/tsc_plugin.ts b/packages/compiler-cli/src/ngtsc/tsc_plugin.ts index dcad9789e6b..fbfc7a1d4ef 100644 --- a/packages/compiler-cli/src/ngtsc/tsc_plugin.ts +++ b/packages/compiler-cli/src/ngtsc/tsc_plugin.ts @@ -121,7 +121,6 @@ export class NgTscPlugin implements TscPlugin { throw new Error('Lifecycle error: setupCompilation() before wrapHost().'); } this.host.postProgramCreationCleanup(); - untagAllTsFiles(program); const programDriver = new TsCreateProgramDriver( program, this.host, diff --git a/packages/compiler-cli/src/ngtsc/typecheck/testing/BUILD.bazel b/packages/compiler-cli/src/ngtsc/typecheck/testing/BUILD.bazel index d9d79890620..4f42571d9db 100644 --- a/packages/compiler-cli/src/ngtsc/typecheck/testing/BUILD.bazel +++ b/packages/compiler-cli/src/ngtsc/typecheck/testing/BUILD.bazel @@ -18,6 +18,7 @@ ts_library( "//packages/compiler-cli/src/ngtsc/program_driver", "//packages/compiler-cli/src/ngtsc/reflection", "//packages/compiler-cli/src/ngtsc/scope", + "//packages/compiler-cli/src/ngtsc/shims", "//packages/compiler-cli/src/ngtsc/testing", "//packages/compiler-cli/src/ngtsc/typecheck", "//packages/compiler-cli/src/ngtsc/typecheck/api", diff --git a/packages/compiler-cli/src/ngtsc/typecheck/testing/index.ts b/packages/compiler-cli/src/ngtsc/typecheck/testing/index.ts index 31861aac64c..13dd3c45de1 100644 --- a/packages/compiler-cli/src/ngtsc/typecheck/testing/index.ts +++ b/packages/compiler-cli/src/ngtsc/typecheck/testing/index.ts @@ -91,6 +91,7 @@ import {OutOfBandDiagnosticRecorder} from '../src/oob'; import {TypeCheckShimGenerator} from '../src/shim'; import {TcbGenericContextBehavior} from '../src/type_check_block'; import {TypeCheckFile} from '../src/type_check_file'; +import {sfExtensionData} from '../../shims'; export function typescriptLibDts(): TestFile { return { @@ -502,6 +503,7 @@ export function setup( } { const files = [typescriptLibDts(), ...angularCoreDtsFiles(), angularAnimationsDts()]; const fakeMetadataRegistry = new Map(); + const shims = new Map(); for (const target of targets) { let contents: string; @@ -520,8 +522,10 @@ export function setup( }); if (!target.fileName.endsWith('.d.ts')) { + const shimName = TypeCheckShimGenerator.shimFor(target.fileName); + shims.set(target.fileName, shimName); files.push({ - name: TypeCheckShimGenerator.shimFor(target.fileName), + name: shimName, contents: 'export const MODULE = true;', }); } @@ -576,6 +580,15 @@ export function setup( const sf = getSourceFileOrError(program, target.fileName); const scope = makeScope(program, sf, target.declarations ?? []); + if (shims.has(target.fileName)) { + const shimFileName = shims.get(target.fileName)!; + const shimSf = getSourceFileOrError(program, shimFileName); + sfExtensionData(shimSf).fileShim = { + extension: 'ngtypecheck', + generatedFrom: target.fileName, + }; + } + for (const className of Object.keys(target.templates)) { const classDecl = getClass(sf, className); scopeMap.set(classDecl, scope); diff --git a/packages/compiler-cli/test/compliance/test_cases/model_inputs/GOLDEN_PARTIAL.js b/packages/compiler-cli/test/compliance/test_cases/model_inputs/GOLDEN_PARTIAL.js index 77aeeba3cab..8d32b510781 100644 --- a/packages/compiler-cli/test/compliance/test_cases/model_inputs/GOLDEN_PARTIAL.js +++ b/packages/compiler-cli/test/compliance/test_cases/model_inputs/GOLDEN_PARTIAL.js @@ -14,7 +14,7 @@ TestDir.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "0.0. i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: TestDir, decorators: [{ type: Directive, args: [{ - standalone: true + standalone: true, }] }] }); @@ -46,7 +46,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE type: Component, args: [{ standalone: true, - template: 'Works' + template: 'Works', }] }] }); @@ -83,7 +83,7 @@ TestDir.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "0.0. i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: TestDir, decorators: [{ type: Directive, args: [{ - standalone: true + standalone: true, }] }], propDecorators: { decoratorInput: [{ type: Input diff --git a/packages/compiler-cli/test/compliance/test_cases/output_function/GOLDEN_PARTIAL.js b/packages/compiler-cli/test/compliance/test_cases/output_function/GOLDEN_PARTIAL.js index 493a2b45985..1222013f109 100644 --- a/packages/compiler-cli/test/compliance/test_cases/output_function/GOLDEN_PARTIAL.js +++ b/packages/compiler-cli/test/compliance/test_cases/output_function/GOLDEN_PARTIAL.js @@ -18,7 +18,7 @@ TestDir.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "0.0. i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: TestDir, decorators: [{ type: Directive, args: [{ - standalone: true + standalone: true, }] }] }); @@ -57,7 +57,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE type: Component, args: [{ standalone: true, - template: 'Works' + template: 'Works', }] }] }); @@ -98,7 +98,7 @@ TestDir.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "0.0. i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: TestDir, decorators: [{ type: Directive, args: [{ - standalone: true + standalone: true, }] }], propDecorators: { clickDecorator1: [{ type: Output diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/GOLDEN_PARTIAL.js b/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/GOLDEN_PARTIAL.js index 933e1700bd2..732a73b836e 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/GOLDEN_PARTIAL.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/GOLDEN_PARTIAL.js @@ -441,7 +441,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE type: Component, args: [{ template: '', - providers: [{ provide: token, useExisting: Comp }] + providers: [{ provide: token, useExisting: Comp }], }] }] }); @@ -587,7 +587,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE args: [{ template: ` - ` + `, }] }] }); export class TestModule { @@ -599,7 +599,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE type: NgModule, args: [{ declarations: [TestComponent], - imports: [LibModule] + imports: [LibModule], }] }] }); @@ -630,7 +630,7 @@ Main.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "0.0.0-P i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: Main, decorators: [{ type: Component, args: [{ - template: 'Hello Angular!' + template: 'Hello Angular!', }] }] }); export class MainStandalone { @@ -641,7 +641,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE type: Component, args: [{ standalone: true, - template: 'Hello Angular!' + template: 'Hello Angular!', }] }] }); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/content_projection/GOLDEN_PARTIAL.js b/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/content_projection/GOLDEN_PARTIAL.js index a2163322499..c54aa7b343b 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/content_projection/GOLDEN_PARTIAL.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/content_projection/GOLDEN_PARTIAL.js @@ -86,7 +86,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE - ` + `, }] }] }); class Module { @@ -136,7 +136,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE '*' selector: - ` + `, }] }] }); class Module { @@ -190,7 +190,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE '*' selector in a template: - ` + `, }] }] }); class Module { diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/custom_decorator_es5.js b/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/custom_decorator_es5.js index de3edba77e3..cf58b496968 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/custom_decorator_es5.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/custom_decorator_es5.js @@ -2,6 +2,6 @@ type: Component, args: [{ template: '', - providers: [{provide: token, useExisting: Comp}] + providers: [{provide: token, useExisting: Comp}], }] }], null, null); })(); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/pipes/GOLDEN_PARTIAL.js b/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/pipes/GOLDEN_PARTIAL.js index dd623b834fd..1707b391b2a 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/pipes/GOLDEN_PARTIAL.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/pipes/GOLDEN_PARTIAL.js @@ -26,7 +26,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE type: Pipe, args: [{ name: 'myPurePipe', - pure: true + pure: true, }] }] }); export class MyApp { diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/queries/GOLDEN_PARTIAL.js b/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/queries/GOLDEN_PARTIAL.js index 8b7d7b2f571..d9dd4235a66 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/queries/GOLDEN_PARTIAL.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/queries/GOLDEN_PARTIAL.js @@ -10,7 +10,7 @@ SomeDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: SomeDirective, decorators: [{ type: Directive, args: [{ - selector: '[someDir]' + selector: '[someDir]', }] }] }); @@ -127,7 +127,7 @@ SomeDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: SomeDirective, decorators: [{ type: Directive, args: [{ - selector: '[someDir]' + selector: '[someDir]', }] }] }); export class MyModule { @@ -232,7 +232,7 @@ SomeDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: SomeDirective, decorators: [{ type: Directive, args: [{ - selector: '[someDir]' + selector: '[someDir]', }] }] }); @@ -313,7 +313,7 @@ SomeDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: SomeDirective, decorators: [{ type: Directive, args: [{ - selector: '[someDir]' + selector: '[someDir]', }] }] }); @@ -404,7 +404,7 @@ SomeDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: SomeDirective, decorators: [{ type: Directive, args: [{ - selector: '[someDir]' + selector: '[someDir]', }] }] }); @@ -548,7 +548,7 @@ SomeDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: SomeDirective, decorators: [{ type: Directive, args: [{ - selector: '[someDir]' + selector: '[someDir]', }] }] }); export class MyModule { @@ -653,7 +653,7 @@ SomeDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: SomeDirective, decorators: [{ type: Directive, args: [{ - selector: '[someDir]' + selector: '[someDir]', }] }] }); @@ -757,7 +757,7 @@ SomeDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: SomeDirective, decorators: [{ type: Directive, args: [{ - selector: '[someDir]' + selector: '[someDir]', }] }] }); @@ -848,7 +848,7 @@ SomeDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: SomeDirective, decorators: [{ type: Directive, args: [{ - selector: '[someDir]' + selector: '[someDir]', }] }] }); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/signals/GOLDEN_PARTIAL.js b/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/signals/GOLDEN_PARTIAL.js index 5ffd66d888e..2e554441ae3 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/signals/GOLDEN_PARTIAL.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/signals/GOLDEN_PARTIAL.js @@ -14,7 +14,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE signals: true, standalone: true, selector: 'other-cmp', - template: '' + template: '', }] }] }); export class SignalCmp { @@ -28,7 +28,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE signals: true, standalone: true, template: '', - imports: [OtherCmp] + imports: [OtherCmp], }] }] }); @@ -58,7 +58,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE type: Directive, args: [{ // @ts-ignore - signals: true + signals: true, }] }] }); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/standalone/GOLDEN_PARTIAL.js b/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/standalone/GOLDEN_PARTIAL.js index 2887c2d0d81..e9de539e433 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/standalone/GOLDEN_PARTIAL.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/components_and_directives/standalone/GOLDEN_PARTIAL.js @@ -12,7 +12,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE args: [{ standalone: true, selector: 'other-cmp', - template: '' + template: '', }] }] }); export class StandaloneCmp { @@ -24,7 +24,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE args: [{ standalone: true, template: '', - imports: [OtherCmp] + imports: [OtherCmp], }] }] }); @@ -53,7 +53,7 @@ StandaloneDir.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: StandaloneDir, decorators: [{ type: Directive, args: [{ - standalone: true + standalone: true, }] }] }); @@ -80,7 +80,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE type: Pipe, args: [{ standalone: true, - name: 'stpipe' + name: 'stpipe', }] }] }); @@ -125,7 +125,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE type: NgModule, args: [{ declarations: [NotStandaloneDir, NotStandalonePipe], - exports: [NotStandaloneDir, NotStandalonePipe] + exports: [NotStandaloneDir, NotStandalonePipe], }] }] }); export class IndirectDir { @@ -136,7 +136,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE type: Directive, args: [{ standalone: true, - selector: '[indirect]' + selector: '[indirect]', }] }] }); export class IndirectPipe { @@ -148,7 +148,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE type: Pipe, args: [{ standalone: true, - name: 'indirectpipe' + name: 'indirectpipe', }] }] }); export class SomeModule { @@ -160,7 +160,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE type: NgModule, args: [{ imports: [IndirectDir, IndirectPipe], - exports: [NotStandaloneStuffModule, IndirectDir, IndirectPipe] + exports: [NotStandaloneStuffModule, IndirectDir, IndirectPipe], }] }] }); export class DirectDir { @@ -171,7 +171,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE type: Directive, args: [{ standalone: true, - selector: '[direct]' + selector: '[direct]', }] }] }); export class DirectPipe { @@ -183,7 +183,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE type: Pipe, args: [{ standalone: true, - name: 'directpipe' + name: 'directpipe', }] }] }); export class TestCmp { @@ -207,7 +207,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE

Reference some indirect standalone things:{{data | indirectpipe}}

Reference some standalone things directly:{{data | directpipe}}

`, - imports: [SomeModule, DirectDir, DirectPipe] + imports: [SomeModule, DirectDir, DirectPipe], }] }] }); @@ -273,7 +273,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE standalone: true, selector: 'recursive-cmp', // Simple recursion. Note: no `imports`. - template: '' + template: '', }] }] }); @@ -300,7 +300,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE args: [{ standalone: true, selector: 'standalone-cmp', - template: '' + template: '', }] }] }); export class StandaloneDir { @@ -319,7 +319,7 @@ Module.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "0.0.0- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: Module, decorators: [{ type: NgModule, args: [{ - imports: [StandaloneCmp, StandaloneDir] + imports: [StandaloneCmp, StandaloneDir], }] }] }); @@ -356,7 +356,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE selector: 'test', standalone: true, imports: [forwardRef(() => StandaloneComponent)], - template: '' + template: '', }] }] }); export class StandaloneComponent { @@ -368,7 +368,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE args: [{ selector: 'other-standalone', standalone: true, - template: '' + template: '', }] }] }); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/ng_modules/GOLDEN_PARTIAL.js b/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/ng_modules/GOLDEN_PARTIAL.js index c13f26db46e..77e3de090ec 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/ng_modules/GOLDEN_PARTIAL.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_compiler_compliance/ng_modules/GOLDEN_PARTIAL.js @@ -599,7 +599,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE args: [{ providers: [], declarations: [], - imports: [] + imports: [], }] }] }); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler/GOLDEN_PARTIAL.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler/GOLDEN_PARTIAL.js index d82065363f8..fde5a0a9b82 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler/GOLDEN_PARTIAL.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler/GOLDEN_PARTIAL.js @@ -38,7 +38,7 @@ TodoModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "0. i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: TodoModule, decorators: [{ type: NgModule, args: [{ - declarations: [TodoComponent, MyApp] + declarations: [TodoComponent, MyApp], }] }] }); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/GOLDEN_PARTIAL.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/GOLDEN_PARTIAL.js index dab6b3bf3aa..04fecd6639e 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/GOLDEN_PARTIAL.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/GOLDEN_PARTIAL.js @@ -13,7 +13,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE selector: 'some-elem', standalone: true, template: ``, - inputs: ['attr1', 'prop1', 'attrInterp1', 'propInterp1'] + inputs: ['attr1', 'prop1', 'attrInterp1', 'propInterp1'], }] }] }); export class MyCmp { @@ -47,7 +47,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE '[class.class1]': 'false', '[style.style1]': 'true', '[class]': 'foo', - '[style]': 'foo' + '[style]': 'foo', }, template: `
- ` + `, }] }] }); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/host_bindings/GOLDEN_PARTIAL.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/host_bindings/GOLDEN_PARTIAL.js index 125a29b08b7..da86e0a834d 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/host_bindings/GOLDEN_PARTIAL.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/host_bindings/GOLDEN_PARTIAL.js @@ -101,8 +101,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE selector: '[hostBindingDir]', host: { '[class.a]': 'value ?? "class-a"', - '[class.b]': 'value ?? "class-b"' - } + '[class.b]': 'value ?? "class-b"', + }, }] }] }); @@ -135,8 +135,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE selector: '[hostBindingDir]', host: { '[style.fontSize]': 'value ?? "15px"', - '[style.fontWeight]': 'value ?? "bold"' - } + '[style.fontWeight]': 'value ?? "bold"', + }, }] }] }); @@ -299,7 +299,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE '[style.opacity]': 'true', 'class': 'one two', '[class.three]': 'true', - 'title': 'hello there from directive' + 'title': 'hello there from directive', } }] }] }); @@ -565,7 +565,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE selector: '[my-dir]', host: { '(mousedown)': 'mousedown()', - '(mouseup)': 'mouseup()' + '(mouseup)': 'mouseup()', } }] }], propDecorators: { click: [{ @@ -602,7 +602,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE selector: 'my-comp', template: '', host: { - '(@animation.done)': 'done()' + '(@animation.done)': 'done()', } }] }], propDecorators: { start: [{ @@ -641,7 +641,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE host: { '(mousedown)': 'mousedown()', '(@animation.done)': 'done()', - '(mouseup)': 'mouseup()' + '(mouseup)': 'mouseup()', } }] }], propDecorators: { start: [{ @@ -677,7 +677,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE args: [{ selector: '[hostBindingDir]', host: { - '[style.color]': '$any("red")' + '[style.color]': '$any("red")', }, template: `` }] @@ -707,7 +707,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE selector: '[hostBindingDir]', host: { '[class.a]': 'true', - '[class.b]': 'false' + '[class.b]': 'false', } }] }], propDecorators: { true: [{ @@ -818,8 +818,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE '[href]': 'evil', '[attr.style]': 'evil', '[src]': 'evil', - '[sandbox]': 'evil' - } + '[sandbox]': 'evil', + }, }] }] }); export class HostBindingDir2 { @@ -839,8 +839,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE '[href]': 'evil', '[attr.style]': 'evil', '[src]': 'evil', - '[sandbox]': 'evil' - } + '[sandbox]': 'evil', + }, }] }] }); @@ -873,7 +873,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE args: [{ standalone: true, selector: '[hostBindingDir]', - host: { 'src': 'trusted', 'srcdoc': 'trusted' } + host: { 'src': 'trusted', 'srcdoc': 'trusted' }, }] }] }); export class HostBindingDir2 { @@ -885,7 +885,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE args: [{ standalone: true, selector: 'img', - host: { 'src': 'trusted', 'srcdoc': 'trusted' } + host: { 'src': 'trusted', 'srcdoc': 'trusted' }, }] }] }); @@ -920,7 +920,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE args: [{ standalone: true, selector: '[hostBindingDir]', - host: { '[style.background-image]': 'imgUrl', '[style]': 'styles' } + host: { '[style.background-image]': 'imgUrl', '[style]': 'styles' }, }] }] }); @@ -953,7 +953,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE selector: 'my-cmp', standalone: true, host: { - '(document:dragover)': 'foo($event)' + '(document:dragover)': 'foo($event)', }, template: ` ` @@ -990,7 +990,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE selector: 'my-cmp', standalone: true, host: { - 'foo': BAR_CONST + 'foo': BAR_CONST, }, template: `` }] @@ -1025,7 +1025,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE host: { ['class.is-compact']: 'false', ['style.width']: '0', - ['attr.tabindex']: '5' + ['attr.tabindex']: '5', } }] }] }); @@ -1042,7 +1042,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE host: { '[class.is-compact]': 'false', '[style.width]': '0', - '[attr.tabindex]': '5' + '[attr.tabindex]': '5', } }] }] }); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/property_bindings/GOLDEN_PARTIAL.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/property_bindings/GOLDEN_PARTIAL.js index 5b6ee13acb1..cda5293915f 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/property_bindings/GOLDEN_PARTIAL.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_bindings/property_bindings/GOLDEN_PARTIAL.js @@ -762,7 +762,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE imports: [Dir], template: `
- ` + `, }] }] }); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/GOLDEN_PARTIAL.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/GOLDEN_PARTIAL.js index efd56060597..8778c5f53b0 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/GOLDEN_PARTIAL.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_control_flow/GOLDEN_PARTIAL.js @@ -52,7 +52,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE } } - ` + `, }] }] }); @@ -113,7 +113,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE } } - ` + `, }] }] }); @@ -195,7 +195,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE } } - ` + `, }] }] }); @@ -317,7 +317,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE @switch (message) {} {{message}} - ` + `, }] }] }); @@ -361,7 +361,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE hello } - ` + `, }] }] }); @@ -410,7 +410,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE goodbye } - ` + `, }] }] }); @@ -468,7 +468,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE four } - ` + `, }] }] }); @@ -543,7 +543,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE three } - ` + `, }] }] }); @@ -610,7 +610,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE `, standalone: true, - imports: [TestPipe] + imports: [TestPipe], }] }] }); @@ -660,7 +660,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE {{value()}} as {{alias}} } - ` + `, }] }] }); @@ -714,7 +714,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE } } } - ` + `, }] }] }); @@ -768,7 +768,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE } } } - ` + `, }] }] }); @@ -813,7 +813,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE {{item.name}} } - ` + `, }] }] }); @@ -864,7 +864,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE No items! } - ` + `, }] }] }); @@ -911,7 +911,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE {{item.name}} } - ` + `, }] }] }); @@ -958,7 +958,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE {{item.name}} } - ` + `, }] }] }); @@ -1015,7 +1015,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE } } - ` + `, }] }] }); @@ -1073,7 +1073,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE Count: {{$count}} } - ` + `, }] }] }); @@ -1128,7 +1128,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE Count: {{co}} } - ` + `, }] }] }); @@ -1197,7 +1197,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE Aliased count: {{co}} } - ` + `, }] }] }); @@ -1254,7 +1254,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE } } - ` + `, }] }] }); @@ -1303,7 +1303,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
} - ` + `, }] }] }); @@ -1338,7 +1338,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE args: [{ template: `@for (item of items; track item) { {{$odd + ''}} - }` + }`, }] }] }); @@ -1385,7 +1385,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE Empty } - ` + `, }] }] }); @@ -1431,7 +1431,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE } {{$index}} {{$count}} {{$first}} {{$last}} - ` + `, }] }] }); @@ -1479,7 +1479,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE {{message}} @for (item of items; track trackFn($index, item)) {} - ` + `, }] }] }); @@ -1530,7 +1530,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE @for (item of items; track trackFn($index, item)) {} - ` + `, }] }] }); @@ -1577,7 +1577,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE {{message}} @for (item of items; track trackFn($index)) {} - ` + `, }] }] }); @@ -1627,7 +1627,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE @for (otherItem of otherItems; track otherItem.name[0].toUpperCase()) { {{otherItem.name}} } - ` + `, }] }] }); @@ -1682,7 +1682,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE @for (otherItem of otherItems; track trackFn(otherItem, message)) { {{otherItem.name}} } - ` + `, }] }] }); @@ -1729,7 +1729,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE @for (item of items; track trackFn({foo: item, bar: item}, [item, item])) { {{item.name}} } - ` + `, }] }] }); @@ -1789,7 +1789,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE `, standalone: true, - imports: [TestPipe] + imports: [TestPipe], }] }] }); @@ -1855,7 +1855,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE } `, standalone: true, - imports: [Binding] + imports: [Binding], }] }] }); @@ -1920,7 +1920,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE } `, standalone: true, - imports: [Binding] + imports: [Binding], }] }] }); @@ -1981,7 +1981,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE } `, standalone: true, - imports: [Binding] + imports: [Binding], }] }] }); @@ -2042,7 +2042,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE } `, standalone: true, - imports: [Binding] + imports: [Binding], }] }] }); @@ -2115,7 +2115,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE } `, standalone: true, - imports: [Binding] + imports: [Binding], }] }] }); @@ -2188,7 +2188,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE } `, standalone: true, - imports: [Binding] + imports: [Binding], }] }] }); @@ -2254,7 +2254,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE } } } - ` + `, }] }] }); @@ -2316,7 +2316,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE } } } - ` + `, }] }] }); @@ -2367,7 +2367,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE } } } - ` + `, }] }] }); @@ -2410,7 +2410,7 @@ it('case 1', () => { } @else { Second } - ` + `, }] }] }); }); @@ -2434,7 +2434,7 @@ it('case 2', () => { } @else { Second } - ` + `, }] }] }); }); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_deferred/GOLDEN_PARTIAL.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_deferred/GOLDEN_PARTIAL.js index 32070d4cc57..b91c43995e1 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_deferred/GOLDEN_PARTIAL.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_deferred/GOLDEN_PARTIAL.js @@ -25,7 +25,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE @defer {Deferred content}

Content after defer block

- ` + `, }] }] }); @@ -81,7 +81,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE Calendar failed to load sad } - ` + `, }] }] }); @@ -120,7 +120,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE } @placeholder (minimum 2s) { } - ` + `, }] }] }); @@ -157,7 +157,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE } @loading(minimum 2s; after 500ms) { } - ` + `, }] }] }); @@ -226,7 +226,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE `, standalone: true, - imports: [EagerDep, LazyDep, LoadingDep] + imports: [EagerDep, LazyDep, LoadingDep], }] }] }); @@ -264,7 +264,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE type: Directive, args: [{ selector: 'lazy-dep', - standalone: true + standalone: true, }] }] }); export class MyApp { @@ -294,7 +294,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE `, standalone: true, - imports: [LazyDep] + imports: [LazyDep], }] }] }); @@ -414,7 +414,7 @@ i0.ɵɵngDeclareClassMetadataAsync({ minVersion: "18.0.0", version: "0.0.0-PLACE `, standalone: true, - imports: [EagerDep, LazyDep, LoadingDep] + imports: [EagerDep, LazyDep, LoadingDep], }] }], ctorParameters: null, propDecorators: null }) }); @@ -470,7 +470,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE } @placeholder { } - ` + `, }] }] }); @@ -529,7 +529,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE } @placeholder { } - ` + `, }] }] }); @@ -587,7 +587,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE } `, standalone: true, - imports: [TestPipe] + imports: [TestPipe], }] }] }); @@ -645,7 +645,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE - ` + `, }] }] }); @@ -696,7 +696,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE - ` + `, }] }] }); @@ -747,7 +747,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE } - ` + `, }] }] }); @@ -788,7 +788,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE } @placeholder { } - ` + `, }] }] }); @@ -839,7 +839,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE args: [{ selector: 'local-dep', standalone: true, - template: 'Local dependency' + template: 'Local dependency', }] }] }); export class TestCmp { @@ -862,7 +862,7 @@ i0.ɵɵngDeclareClassMetadataAsync({ minVersion: "18.0.0", version: "0.0.0-PLACE } -` +`, }] }], ctorParameters: null, propDecorators: null }) }); @@ -917,7 +917,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE args: [{ selector: 'local-dep', standalone: true, - template: 'Local dependency' + template: 'Local dependency', }] }] }); export class TestCmp { @@ -940,7 +940,7 @@ i0.ɵɵngDeclareClassMetadataAsync({ minVersion: "18.0.0", version: "0.0.0-PLACE } -` +`, }] }], ctorParameters: null, propDecorators: null }) }); @@ -971,7 +971,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE args: [{ selector: 'my-lazy-cmp', standalone: true, - template: 'Hi!' + template: 'Hi!', }] }] }); class SimpleComponent { diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_directives/host_directives/GOLDEN_PARTIAL.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_directives/host_directives/GOLDEN_PARTIAL.js index 87b5ef43bbd..1bdd3fce272 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_directives/host_directives/GOLDEN_PARTIAL.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_directives/host_directives/GOLDEN_PARTIAL.js @@ -28,7 +28,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE args: [{ selector: 'my-component', template: '', - hostDirectives: [DirectiveA, DirectiveB] + hostDirectives: [DirectiveA, DirectiveB], }] }] }); @@ -70,7 +70,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE type: Directive, args: [{ standalone: true, - hostDirectives: [DirectiveA] + hostDirectives: [DirectiveA], }] }] }); export class DirectiveC { @@ -81,7 +81,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE type: Directive, args: [{ standalone: true, - hostDirectives: [DirectiveB] + hostDirectives: [DirectiveB], }] }] }); export class MyComponent { @@ -93,7 +93,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE args: [{ selector: 'my-component', template: '', - hostDirectives: [DirectiveC] + hostDirectives: [DirectiveC], }] }] }); @@ -132,7 +132,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE args: [{ selector: 'my-component', template: '', - hostDirectives: [forwardRef(() => DirectiveB)] + hostDirectives: [forwardRef(() => DirectiveB)], }] }] }); export class DirectiveB { @@ -143,7 +143,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE type: Directive, args: [{ standalone: true, - hostDirectives: [{ directive: forwardRef(() => DirectiveA), inputs: ['value'] }] + hostDirectives: [{ directive: forwardRef(() => DirectiveA), inputs: ['value'] }], }] }] }); export class DirectiveA { @@ -212,8 +212,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE hostDirectives: [{ directive: HostDir, inputs: ['value', 'color: colorAlias'], - outputs: ['opened', 'closed: closedAlias'] - }] + outputs: ['opened', 'closed: closedAlias'], + }], }] }] }); @@ -276,8 +276,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE hostDirectives: [{ directive: HostDir, inputs: ['valueAlias', 'colorAlias: customColorAlias'], - outputs: ['openedAlias', 'closedAlias: customClosedAlias'] - }] + outputs: ['openedAlias', 'closedAlias: customClosedAlias'], + }], }] }] }); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_directives/matching/GOLDEN_PARTIAL.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_directives/matching/GOLDEN_PARTIAL.js index 210644bb9c8..fa00c1ca76d 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_directives/matching/GOLDEN_PARTIAL.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_directives/matching/GOLDEN_PARTIAL.js @@ -307,7 +307,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE type: Component, args: [{ selector: 'my-component', - template: '' + template: '', }] }] }); export class MyModule { diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/GOLDEN_PARTIAL.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/GOLDEN_PARTIAL.js index 1d70213fcbc..7f59d77c213 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/GOLDEN_PARTIAL.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/GOLDEN_PARTIAL.js @@ -17,7 +17,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE template: `
Hello, {{ placeholder }}! You are a very good {{ placeholder }}.
Hello, {{ placeholder // i18n(ph = "ph") }}! Hello again {{ placeholder // i18n(ph = "ph") }}.
- ` + `, }] }] }); export class MyModule { @@ -64,7 +64,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE template: `
{{ valueA | pipeA }} and {{ valueB | pipeB }}
{{ valueA | pipeA }} and {{ valueB | pipeB }} and {{ valueC | pipeC }}
-` +`, }] }] }); export class PipeA { @@ -169,7 +169,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE {{diskView.name}} has {diskView.length, plural, =1 {VM} other {VMs}} - ` + `, }] }] }); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/element_attributes/GOLDEN_PARTIAL.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/element_attributes/GOLDEN_PARTIAL.js index 5d65a79ab4d..77894f48966 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/element_attributes/GOLDEN_PARTIAL.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/element_attributes/GOLDEN_PARTIAL.js @@ -577,7 +577,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE template: `
`, - interpolation: ['{%', '%}'] + interpolation: ['{%', '%}'], }] }] }); export class MyModule { diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/es5_support/GOLDEN_PARTIAL.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/es5_support/GOLDEN_PARTIAL.js index b2182baa2b2..7749d518684 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/es5_support/GOLDEN_PARTIAL.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/es5_support/GOLDEN_PARTIAL.js @@ -15,7 +15,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE type: Component, args: [{ selector: 'my-component', - template: '
Content A
' + template: '
Content A
', }] }] }); var MyModule = /** @class */ (function () { diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/icu_logic/GOLDEN_PARTIAL.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/icu_logic/GOLDEN_PARTIAL.js index 3b961e8facb..8e5cb692ee5 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/icu_logic/GOLDEN_PARTIAL.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/icu_logic/GOLDEN_PARTIAL.js @@ -114,7 +114,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE selector: 'my-component', template: ` {age, select, 10 {ten} 20 {twenty} other {other}} -` +`, }] }] }); export class MyModule { @@ -224,7 +224,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE template: `
{age, select, 10 {ten} 20 {twenty} other {{% other %}}}
`, - interpolation: ['{%', '%}'] + interpolation: ['{%', '%}'], }] }] }); export class MyModule { @@ -390,7 +390,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE {gender, select, male {male} female {female} other {other}} {age, select, 10 {ten} 20 {twenty} 30 {thirty} other {other}} -` +`, }] }] }); export class MyModule { @@ -947,7 +947,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE } } -` +`, }] }] }); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/namespaces/GOLDEN_PARTIAL.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/namespaces/GOLDEN_PARTIAL.js index 2a4dd5e67db..eb3b5663af9 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/namespaces/GOLDEN_PARTIAL.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/namespaces/GOLDEN_PARTIAL.js @@ -27,7 +27,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE -` +`, }] }] }); export class MyModule { @@ -83,7 +83,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE -` +`, }] }] }); export class MyModule { diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/nested_nodes/GOLDEN_PARTIAL.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/nested_nodes/GOLDEN_PARTIAL.js index 7b8987fdf97..fc073cc5c4d 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/nested_nodes/GOLDEN_PARTIAL.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/nested_nodes/GOLDEN_PARTIAL.js @@ -154,7 +154,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE type: Component, args: [{ selector: 'my-component', - template: '
`{{ count }}`
' + template: '
`{{ count }}`
', }] }] }); export class MyModule { @@ -207,7 +207,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
My i18n block #2
My non-i18n block #2
My i18n block #3
- ` + `, }] }] }); export class MyModule { @@ -261,7 +261,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE Named interpolation: {{ valueA // i18n(ph="PH_A") }} Named interpolation with spaces: {{ valueB // i18n(ph="PH B") }} -` +`, }] }] }); export class MyModule { @@ -311,7 +311,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE template: `
{% valueA %}
`, - interpolation: ['{%', '%}'] + interpolation: ['{%', '%}'], }] }] }); export class MyModule { @@ -537,7 +537,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE -` +`, }] }] }); export class MyModule { @@ -620,7 +620,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE Plain text in nested element (block #2) -` +`, }] }] }); export class MyModule { @@ -694,7 +694,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE -` +`, }] }] }); export class MyModule { @@ -742,7 +742,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE - ` + `, }] }] }); export class MyModule { @@ -826,7 +826,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE -` +`, }] }] }); export class MyModule { @@ -967,7 +967,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE -` +`, }] }] }); @@ -1004,7 +1004,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE {{ someField }} - ` + `, }] }] }); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/ng-container_ng-template/GOLDEN_PARTIAL.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/ng-container_ng-template/GOLDEN_PARTIAL.js index 1cfe99abd3b..81f36b037a7 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/ng-container_ng-template/GOLDEN_PARTIAL.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/ng-container_ng-template/GOLDEN_PARTIAL.js @@ -27,7 +27,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE selector: 'my-component', template: ` Some content: {{ valueA | uppercase }} -` +`, }] }] }); export class MyModule { @@ -77,7 +77,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE selector: 'my-component', template: ` Some content: {{ valueA | uppercase }} -` +`, }] }] }); export class MyModule { @@ -140,7 +140,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE Template content: {{ valueA | uppercase }} Container content: {{ valueB | uppercase }} -` +`, }] }] }); export class MyModule { @@ -196,7 +196,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE template: ` {gender, select, male {male} female {female} other {other}} {age, select, 10 {ten} 20 {twenty} other {other}} -` +`, }] }] }); export class MyModule { @@ -261,7 +261,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE -` +`, }] }] }); export class MyModule { @@ -310,7 +310,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE template: ` {gender, select, male {male} female {female} other {other}} {age, select, 10 {ten} 20 {twenty} other {other}} -` +`, }] }] }); export class MyModule { @@ -365,7 +365,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE is my logo #2 -` +`, }] }] }); export class MyModule { @@ -411,7 +411,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE template: `
Test
Test
-` +`, }] }] }); export class MyModule { @@ -459,7 +459,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
Hello there
-` +`, }] }] }); export class MyModule { @@ -507,7 +507,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
Hello there !
-` +`, }] }] }); export class MyModule { @@ -553,7 +553,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE template: ` Content A Content B -` +`, }] }] }); export class MyModule { @@ -613,7 +613,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE -` +`, }] }] }); export class MyModule { @@ -668,7 +668,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
Content B
-` +`, }] }] }); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/self-closing_i18n_instructions/GOLDEN_PARTIAL.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/self-closing_i18n_instructions/GOLDEN_PARTIAL.js index eab7585ca55..93e28c1ae67 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/self-closing_i18n_instructions/GOLDEN_PARTIAL.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/self-closing_i18n_instructions/GOLDEN_PARTIAL.js @@ -15,7 +15,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE selector: 'my-component', template: `
My i18n block #1
- ` + `, }] }] }); export class MyModule { @@ -62,7 +62,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE selector: 'my-component', template: `
{age, select, 10 {ten} 20 {twenty} other {other}}
- ` + `, }] }] }); export class MyModule { @@ -109,7 +109,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE template: ` My i18n block #1 My i18n block #2 -` +`, }] }] }); export class MyModule { @@ -155,7 +155,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE template: ` Text #1 Text #2 -` +`, }] }] }); export class MyModule { diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/whitespace_preserving_mode/GOLDEN_PARTIAL.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/whitespace_preserving_mode/GOLDEN_PARTIAL.js index 32250778d36..6b27db3ae69 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/whitespace_preserving_mode/GOLDEN_PARTIAL.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_i18n/whitespace_preserving_mode/GOLDEN_PARTIAL.js @@ -22,7 +22,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE Text inside span `, - preserveWhitespaces: true + preserveWhitespaces: true, }] }] }); export class MyModule { diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_let/GOLDEN_PARTIAL.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_let/GOLDEN_PARTIAL.js index 77073b2f7b5..8cb472a3329 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_let/GOLDEN_PARTIAL.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_let/GOLDEN_PARTIAL.js @@ -20,7 +20,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE @let result = value * 2; The result is {{result}} `, - standalone: true + standalone: true, }] }] }); @@ -60,7 +60,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE @let result = two + 1; The result is {{result}} `, - standalone: true + standalone: true, }] }] }); @@ -90,7 +90,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE type: Pipe, args: [{ name: 'double', - standalone: true + standalone: true, }] }] }); export class MyApp { @@ -113,7 +113,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE The result is {{result}} `, standalone: true, - imports: [DoublePipe] + imports: [DoublePipe], }] }] }); @@ -162,7 +162,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE `, - standalone: true + standalone: true, }] }] }); @@ -210,7 +210,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE @let one = 1; `, - standalone: true + standalone: true, }] }] }); @@ -244,7 +244,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE {{value}} {{value}} `, - standalone: true + standalone: true, }] }] }); @@ -310,7 +310,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE } `, - standalone: true + standalone: true, }] }] }); @@ -350,7 +350,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE @let fullName = name.value + ' ' + lastName.value; Hello, {{fullName}} `, - standalone: true + standalone: true, }] }] }); @@ -384,7 +384,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE {{message}} `, - standalone: true + standalone: true, }] }] }); @@ -433,7 +433,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE } } `, - standalone: true + standalone: true, }] }] }); @@ -475,7 +475,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE @let result = value * 2; `, - standalone: true + standalone: true, }] }] }); @@ -513,7 +513,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE @let result = value * 2; {{value}} `, - standalone: true + standalone: true, }] }] }); @@ -557,7 +557,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE @let four = three + 1; {{value}} `, - standalone: true + standalone: true, }] }] }); @@ -601,7 +601,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE @let four = three + 1; {{two}} `, - standalone: true + standalone: true, }] }] }); @@ -650,7 +650,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE {{value}} `, - standalone: true + standalone: true, }] }] }); @@ -701,7 +701,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE {{three}} } `, - standalone: true + standalone: true, }] }] }); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/GOLDEN_PARTIAL.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/GOLDEN_PARTIAL.js index b90703cc243..f1365f5813c 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/GOLDEN_PARTIAL.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_listener/GOLDEN_PARTIAL.js @@ -205,7 +205,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE type: Component, args: [{ selector: 'my-component', - template: `
` + template: `
`, }] }] }); export class MyModule { @@ -251,7 +251,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE type: Component, args: [{ selector: 'some-comp', - template: '' + template: '', }] }], propDecorators: { update: [{ type: Output @@ -396,7 +396,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE args: [{ template: '', host: { - '(mousedown)': 'mousedown()' + '(mousedown)': 'mousedown()', } }] }], propDecorators: { click: [{ @@ -574,7 +574,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE type: Directive, args: [{ host: { - '(click)': 'c(this.$event)' + '(click)': 'c(this.$event)', } }] }] }); @@ -700,7 +700,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE type: Component, args: [{ selector: 'test-cmp', - template: 'Name: ' + template: 'Name: ', }] }] }); export class NgModelDirective { @@ -767,7 +767,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE type: Component, args: [{ selector: 'test-cmp', - template: 'Name: ' + template: 'Name: ', }] }] }); export class NgModelDirective { @@ -892,7 +892,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE imports: [Dir], template: `
- ` + `, }] }] }); @@ -933,7 +933,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE type: Directive, args: [{ selector: '[ngModel]', - standalone: true + standalone: true, }] }] }); export class TestCmp { @@ -956,7 +956,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE } `, standalone: true, - imports: [NgModelDirective] + imports: [NgModelDirective], }] }] }); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/component_animations/GOLDEN_PARTIAL.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/component_animations/GOLDEN_PARTIAL.js index 31750ed1b40..b95736c354a 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/component_animations/GOLDEN_PARTIAL.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/component_animations/GOLDEN_PARTIAL.js @@ -94,7 +94,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE template: `
-
` +
`, }] }] }); export class MyModule { @@ -160,7 +160,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE trigger('myAnimation', [ transition('* => state', [style({ 'opacity': '0' }), animate(500, style({ 'opacity': '1' }))]), ]), - ] + ], }] }] }); export class MyModule { diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/host_bindings/GOLDEN_PARTIAL.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/host_bindings/GOLDEN_PARTIAL.js index 03dfc68bc2f..21834018a4e 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/host_bindings/GOLDEN_PARTIAL.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/host_bindings/GOLDEN_PARTIAL.js @@ -246,7 +246,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
- ` + `, }] }] }); export class MyModule { @@ -326,7 +326,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
- ` + `, }] }] }); export class MyModule { @@ -425,7 +425,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE type: Component, args: [{ selector: 'my-component', - template: '
' + template: '
', }] }] }); export class MyModule { @@ -487,7 +487,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE host: { '[style.--camelCase]': 'value', '[style.--kebab-case]': 'value', - 'style': '--camelCase: foo; --kebab-case: foo' + 'style': '--camelCase: foo; --kebab-case: foo', } }] }] }); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/style_bindings/GOLDEN_PARTIAL.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/style_bindings/GOLDEN_PARTIAL.js index 568d5e692de..7d96b5aa2da 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/style_bindings/GOLDEN_PARTIAL.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_styling/style_bindings/GOLDEN_PARTIAL.js @@ -372,7 +372,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE standalone: true, template: `
- ` + `, }] }] }); diff --git a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_template/GOLDEN_PARTIAL.js b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_template/GOLDEN_PARTIAL.js index 4b5fecc2ccd..4458c430fed 100644 --- a/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_template/GOLDEN_PARTIAL.js +++ b/packages/compiler-cli/test/compliance/test_cases/r3_view_compiler_template/GOLDEN_PARTIAL.js @@ -375,7 +375,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE type: Component, args: [{ selector: 'my-component', - template: 'some-content' + template: 'some-content', }] }] }); export class MyModule { @@ -415,7 +415,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE type: Component, args: [{ selector: 'my-component', - template: '' + template: '', }] }] }); export class MyModule { @@ -471,7 +471,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE type: Component, args: [{ selector: 'my-app', - template: '' + template: '', }] }] }); @@ -514,7 +514,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE type: Component, args: [{ selector: 'my-app', - template: '' + template: '', }] }] }); @@ -560,7 +560,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE

more than 10

- ` + `, }] }] }); export class AModule { @@ -616,7 +616,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE

more than 10

- ` + `, }] }] }); export class BModule { @@ -676,7 +676,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE selector: 'a-component', template: ` - ` + `, }] }] }); export class BComponent { @@ -694,7 +694,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE selector: 'b-component', template: ` - ` + `, }] }] }); export class AModule { @@ -759,7 +759,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE

{{ item }}

- ` + `, }] }] }); export class MyModule { @@ -800,7 +800,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE type: Component, args: [{ selector: 'my-component', - template: `
` + template: `
`, }] }] }); export class MyModule { @@ -842,7 +842,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE args: [{ selector: 'my-component', template: ` - {{a?.b ? 1 : 2 }}` + {{a?.b ? 1 : 2 }}`, }] }] }); export class MyModule { @@ -935,7 +935,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE args: [{ selector: 'my-component', standalone: true, - template: '' + template: '', }] }] }); @@ -1073,7 +1073,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE standalone: true, template: ` Content -` +`, }] }] }); @@ -1125,7 +1125,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE -` +`, }] }] }); @@ -1163,7 +1163,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE
-` +`, }] }] }); export class MyModule { @@ -1212,7 +1212,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE -` +`, }] }] }); export class MyModule { @@ -1255,7 +1255,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE args: [{ selector: 'my-component', standalone: true, - template: '{{this.a}}' + template: '{{this.a}}', }] }] }); diff --git a/packages/compiler-cli/test/compliance/test_cases/signal_inputs/GOLDEN_PARTIAL.js b/packages/compiler-cli/test/compliance/test_cases/signal_inputs/GOLDEN_PARTIAL.js index 802ff1a589e..a520f94ffdf 100644 --- a/packages/compiler-cli/test/compliance/test_cases/signal_inputs/GOLDEN_PARTIAL.js +++ b/packages/compiler-cli/test/compliance/test_cases/signal_inputs/GOLDEN_PARTIAL.js @@ -14,7 +14,7 @@ TestDir.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "0.0. i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: TestDir, decorators: [{ type: Directive, args: [{ - standalone: true + standalone: true, }] }] }); @@ -46,7 +46,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE type: Component, args: [{ standalone: true, - template: 'Works' + template: 'Works', }] }] }); @@ -84,7 +84,7 @@ TestDir.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "0.0. i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: TestDir, decorators: [{ type: Directive, args: [{ - standalone: true + standalone: true, }] }], propDecorators: { decoratorInput: [{ type: Input @@ -123,7 +123,7 @@ function convertToBoolean(value) { export class TestDir { constructor() { this.name = input.required({ - transform: convertToBoolean + transform: convertToBoolean, }); } } @@ -132,7 +132,7 @@ TestDir.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "0.0. i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: TestDir, decorators: [{ type: Directive, args: [{ - standalone: true + standalone: true, }] }] }); @@ -158,7 +158,7 @@ const complexTransform = (defaultVal) => (v) => v || defaultVal; export class TestDir { constructor() { this.name = input.required({ - transform: (v) => v === true || v !== '' + transform: (v) => v === true || v !== '', }); this.name2 = input.required({ transform: toBoolean }); this.genericTransform = input.required({ transform: complexTransform(1) }); @@ -170,7 +170,7 @@ TestDir.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "0.0. i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: TestDir, decorators: [{ type: Directive, args: [{ - standalone: true + standalone: true, }] }] }); diff --git a/packages/compiler-cli/test/compliance/test_cases/signal_queries/GOLDEN_PARTIAL.js b/packages/compiler-cli/test/compliance/test_cases/signal_queries/GOLDEN_PARTIAL.js index 89c1fb058b3..c6853f9edb2 100644 --- a/packages/compiler-cli/test/compliance/test_cases/signal_queries/GOLDEN_PARTIAL.js +++ b/packages/compiler-cli/test/compliance/test_cases/signal_queries/GOLDEN_PARTIAL.js @@ -24,7 +24,7 @@ TestDir.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.2.0", version: "0.0. i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: TestDir, decorators: [{ type: Directive, args: [{ - standalone: true + standalone: true, }] }] }); @@ -67,7 +67,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE type: Component, args: [{ standalone: true, - template: 'Works' + template: 'Works', }] }] }); @@ -100,7 +100,7 @@ TestDir.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.2.0", version: "0.0. i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDER", ngImport: i0, type: TestDir, decorators: [{ type: Directive, args: [{ - standalone: true + standalone: true, }] }], propDecorators: { decoratorViewChild: [{ type: ViewChild, diff --git a/packages/compiler-cli/test/compliance/test_cases/source_mapping/inline_templates/GOLDEN_PARTIAL.js b/packages/compiler-cli/test/compliance/test_cases/source_mapping/inline_templates/GOLDEN_PARTIAL.js index bed52e18457..8b754da314e 100644 --- a/packages/compiler-cli/test/compliance/test_cases/source_mapping/inline_templates/GOLDEN_PARTIAL.js +++ b/packages/compiler-cli/test/compliance/test_cases/source_mapping/inline_templates/GOLDEN_PARTIAL.js @@ -11,7 +11,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE type: Component, args: [{ selector: 'test-cmp', - template: '

Heading 1

' + template: '

Heading 1

', }] }] }); //# sourceMappingURL=simple_element.js.map @@ -41,7 +41,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE type: Component, args: [{ selector: 'test-cmp', - template: '

Heading 1

' + template: '

Heading 1

', }] }] }); //# sourceMappingURL=simple_element.js.map @@ -71,7 +71,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE type: Component, args: [{ selector: 'test-cmp', - template: '
' + template: '
', }] }] }); //# sourceMappingURL=void_element.js.map @@ -101,7 +101,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE type: Component, args: [{ selector: 'test-cmp', - template: '
' + template: '
', }] }] }); //# sourceMappingURL=void_element.js.map @@ -134,7 +134,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE type: Component, args: [{ selector: 'test-cmp', - template: '

Hello {{ name }}

' + template: '

Hello {{ name }}

', }] }] }); //# sourceMappingURL=interpolation_basic.js.map @@ -168,7 +168,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE type: Component, args: [{ selector: 'test-cmp', - template: '

Hello {{ name }}

' + template: '

Hello {{ name }}

', }] }] }); //# sourceMappingURL=interpolation_basic.js.map @@ -203,7 +203,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE type: Component, args: [{ selector: 'test-cmp', - template: '

{{ greeting + " " + name }}

' + template: '

{{ greeting + " " + name }}

', }] }] }); //# sourceMappingURL=interpolation_complex.js.map @@ -239,7 +239,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE type: Component, args: [{ selector: 'test-cmp', - template: '

{{ greeting + " " + name }}

' + template: '

{{ greeting + " " + name }}

', }] }] }); //# sourceMappingURL=interpolation_complex.js.map @@ -274,7 +274,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE type: Component, args: [{ selector: 'test-cmp', - template: '
' + template: '
', }] }] }); //# sourceMappingURL=interpolation_properties.js.map @@ -308,7 +308,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE type: Component, args: [{ selector: 'test-cmp', - template: '
' + template: '
', }] }] }); //# sourceMappingURL=interpolation_properties.js.map @@ -339,7 +339,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE type: Component, args: [{ selector: 'test-cmp', - template: '
{{200.3 | percent : 2 }}
' + template: '
{{200.3 | percent : 2 }}
', }] }] }); export class PercentPipe { @@ -398,7 +398,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE type: Component, args: [{ selector: 'test-cmp', - template: '
{{200.3 | percent : 2 }}
' + template: '
{{200.3 | percent : 2 }}
', }] }] }); export class PercentPipe { @@ -460,7 +460,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE type: Component, args: [{ selector: 'test-cmp', - template: '
' + template: '
', }] }] }); //# sourceMappingURL=input_binding_simple.js.map @@ -494,7 +494,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE type: Component, args: [{ selector: 'test-cmp', - template: '
' + template: '
', }] }] }); //# sourceMappingURL=input_binding_simple.js.map @@ -529,7 +529,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE type: Component, args: [{ selector: 'test-cmp', - template: '
' + template: '
', }] }] }); //# sourceMappingURL=input_binding_complex.js.map @@ -565,7 +565,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE type: Component, args: [{ selector: 'test-cmp', - template: '
' + template: '
', }] }] }); //# sourceMappingURL=input_binding_complex.js.map @@ -600,7 +600,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE type: Component, args: [{ selector: 'test-cmp', - template: '
' + template: '
', }] }] }); //# sourceMappingURL=input_binding_longhand.js.map @@ -634,7 +634,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE type: Component, args: [{ selector: 'test-cmp', - template: '
' + template: '
', }] }] }); //# sourceMappingURL=input_binding_longhand.js.map @@ -666,7 +666,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE type: Component, args: [{ selector: 'test-cmp', - template: '' + template: '', }] }] }); //# sourceMappingURL=output_binding_simple.js.map @@ -698,7 +698,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE type: Component, args: [{ selector: 'test-cmp', - template: '' + template: '', }] }] }); //# sourceMappingURL=output_binding_simple.js.map @@ -732,7 +732,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE type: Component, args: [{ selector: 'test-cmp', - template: `` + template: ``, }] }] }); //# sourceMappingURL=output_binding_complex.js.map @@ -766,7 +766,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE type: Component, args: [{ selector: 'test-cmp', - template: `` + template: ``, }] }] }); //# sourceMappingURL=output_binding_complex.js.map @@ -798,7 +798,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE type: Component, args: [{ selector: 'test-cmp', - template: '' + template: '', }] }] }); //# sourceMappingURL=output_binding_longhand.js.map @@ -830,7 +830,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE type: Component, args: [{ selector: 'test-cmp', - template: '' + template: '', }] }] }); //# sourceMappingURL=output_binding_longhand.js.map @@ -864,7 +864,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE type: Component, args: [{ selector: 'test-cmp', - template: 'Name: ' + template: 'Name: ', }] }] }); export class NgModelDirective { @@ -935,7 +935,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE type: Component, args: [{ selector: 'test-cmp', - template: 'Name: ' + template: 'Name: ', }] }] }); export class NgModelDirective { @@ -1006,7 +1006,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE type: Component, args: [{ selector: 'test-cmp', - template: 'Name: ' + template: 'Name: ', }] }] }); export class NgModelDirective { @@ -1077,7 +1077,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE type: Component, args: [{ selector: 'test-cmp', - template: 'Name: ' + template: 'Name: ', }] }] }); export class NgModelDirective { @@ -1148,7 +1148,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE type: Component, args: [{ selector: 'test-cmp', - template: '
Message
' + template: '
Message
', }] }] }); //# sourceMappingURL=input_binding_class.js.map @@ -1182,7 +1182,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE type: Component, args: [{ selector: 'test-cmp', - template: '
Message
' + template: '
Message
', }] }] }); //# sourceMappingURL=input_binding_class.js.map @@ -1213,7 +1213,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE type: Component, args: [{ selector: 'test-cmp', - template: '
{{ name }}
' + template: '
{{ name }}
', }] }] }); //# sourceMappingURL=ng_if_simple.js.map @@ -1243,7 +1243,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE type: Component, args: [{ selector: 'test-cmp', - template: '
{{ name }}
' + template: '
{{ name }}
', }] }] }); //# sourceMappingURL=ng_if_simple.js.map @@ -1537,7 +1537,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE type: Component, args: [{ selector: 'test-cmp', - template: '
Hello, World!
' + template: '
Hello, World!
', }] }] }); //# sourceMappingURL=i18n_message_simple.js.map @@ -1567,7 +1567,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE type: Component, args: [{ selector: 'test-cmp', - template: '
Hello, World!
' + template: '
Hello, World!
', }] }] }); //# sourceMappingURL=i18n_message_simple.js.map @@ -1600,7 +1600,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE type: Component, args: [{ selector: 'test-cmp', - template: '
Hello, {{name}}!
' + template: '
Hello, {{name}}!
', }] }] }); //# sourceMappingURL=i18n_message_placeholder.js.map @@ -1634,7 +1634,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE type: Component, args: [{ selector: 'test-cmp', - template: '
Hello, {{name}}!
' + template: '
Hello, {{name}}!
', }] }] }); //# sourceMappingURL=i18n_message_placeholder.js.map @@ -1669,7 +1669,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE type: Component, args: [{ selector: 'test-cmp', - template: '
Interpolation: {{ one }} Interpolation: {{ two }}
' + template: '
Interpolation: {{ one }} Interpolation: {{ two }}
', }] }] }); //# sourceMappingURL=i18n_message_placeholder_entities.js.map @@ -1705,7 +1705,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE type: Component, args: [{ selector: 'test-cmp', - template: '
Interpolation: {{ one }} Interpolation: {{ two }}
' + template: '
Interpolation: {{ one }} Interpolation: {{ two }}
', }] }] }); //# sourceMappingURL=i18n_message_placeholder_entities.js.map @@ -1741,7 +1741,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE type: Component, args: [{ selector: 'test-cmp', - template: '
pre-body {{bodyValue}} post-body
' + template: '
pre-body {{bodyValue}} post-body
', }] }] }); //# sourceMappingURL=i18n_message_interpolation_whitespace.js.map @@ -1777,7 +1777,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE type: Component, args: [{ selector: 'test-cmp', - template: '
pre-body {{bodyValue}} post-body
' + template: '
pre-body {{bodyValue}} post-body
', }] }] }); //# sourceMappingURL=i18n_message_interpolation_whitespace.js.map @@ -1809,7 +1809,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE type: Component, args: [{ selector: 'test-cmp', - template: '
\n pre-p\n

\n in-p\n

\n post-p\n
' + template: '
\n pre-p\n

\n in-p\n

\n post-p\n
', }] }] }); //# sourceMappingURL=i18n_message_element_whitespace.js.map @@ -1839,7 +1839,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE type: Component, args: [{ selector: 'test-cmp', - template: '
\n pre-p\n

\n in-p\n

\n post-p\n
' + template: '
\n pre-p\n

\n in-p\n

\n post-p\n
', }] }] }); //# sourceMappingURL=i18n_message_element_whitespace.js.map @@ -1869,7 +1869,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE type: Component, args: [{ selector: 'test-cmp', - template: '
Hello, World!
' + template: '
Hello, World!
', }] }] }); //# sourceMappingURL=i18n_message_container_tag.js.map @@ -1899,7 +1899,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE type: Component, args: [{ selector: 'test-cmp', - template: '
Hello, World!
' + template: '
Hello, World!
', }] }] }); //# sourceMappingURL=i18n_message_container_tag.js.map @@ -1929,7 +1929,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE type: Component, args: [{ selector: 'test-cmp', - template: '
this is a test
{{ 1 + 2 }}
' + template: '
this is a test
{{ 1 + 2 }}
', }] }] }); //# sourceMappingURL=update_mode.js.map @@ -1959,7 +1959,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE type: Component, args: [{ selector: 'test-cmp', - template: '
this is a test
{{ 1 + 2 }}
' + template: '
this is a test
{{ 1 + 2 }}
', }] }] }); //# sourceMappingURL=update_mode.js.map @@ -1989,7 +1989,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE type: Component, args: [{ selector: 'test-cmp', - template: '
this is a test
' + template: '
this is a test
', }] }] }); //# sourceMappingURL=escape_sequences.js.map @@ -2019,7 +2019,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "0.0.0-PLACEHOLDE type: Component, args: [{ selector: 'test-cmp', - template: '
this is a test
' + template: '
this is a test
', }] }] }); //# sourceMappingURL=escape_sequences.js.map diff --git a/packages/compiler-cli/test/ngtsc/doc_extraction/jsdoc_extraction_spec.ts b/packages/compiler-cli/test/ngtsc/doc_extraction/jsdoc_extraction_spec.ts index 162cb3ae1ed..e218fe3ccec 100644 --- a/packages/compiler-cli/test/ngtsc/doc_extraction/jsdoc_extraction_spec.ts +++ b/packages/compiler-cli/test/ngtsc/doc_extraction/jsdoc_extraction_spec.ts @@ -254,12 +254,9 @@ runInEachFileSystem(() => { expect(docs[0].description).toBe('Future version.'); expect(docs[0].jsdocTags.length).toBe(1); - - // It's not clear why TypeScript's JsDoc handling puts a space after - // "Component" here, but we'll accept this as-is. expect(docs[0].jsdocTags[0]).toEqual({ name: 'see', - comment: '{@link Component }', + comment: '{@link Component}', }); }); diff --git a/packages/compiler-cli/test/ngtsc/template_mapping_spec.ts b/packages/compiler-cli/test/ngtsc/template_mapping_spec.ts index 9a79c4810f1..301fca3ad48 100644 --- a/packages/compiler-cli/test/ngtsc/template_mapping_spec.ts +++ b/packages/compiler-cli/test/ngtsc/template_mapping_spec.ts @@ -8,6 +8,7 @@ /// import {inspect} from 'util'; +import ts from 'typescript'; import {runInEachFileSystem} from '../../src/ngtsc/file_system/testing'; import {loadStandardTestFiles} from '../../src/ngtsc/testing'; @@ -23,7 +24,11 @@ runInEachFileSystem((os) => { beforeEach(() => { env = NgtscTestEnvironment.setup(testFiles); - env.tsconfig({sourceMap: true, target: 'es2015', enableI18nLegacyMessageIdFormat: false}); + env.tsconfig({ + sourceMap: true, + target: ts.ScriptTarget.ES2015, + enableI18nLegacyMessageIdFormat: false, + }); }); describe('Inline templates', () => { diff --git a/yarn.lock b/yarn.lock index 0a70f6a31df..0c6ba733ab9 100644 --- a/yarn.lock +++ b/yarn.lock @@ -15695,10 +15695,10 @@ typescript@5.4.5, typescript@^5.0.4, typescript@^5.4.4: resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.4.5.tgz#42ccef2c571fdbd0f6718b1d1f5e6e5ef006f611" integrity sha512-vcI4UpRgg81oIRUFwR0WSIHKt11nJ7SAVlYNIu+QpqeyXP+gpQJy/Z4+F0aGxSE4MqwjyXvW/TzgkLAx2AGHwQ== -typescript@5.5.0-beta: - version "5.5.0-beta" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.5.0-beta.tgz#ae6a2e3aa277f74478f1743e8771676cddfcdbec" - integrity sha512-FRg3e/aQg3olEG3ff8YjHOERsO4IM0m4qGrsE4UMvILaq4TdDZ6gQX4+2Rq9SjTpfSe/ebwiHcsjm/7FfWWQ6Q== +typescript@5.5.2: + version "5.5.2" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.5.2.tgz#c26f023cb0054e657ce04f72583ea2d85f8d0507" + integrity sha512-NcRtPEOsPFFWjobJEtfihkLCZCXZt/os3zf8nTxjVH3RvTSxjrCamJpbExGvYOF+tFHc3pA65qpdwPbzjohhew== typescript@~4.9.0: version "4.9.5"