@angular/common 20.0.0-next.8 → 20.0.0-rc.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.
@@ -1,10 +1,10 @@
1
1
  /**
2
- * @license Angular v20.0.0-next.8
2
+ * @license Angular v20.0.0-rc.0
3
3
  * (c) 2010-2025 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
6
6
 
7
- import { HttpRequest, HttpEvent, HttpHeaders, HttpClientModule } from '../../module.d-CnjH8Dlt.js';
7
+ import { HttpRequest, HttpEvent, HttpHeaders, HttpClientModule } from '../../module.d-yNBsZ8gb.js';
8
8
  import { Observer } from 'rxjs';
9
9
  import * as i0 from '@angular/core';
10
10
  import { Provider } from '@angular/core';
package/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v20.0.0-next.8
2
+ * @license Angular v20.0.0-rc.0
3
3
  * (c) 2010-2025 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -7,8 +7,8 @@
7
7
  import * as i0 from '@angular/core';
8
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, OnDestroy, Version, InjectionToken, Provider, OnInit, OnChanges, SimpleChanges } from '@angular/core';
9
9
  export { DOCUMENT, ɵIMAGE_CONFIG as IMAGE_CONFIG, ɵImageConfig as ImageConfig } from '@angular/core';
10
- import { LocationStrategy } from './common_module.d-1Ij4nFjY.js';
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-1Ij4nFjY.js';
10
+ import { LocationStrategy } from './common_module.d-CFPjq0Cz.js';
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-CFPjq0Cz.js';
12
12
  import { PlatformLocation, LocationChangeListener } from './platform_location.d-Lbv6Ueec.js';
13
13
  export { BrowserPlatformLocation, LOCATION_INITIALIZED, LocationChangeEvent } from './platform_location.d-Lbv6Ueec.js';
14
14
  export { XhrFactory } from './xhr.d-D_1kTQR5.js';
@@ -282,7 +282,8 @@ declare enum TranslationWidth {
282
282
  * @see [Internationalization (i18n) Guide](guide/i18n)
283
283
  * @publicApi
284
284
  *
285
- * @deprecated Date locale data getters are deprecated
285
+ * @deprecated 18.0
286
+ * Date locale data getters are deprecated
286
287
  */
