@angular/common 21.0.0-rc.3 → 21.0.1
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/_common_module-chunk.mjs +86 -86
- package/fesm2022/_common_module-chunk.mjs.map +1 -1
- package/fesm2022/_location-chunk.mjs +16 -16
- package/fesm2022/_location-chunk.mjs.map +1 -1
- package/fesm2022/_module-chunk.mjs +48 -48
- package/fesm2022/_module-chunk.mjs.map +1 -1
- package/fesm2022/_platform_navigation-chunk.mjs +4 -4
- package/fesm2022/_platform_navigation-chunk.mjs.map +1 -1
- package/fesm2022/_xhr-chunk.mjs +1 -1
- package/fesm2022/_xhr-chunk.mjs.map +1 -1
- package/fesm2022/common.mjs +17 -17
- package/fesm2022/common.mjs.map +1 -1
- package/fesm2022/http-testing.mjs +8 -8
- package/fesm2022/http-testing.mjs.map +1 -1
- package/fesm2022/http.mjs +29 -28
- package/fesm2022/http.mjs.map +1 -1
- package/fesm2022/testing.mjs +13 -13
- package/fesm2022/testing.mjs.map +1 -1
- package/fesm2022/upgrade.mjs +5 -5
- package/fesm2022/upgrade.mjs.map +1 -1
- package/package.json +2 -2
- package/types/_common_module-chunk.d.ts +1 -1
- package/types/_module-chunk.d.ts +1 -1
- package/types/_platform_location-chunk.d.ts +1 -1
- package/types/_xhr-chunk.d.ts +1 -1
- package/types/common.d.ts +1 -1
- package/types/http-testing.d.ts +1 -1
- package/types/http.d.ts +5 -1
- package/types/testing.d.ts +1 -1
- package/types/upgrade.d.ts +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v21.0.
|
|
2
|
+
* @license Angular v21.0.1
|
|
3
3
|
* (c) 2010-2025 Google LLC. https://angular.dev/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -10,7 +10,7 @@ import { Injectable } from '@angular/core';
|
|
|
10
10
|
class PlatformNavigation {
|
|
11
11
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
12
12
|
minVersion: "12.0.0",
|
|
13
|
-
version: "21.0.
|
|
13
|
+
version: "21.0.1",
|
|
14
14
|
ngImport: i0,
|
|
15
15
|
type: PlatformNavigation,
|
|
16
16
|
deps: [],
|
|
@@ -18,7 +18,7 @@ class PlatformNavigation {
|
|
|
18
18
|
});
|
|
19
19
|
static ɵprov = i0.ɵɵngDeclareInjectable({
|
|
20
20
|
minVersion: "12.0.0",
|
|
21
|
-
version: "21.0.
|
|
21
|
+
version: "21.0.1",
|
|
22
22
|
ngImport: i0,
|
|
23
23
|
type: PlatformNavigation,
|
|
24
24
|
providedIn: 'platform',
|
|
@@ -27,7 +27,7 @@ class PlatformNavigation {
|
|
|
27
27
|
}
|
|
28
28
|
i0.ɵɵngDeclareClassMetadata({
|
|
29
29
|
minVersion: "12.0.0",
|
|
30
|
-
version: "21.0.
|
|
30
|
+
version: "21.0.1",
|
|
31
31
|
ngImport: i0,
|
|
32
32
|
type: PlatformNavigation,
|
|
33
33
|
decorators: [{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_platform_navigation-chunk.mjs","sources":["../../../../../
|
|
1
|
+
{"version":3,"file":"_platform_navigation-chunk.mjs","sources":["../../../../../darwin_arm64-fastbuild-ST-199a4f3c4e20/bin/packages/common/src/navigation/platform_navigation.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 Injectable,\n ɵNavigateEvent as NavigateEvent,\n ɵNavigation as Navigation,\n ɵNavigationCurrentEntryChangeEvent as NavigationCurrentEntryChangeEvent,\n ɵNavigationHistoryEntry as NavigationHistoryEntry,\n ɵNavigationNavigateOptions as NavigationNavigateOptions,\n ɵNavigationOptions as NavigationOptions,\n ɵNavigationReloadOptions as NavigationReloadOptions,\n ɵNavigationResult as NavigationResult,\n ɵNavigationTransition as NavigationTransition,\n ɵNavigationUpdateCurrentEntryOptions as NavigationUpdateCurrentEntryOptions,\n} from '@angular/core';\n\n/**\n * This class wraps the platform Navigation API which allows server-specific and test\n * implementations.\n *\n * Browser support is limited, so this API may not be available in all environments,\n * may contain bugs, and is experimental.\n *\n * @experimental 21.0.0\n */\n@Injectable({providedIn: 'platform', useFactory: () => (window as any).navigation})\nexport abstract class PlatformNavigation implements Navigation {\n abstract entries(): NavigationHistoryEntry[];\n abstract currentEntry: NavigationHistoryEntry | null;\n abstract updateCurrentEntry(options: NavigationUpdateCurrentEntryOptions): void;\n abstract transition: NavigationTransition | null;\n abstract canGoBack: boolean;\n abstract canGoForward: boolean;\n abstract navigate(url: string, options?: NavigationNavigateOptions | undefined): NavigationResult;\n abstract reload(options?: NavigationReloadOptions | undefined): NavigationResult;\n abstract traverseTo(key: string, options?: NavigationOptions | undefined): NavigationResult;\n abstract back(options?: NavigationOptions | undefined): NavigationResult;\n abstract forward(options?: NavigationOptions | undefined): NavigationResult;\n abstract onnavigate: ((this: Navigation, ev: NavigateEvent) => any) | null;\n abstract onnavigatesuccess: ((this: Navigation, ev: Event) => any) | null;\n abstract onnavigateerror: ((this: Navigation, ev: ErrorEvent) => any) | null;\n abstract oncurrententrychange:\n | ((this: Navigation, ev: NavigationCurrentEntryChangeEvent) => any)\n | null;\n abstract addEventListener(type: unknown, listener: unknown, options?: unknown): void;\n abstract removeEventListener(type: unknown, listener: unknown, options?: unknown): void;\n abstract dispatchEvent(event: Event): boolean;\n}\n"],"names":["PlatformNavigation","deps","target","i0","ɵɵFactoryTarget","Injectable","providedIn","useFactory","window","navigation","decorators","args"],"mappings":";;;;;;;;;MAgCsBA,kBAAkB,CAAA;;;;;UAAlBA,kBAAkB;AAAAC,IAAAA,IAAA,EAAA,EAAA;AAAAC,IAAAA,MAAA,EAAAC,EAAA,CAAAC,eAAA,CAAAC;AAAA,GAAA,CAAA;;;;;UAAlBL,kBAAkB;AAAAM,IAAAA,UAAA,EADf,UAAU;AAAcC,IAAAA,UAAA,EAAAA,MAAOC,MAAc,CAACC;AAAU,GAAA,CAAA;;;;;;QAC3DT,kBAAkB;AAAAU,EAAAA,UAAA,EAAA,CAAA;UADvCL,UAAU;AAACM,IAAAA,IAAA,EAAA,CAAA;AAACL,MAAAA,UAAU,EAAE,UAAU;AAAEC,MAAAA,UAAU,EAAEA,MAAOC,MAAc,CAACC;KAAW;;;;;;"}
|
package/fesm2022/_xhr-chunk.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_xhr-chunk.mjs","sources":["../../../../../
|
|
1
|
+
{"version":3,"file":"_xhr-chunk.mjs","sources":["../../../../../darwin_arm64-fastbuild-ST-199a4f3c4e20/bin/packages/common/src/cookie.ts","../../../../../darwin_arm64-fastbuild-ST-199a4f3c4e20/bin/packages/common/src/xhr.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\nexport function parseCookieValue(cookieStr: string, name: string): string | null {\n name = encodeURIComponent(name);\n for (const cookie of cookieStr.split(';')) {\n const eqIndex = cookie.indexOf('=');\n const [cookieName, cookieValue]: string[] =\n eqIndex == -1 ? [cookie, ''] : [cookie.slice(0, eqIndex), cookie.slice(eqIndex + 1)];\n if (cookieName.trim() === name) {\n return decodeURIComponent(cookieValue);\n }\n }\n return null;\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 * A wrapper around the `XMLHttpRequest` constructor.\n *\n * @publicApi\n */\nexport abstract class XhrFactory {\n abstract build(): XMLHttpRequest;\n}\n"],"names":["parseCookieValue","cookieStr","name","encodeURIComponent","cookie","split","eqIndex","indexOf","cookieName","cookieValue","slice","trim","decodeURIComponent","XhrFactory"],"mappings":";;;;;;AAQgB,SAAAA,gBAAgBA,CAACC,SAAiB,EAAEC,IAAY,EAAA;AAC9DA,EAAAA,IAAI,GAAGC,kBAAkB,CAACD,IAAI,CAAC;EAC/B,KAAK,MAAME,MAAM,IAAIH,SAAS,CAACI,KAAK,CAAC,GAAG,CAAC,EAAE;AACzC,IAAA,MAAMC,OAAO,GAAGF,MAAM,CAACG,OAAO,CAAC,GAAG,CAAC;AACnC,IAAA,MAAM,CAACC,UAAU,EAAEC,WAAW,CAAC,GAC7BH,OAAO,IAAI,CAAC,CAAC,GAAG,CAACF,MAAM,EAAE,EAAE,CAAC,GAAG,CAACA,MAAM,CAACM,KAAK,CAAC,CAAC,EAAEJ,OAAO,CAAC,EAAEF,MAAM,CAACM,KAAK,CAACJ,OAAO,GAAG,CAAC,CAAC,CAAC;AACtF,IAAA,IAAIE,UAAU,CAACG,IAAI,EAAE,KAAKT,IAAI,EAAE;MAC9B,OAAOU,kBAAkB,CAACH,WAAW,CAAC;AACxC;AACF;AACA,EAAA,OAAO,IAAI;AACb;;MCNsBI,UAAU,CAAA;;;;"}
|
package/fesm2022/common.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v21.0.
|
|
2
|
+
* @license Angular v21.0.1
|
|
3
3
|
* (c) 2010-2025 Google LLC. https://angular.dev/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -62,7 +62,7 @@ class NavigationAdapterForLocation extends Location {
|
|
|
62
62
|
}
|
|
63
63
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
64
64
|
minVersion: "12.0.0",
|
|
65
|
-
version: "21.0.
|
|
65
|
+
version: "21.0.1",
|
|
66
66
|
ngImport: i0,
|
|
67
67
|
type: NavigationAdapterForLocation,
|
|
68
68
|
deps: [],
|
|
@@ -70,14 +70,14 @@ class NavigationAdapterForLocation extends Location {
|
|
|
70
70
|
});
|
|
71
71
|
static ɵprov = i0.ɵɵngDeclareInjectable({
|
|
72
72
|
minVersion: "12.0.0",
|
|
73
|
-
version: "21.0.
|
|
73
|
+
version: "21.0.1",
|
|
74
74
|
ngImport: i0,
|
|
75
75
|
type: NavigationAdapterForLocation
|
|
76
76
|
});
|
|
77
77
|
}
|
|
78
78
|
i0.ɵɵngDeclareClassMetadata({
|
|
79
79
|
minVersion: "12.0.0",
|
|
80
|
-
version: "21.0.
|
|
80
|
+
version: "21.0.1",
|
|
81
81
|
ngImport: i0,
|
|
82
82
|
type: NavigationAdapterForLocation,
|
|
83
83
|
decorators: [{
|
|
@@ -99,7 +99,7 @@ function isPlatformServer(platformId) {
|
|
|
99
99
|
return platformId === PLATFORM_SERVER_ID;
|
|
100
100
|
}
|
|
101
101
|
|
|
102
|
-
const VERSION = /* @__PURE__ */new Version('21.0.
|
|
102
|
+
const VERSION = /* @__PURE__ */new Version('21.0.1');
|
|
103
103
|
|
|
104
104
|
class ViewportScroller {
|
|
105
105
|
static ɵprov =
|
|
@@ -463,7 +463,7 @@ class LCPImageObserver {
|
|
|
463
463
|
}
|
|
464
464
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
465
465
|
minVersion: "12.0.0",
|
|
466
|
-
version: "21.0.
|
|
466
|
+
version: "21.0.1",
|
|
467
467
|
ngImport: i0,
|
|
468
468
|
type: LCPImageObserver,
|
|
469
469
|
deps: [],
|
|
@@ -471,7 +471,7 @@ class LCPImageObserver {
|
|
|
471
471
|
});
|
|
472
472
|
static ɵprov = i0.ɵɵngDeclareInjectable({
|
|
473
473
|
minVersion: "12.0.0",
|
|
474
|
-
version: "21.0.
|
|
474
|
+
version: "21.0.1",
|
|
475
475
|
ngImport: i0,
|
|
476
476
|
type: LCPImageObserver,
|
|
477
477
|
providedIn: 'root'
|
|
@@ -479,7 +479,7 @@ class LCPImageObserver {
|
|
|
479
479
|
}
|
|
480
480
|
i0.ɵɵngDeclareClassMetadata({
|
|
481
481
|
minVersion: "12.0.0",
|
|
482
|
-
version: "21.0.
|
|
482
|
+
version: "21.0.1",
|
|
483
483
|
ngImport: i0,
|
|
484
484
|
type: LCPImageObserver,
|
|
485
485
|
decorators: [{
|
|
@@ -550,7 +550,7 @@ class PreconnectLinkChecker {
|
|
|
550
550
|
}
|
|
551
551
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
552
552
|
minVersion: "12.0.0",
|
|
553
|
-
version: "21.0.
|
|
553
|
+
version: "21.0.1",
|
|
554
554
|
ngImport: i0,
|
|
555
555
|
type: PreconnectLinkChecker,
|
|
556
556
|
deps: [],
|
|
@@ -558,7 +558,7 @@ class PreconnectLinkChecker {
|
|
|
558
558
|
});
|
|
559
559
|
static ɵprov = i0.ɵɵngDeclareInjectable({
|
|
560
560
|
minVersion: "12.0.0",
|
|
561
|
-
version: "21.0.
|
|
561
|
+
version: "21.0.1",
|
|
562
562
|
ngImport: i0,
|
|
563
563
|
type: PreconnectLinkChecker,
|
|
564
564
|
providedIn: 'root'
|
|
@@ -566,7 +566,7 @@ class PreconnectLinkChecker {
|
|
|
566
566
|
}
|
|
567
567
|
i0.ɵɵngDeclareClassMetadata({
|
|
568
568
|
minVersion: "12.0.0",
|
|
569
|
-
version: "21.0.
|
|
569
|
+
version: "21.0.1",
|
|
570
570
|
ngImport: i0,
|
|
571
571
|
type: PreconnectLinkChecker,
|
|
572
572
|
decorators: [{
|
|
@@ -616,7 +616,7 @@ class PreloadLinkCreator {
|
|
|
616
616
|
}
|
|
617
617
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
618
618
|
minVersion: "12.0.0",
|
|
619
|
-
version: "21.0.
|
|
619
|
+
version: "21.0.1",
|
|
620
620
|
ngImport: i0,
|
|
621
621
|
type: PreloadLinkCreator,
|
|
622
622
|
deps: [],
|
|
@@ -624,7 +624,7 @@ class PreloadLinkCreator {
|
|
|
624
624
|
});
|
|
625
625
|
static ɵprov = i0.ɵɵngDeclareInjectable({
|
|
626
626
|
minVersion: "12.0.0",
|
|
627
|
-
version: "21.0.
|
|
627
|
+
version: "21.0.1",
|
|
628
628
|
ngImport: i0,
|
|
629
629
|
type: PreloadLinkCreator,
|
|
630
630
|
providedIn: 'root'
|
|
@@ -632,7 +632,7 @@ class PreloadLinkCreator {
|
|
|
632
632
|
}
|
|
633
633
|
i0.ɵɵngDeclareClassMetadata({
|
|
634
634
|
minVersion: "12.0.0",
|
|
635
|
-
version: "21.0.
|
|
635
|
+
version: "21.0.1",
|
|
636
636
|
ngImport: i0,
|
|
637
637
|
type: PreloadLinkCreator,
|
|
638
638
|
decorators: [{
|
|
@@ -931,7 +931,7 @@ class NgOptimizedImage {
|
|
|
931
931
|
}
|
|
932
932
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
933
933
|
minVersion: "12.0.0",
|
|
934
|
-
version: "21.0.
|
|
934
|
+
version: "21.0.1",
|
|
935
935
|
ngImport: i0,
|
|
936
936
|
type: NgOptimizedImage,
|
|
937
937
|
deps: [],
|
|
@@ -939,7 +939,7 @@ class NgOptimizedImage {
|
|
|
939
939
|
});
|
|
940
940
|
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
941
941
|
minVersion: "16.1.0",
|
|
942
|
-
version: "21.0.
|
|
942
|
+
version: "21.0.1",
|
|
943
943
|
type: NgOptimizedImage,
|
|
944
944
|
isStandalone: true,
|
|
945
945
|
selector: "img[ngSrc]",
|
|
@@ -979,7 +979,7 @@ class NgOptimizedImage {
|
|
|
979
979
|
}
|
|
980
980
|
i0.ɵɵngDeclareClassMetadata({
|
|
981
981
|
minVersion: "12.0.0",
|
|
982
|
-
version: "21.0.
|
|
982
|
+
version: "21.0.1",
|
|
983
983
|
ngImport: i0,
|
|
984
984
|
type: NgOptimizedImage,
|
|
985
985
|
decorators: [{
|