@angular/platform-server 20.0.0-rc.0 → 20.0.0-rc.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,21 +1,19 @@
1
1
  /**
2
- * @license Angular v20.0.0-rc.0
2
+ * @license Angular v20.0.0-rc.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
8
  import { createPlatformFactory, platformCore, NgModule } from '@angular/core';
9
- import { ɵINTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS as _INTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS } from '@angular/platform-browser-dynamic';
10
9
  import { BrowserDynamicTestingModule } from '@angular/platform-browser-dynamic/testing';
11
- import { INTERNAL_SERVER_PLATFORM_PROVIDERS, SERVER_RENDER_PROVIDERS } from './server-BEcwCg5N.mjs';
10
+ import { INTERNAL_SERVER_PLATFORM_PROVIDERS, SERVER_RENDER_PROVIDERS } from './server-_br4z1cG.mjs';
12
11
  import '@angular/common';
13
12
  import '@angular/platform-browser';
14
13
  import '@angular/common/http';
15
14
  import 'rxjs';
16
15
 
17
16
  const INTERNAL_SERVER_DYNAMIC_PLATFORM_TESTING_PROVIDERS = [
18
- ..._INTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS,
19
17
  ...INTERNAL_SERVER_PLATFORM_PROVIDERS,
20
18
  ];
21
19
  /**
@@ -32,11 +30,11 @@ const platformServerTesting = createPlatformFactory(platformCore, 'serverTesting
32
30
  * @deprecated from v20.0.0, use e2e testing to verify SSR behavior.
33
31
  */
34
32
  class ServerTestingModule {
35
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-rc.0", ngImport: i0, type: ServerTestingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
36
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.0.0-rc.0", ngImport: i0, type: ServerTestingModule, exports: [BrowserDynamicTestingModule] });
37
- static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.0.0-rc.0", ngImport: i0, type: ServerTestingModule, providers: SERVER_RENDER_PROVIDERS, imports: [BrowserDynamicTestingModule] });
33
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-rc.2", ngImport: i0, type: ServerTestingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
34
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.0.0-rc.2", ngImport: i0, type: ServerTestingModule, exports: [BrowserDynamicTestingModule] });
35
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.0.0-rc.2", ngImport: i0, type: ServerTestingModule, providers: SERVER_RENDER_PROVIDERS, imports: [BrowserDynamicTestingModule] });
38
36
  }
39
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-rc.0", ngImport: i0, type: ServerTestingModule, decorators: [{
37
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-rc.2", ngImport: i0, type: ServerTestingModule, decorators: [{
40
38
  type: NgModule,