287
288
  declare enum FormatWidth {
288
289
  /**
@@ -821,12 +822,12 @@ declare abstract class ViewportScroller {
821
822
  * Scrolls to a specified position.
822
823
  * @param position A position in screen coordinates (a tuple with x and y values).
823
824
  */
824
- abstract scrollToPosition(position: [number, number]): void;
825
+ abstract scrollToPosition(position: [number, number], options?: ScrollOptions): void;
825
826
  /**
826
827
  * Scrolls to an anchor element.
827
828
  * @param anchor The ID of the anchor element.
828
829
  */
829
- abstract scrollToAnchor(anchor: string): void;
830
+ abstract scrollToAnchor(anchor: string, options?: ScrollOptions): void;
830
831
  /**
831
832
  * Disables automatic scroll restoration provided by the browser.
832
833
  * See also [window.history.scrollRestoration
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v20.0.0-next.8
2
+ * @license Angular v20.0.0-rc.0
3
3
  * (c) 2010-2025 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -375,6 +375,10 @@ declare class HttpRequest<T> {
375
375
  * Whether this request should be sent with outgoing credentials (cookies).
376
376
  */
377
377
  readonly withCredentials: boolean;
378
+ /**
379
+ * When using the fetch implementation and set to `true`, the browser will not abort the associated request if the page that initiated it is unloaded before the request is complete.
380
+ */
381
+ readonly keepalive: boolean;
378
382
  /**
379
383
  * The expected response type of the server.
380
384
  *
@@ -414,6 +418,7 @@ declare class HttpRequest<T> {
414
418
  params?: HttpParams;
415
419
  responseType?: 'arraybuffer' | 'blob' | 'json' | 'text';
416
420
  withCredentials?: boolean;
421
+ keepalive?: boolean;
417
422
  /**
418
423
  * This property accepts either a boolean to enable/disable transferring cache for eligible
419
424
  * requests performed using `HttpClient`, or an object, which allows to configure cache
@@ -433,6 +438,7 @@ declare class HttpRequest<T> {
433
438
  params?: HttpParams;
434
439
  responseType?: 'arraybuffer' | 'blob' | 'json' | 'text';
435
440
  withCredentials?: boolean;
441
+ keepalive?: boolean;
436
442
  });
437
443
  constructor(method: 'POST', url: string, body: T | null, init?: {
438
444
  headers?: HttpHeaders;
@@ -441,6 +447,7 @@ declare class HttpRequest<T> {
441
447
  params?: HttpParams;
442
448
  responseType?: 'arraybuffer' | 'blob' | 'json' | 'text';
443
449
  withCredentials?: boolean;
450
+ keepalive?: boolean;
444
451
  /**
445
452
  * This property accepts either a boolean to enable/disable transferring cache for eligible
446
453
  * requests performed using `HttpClient`, or an object, which allows to configure cache
@@ -460,6 +467,7 @@ declare class HttpRequest<T> {
460
467
  params?: HttpParams;
461
468
  responseType?: 'arraybuffer' | 'blob' | 'json' | 'text';
462
469
  withCredentials?: boolean;
470
+ keepalive?: boolean;
463
471
  });
464
472
  constructor(method: string, url: string, body: T | null, init?: {
465
473
  headers?: HttpHeaders;
@@ -468,6 +476,7 @@ declare class HttpRequest<T> {
468
476
  params?: HttpParams;
469
477
  responseType?: 'arraybuffer' | 'blob' | 'json' | 'text';
470
478
  withCredentials?: boolean;
479
+ keepalive?: boolean;
471
480
  /**
472
481
  * This property accepts either a boolean to enable/disable transferring cache for eligible
473
482
  * requests performed using `HttpClient`, or an object, which allows to configure cache
@@ -500,6 +509,7 @@ declare class HttpRequest<T> {
500
509
  params?: HttpParams;
501
510
  responseType?: 'arraybuffer' | 'blob' | 'json' | 'text';
502
511
  withCredentials?: boolean;
512
+ keepalive?: boolean;
503
513
  transferCache?: {
504
514
  includeHeaders?: string[];
505
515
  } | boolean;
@@ -519,6 +529,7 @@ declare class HttpRequest<T> {
519
529
  reportProgress?: boolean;
520
530
  params?: HttpParams;
521
531
  responseType?: 'arraybuffer' | 'blob' | 'json' | 'text';
532
+ keepalive?: boolean;
522
533
  withCredentials?: boolean;
523
534
  transferCache?: {
524
535
  includeHeaders?: string[];
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@angular/common",
3
- "version": "20.0.0-next.8",
3
+ "version": "20.0.0-rc.0",
4
4
  "description": "Angular - commonly needed directives and services",
5
5
  "author": "angular",
6
6
  "license": "MIT",
7
7
  "engines": {
8
- "node": "^20.11.1 || >=22.11.0"
8
+ "node": "^20.11.1 || ^22.11.0 || >=24.0.0"
9
9
  },
10
10
  "locales": "locales",
11
11
  "dependencies": {
@@ -44,7 +44,7 @@
44
44
  }
45
45
  },
46
46
  "peerDependencies": {
47
- "@angular/core": "20.0.0-next.8",
47
+ "@angular/core": "20.0.0-rc.0",
48
48
  "rxjs": "^6.5.3 || ^7.4.0"
49
49
  },
50
50
  "repository": {
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v20.0.0-next.8
2
+ * @license Angular v20.0.0-rc.0
3
3
  * (c) 2010-2025 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v20.0.0-next.8
2
+ * @license Angular v20.0.0-rc.0
3
3
  * (c) 2010-2025 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -1,10 +1,10 @@
1
1
  /**
2
- * @license Angular v20.0.0-next.8
2
+ * @license Angular v20.0.0-rc.0
3
3
  * (c) 2010-2025 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
6
6
 
7
- import { Location, LocationStrategy, CommonModule } from '../common_module.d-1Ij4nFjY.js';
7
+ import { Location, LocationStrategy, CommonModule } from '../common_module.d-CFPjq0Cz.js';
8
8
  import { PlatformLocation } from '../platform_location.d-Lbv6Ueec.js';
9
9
  import { UpgradeModule } from '@angular/upgrade/static';
10
10
  import * as i0 from '@angular/core';
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v20.0.0-next.8
2
+ * @license Angular v20.0.0-rc.0
3
3
  * (c) 2010-2025 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */