@angular/common 21.1.0-next.4 → 21.1.0

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/types/common.d.ts CHANGED
@@ -1,13 +1,13 @@
1
1
  /**
2
- * @license Angular v21.1.0-next.4
3
- * (c) 2010-2025 Google LLC. https://angular.dev/
2
+ * @license Angular v21.1.0
3
+ * (c) 2010-2026 Google LLC. https://angular.dev/
4
4
  * License: MIT
5
5
  */
6
6
 
7
7
  import { Location, LocationStrategy } from './_common_module-chunk.js';
8
8
  export { APP_BASE_HREF, AsyncPipe, CommonModule, CurrencyPipe, DATE_PIPE_DEFAULT_OPTIONS, DATE_PIPE_DEFAULT_TIMEZONE, DatePipe, DatePipeConfig, DecimalPipe, I18nPluralPipe, I18nSelectPipe, JsonPipe, KeyValue, KeyValuePipe, 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-chunk.js';
9
9
  import * as i0 from '@angular/core';
10
- 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';
10
+ import { InjectionToken, ɵ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, OnDestroy, Version, Provider, OnInit, OnChanges, SimpleChanges } from '@angular/core';
11
11
  export { DOCUMENT, ɵIMAGE_CONFIG as IMAGE_CONFIG, ɵImageConfig as ImageConfig } from '@angular/core';
12
12
  import { PlatformLocation, LocationChangeListener } from './_platform_location-chunk.js';
13
13
  export { BrowserPlatformLocation, LOCATION_INITIALIZED, LocationChangeEvent } from './_platform_location-chunk.js';
@@ -69,6 +69,43 @@ declare class NavigationAdapterForLocation extends Location {
69
69
  static ɵprov: i0.ɵɵInjectableDeclaration<NavigationAdapterForLocation>;
70
70
  }
71
71
 
72
+ /**
73
+ * @see https://developer.mozilla.org/en-US/docs/Web/API/NavigationPrecommitController
74
+ * @see https://developer.mozilla.org/en-US/docs/Web/API/NavigateEvent/intercept#precommithandler
75
+ */
76
+ declare const PRECOMMIT_HANDLER_SUPPORTED: InjectionToken<boolean>;
77
+ /**
78
+ * This class wraps the platform Navigation API which allows server-specific and test
79
+ * implementations.
80
+ *
81
+ * Browser support is limited, so this API may not be available in all environments,
82
+ * may contain bugs, and is experimental.
83
+ *
84
+ * @experimental 21.0.0
85
+ */
86
+ declare abstract class PlatformNavigation implements _Navigation {
87
+ abstract entries(): _NavigationHistoryEntry[];
88
+ abstract currentEntry: _NavigationHistoryEntry | null;
89
+ abstract updateCurrentEntry(options: _NavigationUpdateCurrentEntryOptions): void;
90
+ abstract transition: _NavigationTransition | null;
91
+ abstract canGoBack: boolean;
92
+ abstract canGoForward: boolean;
93
+ abstract navigate(url: string, options?: _NavigationNavigateOptions | undefined): _NavigationResult;
94
+ abstract reload(options?: _NavigationReloadOptions | undefined): _NavigationResult;
95
+ abstract traverseTo(key: string, options?: _NavigationOptions | undefined): _NavigationResult;
96
+ abstract back(options?: _NavigationOptions | undefined): _NavigationResult;
97
+ abstract forward(options?: _NavigationOptions | undefined): _NavigationResult;
98
+ abstract onnavigate: ((this: _Navigation, ev: _NavigateEvent) => any) | null;
99
+ abstract onnavigatesuccess: ((this: _Navigation, ev: Event) => any) | null;
100
+ abstract onnavigateerror: ((this: _Navigation, ev: ErrorEvent) => any) | null;
101
+ abstract oncurrententrychange: ((this: _Navigation, ev: _NavigationCurrentEntryChangeEvent) => any) | null;
102
+ abstract addEventListener(type: unknown, listener: unknown, options?: unknown): void;
103
+ abstract removeEventListener(type: unknown, listener: unknown, options?: unknown): void;
104
+ abstract dispatchEvent(event: Event): boolean;
105
+ static ɵfac: i0.ɵɵFactoryDeclaration<PlatformNavigation, never>;
106
+ static ɵprov: i0.ɵɵInjectableDeclaration<PlatformNavigation>;
107
+ }
108
+
72
109
  /**
73
110
  * @description
74
111
  * A {@link LocationStrategy} used to configure the {@link Location} service to
@@ -206,38 +243,6 @@ declare function formatNumber(value: number, locale: string, digitsInfo?: string
206
243
  */
207
244
  declare function registerLocaleData(data: any, localeId?: string | any, extraData?: any): void;
208
245
 
209
- /**
210
- * This class wraps the platform Navigation API which allows server-specific and test
211
- * implementations.
212
- *
213
- * Browser support is limited, so this API may not be available in all environments,
214
- * may contain bugs, and is experimental.
215
- *
216
- * @experimental 21.0.0
217
- */
218
- declare abstract class PlatformNavigation implements _Navigation {
219
- abstract entries(): _NavigationHistoryEntry[];
220
- abstract currentEntry: _NavigationHistoryEntry | null;
221
- abstract updateCurrentEntry(options: _NavigationUpdateCurrentEntryOptions): void;
222
- abstract transition: _NavigationTransition | null;
223
- abstract canGoBack: boolean;
224
- abstract canGoForward: boolean;
225
- abstract navigate(url: string, options?: _NavigationNavigateOptions | undefined): _NavigationResult;
226
- abstract reload(options?: _NavigationReloadOptions | undefined): _NavigationResult;
227
- abstract traverseTo(key: string, options?: _NavigationOptions | undefined): _NavigationResult;
228
- abstract back(options?: _NavigationOptions | undefined): _NavigationResult;
229
- abstract forward(options?: _NavigationOptions | undefined): _NavigationResult;
230
- abstract onnavigate: ((this: _Navigation, ev: _NavigateEvent) => any) | null;
231
- abstract onnavigatesuccess: ((this: _Navigation, ev: Event) => any) | null;
232
- abstract onnavigateerror: ((this: _Navigation, ev: ErrorEvent) => any) | null;
233
- abstract oncurrententrychange: ((this: _Navigation, ev: _NavigationCurrentEntryChangeEvent) => any) | null;
234
- abstract addEventListener(type: unknown, listener: unknown, options?: unknown): void;
235
- abstract removeEventListener(type: unknown, listener: unknown, options?: unknown): void;
236
- abstract dispatchEvent(event: Event): boolean;
237
- static ɵfac: i0.ɵɵFactoryDeclaration<PlatformNavigation, never>;
238
- static ɵprov: i0.ɵɵInjectableDeclaration<PlatformNavigation>;
239
- }
240
-
241
246
  /**
242
247
  * Format styles that can be used to represent numbers.
243
248
  * @see {@link getLocaleNumberFormat}
@@ -905,6 +910,7 @@ declare class NullViewportScroller implements ViewportScroller {
905
910
  * @param path Your domain name, e.g. https://mysite.com
906
911
  * @returns Provider that provides an ImageLoader function
907
912
  *
913
+ * @see [Image Optimization Guide](guide/image-optimization)
908
914
  * @publicApi
909
915
  */
910
916
  declare const provideCloudflareLoader: (path: string) => Provider[];
@@ -963,6 +969,7 @@ declare const IMAGE_LOADER: InjectionToken<ImageLoader>;
963
969
  * https://subdomain.mysite.com
964
970
  * @returns Set of providers to configure the Cloudinary loader.
965
971
  *
972
+ * @see [Image Optimization Guide](guide/image-optimization)
966
973
  * @publicApi
967
974
  */
968
975
  declare const provideCloudinaryLoader: (path: string) => Provider[];
@@ -976,6 +983,7 @@ declare const provideCloudinaryLoader: (path: string) => Provider[];
976
983
  * https://subdomain.mysite.com
977
984
  * @returns Set of providers to configure the ImageKit loader.
978
985
  *
986
+ * @see [Image Optimization Guide](guide/image-optimization)
979
987
  * @publicApi
980
988
  */
981
989
  declare const provideImageKitLoader: (path: string) => Provider[];
@@ -987,6 +995,7 @@ declare const provideImageKitLoader: (path: string) => Provider[];
987
995
  * e.g. https://somepath.imgix.net or https://images.mysite.com
988
996
  * @returns Set of providers to configure the Imgix loader.
989
997
  *
998
+ * @see [Image Optimization Guide](guide/image-optimization)
990
999
  * @publicApi
991
1000
  */
992
1001
  declare const provideImgixLoader: (path: string) => Provider[];
@@ -1274,5 +1283,5 @@ declare const PRECONNECT_CHECK_BLOCKLIST: InjectionToken<(string | string[])[]>;
1274
1283
  */
1275
1284
  declare function normalizeQueryParams(params: string): string;
1276
1285
 
1277
- export { FormStyle, FormatWidth, HashLocationStrategy, IMAGE_LOADER, Location, 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, NavigationAdapterForLocation as ɵNavigationAdapterForLocation, 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 };
1286
+ export { FormStyle, FormatWidth, HashLocationStrategy, IMAGE_LOADER, Location, 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, NavigationAdapterForLocation as ɵNavigationAdapterForLocation, NullViewportScroller as ɵNullViewportScroller, PLATFORM_BROWSER_ID as ɵPLATFORM_BROWSER_ID, PLATFORM_SERVER_ID as ɵPLATFORM_SERVER_ID, PRECOMMIT_HANDLER_SUPPORTED as ɵPRECOMMIT_HANDLER_SUPPORTED, getDOM as ɵgetDOM, normalizeQueryParams as ɵnormalizeQueryParams, parseCookieValue as ɵparseCookieValue, setRootDomAdapter as ɵsetRootDomAdapter };
1278
1287
  export type { ImageLoader, ImageLoaderConfig, ImagePlaceholderConfig, Time };
@@ -1,6 +1,6 @@
1
1
  /**
2
- * @license Angular v21.1.0-next.4
3
- * (c) 2010-2025 Google LLC. https://angular.dev/
2
+ * @license Angular v21.1.0
3
+ * (c) 2010-2026 Google LLC. https://angular.dev/
4
4
  * License: MIT
5
5
  */
6
6
 
package/types/http.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  /**
2
- * @license Angular v21.1.0-next.4
3
- * (c) 2010-2025 Google LLC. https://angular.dev/
2
+ * @license Angular v21.1.0
3
+ * (c) 2010-2026 Google LLC. https://angular.dev/
4
4
  * License: MIT
5
5
  */
6
6
 
@@ -1,6 +1,6 @@
1
1
  /**
2
- * @license Angular v21.1.0-next.4
3
- * (c) 2010-2025 Google LLC. https://angular.dev/
2
+ * @license Angular v21.1.0
3
+ * (c) 2010-2026 Google LLC. https://angular.dev/
4
4
  * License: MIT
5
5
  */
6
6
 
@@ -1,6 +1,6 @@
1
1
  /**
2
- * @license Angular v21.1.0-next.4
3
- * (c) 2010-2025 Google LLC. https://angular.dev/
2
+ * @license Angular v21.1.0
3
+ * (c) 2010-2026 Google LLC. https://angular.dev/
4
4
  * License: MIT
5
5
  */
6
6