@angular/common 21.0.0-next.0 → 21.0.0-next.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.
- package/common_module.d.d.ts +3 -7
- package/fesm2022/common.mjs +3 -3
- package/fesm2022/common.mjs.map +1 -1
- package/fesm2022/common_module.mjs +2 -11
- package/fesm2022/common_module.mjs.map +1 -1
- package/fesm2022/http/testing.mjs +1 -1
- package/fesm2022/http/testing.mjs.map +1 -1
- package/fesm2022/http.mjs +1 -1
- package/fesm2022/http.mjs.map +1 -1
- package/fesm2022/location.mjs +1 -1
- package/fesm2022/location.mjs.map +1 -1
- package/fesm2022/module.mjs +23 -36
- package/fesm2022/module.mjs.map +1 -1
- package/fesm2022/platform_navigation.mjs +6 -1
- package/fesm2022/platform_navigation.mjs.map +1 -1
- package/fesm2022/testing.mjs +1 -1
- package/fesm2022/testing.mjs.map +1 -1
- package/fesm2022/upgrade.mjs +1 -1
- package/fesm2022/upgrade.mjs.map +1 -1
- package/fesm2022/xhr.mjs +1 -1
- package/fesm2022/xhr.mjs.map +1 -1
- package/http/index.d.ts +1 -1
- package/http/testing/index.d.ts +1 -1
- package/index.d.ts +35 -30
- package/module.d.d.ts +21 -2
- package/package.json +2 -2
- package/platform_location.d.d.ts +1 -1
- package/testing/index.d.ts +1 -1
- package/upgrade/index.d.ts +1 -1
- package/xhr.d.d.ts +1 -1
package/fesm2022/xhr.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"xhr.mjs","sources":["../../../../../
|
|
1
|
+
{"version":3,"file":"xhr.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":[],"mappings":";;;;;;AAQgB,SAAA,gBAAgB,CAAC,SAAiB,EAAE,IAAY,EAAA;AAC9D,IAAA,IAAI,GAAG,kBAAkB,CAAC,IAAI,CAAC;IAC/B,KAAK,MAAM,MAAM,IAAI,SAAS,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE;QACzC,MAAM,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC;AACnC,QAAA,MAAM,CAAC,UAAU,EAAE,WAAW,CAAC,GAC7B,OAAO,IAAI,CAAC,CAAC,GAAG,CAAC,MAAM,EAAE,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE,OAAO,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO,GAAG,CAAC,CAAC,CAAC;AACtF,QAAA,IAAI,UAAU,CAAC,IAAI,EAAE,KAAK,IAAI,EAAE;AAC9B,YAAA,OAAO,kBAAkB,CAAC,WAAW,CAAC;;;AAG1C,IAAA,OAAO,IAAI;AACb;;ACXA;;;;AAIG;MACmB,UAAU,CAAA;AAE/B;;;;"}
|
package/http/index.d.ts
CHANGED
package/http/testing/index.d.ts
CHANGED
package/index.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v21.0.0-next.
|
|
2
|
+
* @license Angular v21.0.0-next.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 { ɵNavigation as _Navigation, ɵNavigationHistoryEntry as _NavigationHistoryEntry, ɵNavigationUpdateCurrentEntryOptions as _NavigationUpdateCurrentEntryOptions, ɵNavigationTransition as _NavigationTransition, ɵNavigationNavigateOptions as _NavigationNavigateOptions, ɵNavigationResult as _NavigationResult, ɵNavigationReloadOptions as _NavigationReloadOptions, ɵNavigationOptions as _NavigationOptions, ɵNavigateEvent as _NavigateEvent, ɵNavigationCurrentEntryChangeEvent as _NavigationCurrentEntryChangeEvent,
|
|
8
|
+
import { OnDestroy, ɵNavigation as _Navigation, ɵNavigationHistoryEntry as _NavigationHistoryEntry, ɵNavigationUpdateCurrentEntryOptions as _NavigationUpdateCurrentEntryOptions, ɵNavigationTransition as _NavigationTransition, ɵNavigationNavigateOptions as _NavigationNavigateOptions, ɵNavigationResult as _NavigationResult, ɵNavigationReloadOptions as _NavigationReloadOptions, ɵNavigationOptions as _NavigationOptions, ɵNavigateEvent as _NavigateEvent, ɵNavigationCurrentEntryChangeEvent as _NavigationCurrentEntryChangeEvent, Version, Provider, InjectionToken, OnInit, OnChanges, SimpleChanges } from '@angular/core';
|
|
9
9
|
export { DOCUMENT, ɵIMAGE_CONFIG as IMAGE_CONFIG, ɵImageConfig as ImageConfig } from '@angular/core';
|
|
10
10
|
import { LocationStrategy } from './common_module.d.js';
|
|
11
11
|
export { APP_BASE_HREF, AsyncPipe, CommonModule, CurrencyPipe, DATE_PIPE_DEFAULT_OPTIONS, DATE_PIPE_DEFAULT_TIMEZONE, DatePipe, DatePipeConfig, DecimalPipe, I18nPluralPipe, I18nSelectPipe, JsonPipe, KeyValue, KeyValuePipe, Location, LowerCasePipe, NgClass, NgComponentOutlet, NgForOf as NgFor, NgForOf, NgForOfContext, NgIf, NgIfContext, NgLocaleLocalization, NgLocalization, NgPlural, NgPluralCase, NgStyle, NgSwitch, NgSwitchCase, NgSwitchDefault, NgTemplateOutlet, PathLocationStrategy, PercentPipe, PopStateEvent, SlicePipe, TitleCasePipe, UpperCasePipe } from './common_module.d.js';
|
|
@@ -39,33 +39,6 @@ declare abstract class DomAdapter {
|
|
|
39
39
|
abstract getCookie(name: string): string | null;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
/**
|
|
43
|
-
* This class wraps the platform Navigation API which allows server-specific and test
|
|
44
|
-
* implementations.
|
|
45
|
-
*/
|
|
46
|
-
declare abstract class PlatformNavigation implements _Navigation {
|
|
47
|
-
abstract entries(): _NavigationHistoryEntry[];
|
|
48
|
-
abstract currentEntry: _NavigationHistoryEntry | null;
|
|
49
|
-
abstract updateCurrentEntry(options: _NavigationUpdateCurrentEntryOptions): void;
|
|
50
|
-
abstract transition: _NavigationTransition | null;
|
|
51
|
-
abstract canGoBack: boolean;
|
|
52
|
-
abstract canGoForward: boolean;
|
|
53
|
-
abstract navigate(url: string, options?: _NavigationNavigateOptions | undefined): _NavigationResult;
|
|
54
|
-
abstract reload(options?: _NavigationReloadOptions | undefined): _NavigationResult;
|
|
55
|
-
abstract traverseTo(key: string, options?: _NavigationOptions | undefined): _NavigationResult;
|
|
56
|
-
abstract back(options?: _NavigationOptions | undefined): _NavigationResult;
|
|
57
|
-
abstract forward(options?: _NavigationOptions | undefined): _NavigationResult;
|
|
58
|
-
abstract onnavigate: ((this: _Navigation, ev: _NavigateEvent) => any) | null;
|
|
59
|
-
abstract onnavigatesuccess: ((this: _Navigation, ev: Event) => any) | null;
|
|
60
|
-
abstract onnavigateerror: ((this: _Navigation, ev: ErrorEvent) => any) | null;
|
|
61
|
-
abstract oncurrententrychange: ((this: _Navigation, ev: _NavigationCurrentEntryChangeEvent) => any) | null;
|
|
62
|
-
abstract addEventListener(type: unknown, listener: unknown, options?: unknown): void;
|
|
63
|
-
abstract removeEventListener(type: unknown, listener: unknown, options?: unknown): void;
|
|
64
|
-
abstract dispatchEvent(event: Event): boolean;
|
|
65
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PlatformNavigation, never>;
|
|
66
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<PlatformNavigation>;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
42
|
/**
|
|
70
43
|
* @description
|
|
71
44
|
* A {@link LocationStrategy} used to configure the {@link Location} service to
|
|
@@ -203,6 +176,38 @@ declare function formatNumber(value: number, locale: string, digitsInfo?: string
|
|
|
203
176
|
*/
|
|
204
177
|
declare function registerLocaleData(data: any, localeId?: string | any, extraData?: any): void;
|
|
205
178
|
|
|
179
|
+
/**
|
|
180
|
+
* This class wraps the platform Navigation API which allows server-specific and test
|
|
181
|
+
* implementations.
|
|
182
|
+
*
|
|
183
|
+
* Browser support is limited, so this API may not be available in all environments,
|
|
184
|
+
* may contain bugs, and is experimental.
|
|
185
|
+
*
|
|
186
|
+
* @experimental 21.0.0
|
|
187
|
+
*/
|
|
188
|
+
declare abstract class PlatformNavigation implements _Navigation {
|
|
189
|
+
abstract entries(): _NavigationHistoryEntry[];
|
|
190
|
+
abstract currentEntry: _NavigationHistoryEntry | null;
|
|
191
|
+
abstract updateCurrentEntry(options: _NavigationUpdateCurrentEntryOptions): void;
|
|
192
|
+
abstract transition: _NavigationTransition | null;
|
|
193
|
+
abstract canGoBack: boolean;
|
|
194
|
+
abstract canGoForward: boolean;
|
|
195
|
+
abstract navigate(url: string, options?: _NavigationNavigateOptions | undefined): _NavigationResult;
|
|
196
|
+
abstract reload(options?: _NavigationReloadOptions | undefined): _NavigationResult;
|
|
197
|
+
abstract traverseTo(key: string, options?: _NavigationOptions | undefined): _NavigationResult;
|
|
198
|
+
abstract back(options?: _NavigationOptions | undefined): _NavigationResult;
|
|
199
|
+
abstract forward(options?: _NavigationOptions | undefined): _NavigationResult;
|
|
200
|
+
abstract onnavigate: ((this: _Navigation, ev: _NavigateEvent) => any) | null;
|
|
201
|
+
abstract onnavigatesuccess: ((this: _Navigation, ev: Event) => any) | null;
|
|
202
|
+
abstract onnavigateerror: ((this: _Navigation, ev: ErrorEvent) => any) | null;
|
|
203
|
+
abstract oncurrententrychange: ((this: _Navigation, ev: _NavigationCurrentEntryChangeEvent) => any) | null;
|
|
204
|
+
abstract addEventListener(type: unknown, listener: unknown, options?: unknown): void;
|
|
205
|
+
abstract removeEventListener(type: unknown, listener: unknown, options?: unknown): void;
|
|
206
|
+
abstract dispatchEvent(event: Event): boolean;
|
|
207
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PlatformNavigation, never>;
|
|
208
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<PlatformNavigation>;
|
|
209
|
+
}
|
|
210
|
+
|
|
206
211
|
/**
|
|
207
212
|
* Format styles that can be used to represent numbers.
|
|
208
213
|
* @see {@link getLocaleNumberFormat}
|
|
@@ -1237,5 +1242,5 @@ declare const PRECONNECT_CHECK_BLOCKLIST: InjectionToken<(string | string[])[]>;
|
|
|
1237
1242
|
*/
|
|
1238
1243
|
declare function normalizeQueryParams(params: string): string;
|
|
1239
1244
|
|
|
1240
|
-
export { FormStyle, FormatWidth, HashLocationStrategy, IMAGE_LOADER, LocationChangeListener, LocationStrategy, NgOptimizedImage, NumberFormatStyle, NumberSymbol, PRECONNECT_CHECK_BLOCKLIST, PlatformLocation, Plural, TranslationWidth, VERSION, ViewportScroller, WeekDay, formatCurrency, formatDate, formatNumber, formatPercent, getCurrencySymbol, getLocaleCurrencyCode, getLocaleCurrencyName, getLocaleCurrencySymbol, getLocaleDateFormat, getLocaleDateTimeFormat, getLocaleDayNames, getLocaleDayPeriods, getLocaleDirection, getLocaleEraNames, getLocaleExtraDayPeriodRules, getLocaleExtraDayPeriods, getLocaleFirstDayOfWeek, getLocaleId, getLocaleMonthNames, getLocaleNumberFormat, getLocaleNumberSymbol, getLocalePluralCase, getLocaleTimeFormat, getLocaleWeekEndRange, getNumberOfCurrencyDigits, isPlatformBrowser, isPlatformServer, provideCloudflareLoader, provideCloudinaryLoader, provideImageKitLoader, provideImgixLoader, provideNetlifyLoader, registerLocaleData, DomAdapter as ɵDomAdapter, NullViewportScroller as ɵNullViewportScroller, PLATFORM_BROWSER_ID as ɵPLATFORM_BROWSER_ID, PLATFORM_SERVER_ID as ɵPLATFORM_SERVER_ID,
|
|
1245
|
+
export { FormStyle, FormatWidth, HashLocationStrategy, IMAGE_LOADER, LocationChangeListener, LocationStrategy, NgOptimizedImage, NumberFormatStyle, NumberSymbol, PRECONNECT_CHECK_BLOCKLIST, PlatformLocation, PlatformNavigation, Plural, TranslationWidth, VERSION, ViewportScroller, WeekDay, formatCurrency, formatDate, formatNumber, formatPercent, getCurrencySymbol, getLocaleCurrencyCode, getLocaleCurrencyName, getLocaleCurrencySymbol, getLocaleDateFormat, getLocaleDateTimeFormat, getLocaleDayNames, getLocaleDayPeriods, getLocaleDirection, getLocaleEraNames, getLocaleExtraDayPeriodRules, getLocaleExtraDayPeriods, getLocaleFirstDayOfWeek, getLocaleId, getLocaleMonthNames, getLocaleNumberFormat, getLocaleNumberSymbol, getLocalePluralCase, getLocaleTimeFormat, getLocaleWeekEndRange, getNumberOfCurrencyDigits, isPlatformBrowser, isPlatformServer, provideCloudflareLoader, provideCloudinaryLoader, provideImageKitLoader, provideImgixLoader, provideNetlifyLoader, registerLocaleData, DomAdapter as ɵDomAdapter, NullViewportScroller as ɵNullViewportScroller, PLATFORM_BROWSER_ID as ɵPLATFORM_BROWSER_ID, PLATFORM_SERVER_ID as ɵPLATFORM_SERVER_ID, getDOM as ɵgetDOM, normalizeQueryParams as ɵnormalizeQueryParams, parseCookieValue as ɵparseCookieValue, setRootDomAdapter as ɵsetRootDomAdapter };
|
|
1241
1246
|
export type { ImageLoader, ImageLoaderConfig, ImagePlaceholderConfig, Time };
|
package/module.d.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v21.0.0-next.
|
|
2
|
+
* @license Angular v21.0.0-next.2
|
|
3
3
|
* (c) 2010-2025 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -746,7 +746,7 @@ interface HttpUserEvent<T> {
|
|
|
746
746
|
*
|
|
747
747
|
* @publicApi
|
|
748
748
|
*/
|
|
749
|
-
type HttpEvent<T> = HttpSentEvent | HttpHeaderResponse | HttpResponse<T> |
|
|
749
|
+
type HttpEvent<T> = HttpSentEvent | HttpHeaderResponse | HttpResponse<T> | HttpDownloadProgressEvent | HttpUploadProgressEvent | HttpUserEvent<T>;
|
|
750
750
|
/**
|
|
751
751
|
* Base class for both `HttpResponse` and `HttpHeaderResponse`.
|
|
752
752
|
*
|
|
@@ -785,6 +785,20 @@ declare abstract class HttpResponseBase {
|
|
|
785
785
|
* When using the default XHR Request this property will be `undefined`
|
|
786
786
|
*/
|
|
787
787
|
readonly redirected?: boolean;
|
|
788
|
+
/**
|
|
789
|
+
* Indicates the type of the HTTP response, based on how the request was made and how the browser handles the response.
|
|
790
|
+
*
|
|
791
|
+
* This corresponds to the `type` property of the Fetch API's `Response` object, which can indicate values such as:
|
|
792
|
+
* - `'basic'`: A same-origin response, allowing full access to the body and headers.
|
|
793
|
+
* - `'cors'`: A cross-origin response with CORS enabled, exposing only safe response headers.
|
|
794
|
+
* - `'opaque'`: A cross-origin response made with `no-cors`, where the response body and headers are inaccessible.
|
|
795
|
+
* - `'opaqueredirect'`: A response resulting from a redirect followed in `no-cors` mode.
|
|
796
|
+
* - `'error'`: A response representing a network error or similar failure.
|
|
797
|
+
*
|
|
798
|
+
* This property is only available when using the Fetch-based backend (via `withFetch()`).
|
|
799
|
+
* When using Angular's (XHR) backend, this value will be `undefined`.
|
|
800
|
+
*/
|
|
801
|
+
readonly responseType?: ResponseType;
|
|
788
802
|
/**
|
|
789
803
|
* Super-constructor for all responses.
|
|
790
804
|
*
|
|
@@ -797,6 +811,7 @@ declare abstract class HttpResponseBase {
|
|
|
797
811
|
statusText?: string;
|
|
798
812
|
url?: string;
|
|
799
813
|
redirected?: boolean;
|
|
814
|
+
responseType?: ResponseType;
|
|
800
815
|
}, defaultStatus?: number, defaultStatusText?: string);
|
|
801
816
|
}
|
|
802
817
|
/**
|
|
@@ -854,6 +869,7 @@ declare class HttpResponse<T> extends HttpResponseBase {
|
|
|
854
869
|
statusText?: string;
|
|
855
870
|
url?: string;
|
|
856
871
|
redirected?: boolean;
|
|
872
|
+
responseType?: ResponseType;
|
|
857
873
|
});
|
|
858
874
|
readonly type: HttpEventType.Response;
|
|
859
875
|
clone(): HttpResponse<T>;
|
|
@@ -863,6 +879,7 @@ declare class HttpResponse<T> extends HttpResponseBase {
|
|
|
863
879
|
statusText?: string;
|
|
864
880
|
url?: string;
|
|
865
881
|
redirected?: boolean;
|
|
882
|
+
responseType?: ResponseType;
|
|
866
883
|
}): HttpResponse<T>;
|
|
867
884
|
clone<V>(update: {
|
|
868
885
|
body?: V | null;
|
|
@@ -871,6 +888,7 @@ declare class HttpResponse<T> extends HttpResponseBase {
|
|
|
871
888
|
statusText?: string;
|
|
872
889
|
url?: string;
|
|
873
890
|
redirected?: boolean;
|
|
891
|
+
responseType?: ResponseType;
|
|
874
892
|
}): HttpResponse<V>;
|
|
875
893
|
}
|
|
876
894
|
/**
|
|
@@ -901,6 +919,7 @@ declare class HttpErrorResponse extends HttpResponseBase implements Error {
|
|
|
901
919
|
statusText?: string;
|
|
902
920
|
url?: string;
|
|
903
921
|
redirected?: boolean;
|
|
922
|
+
responseType?: ResponseType;
|
|
904
923
|
});
|
|
905
924
|
}
|
|
906
925
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular/common",
|
|
3
|
-
"version": "21.0.0-next.
|
|
3
|
+
"version": "21.0.0-next.2",
|
|
4
4
|
"description": "Angular - commonly needed directives and services",
|
|
5
5
|
"author": "angular",
|
|
6
6
|
"license": "MIT",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
}
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
|
-
"@angular/core": "21.0.0-next.
|
|
47
|
+
"@angular/core": "21.0.0-next.2",
|
|
48
48
|
"rxjs": "^6.5.3 || ^7.4.0"
|
|
49
49
|
},
|
|
50
50
|
"repository": {
|
package/platform_location.d.d.ts
CHANGED
package/testing/index.d.ts
CHANGED
package/upgrade/index.d.ts
CHANGED
package/xhr.d.d.ts
CHANGED