Skip to content

Commit 8f5311e

Browse files
committed
70bdb88 fix(platform-browser): ensure platformBrowserTesting includes platformBrowser providers (#60480)
1 parent 8fc799c commit 8f5311e

File tree

10 files changed

+46
-40
lines changed

10 files changed

+46
-40
lines changed

BUILD_INFO

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Thu Mar 20 19:04:20 UTC 2025
2-
911ad40067a044a4d55a3305b1555ea1e2414ce7
1+
Thu Mar 20 19:40:16 UTC 2025
2+
70bdb88b0c9937ecb6d1adce5f02da32681782b3

fesm2022/init.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* @license Angular v20.0.0-next.3+sha-911ad40
2+
* @license Angular v20.0.0-next.3+sha-70bdb88
33
* (c) 2010-2025 Google LLC. https://angular.io/
44
* License: MIT
55
*/

fesm2022/platform-server.mjs

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* @license Angular v20.0.0-next.3+sha-911ad40
2+
* @license Angular v20.0.0-next.3+sha-70bdb88
33
* (c) 2010-2025 Google LLC. https://angular.io/
44
* License: MIT
55
*/
@@ -16151,10 +16151,10 @@ class PlatformState {
1615116151
getDocument() {
1615216152
return this._doc;
1615316153
}
16154-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.3+sha-911ad40", ngImport: i0, type: PlatformState, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
16155-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.0-next.3+sha-911ad40", ngImport: i0, type: PlatformState });
16154+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.3+sha-70bdb88", ngImport: i0, type: PlatformState, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
16155+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.0-next.3+sha-70bdb88", ngImport: i0, type: PlatformState });
1615616156
}
16157-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.3+sha-911ad40", ngImport: i0, type: PlatformState, decorators: [{
16157+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.3+sha-70bdb88", ngImport: i0, type: PlatformState, decorators: [{
1615816158
type: Injectable
1615916159
}], ctorParameters: () => [{ type: undefined, decorators: [{
1616016160
type: Inject,
@@ -16183,10 +16183,10 @@ class ServerXhr {
1618316183
}
1618416184
return new impl.XMLHttpRequest();
1618516185
}
16186-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.3+sha-911ad40", ngImport: i0, type: ServerXhr, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
16187-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.0-next.3+sha-911ad40", ngImport: i0, type: ServerXhr });
16186+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.3+sha-70bdb88", ngImport: i0, type: ServerXhr, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
16187+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.0-next.3+sha-70bdb88", ngImport: i0, type: ServerXhr });
1618816188
}
16189-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.3+sha-911ad40", ngImport: i0, type: ServerXhr, decorators: [{
16189+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.3+sha-70bdb88", ngImport: i0, type: ServerXhr, decorators: [{
1619016190
type: Injectable
1619116191
}] });
1619216192
function relativeUrlsTransformerInterceptorFn(request, next) {
@@ -16305,10 +16305,10 @@ class ServerPlatformLocation {
1630516305
getState() {
1630616306
return undefined;
1630716307
}
16308-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.3+sha-911ad40", ngImport: i0, type: ServerPlatformLocation, deps: [{ token: DOCUMENT }, { token: INITIAL_CONFIG, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
16309-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.0-next.3+sha-911ad40", ngImport: i0, type: ServerPlatformLocation });
16308+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.3+sha-70bdb88", ngImport: i0, type: ServerPlatformLocation, deps: [{ token: DOCUMENT }, { token: INITIAL_CONFIG, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
16309+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.0-next.3+sha-70bdb88", ngImport: i0, type: ServerPlatformLocation });
1631016310
}
16311-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.3+sha-911ad40", ngImport: i0, type: ServerPlatformLocation, decorators: [{
16311+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.3+sha-70bdb88", ngImport: i0, type: ServerPlatformLocation, decorators: [{
1631216312
type: Injectable
1631316313
}], ctorParameters: () => [{ type: undefined, decorators: [{
1631416314
type: Inject,
@@ -16333,10 +16333,10 @@ class ServerEventManagerPlugin extends EventManagerPlugin {
1633316333
addEventListener(element, eventName, handler, options) {
1633416334
return _getDOM().onAndCancel(element, eventName, handler, options);
1633516335
}
16336-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.3+sha-911ad40", ngImport: i0, type: ServerEventManagerPlugin, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
16337-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.0-next.3+sha-911ad40", ngImport: i0, type: ServerEventManagerPlugin });
16336+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.3+sha-70bdb88", ngImport: i0, type: ServerEventManagerPlugin, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
16337+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.0-next.3+sha-70bdb88", ngImport: i0, type: ServerEventManagerPlugin });
1633816338
}
16339-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.3+sha-911ad40", ngImport: i0, type: ServerEventManagerPlugin, decorators: [{
16339+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.3+sha-70bdb88", ngImport: i0, type: ServerEventManagerPlugin, decorators: [{
1634016340
type: Injectable
1634116341
}], ctorParameters: () => [{ type: undefined, decorators: [{
1634216342
type: Inject,
@@ -16452,11 +16452,11 @@ const PLATFORM_SERVER_PROVIDERS = [
1645216452
* @publicApi
1645316453
*/
1645416454
class ServerModule {
16455-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.3+sha-911ad40", ngImport: i0, type: ServerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
16456-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.0.0-next.3+sha-911ad40", ngImport: i0, type: ServerModule, exports: [BrowserModule] });
16457-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.0.0-next.3+sha-911ad40", ngImport: i0, type: ServerModule, providers: PLATFORM_SERVER_PROVIDERS, imports: [BrowserModule] });
16455+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.3+sha-70bdb88", ngImport: i0, type: ServerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
16456+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.0.0-next.3+sha-70bdb88", ngImport: i0, type: ServerModule, exports: [BrowserModule] });
16457+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.0.0-next.3+sha-70bdb88", ngImport: i0, type: ServerModule, providers: PLATFORM_SERVER_PROVIDERS, imports: [BrowserModule] });
1645816458
}
16459-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.3+sha-911ad40", ngImport: i0, type: ServerModule, decorators: [{
16459+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.3+sha-70bdb88", ngImport: i0, type: ServerModule, decorators: [{
1646016460
type: NgModule,
1646116461
args: [{
1646216462
exports: [BrowserModule],
@@ -16785,7 +16785,7 @@ async function renderApplication(bootstrap, options) {
1678516785
/**
1678616786
* @publicApi
1678716787
*/
16788-
const VERSION = new Version('20.0.0-next.3+sha-911ad40');
16788+
const VERSION = new Version('20.0.0-next.3+sha-70bdb88');
1678916789

1679016790
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 };
1679116791
//# sourceMappingURL=platform-server.mjs.map

fesm2022/platform-server.mjs.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

fesm2022/testing.mjs

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,36 @@
11
/**
2-
* @license Angular v20.0.0-next.3+sha-911ad40
2+
* @license Angular v20.0.0-next.3+sha-70bdb88
33
* (c) 2010-2025 Google LLC. https://angular.io/
44
* License: MIT
55
*/
66

77
import * as i0 from '@angular/core';
8-
import { createPlatformFactory, NgModule } from '@angular/core';
9-
import { ɵplatformCoreDynamicTesting as _platformCoreDynamicTesting, BrowserDynamicTestingModule } from '@angular/platform-browser-dynamic/testing';
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+
import { BrowserDynamicTestingModule } from '@angular/platform-browser-dynamic/testing';
1011
import { ɵINTERNAL_SERVER_PLATFORM_PROVIDERS as _INTERNAL_SERVER_PLATFORM_PROVIDERS, ɵSERVER_RENDER_PROVIDERS as _SERVER_RENDER_PROVIDERS } from '@angular/platform-server';
1112

13+
const INTERNAL_SERVER_DYNAMIC_PLATFORM_TESTING_PROVIDERS = [
14+
..._INTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS,
15+
..._INTERNAL_SERVER_PLATFORM_PROVIDERS,
16+
];
1217
/**
1318
* Platform for testing
1419
*
1520
* @publicApi
1621
*/
17-
const platformServerTesting = createPlatformFactory(_platformCoreDynamicTesting, 'serverTesting', _INTERNAL_SERVER_PLATFORM_PROVIDERS);
22+
const platformServerTesting = createPlatformFactory(platformCore, 'serverTesting', INTERNAL_SERVER_DYNAMIC_PLATFORM_TESTING_PROVIDERS);
1823
/**
1924
* NgModule for testing.
2025
*
2126
* @publicApi
2227
*/
2328
class ServerTestingModule {
24-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.3+sha-911ad40", ngImport: i0, type: ServerTestingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
25-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.0.0-next.3+sha-911ad40", ngImport: i0, type: ServerTestingModule, exports: [BrowserDynamicTestingModule] });
26-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.0.0-next.3+sha-911ad40", ngImport: i0, type: ServerTestingModule, providers: _SERVER_RENDER_PROVIDERS, imports: [BrowserDynamicTestingModule] });
29+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.3+sha-70bdb88", ngImport: i0, type: ServerTestingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
30+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.0.0-next.3+sha-70bdb88", ngImport: i0, type: ServerTestingModule, exports: [BrowserDynamicTestingModule] });
31+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.0.0-next.3+sha-70bdb88", ngImport: i0, type: ServerTestingModule, providers: _SERVER_RENDER_PROVIDERS, imports: [BrowserDynamicTestingModule] });
2732
}
28-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.3+sha-911ad40", ngImport: i0, type: ServerTestingModule, decorators: [{
33+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.3+sha-70bdb88", ngImport: i0, type: ServerTestingModule, decorators: [{
2934
type: NgModule,
3035
args: [{
3136
exports: [BrowserDynamicTestingModule],

fesm2022/testing.mjs.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* @license Angular v20.0.0-next.3+sha-911ad40
2+
* @license Angular v20.0.0-next.3+sha-70bdb88
33
* (c) 2010-2025 Google LLC. https://angular.io/
44
* License: MIT
55
*/

init/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* @license Angular v20.0.0-next.3+sha-911ad40
2+
* @license Angular v20.0.0-next.3+sha-70bdb88
33
* (c) 2010-2025 Google LLC. https://angular.io/
44
* License: MIT
55
*/

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
{
22
"name": "@angular/platform-server",
3-
"version": "20.0.0-next.3+sha-911ad40",
3+
"version": "20.0.0-next.3+sha-70bdb88",
44
"description": "Angular - library for using Angular in Node.js",
55
"author": "angular",
66
"license": "MIT",
77
"engines": {
88
"node": "^18.19.1 || ^20.11.1 || >=22.0.0"
99
},
1010
"peerDependencies": {
11-
"@angular/common": "20.0.0-next.3+sha-911ad40",
12-
"@angular/compiler": "20.0.0-next.3+sha-911ad40",
13-
"@angular/core": "20.0.0-next.3+sha-911ad40",
14-
"@angular/platform-browser": "20.0.0-next.3+sha-911ad40",
11+
"@angular/common": "20.0.0-next.3+sha-70bdb88",
12+
"@angular/compiler": "20.0.0-next.3+sha-70bdb88",
13+
"@angular/core": "20.0.0-next.3+sha-70bdb88",
14+
"@angular/platform-browser": "20.0.0-next.3+sha-70bdb88",
1515
"rxjs": "^6.5.3 || ^7.4.0"
1616
},
1717
"dependencies": {

testing/index.d.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
11
/**
2-
* @license Angular v20.0.0-next.3+sha-911ad40
2+
* @license Angular v20.0.0-next.3+sha-70bdb88
33
* (c) 2010-2025 Google LLC. https://angular.io/
44
* License: MIT
55
*/
66

77
import * as i0 from '@angular/core';
8+
import { StaticProvider } from '@angular/core';
89
import * as i1 from '@angular/platform-browser-dynamic/testing';
910

1011
/**
1112
* Platform for testing
1213
*
1314
* @publicApi
1415
*/
15-
declare const platformServerTesting: (extraProviders?: i0.StaticProvider[]) => i0.PlatformRef;
16+
declare const platformServerTesting: (extraProviders?: StaticProvider[]) => i0.PlatformRef;
1617
/**
1718
* NgModule for testing.
1819
*

0 commit comments

Comments
 (0)