diff --git a/BUILD_INFO b/BUILD_INFO index 00a80fdca1..a2f44062a0 100644 --- a/BUILD_INFO +++ b/BUILD_INFO @@ -1,2 +1,2 @@ -Tue Jan 7 15:37:30 UTC 2025 -97039e8ce81614539ace50a978566062c9474ac7 +Tue Jan 7 15:50:42 UTC 2025 +adc56b72c52c2984209be5e9a3c6a30bddda86d1 diff --git a/fesm2022/platform-browser-dynamic.mjs b/fesm2022/platform-browser-dynamic.mjs index b892510c8d..c463a7320f 100755 --- a/fesm2022/platform-browser-dynamic.mjs +++ b/fesm2022/platform-browser-dynamic.mjs @@ -1,5 +1,5 @@ /** - * @license Angular v19.1.0-next.4+sha-97039e8 + * @license Angular v19.1.0-next.4+sha-adc56b7 * (c) 2010-2024 Google LLC. https://angular.io/ * License: MIT */ @@ -113,10 +113,10 @@ class ResourceLoaderImpl extends ResourceLoader { xhr.send(); return promise; } - static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0-next.4+sha-97039e8", ngImport: i0, type: ResourceLoaderImpl, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); - static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.0-next.4+sha-97039e8", ngImport: i0, type: ResourceLoaderImpl }); + static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0-next.4+sha-adc56b7", ngImport: i0, type: ResourceLoaderImpl, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); + static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.0-next.4+sha-adc56b7", ngImport: i0, type: ResourceLoaderImpl }); } -i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0-next.4+sha-97039e8", ngImport: i0, type: ResourceLoaderImpl, decorators: [{ +i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0-next.4+sha-adc56b7", ngImport: i0, type: ResourceLoaderImpl, decorators: [{ type: Injectable }] }); @@ -141,7 +141,7 @@ const INTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS = [ /** * @publicApi */ -const VERSION = new Version('19.1.0-next.4+sha-97039e8'); +const VERSION = new Version('19.1.0-next.4+sha-adc56b7'); /** * @publicApi diff --git a/fesm2022/platform-browser-dynamic.mjs.map b/fesm2022/platform-browser-dynamic.mjs.map index 9b97cb4358..e55863f3c4 100755 --- a/fesm2022/platform-browser-dynamic.mjs.map +++ b/fesm2022/platform-browser-dynamic.mjs.map @@ -1 +1 @@ -{"version":3,"file":"platform-browser-dynamic.mjs","sources":["../../../../../../packages/platform-browser-dynamic/src/compiler_factory.ts","../../../../../../packages/platform-browser-dynamic/src/platform_core_dynamic.ts","../../../../../../packages/platform-browser-dynamic/src/resource_loader/resource_loader_impl.ts","../../../../../../packages/platform-browser-dynamic/src/platform_providers.ts","../../../../../../packages/platform-browser-dynamic/src/version.ts","../../../../../../packages/platform-browser-dynamic/src/platform-browser-dynamic.ts","../../../../../../packages/platform-browser-dynamic/public_api.ts","../../../../../../packages/platform-browser-dynamic/index.ts","../../../../../../packages/platform-browser-dynamic/platform-browser-dynamic.ts"],"sourcesContent":["/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n\nimport {CompilerConfig} from '@angular/compiler';\nimport {\n Compiler,\n CompilerFactory,\n CompilerOptions,\n Injector,\n StaticProvider,\n ViewEncapsulation,\n} from '@angular/core';\n\nexport const COMPILER_PROVIDERS = [\n {provide: Compiler, useFactory: () => new Compiler()},\n];\n/**\n * @publicApi\n *\n * @deprecated\n * Ivy JIT mode doesn't require accessing this symbol.\n */\nexport class JitCompilerFactory implements CompilerFactory {\n private _defaultOptions: CompilerOptions[];\n\n /** @internal */\n constructor(defaultOptions: CompilerOptions[]) {\n const compilerOptions: CompilerOptions = {\n defaultEncapsulation: ViewEncapsulation.Emulated,\n };\n\n this._defaultOptions = [compilerOptions, ...defaultOptions];\n }\n\n createCompiler(options: CompilerOptions[] = []): Compiler {\n const opts = _mergeOptions(this._defaultOptions.concat(options));\n const injector = Injector.create({\n providers: [\n COMPILER_PROVIDERS,\n {\n provide: CompilerConfig,\n useFactory: () => {\n return new CompilerConfig({\n defaultEncapsulation: opts.defaultEncapsulation,\n preserveWhitespaces: opts.preserveWhitespaces,\n });\n },\n deps: [],\n },\n opts.providers!,\n ],\n });\n return injector.get(Compiler);\n }\n}\n\nfunction _mergeOptions(optionsArr: CompilerOptions[]): CompilerOptions {\n return {\n defaultEncapsulation: _lastDefined(optionsArr.map((options) => options.defaultEncapsulation)),\n providers: _mergeArrays(optionsArr.map((options) => options.providers!)),\n preserveWhitespaces: _lastDefined(optionsArr.map((options) => options.preserveWhitespaces)),\n };\n}\n\nfunction _lastDefined(args: T[]): T | undefined {\n for (let i = args.length - 1; i >= 0; i--) {\n if (args[i] !== undefined) {\n return args[i];\n }\n }\n return undefined;\n}\n\nfunction _mergeArrays(parts: any[][]): any[] {\n const result: any[] = [];\n parts.forEach((part) => part && result.push(...part));\n return result;\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n\nimport {\n COMPILER_OPTIONS,\n CompilerFactory,\n createPlatformFactory,\n platformCore,\n} from '@angular/core';\n\nimport {JitCompilerFactory} from './compiler_factory';\n\n/**\n * A platform that included corePlatform and the compiler.\n *\n * @publicApi\n */\nexport const platformCoreDynamic = createPlatformFactory(platformCore, 'coreDynamic', [\n {provide: COMPILER_OPTIONS, useValue: {}, multi: true},\n {provide: CompilerFactory, useClass: JitCompilerFactory, deps: [COMPILER_OPTIONS]},\n]);\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\nimport {ResourceLoader} from '@angular/compiler';\nimport {Injectable} from '@angular/core';\n\n@Injectable()\nexport class ResourceLoaderImpl extends ResourceLoader {\n override get(url: string): Promise {\n let resolve: (result: any) => void;\n let reject: (error: any) => void;\n const promise = new Promise((res, rej) => {\n resolve = res;\n reject = rej;\n });\n const xhr = new XMLHttpRequest();\n xhr.open('GET', url, true);\n xhr.responseType = 'text';\n\n xhr.onload = function () {\n const response = xhr.response;\n\n let status = xhr.status;\n\n // fix status code when it is 0 (0 status is undocumented).\n // Occurs when accessing file resources or on Android 4.1 stock browser\n // while retrieving files from application cache.\n if (status === 0) {\n status = response ? 200 : 0;\n }\n\n if (200 <= status && status <= 300) {\n resolve(response);\n } else {\n reject(`Failed to load ${url}`);\n }\n };\n\n xhr.onerror = function () {\n reject(`Failed to load ${url}`);\n };\n\n xhr.send();\n return promise;\n }\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n\nimport {ɵPLATFORM_BROWSER_ID as PLATFORM_BROWSER_ID} from '@angular/common';\nimport {ResourceLoader} from '@angular/compiler';\nimport {COMPILER_OPTIONS, PLATFORM_ID, StaticProvider} from '@angular/core';\nimport {ɵINTERNAL_BROWSER_PLATFORM_PROVIDERS as INTERNAL_BROWSER_PLATFORM_PROVIDERS} from '@angular/platform-browser';\n\nimport {ResourceLoaderImpl} from './resource_loader/resource_loader_impl';\n\n/**\n * @publicApi\n */\nexport const INTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS: StaticProvider[] = [\n INTERNAL_BROWSER_PLATFORM_PROVIDERS,\n {\n provide: COMPILER_OPTIONS,\n useValue: {providers: [{provide: ResourceLoader, useClass: ResourceLoaderImpl, deps: []}]},\n multi: true,\n },\n {provide: PLATFORM_ID, useValue: PLATFORM_BROWSER_ID},\n];\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n\n/**\n * @module\n * @description\n * Entry point for all public APIs of the platform-browser-dynamic package.\n */\n\nimport {Version} from '@angular/core';\n\n/**\n * @publicApi\n */\nexport const VERSION = new Version('19.1.0-next.4+sha-97039e8');\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n\nimport {createPlatformFactory} from '@angular/core';\n\nimport {platformCoreDynamic} from './platform_core_dynamic';\nimport {INTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS} from './platform_providers';\n\nexport * from './private_export';\nexport {VERSION} from './version';\nexport {JitCompilerFactory} from './compiler_factory';\n\n/**\n * @publicApi\n */\nexport const platformBrowserDynamic = createPlatformFactory(\n platformCoreDynamic,\n 'browserDynamic',\n INTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS,\n);\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n\n/**\n * @module\n * @description\n * Entry point for all public APIs of this package.\n */\nexport * from './src/platform-browser-dynamic';\n\n// This file only reexports content of the `src` folder. Keep it that way.\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n\n// This file is not used to build this module. It is only used during editing\n// by the TypeScript language service and during build for verification. `ngc`\n// replaces this file with production index.ts when it rewrites private symbol\n// names.\n\nexport * from './public_api';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["INTERNAL_BROWSER_PLATFORM_PROVIDERS","PLATFORM_BROWSER_ID"],"mappings":";;;;;;;;;;;;AAkBO,MAAM,kBAAkB,GAAqB;AAClD,IAAA,EAAC,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,IAAI,QAAQ,EAAE,EAAC;CACtD,CAAA;AACD;;;;;AAKG;MACU,kBAAkB,CAAA;AACrB,IAAA,eAAe,CAAA;;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IAAA,EAAC,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAEC,oBAAmB,EAAC;;;ACjBvD;;;;AAIG;AAIH;;AAEG;MACU,OAAO,GAAG,IAAI,OAAO,CAAC,mBAAmB;;ACFtD;;AAEG;AACI,MAAM,sBAAsB,GAAG,qBAAqB,CACzD,mBAAmB,EACnB,gBAAgB,EAChB,2CAA2C;;ACf7C;;;;AAIG;AAGH;;ACPA;;ACRA;;AAEG;;;;"} \ No newline at end of file +{"version":3,"file":"platform-browser-dynamic.mjs","sources":["../../../../../../packages/platform-browser-dynamic/src/compiler_factory.ts","../../../../../../packages/platform-browser-dynamic/src/platform_core_dynamic.ts","../../../../../../packages/platform-browser-dynamic/src/resource_loader/resource_loader_impl.ts","../../../../../../packages/platform-browser-dynamic/src/platform_providers.ts","../../../../../../packages/platform-browser-dynamic/src/version.ts","../../../../../../packages/platform-browser-dynamic/src/platform-browser-dynamic.ts","../../../../../../packages/platform-browser-dynamic/public_api.ts","../../../../../../packages/platform-browser-dynamic/index.ts","../../../../../../packages/platform-browser-dynamic/platform-browser-dynamic.ts"],"sourcesContent":["/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n\nimport {CompilerConfig} from '@angular/compiler';\nimport {\n Compiler,\n CompilerFactory,\n CompilerOptions,\n Injector,\n StaticProvider,\n ViewEncapsulation,\n} from '@angular/core';\n\nexport const COMPILER_PROVIDERS = [\n {provide: Compiler, useFactory: () => new Compiler()},\n];\n/**\n * @publicApi\n *\n * @deprecated\n * Ivy JIT mode doesn't require accessing this symbol.\n */\nexport class JitCompilerFactory implements CompilerFactory {\n private _defaultOptions: CompilerOptions[];\n\n /** @internal */\n constructor(defaultOptions: CompilerOptions[]) {\n const compilerOptions: CompilerOptions = {\n defaultEncapsulation: ViewEncapsulation.Emulated,\n };\n\n this._defaultOptions = [compilerOptions, ...defaultOptions];\n }\n\n createCompiler(options: CompilerOptions[] = []): Compiler {\n const opts = _mergeOptions(this._defaultOptions.concat(options));\n const injector = Injector.create({\n providers: [\n COMPILER_PROVIDERS,\n {\n provide: CompilerConfig,\n useFactory: () => {\n return new CompilerConfig({\n defaultEncapsulation: opts.defaultEncapsulation,\n preserveWhitespaces: opts.preserveWhitespaces,\n });\n },\n deps: [],\n },\n opts.providers!,\n ],\n });\n return injector.get(Compiler);\n }\n}\n\nfunction _mergeOptions(optionsArr: CompilerOptions[]): CompilerOptions {\n return {\n defaultEncapsulation: _lastDefined(optionsArr.map((options) => options.defaultEncapsulation)),\n providers: _mergeArrays(optionsArr.map((options) => options.providers!)),\n preserveWhitespaces: _lastDefined(optionsArr.map((options) => options.preserveWhitespaces)),\n };\n}\n\nfunction _lastDefined(args: T[]): T | undefined {\n for (let i = args.length - 1; i >= 0; i--) {\n if (args[i] !== undefined) {\n return args[i];\n }\n }\n return undefined;\n}\n\nfunction _mergeArrays(parts: any[][]): any[] {\n const result: any[] = [];\n parts.forEach((part) => part && result.push(...part));\n return result;\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n\nimport {\n COMPILER_OPTIONS,\n CompilerFactory,\n createPlatformFactory,\n platformCore,\n} from '@angular/core';\n\nimport {JitCompilerFactory} from './compiler_factory';\n\n/**\n * A platform that included corePlatform and the compiler.\n *\n * @publicApi\n */\nexport const platformCoreDynamic = createPlatformFactory(platformCore, 'coreDynamic', [\n {provide: COMPILER_OPTIONS, useValue: {}, multi: true},\n {provide: CompilerFactory, useClass: JitCompilerFactory, deps: [COMPILER_OPTIONS]},\n]);\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\nimport {ResourceLoader} from '@angular/compiler';\nimport {Injectable} from '@angular/core';\n\n@Injectable()\nexport class ResourceLoaderImpl extends ResourceLoader {\n override get(url: string): Promise {\n let resolve: (result: any) => void;\n let reject: (error: any) => void;\n const promise = new Promise((res, rej) => {\n resolve = res;\n reject = rej;\n });\n const xhr = new XMLHttpRequest();\n xhr.open('GET', url, true);\n xhr.responseType = 'text';\n\n xhr.onload = function () {\n const response = xhr.response;\n\n let status = xhr.status;\n\n // fix status code when it is 0 (0 status is undocumented).\n // Occurs when accessing file resources or on Android 4.1 stock browser\n // while retrieving files from application cache.\n if (status === 0) {\n status = response ? 200 : 0;\n }\n\n if (200 <= status && status <= 300) {\n resolve(response);\n } else {\n reject(`Failed to load ${url}`);\n }\n };\n\n xhr.onerror = function () {\n reject(`Failed to load ${url}`);\n };\n\n xhr.send();\n return promise;\n }\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n\nimport {ɵPLATFORM_BROWSER_ID as PLATFORM_BROWSER_ID} from '@angular/common';\nimport {ResourceLoader} from '@angular/compiler';\nimport {COMPILER_OPTIONS, PLATFORM_ID, StaticProvider} from '@angular/core';\nimport {ɵINTERNAL_BROWSER_PLATFORM_PROVIDERS as INTERNAL_BROWSER_PLATFORM_PROVIDERS} from '@angular/platform-browser';\n\nimport {ResourceLoaderImpl} from './resource_loader/resource_loader_impl';\n\n/**\n * @publicApi\n */\nexport const INTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS: StaticProvider[] = [\n INTERNAL_BROWSER_PLATFORM_PROVIDERS,\n {\n provide: COMPILER_OPTIONS,\n useValue: {providers: [{provide: ResourceLoader, useClass: ResourceLoaderImpl, deps: []}]},\n multi: true,\n },\n {provide: PLATFORM_ID, useValue: PLATFORM_BROWSER_ID},\n];\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n\n/**\n * @module\n * @description\n * Entry point for all public APIs of the platform-browser-dynamic package.\n */\n\nimport {Version} from '@angular/core';\n\n/**\n * @publicApi\n */\nexport const VERSION = new Version('19.1.0-next.4+sha-adc56b7');\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n\nimport {createPlatformFactory} from '@angular/core';\n\nimport {platformCoreDynamic} from './platform_core_dynamic';\nimport {INTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS} from './platform_providers';\n\nexport * from './private_export';\nexport {VERSION} from './version';\nexport {JitCompilerFactory} from './compiler_factory';\n\n/**\n * @publicApi\n */\nexport const platformBrowserDynamic = createPlatformFactory(\n platformCoreDynamic,\n 'browserDynamic',\n INTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS,\n);\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n\n/**\n * @module\n * @description\n * Entry point for all public APIs of this package.\n */\nexport * from './src/platform-browser-dynamic';\n\n// This file only reexports content of the `src` folder. Keep it that way.\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n\n// This file is not used to build this module. It is only used during editing\n// by the TypeScript language service and during build for verification. `ngc`\n// replaces this file with production index.ts when it rewrites private symbol\n// names.\n\nexport * from './public_api';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["INTERNAL_BROWSER_PLATFORM_PROVIDERS","PLATFORM_BROWSER_ID"],"mappings":";;;;;;;;;;;;AAkBO,MAAM,kBAAkB,GAAqB;AAClD,IAAA,EAAC,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,IAAI,QAAQ,EAAE,EAAC;CACtD,CAAA;AACD;;;;;AAKG;MACU,kBAAkB,CAAA;AACrB,IAAA,eAAe,CAAA;;AAGvB,IAAA,WAAA,CAAY,c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AW,EAAE,QAAQ,EAAEC,oBAAmB,EAAC;;;ACjBvD;;;;AAIG;AAIH;;AAEG;MACU,OAAO,GAAG,IAAI,OAAO,CAAC,mBAAmB;;ACFtD;;AAEG;AACI,MAAM,sBAAsB,GAAG,qBAAqB,CACzD,mBAAmB,EACnB,gBAAgB,EAChB,2CAA2C;;ACf7C;;;;AAIG;AAGH;;ACPA;;ACRA;;AAEG;;;;"} \ No newline at end of file diff --git a/fesm2022/testing.mjs b/fesm2022/testing.mjs index da7acfc301..4af1d3d1a9 100755 --- a/fesm2022/testing.mjs +++ b/fesm2022/testing.mjs @@ -1,5 +1,5 @@ /** - * @license Angular v19.1.0-next.4+sha-97039e8 + * @license Angular v19.1.0-next.4+sha-adc56b7 * (c) 2010-2024 Google LLC. https://angular.io/ * License: MIT */ @@ -42,10 +42,10 @@ class DOMTestComponentRenderer extends TestComponentRenderer { ɵgetDOM().remove(oldRoots[i]); } } - static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0-next.4+sha-97039e8", ngImport: i0, type: DOMTestComponentRenderer, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable }); - static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.0-next.4+sha-97039e8", ngImport: i0, type: DOMTestComponentRenderer }); + static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0-next.4+sha-adc56b7", ngImport: i0, type: DOMTestComponentRenderer, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable }); + static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.0-next.4+sha-adc56b7", ngImport: i0, type: DOMTestComponentRenderer }); } -i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0-next.4+sha-97039e8", ngImport: i0, type: DOMTestComponentRenderer, decorators: [{ +i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0-next.4+sha-adc56b7", ngImport: i0, type: DOMTestComponentRenderer, decorators: [{ type: Injectable }], ctorParameters: () => [{ type: undefined, decorators: [{ type: Inject, @@ -69,11 +69,11 @@ const platformBrowserDynamicTesting = createPlatformFactory(platformCoreDynamicT * @publicApi */ class BrowserDynamicTestingModule { - static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0-next.4+sha-97039e8", ngImport: i0, type: BrowserDynamicTestingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); - static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.0-next.4+sha-97039e8", ngImport: i0, type: BrowserDynamicTestingModule, exports: [BrowserTestingModule] }); - static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.1.0-next.4+sha-97039e8", ngImport: i0, type: BrowserDynamicTestingModule, providers: [{ provide: TestComponentRenderer, useClass: DOMTestComponentRenderer }], imports: [BrowserTestingModule] }); + static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.0-next.4+sha-adc56b7", ngImport: i0, type: BrowserDynamicTestingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); + static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.0-next.4+sha-adc56b7", ngImport: i0, type: BrowserDynamicTestingModule, exports: [BrowserTestingModule] }); + static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.1.0-next.4+sha-adc56b7", ngImport: i0, type: BrowserDynamicTestingModule, providers: [{ provide: TestComponentRenderer, useClass: DOMTestComponentRenderer }], imports: [BrowserTestingModule] }); } -i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0-next.4+sha-97039e8", ngImport: i0, type: BrowserDynamicTestingModule, decorators: [{ +i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.0-next.4+sha-adc56b7", ngImport: i0, type: BrowserDynamicTestingModule, decorators: [{ type: NgModule, args: [{ exports: [BrowserTestingModule], diff --git a/index.d.ts b/index.d.ts index 46669ab818..88b7bed7f4 100755 --- a/index.d.ts +++ b/index.d.ts @@ -1,5 +1,5 @@ /** - * @license Angular v19.1.0-next.4+sha-97039e8 + * @license Angular v19.1.0-next.4+sha-adc56b7 * (c) 2010-2024 Google LLC. https://angular.io/ * License: MIT */ diff --git a/package.json b/package.json index 4c1e47e379..687e38aaec 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@angular/platform-browser-dynamic", - "version": "19.1.0-next.4+sha-97039e8", + "version": "19.1.0-next.4+sha-adc56b7", "description": "Angular - library for using Angular in a web browser with JIT compilation", "author": "angular", "license": "MIT", @@ -11,10 +11,10 @@ "tslib": "^2.3.0" }, "peerDependencies": { - "@angular/core": "19.1.0-next.4+sha-97039e8", - "@angular/common": "19.1.0-next.4+sha-97039e8", - "@angular/compiler": "19.1.0-next.4+sha-97039e8", - "@angular/platform-browser": "19.1.0-next.4+sha-97039e8" + "@angular/core": "19.1.0-next.4+sha-adc56b7", + "@angular/common": "19.1.0-next.4+sha-adc56b7", + "@angular/compiler": "19.1.0-next.4+sha-adc56b7", + "@angular/platform-browser": "19.1.0-next.4+sha-adc56b7" }, "repository": { "type": "git", diff --git a/testing/index.d.ts b/testing/index.d.ts index b79467f055..45058ae87c 100755 --- a/testing/index.d.ts +++ b/testing/index.d.ts @@ -1,5 +1,5 @@ /** - * @license Angular v19.1.0-next.4+sha-97039e8 + * @license Angular v19.1.0-next.4+sha-adc56b7 * (c) 2010-2024 Google LLC. https://angular.io/ * License: MIT */