@angular/platform-server 20.0.0-rc.1 → 20.0.0-rc.3
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.
- package/fesm2022/init.mjs +1 -1
- package/fesm2022/init.mjs.map +1 -1
- package/fesm2022/platform-server.mjs +4 -4
- package/fesm2022/platform-server.mjs.map +1 -1
- package/fesm2022/{server-Djcde0Qr.mjs → server-_br4z1cG.mjs} +34 -21
- package/fesm2022/{server-Djcde0Qr.mjs.map → server-_br4z1cG.mjs.map} +1 -1
- package/fesm2022/testing.mjs +6 -8
- package/fesm2022/testing.mjs.map +1 -1
- package/index.d.ts +22 -2
- package/init/index.d.ts +1 -1
- package/package.json +6 -6
- package/testing/index.d.ts +1 -1
package/fesm2022/testing.mjs
CHANGED
|
@@ -1,21 +1,19 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v20.0.0-rc.
|
|
2
|
+
* @license Angular v20.0.0-rc.3
|
|
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-
|
|
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.
|
|
36
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.0.0-rc.
|
|
37
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.0.0-rc.
|
|
33
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-rc.3", ngImport: i0, type: ServerTestingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
34
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.0.0-rc.3", ngImport: i0, type: ServerTestingModule, exports: [BrowserDynamicTestingModule] });
|
|
35
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.0.0-rc.3", ngImport: i0, type: ServerTestingModule, providers: SERVER_RENDER_PROVIDERS, imports: [BrowserDynamicTestingModule] });
|
|
38
36
|
}
|
|
39
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-rc.
|
|
37
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-rc.3", ngImport: i0, type: ServerTestingModule, decorators: [{
|
|
40
38
|
type: NgModule,
|
|
41
39
|
args: [{
|
|
42
40
|
exports: [BrowserDynamicTestingModule],
|
package/fesm2022/testing.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"testing.mjs","sources":["
|
|
1
|
+
{"version":3,"file":"testing.mjs","sources":["../../../../../darwin_arm64-fastbuild-ST-2d99d9656325/bin/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.
|
|
2
|
+
* @license Angular v20.0.0-rc.3
|
|
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
package/package.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular/platform-server",
|
|
3
|
-
"version": "20.0.0-rc.
|
|
3
|
+
"version": "20.0.0-rc.3",
|
|
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.
|
|
8
|
+
"node": "^20.19.0 || ^22.12.0 || >=24.0.0"
|
|
9
9
|
},
|
|
10
10
|
"peerDependencies": {
|
|
11
|
-
"@angular/common": "20.0.0-rc.
|
|
12
|
-
"@angular/compiler": "20.0.0-rc.
|
|
13
|
-
"@angular/core": "20.0.0-rc.
|
|
14
|
-
"@angular/platform-browser": "20.0.0-rc.
|
|
11
|
+
"@angular/common": "20.0.0-rc.3",
|
|
12
|
+
"@angular/compiler": "20.0.0-rc.3",
|
|
13
|
+
"@angular/core": "20.0.0-rc.3",
|
|
14
|
+
"@angular/platform-browser": "20.0.0-rc.3",
|
|
15
15
|
"rxjs": "^6.5.3 || ^7.4.0"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
package/testing/index.d.ts
CHANGED