@angular/platform-browser-dynamic 20.0.0-next.1 → 20.0.0-next.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,14 +1,14 @@
1
1
  /**
2
- * @license Angular v20.0.0-next.1
2
+ * @license Angular v20.0.0-next.2
3
3
  * (c) 2010-2025 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
6
6
 
7
7
  import * as i0 from '@angular/core';
8
- import { Compiler, ViewEncapsulation, Injector, createPlatformFactory, platformCore, COMPILER_OPTIONS, CompilerFactory, Injectable, PLATFORM_ID, Version } from '@angular/core';
8
+ import { ViewEncapsulation, Injector, Compiler, createPlatformFactory, platformCore, COMPILER_OPTIONS, CompilerFactory, Injectable, PLATFORM_ID, Version } from '@angular/core';
9
9
  import { CompilerConfig, ResourceLoader } from '@angular/compiler';
10
- import { ɵPLATFORM_BROWSER_ID } from '@angular/common';
11
- import { ɵINTERNAL_BROWSER_PLATFORM_PROVIDERS } from '@angular/platform-browser';
10
+ import { ɵPLATFORM_BROWSER_ID as _PLATFORM_BROWSER_ID } from '@angular/common';
11
+ import { ɵINTERNAL_BROWSER_PLATFORM_PROVIDERS as _INTERNAL_BROWSER_PLATFORM_PROVIDERS } from '@angular/platform-browser';
12
12
 
13
13
  const COMPILER_PROVIDERS = [
14
14
  { provide: Compiler, useFactory: () => new Compiler() },
@@ -113,10 +113,10 @@ class ResourceLoaderImpl extends ResourceLoader {
113
113
  xhr.send();
114
114
  return promise;
115
115
  }
116
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: ResourceLoaderImpl, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
117
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: ResourceLoaderImpl });
116
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.2", ngImport: i0, type: ResourceLoaderImpl, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
117
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.0-next.2", ngImport: i0, type: ResourceLoaderImpl });
118
118
  }
119
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: ResourceLoaderImpl, decorators: [{
119
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.2", ngImport: i0, type: ResourceLoaderImpl, decorators: [{
120
120
  type: Injectable
121
121
  }] });
122
122
 
@@ -124,13 +124,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.1",
124
124
  * @publicApi
125
125
  */
126
126
  const INTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS = [
127
- ɵINTERNAL_BROWSER_PLATFORM_PROVIDERS,
127
+ _INTERNAL_BROWSER_PLATFORM_PROVIDERS,
128
128
  {
129
129
  provide: COMPILER_OPTIONS,
130
130
  useValue: { providers: [{ provide: ResourceLoader, useClass: ResourceLoaderImpl, deps: [] }] },
131
131
  multi: true,
132
132
  },
133
- { provide: PLATFORM_ID, useValue: ɵPLATFORM_BROWSER_ID },
133
+ { provide: PLATFORM_ID, useValue: _PLATFORM_BROWSER_ID },
134
134
  ];
135
135
 
136
136
  /**
@@ -141,25 +141,12 @@ const INTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS = [
141
141
  /**
142
142
  * @publicApi
143
143
  */
144
- const VERSION = new Version('20.0.0-next.1');
144
+ const VERSION = new Version('20.0.0-next.2');
145
145
 
146
146
  /**
147
147
  * @publicApi
148
148
  */
149
149
  const platformBrowserDynamic = createPlatformFactory(platformCoreDynamic, 'browserDynamic', INTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS);
150
150
 
151
- /**
152
- * @module
153
- * @description
154
- * Entry point for all public APIs of this package.
155
- */
156
- // This file only reexports content of the `src` folder. Keep it that way.
157
-
158
- // This file is not used to build this module. It is only used during editing
159
-
160
- /**
161
- * Generated bundle index. Do not edit.
162
- */
163
-
164
151
  export { JitCompilerFactory, VERSION, platformBrowserDynamic, INTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS as ɵINTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS, platformCoreDynamic as ɵplatformCoreDynamic };
165
152
  //# sourceMappingURL=platform-browser-dynamic.mjs.map