41
39
  args: [{
42
40
  exports: [BrowserDynamicTestingModule],
@@ -1 +1 @@
1
- {"version":3,"file":"testing.mjs","sources":["../../../../../../packages/platform-server/testing/src/server.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 {createPlatformFactory, NgModule, platformCore, StaticProvider} from '@angular/core';\nimport {ɵINTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS as INTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS} from '@angular/platform-browser-dynamic';\nimport {BrowserDynamicTestingModule} from '@angular/platform-browser-dynamic/testing';\nimport {\n ɵINTERNAL_SERVER_PLATFORM_PROVIDERS as INTERNAL_SERVER_PLATFORM_PROVIDERS,\n ɵSERVER_RENDER_PROVIDERS as SERVER_RENDER_PROVIDERS,\n} from '../../index';\n\nconst INTERNAL_SERVER_DYNAMIC_PLATFORM_TESTING_PROVIDERS: StaticProvider[] = [\n ...INTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS,\n ...INTERNAL_SERVER_PLATFORM_PROVIDERS,\n];\n\n/**\n * Platform for testing\n *\n * @publicApi\n * @deprecated from v20.0.0, use e2e testing to verify SSR behavior.\n */\nexport const platformServerTesting = createPlatformFactory(\n platformCore,\n 'serverTesting',\n INTERNAL_SERVER_DYNAMIC_PLATFORM_TESTING_PROVIDERS,\n);\n\n/**\n * NgModule for testing.\n *\n * @publicApi\n * @deprecated from v20.0.0, use e2e testing to verify SSR behavior.\n */\n@NgModule({\n exports: [BrowserDynamicTestingModule],\n providers: SERVER_RENDER_PROVIDERS,\n})\nexport class ServerTestingModule {}\n"],"names":["INTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS"],"mappings":";;;;;;;;;;;;;;;;AAgBA,MAAM,kDAAkD,GAAqB;AAC3E,IAAA,GAAGA,4CAA2C;AAC9C,IAAA,GAAG,kCAAkC;CACtC;AAED;;;;;AAKG;AACI,MAAM,qBAAqB,GAAG,qBAAqB,CACxD,YAAY,EACZ,eAAe,EACf,kDAAkD;AAGpD;;;;;AAKG;MAKU,mBAAmB,CAAA;kHAAnB,mBAAmB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA;AAAnB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,mBAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,mBAAmB,YAHpB,2BAA2B,CAAA,EAAA,CAAA;mHAG1B,mBAAmB,EAAA,SAAA,EAFnB,uBAAuB,EAAA,OAAA,EAAA,CADxB,2BAA2B,CAAA,EAAA,CAAA;;sGAG1B,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBAJ/B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,OAAO,EAAE,CAAC,2BAA2B,CAAC;AACtC,oBAAA,SAAS,EAAE,uBAAuB;AACnC,iBAAA;;;;;"}
1
+ {"version":3,"file":"testing.mjs","sources":["../../../../../../packages/platform-server/testing/src/server.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 {\n createPlatformFactory,\n NgModule,\n platformCore,\n PlatformRef,\n StaticProvider,\n} from '@angular/core';\nimport {BrowserDynamicTestingModule} from '@angular/platform-browser-dynamic/testing';\nimport {\n ɵINTERNAL_SERVER_PLATFORM_PROVIDERS as INTERNAL_SERVER_PLATFORM_PROVIDERS,\n ɵSERVER_RENDER_PROVIDERS as SERVER_RENDER_PROVIDERS,\n} from '../../index';\n\nconst INTERNAL_SERVER_DYNAMIC_PLATFORM_TESTING_PROVIDERS: StaticProvider[] = [\n ...INTERNAL_SERVER_PLATFORM_PROVIDERS,\n];\n\n/**\n * Platform for testing\n *\n * @publicApi\n * @deprecated from v20.0.0, use e2e testing to verify SSR behavior.\n */\nexport const platformServerTesting: (extraProviders?: StaticProvider[]) => PlatformRef =\n createPlatformFactory(\n platformCore,\n 'serverTesting',\n INTERNAL_SERVER_DYNAMIC_PLATFORM_TESTING_PROVIDERS,\n );\n\n/**\n * NgModule for testing.\n *\n * @publicApi\n * @deprecated from v20.0.0, use e2e testing to verify SSR behavior.\n */\n@NgModule({\n exports: [BrowserDynamicTestingModule],\n providers: SERVER_RENDER_PROVIDERS,\n})\nexport class ServerTestingModule {}\n"],"names":[],"mappings":";;;;;;;;;;;;;;;AAqBA,MAAM,kDAAkD,GAAqB;AAC3E,IAAA,GAAG,kCAAkC;CACtC;AAED;;;;;AAKG;AACI,MAAM,qBAAqB,GAChC,qBAAqB,CACnB,YAAY,EACZ,eAAe,EACf,kDAAkD;AAGtD;;;;;AAKG;MAKU,mBAAmB,CAAA;kHAAnB,mBAAmB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA;AAAnB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,mBAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,mBAAmB,YAHpB,2BAA2B,CAAA,EAAA,CAAA;mHAG1B,mBAAmB,EAAA,SAAA,EAFnB,uBAAuB,EAAA,OAAA,EAAA,CADxB,2BAA2B,CAAA,EAAA,CAAA;;sGAG1B,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBAJ/B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,OAAO,EAAE,CAAC,2BAA2B,CAAC;AACtC,oBAAA,SAAS,EAAE,uBAAuB;AACnC,iBAAA;;;;;"}
package/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v20.0.0-rc.0
2
+ * @license Angular v20.0.0-rc.2
3
3
  * (c) 2010-2025 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -7,6 +7,7 @@
7
7
  import * as i0 from '@angular/core';
8
8
  import { EnvironmentProviders, StaticProvider, PlatformRef, Provider, InjectionToken, ApplicationRef, Type, Version } from '@angular/core';
9
9
  import * as i1 from '@angular/platform-browser';
10
+ import { ɵBrowserDomAdapter as _BrowserDomAdapter } from '@angular/platform-browser';
10
11
 
11
12
  /**
12
13
  * Representation of the current platform state.
@@ -155,6 +156,25 @@ declare function renderApplication<T>(bootstrap: () => Promise<ApplicationRef>,
155
156
  platformProviders?: Provider[];
156
157
  }): Promise<string>;
157
158
 
159
+ /**
160
+ * DOM Adapter for the server platform based on https://github.com/fgnass/domino.
161
+ */
162
+ declare class DominoAdapter extends _BrowserDomAdapter {
163
+ static makeCurrent(): void;
164
+ readonly supportsDOMEvents = false;
165
+ private static defaultDoc;
166
+ createHtmlDocument(): Document;
167
+ getDefaultDocument(): Document;
168
+ isElementNode(node: any): boolean;
169
+ isShadowRoot(node: any): boolean;
170
+ /** @deprecated No longer being used in Ivy code. To be removed in version 14. */
171
+ getGlobalEventTarget(doc: Document, target: string): EventTarget | null;
172
+ getBaseHref(doc: Document): string;
173
+ dispatchEvent(el: Node, evt: any): void;
174
+ getUserAgent(): string;
175
+ getCookie(name: string): string;
176
+ }
177
+
158
178
  /**
159
179
  * @module
160
180
  * @description
@@ -166,5 +186,5 @@ declare function renderApplication<T>(bootstrap: () => Promise<ApplicationRef>,
166
186
  */
167
187
  declare const VERSION: Version;
168
188
 
169
- export { BEFORE_APP_SERIALIZED, INITIAL_CONFIG, PlatformState, ServerModule, VERSION, platformServer, provideServerRendering, renderApplication, renderModule, ENABLE_DOM_EMULATION as ɵENABLE_DOM_EMULATION, INTERNAL_SERVER_PLATFORM_PROVIDERS as ɵINTERNAL_SERVER_PLATFORM_PROVIDERS, SERVER_CONTEXT as ɵSERVER_CONTEXT, SERVER_RENDER_PROVIDERS as ɵSERVER_RENDER_PROVIDERS, renderInternal as ɵrenderInternal };
189
+ export { BEFORE_APP_SERIALIZED, INITIAL_CONFIG, PlatformState, ServerModule, VERSION, platformServer, provideServerRendering, renderApplication, renderModule, DominoAdapter as ɵDominoAdapter, ENABLE_DOM_EMULATION as ɵENABLE_DOM_EMULATION, INTERNAL_SERVER_PLATFORM_PROVIDERS as ɵINTERNAL_SERVER_PLATFORM_PROVIDERS, SERVER_CONTEXT as ɵSERVER_CONTEXT, SERVER_RENDER_PROVIDERS as ɵSERVER_RENDER_PROVIDERS, renderInternal as ɵrenderInternal };
170
190
  export type { PlatformConfig };
package/init/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v20.0.0-rc.0
2
+ * @license Angular v20.0.0-rc.2
3
3
  * (c) 2010-2025 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
package/package.json CHANGED
@@ -1,17 +1,17 @@
1
1
  {
2
2
  "name": "@angular/platform-server",
3
- "version": "20.0.0-rc.0",
3
+ "version": "20.0.0-rc.2",
4
4
  "description": "Angular - library for using Angular in Node.js",
5
5
  "author": "angular",
6
6
  "license": "MIT",
7
7
  "engines": {
8
- "node": "^20.11.1 || ^22.11.0 || >=24.0.0"
8
+ "node": "^20.19.0 || ^22.12.0 || >=24.0.0"
9
9
  },
10
10
  "peerDependencies": {
11
- "@angular/common": "20.0.0-rc.0",
12
- "@angular/compiler": "20.0.0-rc.0",
13
- "@angular/core": "20.0.0-rc.0",
14
- "@angular/platform-browser": "20.0.0-rc.0",
11
+ "@angular/common": "20.0.0-rc.2",
12
+ "@angular/compiler": "20.0.0-rc.2",
13
+ "@angular/core": "20.0.0-rc.2",
14
+ "@angular/platform-browser": "20.0.0-rc.2",
15
15
  "rxjs": "^6.5.3 || ^7.4.0"
16
16
  },
17
17
  "dependencies": {
@@ -1,11 +1,11 @@
1
1
  /**
2
- * @license Angular v20.0.0-rc.0
2
+ * @license Angular v20.0.0-rc.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 { StaticProvider } from '@angular/core';
8
+ import { StaticProvider, PlatformRef } from '@angular/core';
9
9
  import * as i1 from '@angular/platform-browser-dynamic/testing';
10
10
 
11
11
  /**
@@ -14,7 +14,7 @@ import * as i1 from '@angular/platform-browser-dynamic/testing';
14
14
  * @publicApi
15
15
  * @deprecated from v20.0.0, use e2e testing to verify SSR behavior.
16
16
  */
17
- declare const platformServerTesting: (extraProviders?: StaticProvider[]) => i0.PlatformRef;
17
+ declare const platformServerTesting: (extraProviders?: StaticProvider[]) => PlatformRef;
18
18
  /**
19
19
  * NgModule for testing.
20
20
  *