@angular/platform-server 21.0.0-next.7 → 21.0.0-next.9
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/_server-chunk.mjs +26 -24
- package/fesm2022/_server-chunk.mjs.map +1 -1
- package/fesm2022/init.mjs +1 -1
- package/fesm2022/init.mjs.map +1 -1
- package/fesm2022/platform-server.mjs +2 -2
- package/fesm2022/platform-server.mjs.map +1 -1
- package/fesm2022/testing.mjs +5 -5
- package/fesm2022/testing.mjs.map +1 -1
- package/package.json +5 -5
- package/types/init.d.ts +1 -1
- package/types/platform-server.d.ts +1 -1
- package/types/testing.d.ts +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v21.0.0-next.
|
|
2
|
+
* @license Angular v21.0.0-next.9
|
|
3
3
|
* (c) 2010-2025 Google LLC. https://angular.dev/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -17207,10 +17207,10 @@ class PlatformState {
|
|
|
17207
17207
|
getDocument() {
|
|
17208
17208
|
return this._doc;
|
|
17209
17209
|
}
|
|
17210
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-next.
|
|
17211
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.0-next.
|
|
17210
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-next.9", ngImport: i0, type: PlatformState, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
17211
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.0-next.9", ngImport: i0, type: PlatformState });
|
|
17212
17212
|
}
|
|
17213
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-next.
|
|
17213
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-next.9", ngImport: i0, type: PlatformState, decorators: [{
|
|
17214
17214
|
type: Injectable
|
|
17215
17215
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
17216
17216
|
type: Inject,
|
|
@@ -17239,10 +17239,10 @@ class ServerXhr {
|
|
|
17239
17239
|
}
|
|
17240
17240
|
return new impl.XMLHttpRequest();
|
|
17241
17241
|
}
|
|
17242
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-next.
|
|
17243
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.0-next.
|
|
17242
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-next.9", ngImport: i0, type: ServerXhr, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
17243
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.0-next.9", ngImport: i0, type: ServerXhr });
|
|
17244
17244
|
}
|
|
17245
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-next.
|
|
17245
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-next.9", ngImport: i0, type: ServerXhr, decorators: [{
|
|
17246
17246
|
type: Injectable
|
|
17247
17247
|
}] });
|
|
17248
17248
|
function relativeUrlsTransformerInterceptorFn(request, next) {
|
|
@@ -17269,12 +17269,12 @@ const SERVER_HTTP_PROVIDERS = [
|
|
|
17269
17269
|
},
|
|
17270
17270
|
];
|
|
17271
17271
|
|
|
17272
|
-
|
|
17273
|
-
|
|
17274
|
-
const { hostname, protocol, port, pathname, search, hash } = new URL(urlStr, RESOLVE_PROTOCOL + '//');
|
|
17272
|
+
function parseUrl(urlStr, origin) {
|
|
17273
|
+
const { hostname, protocol, port, pathname, search, hash, href } = new URL(urlStr, origin);
|
|
17275
17274
|
return {
|
|
17276
17275
|
hostname,
|
|
17277
|
-
|
|
17276
|
+
href,
|
|
17277
|
+
protocol,
|
|
17278
17278
|
port,
|
|
17279
17279
|
pathname,
|
|
17280
17280
|
search,
|
|
@@ -17301,14 +17301,14 @@ class ServerPlatformLocation {
|
|
|
17301
17301
|
return;
|
|
17302
17302
|
}
|
|
17303
17303
|
if (config.url) {
|
|
17304
|
-
const url = parseUrl(config.url);
|
|
17304
|
+
const url = parseUrl(config.url, this._doc.location.origin);
|
|
17305
17305
|
this.protocol = url.protocol;
|
|
17306
17306
|
this.hostname = url.hostname;
|
|
17307
17307
|
this.port = url.port;
|
|
17308
17308
|
this.pathname = url.pathname;
|
|
17309
17309
|
this.search = url.search;
|
|
17310
17310
|
this.hash = url.hash;
|
|
17311
|
-
this.href =
|
|
17311
|
+
this.href = url.href;
|
|
17312
17312
|
}
|
|
17313
17313
|
}
|
|
17314
17314
|
getBaseHrefFromDOM() {
|
|
@@ -17342,9 +17342,11 @@ class ServerPlatformLocation {
|
|
|
17342
17342
|
}
|
|
17343
17343
|
replaceState(state, title, newUrl) {
|
|
17344
17344
|
const oldUrl = this.url;
|
|
17345
|
-
const parsedUrl = parseUrl(newUrl);
|
|
17345
|
+
const parsedUrl = parseUrl(newUrl, this._doc.location.origin);
|
|
17346
17346
|
this.pathname = parsedUrl.pathname;
|
|
17347
17347
|
this.search = parsedUrl.search;
|
|
17348
|
+
this.href = parsedUrl.href;
|
|
17349
|
+
this.protocol = parsedUrl.protocol;
|
|
17348
17350
|
this.setHash(parsedUrl.hash, oldUrl);
|
|
17349
17351
|
}
|
|
17350
17352
|
pushState(state, title, newUrl) {
|
|
@@ -17360,10 +17362,10 @@ class ServerPlatformLocation {
|
|
|
17360
17362
|
getState() {
|
|
17361
17363
|
return undefined;
|
|
17362
17364
|
}
|
|
17363
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-next.
|
|
17364
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.0-next.
|
|
17365
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-next.9", ngImport: i0, type: ServerPlatformLocation, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
17366
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.0-next.9", ngImport: i0, type: ServerPlatformLocation });
|
|
17365
17367
|
}
|
|
17366
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-next.
|
|
17368
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-next.9", ngImport: i0, type: ServerPlatformLocation, decorators: [{
|
|
17367
17369
|
type: Injectable
|
|
17368
17370
|
}], ctorParameters: () => [] });
|
|
17369
17371
|
|
|
@@ -17380,10 +17382,10 @@ class ServerEventManagerPlugin extends EventManagerPlugin {
|
|
|
17380
17382
|
addEventListener(element, eventName, handler, options) {
|
|
17381
17383
|
return _getDOM().onAndCancel(element, eventName, handler, options);
|
|
17382
17384
|
}
|
|
17383
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-next.
|
|
17384
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.0-next.
|
|
17385
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-next.9", ngImport: i0, type: ServerEventManagerPlugin, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
17386
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.0.0-next.9", ngImport: i0, type: ServerEventManagerPlugin });
|
|
17385
17387
|
}
|
|
17386
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-next.
|
|
17388
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-next.9", ngImport: i0, type: ServerEventManagerPlugin, decorators: [{
|
|
17387
17389
|
type: Injectable
|
|
17388
17390
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
17389
17391
|
type: Inject,
|
|
@@ -17497,11 +17499,11 @@ const PLATFORM_SERVER_PROVIDERS = [
|
|
|
17497
17499
|
* @publicApi
|
|
17498
17500
|
*/
|
|
17499
17501
|
class ServerModule {
|
|
17500
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-next.
|
|
17501
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.0.0-next.
|
|
17502
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.0.0-next.
|
|
17502
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.0-next.9", ngImport: i0, type: ServerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
17503
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.0.0-next.9", ngImport: i0, type: ServerModule, exports: [BrowserModule] });
|
|
17504
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.0.0-next.9", ngImport: i0, type: ServerModule, providers: PLATFORM_SERVER_PROVIDERS, imports: [BrowserModule] });
|
|
17503
17505
|
}
|
|
17504
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-next.
|
|
17506
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.0-next.9", ngImport: i0, type: ServerModule, decorators: [{
|
|
17505
17507
|
type: NgModule,
|
|
17506
17508
|
args: [{
|
|
17507
17509
|
exports: [BrowserModule],
|