@@ -1 +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 = <StaticProvider[]>[\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<T>(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<string> {\n let resolve: (result: any) => void;\n let reject: (error: any) => void;\n const promise = new Promise<string>((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('20.0.0-next.1');\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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D,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;;;;"}
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"],"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 = <StaticProvider[]>[\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<T>(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<string> {\n let resolve: (result: any) => void;\n let reject: (error: any) => void;\n const promise = new Promise<string>((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('20.0.0-next.2');\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"],"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;AACD;;;;;AAKG;MACU,kBAAkB,CAAA;AACrB,IAAA,eAAe;;AAGvB,IAAA,WAAA,CAAY,cAAiC,EAAA;AAC3C,QAAA,MAAM,eAAe,GAAoB;YACvC,oBAAoB,EAAE,iBAAiB,CAAC,QAAQ;SACjD;QAED,IAAI,CAAC,eAAe,GAAG,CAAC,eAAe,EAAE,GAAG,cAAc,CAAC;;IAG7D,cAAc,CAAC,UAA6B,EAAE,EAAA;AAC5C,QAAA,MAAM,IAAI,GAAG,aAAa,CAAC,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;AAChE,QAAA,MAAM,QAAQ,GAAG,QAAQ,CAAC,MAAM,CAAC;AAC/B,YAAA,SAAS,EAAE;gBACT,kBAAkB;AAClB,gBAAA;AACE,oBAAA,OAAO,EAAE,cAAc;oBACvB,UAAU,EAAE,MAAK;wBACf,OAAO,IAAI,cAAc,CAAC;4BACxB,oBAAoB,EAAE,IAAI,CAAC,oBAAoB;4BAC/C,mBAAmB,EAAE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,eAAA,CAAA,UAAA,EAAA,CAAA;sHAAlB,kBAAkB,EAAA,CAAA;;sGAAlB,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAD9B;;;ACKD;;AAEG;AACU,MAAA,2CAA2C,GAAqB;IAC3EA,oCAAmC;AACnC,IAAA;AACE,QAAA,OAAO,EAAE,gBAAgB;AACzB,QAAA,QAAQ,EAAE,EAAC,SAAS,EAAE,CAAC,EAAC,OAAO,EAAE,cAAc,EAAE,QAAQ,EAAE,kBAAkB,EAAE,IAAI,EAAE,EAAE,EAAC,CAAC,EAAC;AAC1F,QAAA,KAAK,EAAE,IAAI;AACZ,KAAA;AACD,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;;;;"}
@@ -1,15 +1,15 @@
1
1
  /**
2
- * @license Angular v20.0.0-next.1
2
+ * @license Angular v20.0.0-next.2
3
3
  * (c) 2010-2025 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
6
6
 
7
+ import { ɵgetDOM as _getDOM, DOCUMENT } from '@angular/common';
7
8
  import * as i0 from '@angular/core';
8
- import { Injectable, Inject, createPlatformFactory, NgModule } from '@angular/core';
9
+ import { Inject, Injectable, createPlatformFactory, NgModule } from '@angular/core';
9
10
  import { TestComponentRenderer } from '@angular/core/testing';
10
- import { ɵplatformCoreDynamic, ɵINTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS } from '@angular/platform-browser-dynamic';
11
+ import { ɵplatformCoreDynamic as _platformCoreDynamic, ɵINTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS as _INTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS } from '@angular/platform-browser-dynamic';
11
12
  import { BrowserTestingModule } from '@angular/platform-browser/testing';
12
- import { ɵgetDOM, DOCUMENT } from '@angular/common';
13
13
 
14
14
  /**
15
15
  * A DOM based implementation of the TestComponentRenderer.
@@ -22,7 +22,7 @@ class DOMTestComponentRenderer extends TestComponentRenderer {
22
22
  }
23
23
  insertRootElement(rootElId) {
24
24
  this.removeAllRootElementsImpl();
25
- const rootElement = ɵgetDOM().getDefaultDocument().createElement('div');
25
+ const rootElement = _getDOM().getDefaultDocument().createElement('div');
26
26
  rootElement.setAttribute('id', rootElId);
27
27
  this._doc.body.appendChild(rootElement);
28
28
  }
@@ -39,13 +39,13 @@ class DOMTestComponentRenderer extends TestComponentRenderer {
39
39
  removeAllRootElementsImpl() {
40
40
  const oldRoots = this._doc.querySelectorAll('[id^=root]');
41
41
  for (let i = 0; i < oldRoots.length; i++) {
42
- ɵgetDOM().remove(oldRoots[i]);
42
+ _getDOM().remove(oldRoots[i]);
43
43
  }
44
44
  }
45
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: DOMTestComponentRenderer, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
46
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: DOMTestComponentRenderer });
45
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.2", ngImport: i0, type: DOMTestComponentRenderer, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
46
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.0-next.2", ngImport: i0, type: DOMTestComponentRenderer });
47
47
  }
48
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: DOMTestComponentRenderer, decorators: [{
48
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.2", ngImport: i0, type: DOMTestComponentRenderer, decorators: [{
49
49
  type: Injectable
50
50
  }], ctorParameters: () => [{ type: undefined, decorators: [{
51
51
  type: Inject,
@@ -57,23 +57,23 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.1",
57
57
  *
58
58
  * @publicApi
59
59
  */
60
- const platformCoreDynamicTesting = createPlatformFactory(ɵplatformCoreDynamic, 'coreDynamicTesting', []);
60
+ const platformCoreDynamicTesting = createPlatformFactory(_platformCoreDynamic, 'coreDynamicTesting', []);
61
61
 
62
62
  /**
63
63
  * @publicApi
64
64
  */
65
- const platformBrowserDynamicTesting = createPlatformFactory(platformCoreDynamicTesting, 'browserDynamicTesting', ɵINTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS);
65
+ const platformBrowserDynamicTesting = createPlatformFactory(platformCoreDynamicTesting, 'browserDynamicTesting', _INTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS);
66
66
  /**
67
67
  * NgModule for testing.
68
68
  *
69
69
  * @publicApi
70
70
  */
71
71
  class BrowserDynamicTestingModule {
72
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: BrowserDynamicTestingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
73
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.0.0-next.1", ngImport: i0, type: BrowserDynamicTestingModule, exports: [BrowserTestingModule] });
74
- static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: BrowserDynamicTestingModule, providers: [{ provide: TestComponentRenderer, useClass: DOMTestComponentRenderer }], imports: [BrowserTestingModule] });
72
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.2", ngImport: i0, type: BrowserDynamicTestingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
73
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.0.0-next.2", ngImport: i0, type: BrowserDynamicTestingModule, exports: [BrowserTestingModule] });
74
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.0.0-next.2", ngImport: i0, type: BrowserDynamicTestingModule, providers: [{ provide: TestComponentRenderer, useClass: DOMTestComponentRenderer }], imports: [BrowserTestingModule] });
75
75
  }
76
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: BrowserDynamicTestingModule, decorators: [{
76
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.2", ngImport: i0, type: BrowserDynamicTestingModule, decorators: [{
77
77
  type: NgModule,
78
78
  args: [{
79
79
  exports: [BrowserTestingModule],
@@ -81,17 +81,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.1",
81
81
  }]
82
82
  }] });
83
83
 
84
- /**
85
- * @module
86
- * @description
87
- * Entry point for all public APIs of this package.
88
- */
89
-
90
- // This file is not used to build this module. It is only used during editing
91
-
92
- /**
93
- * Generated bundle index. Do not edit.
94
- */
95
-
96
84
  export { BrowserDynamicTestingModule, platformBrowserDynamicTesting, DOMTestComponentRenderer as ɵDOMTestComponentRenderer, platformCoreDynamicTesting as ɵplatformCoreDynamicTesting };
97
85
  //# sourceMappingURL=testing.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"testing.mjs","sources":["../../../../../../packages/platform-browser-dynamic/testing/src/dom_test_component_renderer.ts","../../../../../../packages/platform-browser-dynamic/testing/src/platform_core_dynamic_testing.ts","../../../../../../packages/platform-browser-dynamic/testing/src/testing.ts","../../../../../../packages/platform-browser-dynamic/testing/public_api.ts","../../../../../../packages/platform-browser-dynamic/testing/index.ts","../../../../../../packages/platform-browser-dynamic/testing/testing.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 {DOCUMENT, ɵgetDOM as getDOM} from '@angular/common';\nimport {Inject, Injectable} from '@angular/core';\nimport {TestComponentRenderer} from '@angular/core/testing';\n\n/**\n * A DOM based implementation of the TestComponentRenderer.\n */\n@Injectable()\nexport class DOMTestComponentRenderer extends TestComponentRenderer {\n constructor(@Inject(DOCUMENT) private _doc: any) {\n super();\n }\n\n override insertRootElement(rootElId: string) {\n this.removeAllRootElementsImpl();\n const rootElement = getDOM().getDefaultDocument().createElement('div');\n rootElement.setAttribute('id', rootElId);\n this._doc.body.appendChild(rootElement);\n }\n\n override removeAllRootElements() {\n // Check whether the `DOCUMENT` instance retrieved from DI contains\n // the necessary function to complete the cleanup. In tests that don't\n // interact with DOM, the `DOCUMENT` might be mocked and some functions\n // might be missing. For such tests, DOM cleanup is not required and\n // we skip the logic if there are missing functions.\n if (typeof this._doc.querySelectorAll === 'function') {\n this.removeAllRootElementsImpl();\n }\n }\n\n private removeAllRootElementsImpl() {\n const oldRoots = this._doc.querySelectorAll('[id^=root]');\n for (let i = 0; i < oldRoots.length; i++) {\n getDOM().remove(oldRoots[i]);\n }\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 {createPlatformFactory, PlatformRef} from '@angular/core';\nimport {ɵplatformCoreDynamic as platformCoreDynamic} from '@angular/platform-browser-dynamic';\n\n/**\n * Platform for dynamic tests\n *\n * @publicApi\n */\nexport const platformCoreDynamicTesting: (extraProviders?: any[]) => PlatformRef =\n createPlatformFactory(platformCoreDynamic, 'coreDynamicTesting', []);\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, NgModule, PlatformRef, StaticProvider} from '@angular/core';\nimport {TestComponentRenderer} from '@angular/core/testing';\nimport {ɵINTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS as INTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS} from '@angular/platform-browser-dynamic';\nimport {BrowserTestingModule} from '@angular/platform-browser/testing';\n\nimport {DOMTestComponentRenderer} from './dom_test_component_renderer';\nimport {platformCoreDynamicTesting} from './platform_core_dynamic_testing';\n\nexport * from './private_export_testing';\n\n/**\n * @publicApi\n */\nexport const platformBrowserDynamicTesting = createPlatformFactory(\n platformCoreDynamicTesting,\n 'browserDynamicTesting',\n INTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS,\n);\n\n/**\n * NgModule for testing.\n *\n * @publicApi\n */\n@NgModule({\n exports: [BrowserTestingModule],\n providers: [{provide: TestComponentRenderer, useClass: DOMTestComponentRenderer}],\n})\nexport class BrowserDynamicTestingModule {}\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/testing';\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":["getDOM","platformCoreDynamic","INTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS"],"mappings":";;;;;;;;;;;;;AAYA;;AAEG;AAEG,MAAO,wBAAyB,SAAQ,qBAAqB,CAAA;AAC3B,IAAA,IAAA,CAAA;AAAtC,IAAA,WAAA,CAAsC,IAAS,EAAA;AAC7C,QAAA,KAAK,EAAE,CAAA;QAD6B,IAAI,CAAA,IAAA,GAAJ,IAAI,CAAA;KAE1C;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rE;;AAEG;AACI,MAAM,6BAA6B,GAAG,qBAAqB,CAChE,0BAA0B,EAC1B,uBAAuB,EACvBC,4CAA2C,EAC5C;AAED;;;;AAIG;MAKU,2BAA2B,CAAA;kHAA3B,2BAA2B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;AAA3B,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,mBAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,2BAA2B,YAH5B,oBAAoB,CAAA,EAAA,CAAA,CAAA;AAGnB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,mBAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,2BAA2B,EAF3B,SAAA,EAAA,CAAC,EAAC,OAAO,EAAE,qBAAqB,EAAE,QAAQ,EAAE,wBAAwB,EAAC,CAAC,YADvE,oBAAoB,CAAA,EAAA,CAAA,CAAA;;sGAGnB,2BAA2B,EAAA,UAAA,EAAA,CAAA;kBAJvC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,OAAO,EAAE,CAAC,oBAAoB,CAAC;oBAC/B,SAAS,EAAE,CAAC,EAAC,OAAO,EAAE,qBAAqB,EAAE,QAAQ,EAAE,wBAAwB,EAAC,CAAC;AAClF,iBAAA,CAAA;;;AC3BD;;;;AAIG;;ACJH;;ACRA;;AAEG;;;;"}
1
+ {"version":3,"file":"testing.mjs","sources":["../../../../../../packages/platform-browser-dynamic/testing/src/dom_test_component_renderer.ts","../../../../../../packages/platform-browser-dynamic/testing/src/platform_core_dynamic_testing.ts","../../../../../../packages/platform-browser-dynamic/testing/src/testing.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 {DOCUMENT, ɵgetDOM as getDOM} from '@angular/common';\nimport {Inject, Injectable} from '@angular/core';\nimport {TestComponentRenderer} from '@angular/core/testing';\n\n/**\n * A DOM based implementation of the TestComponentRenderer.\n */\n@Injectable()\nexport class DOMTestComponentRenderer extends TestComponentRenderer {\n constructor(@Inject(DOCUMENT) private _doc: any) {\n super();\n }\n\n override insertRootElement(rootElId: string) {\n this.removeAllRootElementsImpl();\n const rootElement = getDOM().getDefaultDocument().createElement('div');\n rootElement.setAttribute('id', rootElId);\n this._doc.body.appendChild(rootElement);\n }\n\n override removeAllRootElements() {\n // Check whether the `DOCUMENT` instance retrieved from DI contains\n // the necessary function to complete the cleanup. In tests that don't\n // interact with DOM, the `DOCUMENT` might be mocked and some functions\n // might be missing. For such tests, DOM cleanup is not required and\n // we skip the logic if there are missing functions.\n if (typeof this._doc.querySelectorAll === 'function') {\n this.removeAllRootElementsImpl();\n }\n }\n\n private removeAllRootElementsImpl() {\n const oldRoots = this._doc.querySelectorAll('[id^=root]');\n for (let i = 0; i < oldRoots.length; i++) {\n getDOM().remove(oldRoots[i]);\n }\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 {createPlatformFactory, PlatformRef} from '@angular/core';\nimport {ɵplatformCoreDynamic as platformCoreDynamic} from '@angular/platform-browser-dynamic';\n\n/**\n * Platform for dynamic tests\n *\n * @publicApi\n */\nexport const platformCoreDynamicTesting: (extraProviders?: any[]) => PlatformRef =\n createPlatformFactory(platformCoreDynamic, 'coreDynamicTesting', []);\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, NgModule, PlatformRef, StaticProvider} from '@angular/core';\nimport {TestComponentRenderer} from '@angular/core/testing';\nimport {ɵINTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS as INTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS} from '@angular/platform-browser-dynamic';\nimport {BrowserTestingModule} from '@angular/platform-browser/testing';\n\nimport {DOMTestComponentRenderer} from './dom_test_component_renderer';\nimport {platformCoreDynamicTesting} from './platform_core_dynamic_testing';\n\nexport * from './private_export_testing';\n\n/**\n * @publicApi\n */\nexport const platformBrowserDynamicTesting = createPlatformFactory(\n platformCoreDynamicTesting,\n 'browserDynamicTesting',\n INTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS,\n);\n\n/**\n * NgModule for testing.\n *\n * @publicApi\n */\n@NgModule({\n exports: [BrowserTestingModule],\n providers: [{provide: TestComponentRenderer, useClass: DOMTestComponentRenderer}],\n})\nexport class BrowserDynamicTestingModule {}\n"],"names":["getDOM","platformCoreDynamic","INTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS"],"mappings":";;;;;;;;;;;;;AAYA;;AAEG;AAEG,MAAO,wBAAyB,SAAQ,qBAAqB,CAAA;AAC3B,IAAA,IAAA;AAAtC,IAAA,WAAA,CAAsC,IAAS,EAAA;AAC7C,QAAA,KAAK,EAAE;QAD6B,IAAI,CAAA,IAAA,GAAJ,IAAI;;AAIjC,IAAA,iBAAiB,CAAC,QAAgB,EAAA;QACzC,IAAI,CAAC,yBAAyB,EAAE;AAChC,QAAA,MAAM,WAAW,GAAGA,OAAM,EAAE,CAAC,kBAAkB,EAAE,CAAC,aAAa,CAAC,KAAK,CAAC;AACtE,QAAA,WAAW,CAAC,YAAY,CAAC,IAAI,EAAE,QAAQ,CAAC;QACxC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC,WAAW,CAAC;;IAGhC,qBAAqB,GAAA;;;;;;QAM5B,IAAI,OAAO,IAAI,CAAC,IAAI,CAAC,gBAAgB,KAAK,UAAU,EAAE;YACpD,IAAI,CAAC,yBAAyB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AA,OAAA,EAAA,mBAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,2BAA2B,EAF3B,SAAA,EAAA,CAAC,EAAC,OAAO,EAAE,qBAAqB,EAAE,QAAQ,EAAE,wBAAwB,EAAC,CAAC,YADvE,oBAAoB,CAAA,EAAA,CAAA;;sGAGnB,2BAA2B,EAAA,UAAA,EAAA,CAAA;kBAJvC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,OAAO,EAAE,CAAC,oBAAoB,CAAC;oBAC/B,SAAS,EAAE,CAAC,EAAC,OAAO,EAAE,qBAAqB,EAAE,QAAQ,EAAE,wBAAwB,EAAC,CAAC;AAClF,iBAAA;;;;;"}
package/index.d.ts CHANGED
@@ -1,48 +1,49 @@
1
1
  /**
2
- * @license Angular v20.0.0-next.1
2
+ * @license Angular v20.0.0-next.2
3
3
  * (c) 2010-2025 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
6
6
 
7
-
8
- import { Compiler } from '@angular/core';
9
- import { CompilerFactory } from '@angular/core';
10
- import { CompilerOptions } from '@angular/core';
11
- import { PlatformRef } from '@angular/core';
12
- import { StaticProvider } from '@angular/core';
13
- import { Version } from '@angular/core';
7
+ import * as i0 from '@angular/core';
8
+ import { StaticProvider, Version, CompilerFactory, CompilerOptions, Compiler } from '@angular/core';
14
9
 
15
10
  /**
16
- * @publicApi
11
+ * A platform that included corePlatform and the compiler.
17
12
  *
18
- * @deprecated
19
- * Ivy JIT mode doesn't require accessing this symbol.
13
+ * @publicApi
20
14
  */
21
- export declare class JitCompilerFactory implements CompilerFactory {
22
- private _defaultOptions;
23
- createCompiler(options?: CompilerOptions[]): Compiler;
24
- }
15
+ declare const platformCoreDynamic: (extraProviders?: i0.StaticProvider[]) => i0.PlatformRef;
25
16
 
26
17
  /**
27
18
  * @publicApi
28
19
  */
29
- export declare const platformBrowserDynamic: (extraProviders?: StaticProvider[]) => PlatformRef;
20
+ declare const INTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS: StaticProvider[];
30
21
 
31
22
  /**
32
- * @publicApi
23
+ * @module
24
+ * @description
25
+ * Entry point for all public APIs of the platform-browser-dynamic package.
33
26
  */
34
- export declare const VERSION: Version;
35
27
 
36
28
  /**
37
29
  * @publicApi
38
30
  */
39
- export declare const ɵINTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS: StaticProvider[];
31
+ declare const VERSION: Version;
40
32
 
41
33
  /**
42
- * A platform that included corePlatform and the compiler.
34
+ * @publicApi
43
35
  *
36
+ * @deprecated
37
+ * Ivy JIT mode doesn't require accessing this symbol.
38
+ */
39
+ declare class JitCompilerFactory implements CompilerFactory {
40
+ private _defaultOptions;
41
+ createCompiler(options?: CompilerOptions[]): Compiler;
42
+ }
43
+
44
+ /**
44
45
  * @publicApi
45
46
  */
46
- export declare const ɵplatformCoreDynamic: (extraProviders?: StaticProvider[]) => PlatformRef;
47
+ declare const platformBrowserDynamic: (extraProviders?: i0.StaticProvider[]) => i0.PlatformRef;
47
48
 
48
- export { }
49
+ export { JitCompilerFactory, VERSION, platformBrowserDynamic, INTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS as ɵINTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS, platformCoreDynamic as ɵplatformCoreDynamic };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/platform-browser-dynamic",
3
- "version": "20.0.0-next.1",
3
+ "version": "20.0.0-next.2",
4
4
  "description": "Angular - library for using Angular in a web browser with JIT compilation",
5
5
  "author": "angular",
6
6
  "license": "MIT",
@@ -11,10 +11,10 @@
11
11
  "tslib": "^2.3.0"
12
12
  },
13
13
  "peerDependencies": {
14
- "@angular/core": "20.0.0-next.1",
15
- "@angular/common": "20.0.0-next.1",
16
- "@angular/compiler": "20.0.0-next.1",
17
- "@angular/platform-browser": "20.0.0-next.1"
14
+ "@angular/core": "20.0.0-next.2",
15
+ "@angular/common": "20.0.0-next.2",
16
+ "@angular/compiler": "20.0.0-next.2",
17
+ "@angular/platform-browser": "20.0.0-next.2"
18
18
  },
19
19
  "repository": {
20
20
  "type": "git",
@@ -1,43 +1,25 @@
1
1
  /**
2
- * @license Angular v20.0.0-next.1
2
+ * @license Angular v20.0.0-next.2
3
3
  * (c) 2010-2025 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
6
6
 
7
-
8
7
  import * as i0 from '@angular/core';
8
+ import { PlatformRef, StaticProvider } from '@angular/core';
9
9
  import * as i1 from '@angular/platform-browser/testing';
10
- import { PlatformRef } from '@angular/core';
11
- import { StaticProvider } from '@angular/core';
12
10
  import { TestComponentRenderer } from '@angular/core/testing';
13
11
 
14
- /**
15
- * NgModule for testing.
16
- *
17
- * @publicApi
18
- */
19
- export declare class BrowserDynamicTestingModule {
20
- static ɵfac: i0.ɵɵFactoryDeclaration<BrowserDynamicTestingModule, never>;
21
- static ɵmod: i0.ɵɵNgModuleDeclaration<BrowserDynamicTestingModule, never, never, [typeof i1.BrowserTestingModule]>;
22
- static ɵinj: i0.ɵɵInjectorDeclaration<BrowserDynamicTestingModule>;
23
- }
24
-
25
- /**
26
- * @publicApi
27
- */
28
- export declare const platformBrowserDynamicTesting: (extraProviders?: StaticProvider[]) => PlatformRef;
29
-
30
12
  /**
31
13
  * A DOM based implementation of the TestComponentRenderer.
32
14
  */
33
- export declare class ɵDOMTestComponentRenderer extends TestComponentRenderer {
15
+ declare class DOMTestComponentRenderer extends TestComponentRenderer {
34
16
  private _doc;
35
17
  constructor(_doc: any);
36
18
  insertRootElement(rootElId: string): void;
37
19
  removeAllRootElements(): void;
38
20
  private removeAllRootElementsImpl;
39
- static ɵfac: i0.ɵɵFactoryDeclarationDOMTestComponentRenderer, never>;
40
- static ɵprov: i0.ɵɵInjectableDeclarationDOMTestComponentRenderer>;
21
+ static ɵfac: i0.ɵɵFactoryDeclaration<DOMTestComponentRenderer, never>;
22
+ static ɵprov: i0.ɵɵInjectableDeclaration<DOMTestComponentRenderer>;
41
23
  }
42
24
 
43
25
  /**
@@ -45,6 +27,21 @@ export declare class ɵDOMTestComponentRenderer extends TestComponentRenderer {
45
27
  *
46
28
  * @publicApi
47
29
  */
48
- export declare const ɵplatformCoreDynamicTesting: (extraProviders?: any[]) => PlatformRef;
30
+ declare const platformCoreDynamicTesting: (extraProviders?: any[]) => PlatformRef;
31
+
32
+ /**
33
+ * @publicApi
34
+ */
35
+ declare const platformBrowserDynamicTesting: (extraProviders?: StaticProvider[]) => PlatformRef;
36
+ /**
37
+ * NgModule for testing.
38
+ *
39
+ * @publicApi
40
+ */
41
+ declare class BrowserDynamicTestingModule {
42
+ static ɵfac: i0.ɵɵFactoryDeclaration<BrowserDynamicTestingModule, never>;
43
+ static ɵmod: i0.ɵɵNgModuleDeclaration<BrowserDynamicTestingModule, never, never, [typeof i1.BrowserTestingModule]>;
44
+ static ɵinj: i0.ɵɵInjectorDeclaration<BrowserDynamicTestingModule>;
45
+ }
49
46
 
50
- export { }
47
+ export { BrowserDynamicTestingModule, platformBrowserDynamicTesting, DOMTestComponentRenderer as ɵDOMTestComponentRenderer, platformCoreDynamicTesting as ɵplatformCoreDynamicTesting };