@angular/common 21.0.0-next.4 → 21.0.0-next.6

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.
Files changed (36) hide show
  1. package/fesm2022/{common_module.mjs → _common_module-chunk.mjs} +90 -90
  2. package/fesm2022/_common_module-chunk.mjs.map +1 -0
  3. package/fesm2022/{location.mjs → _location-chunk.mjs} +19 -19
  4. package/fesm2022/_location-chunk.mjs.map +1 -0
  5. package/fesm2022/{module.mjs → _module-chunk.mjs} +56 -56
  6. package/fesm2022/_module-chunk.mjs.map +1 -0
  7. package/fesm2022/{platform_navigation.mjs → _platform_navigation-chunk.mjs} +5 -5
  8. package/fesm2022/_platform_navigation-chunk.mjs.map +1 -0
  9. package/fesm2022/{xhr.mjs → _xhr-chunk.mjs} +2 -2
  10. package/fesm2022/_xhr-chunk.mjs.map +1 -0
  11. package/fesm2022/common.mjs +20 -20
  12. package/fesm2022/common.mjs.map +1 -1
  13. package/fesm2022/{http/testing.mjs → http-testing.mjs} +11 -11
  14. package/fesm2022/http-testing.mjs.map +1 -0
  15. package/fesm2022/http.mjs +21 -18
  16. package/fesm2022/http.mjs.map +1 -1
  17. package/fesm2022/testing.mjs +15 -15
  18. package/fesm2022/testing.mjs.map +1 -1
  19. package/fesm2022/upgrade.mjs +9 -9
  20. package/fesm2022/upgrade.mjs.map +1 -1
  21. package/package.json +9 -9
  22. package/{common_module.d.d.ts → types/_common_module-chunk.d.ts} +2 -2
  23. package/{module.d.d.ts → types/_module-chunk.d.ts} +1 -1
  24. package/{platform_location.d.d.ts → types/_platform_location-chunk.d.ts} +1 -1
  25. package/{xhr.d.d.ts → types/_xhr-chunk.d.ts} +1 -1
  26. package/{index.d.ts → types/common.d.ts} +6 -6
  27. package/{http/testing/index.d.ts → types/http-testing.d.ts} +2 -2
  28. package/{http/index.d.ts → types/http.d.ts} +6 -5
  29. package/{testing/index.d.ts → types/testing.d.ts} +2 -2
  30. package/{upgrade/index.d.ts → types/upgrade.d.ts} +3 -3
  31. package/fesm2022/common_module.mjs.map +0 -1
  32. package/fesm2022/http/testing.mjs.map +0 -1
  33. package/fesm2022/location.mjs.map +0 -1
  34. package/fesm2022/module.mjs.map +0 -1
  35. package/fesm2022/platform_navigation.mjs.map +0 -1
  36. package/fesm2022/xhr.mjs.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/common",
3
- "version": "21.0.0-next.4",
3
+ "version": "21.0.0-next.6",
4
4
  "description": "Angular - commonly needed directives and services",
5
5
  "author": "angular",
6
6
  "license": "MIT",
@@ -23,28 +23,28 @@
23
23
  "default": "./package.json"
24
24
  },
25
25
  ".": {
26
- "types": "./index.d.ts",
26
+ "types": "./types/common.d.ts",
27
27
  "default": "./fesm2022/common.mjs"
28
28
  },
29
29
  "./http": {
30
- "types": "./http/index.d.ts",
30
+ "types": "./types/http.d.ts",
31
31
  "default": "./fesm2022/http.mjs"
32
32
  },
33
33
  "./http/testing": {
34
- "types": "./http/testing/index.d.ts",
35
- "default": "./fesm2022/http/testing.mjs"
34
+ "types": "./types/http-testing.d.ts",
35
+ "default": "./fesm2022/http-testing.mjs"
36
36
  },
37
37
  "./testing": {
38
- "types": "./testing/index.d.ts",
38
+ "types": "./types/testing.d.ts",
39
39
  "default": "./fesm2022/testing.mjs"
40
40
  },
41
41
  "./upgrade": {
42
- "types": "./upgrade/index.d.ts",
42
+ "types": "./types/upgrade.d.ts",
43
43
  "default": "./fesm2022/upgrade.mjs"
44
44
  }
45
45
  },
46
46
  "peerDependencies": {
47
- "@angular/core": "21.0.0-next.4",
47
+ "@angular/core": "21.0.0-next.6",
48
48
  "rxjs": "^6.5.3 || ^7.4.0"
49
49
  },
50
50
  "repository": {
@@ -77,6 +77,6 @@
77
77
  "**/closure-locale.*"
78
78
  ],
79
79
  "module": "./fesm2022/common.mjs",
80
- "typings": "./index.d.ts",
80
+ "typings": "./types/common.d.ts",
81
81
  "type": "module"
82
82
  }
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v21.0.0-next.4
2
+ * @license Angular v21.0.0-next.6
3
3
  * (c) 2010-2025 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -7,7 +7,7 @@
7
7
  import * as i0 from '@angular/core';
8
8
  import { InjectionToken, OnDestroy, DoCheck, ElementRef, Renderer2, OnChanges, Type, Injector, EnvironmentInjector, ViewContainerRef, SimpleChanges, NgIterable, TrackByFunction, TemplateRef, IterableDiffers, KeyValueDiffers, PipeTransform, ChangeDetectorRef } from '@angular/core';
9
9
  import { SubscriptionLike, Observable, Subscribable } from 'rxjs';
10
- import { LocationChangeListener, PlatformLocation } from './platform_location.d.js';
10
+ import { LocationChangeListener, PlatformLocation } from './_platform_location-chunk.js';
11
11
 
12
12
  /**
13
13
  * Enables the `Location` service to read route state from the browser's URL.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v21.0.0-next.4
2
+ * @license Angular v21.0.0-next.6
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 v21.0.0-next.4
2
+ * @license Angular v21.0.0-next.6
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 v21.0.0-next.4
2
+ * @license Angular v21.0.0-next.6
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 v21.0.0-next.4
2
+ * @license Angular v21.0.0-next.6
3
3
  * (c) 2010-2025 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -7,11 +7,11 @@
7
7
  import * as i0 from '@angular/core';
8
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
- import { LocationStrategy } from './common_module.d.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.js';
12
- import { PlatformLocation, LocationChangeListener } from './platform_location.d.js';
13
- export { BrowserPlatformLocation, LOCATION_INITIALIZED, LocationChangeEvent } from './platform_location.d.js';
14
- export { XhrFactory } from './xhr.d.js';
10
+ import { LocationStrategy } from './_common_module-chunk.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-chunk.js';
12
+ import { PlatformLocation, LocationChangeListener } from './_platform_location-chunk.js';
13
+ export { BrowserPlatformLocation, LOCATION_INITIALIZED, LocationChangeEvent } from './_platform_location-chunk.js';
14
+ export { XhrFactory } from './_xhr-chunk.js';
15
15
  import 'rxjs';
16
16
 
17
17
  declare function getDOM(): DomAdapter;
@@ -1,10 +1,10 @@
1
1
  /**
2
- * @license Angular v21.0.0-next.4
2
+ * @license Angular v21.0.0-next.6
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.js';
7
+ import { HttpRequest, HttpEvent, HttpHeaders, HttpClientModule } from './_module-chunk.js';
8
8
  import { Observer } from 'rxjs';
9
9
  import * as i0 from '@angular/core';
10
10
  import { Provider } from '@angular/core';
@@ -1,15 +1,15 @@
1
1
  /**
2
- * @license Angular v21.0.0-next.4
2
+ * @license Angular v21.0.0-next.6
3
3
  * (c) 2010-2025 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
6
6
 
7
7
  import { Observable } from 'rxjs';
8
- import { HttpRequest, HttpEvent, HttpHeaders, HttpContext, HttpParams, HttpResponse, HttpProgressEvent } from '../module.d.js';
9
- export { HttpClientJsonpModule, HttpClientModule, HttpClientXsrfModule, HttpContextToken, HttpDownloadProgressEvent, HttpErrorResponse, HttpEventType, HttpHeaderResponse, HttpParameterCodec, HttpParamsOptions, HttpResponseBase, HttpSentEvent, HttpStatusCode, HttpUploadProgressEvent, HttpUrlEncodingCodec, HttpUserEvent } from '../module.d.js';
8
+ import { HttpRequest, HttpEvent, HttpHeaders, HttpContext, HttpParams, HttpResponse, HttpProgressEvent } from './_module-chunk.js';
9
+ export { HttpClientJsonpModule, HttpClientModule, HttpClientXsrfModule, HttpContextToken, HttpDownloadProgressEvent, HttpErrorResponse, HttpEventType, HttpHeaderResponse, HttpParameterCodec, HttpParamsOptions, HttpResponseBase, HttpSentEvent, HttpStatusCode, HttpUploadProgressEvent, HttpUrlEncodingCodec, HttpUserEvent } from './_module-chunk.js';
10
10
  import * as i0 from '@angular/core';
11
11
  import { EnvironmentInjector, InjectionToken, Provider, EnvironmentProviders, Injector, ValueEqualityFn, WritableResource, ResourceRef, Signal } from '@angular/core';
12
- import { XhrFactory } from '../xhr.d.js';
12
+ import { XhrFactory } from './_xhr-chunk.js';
13
13
 
14
14
  /**
15
15
  * A final `HttpHandler` which will dispatch the request via browser HTTP APIs to a backend.
@@ -4243,7 +4243,8 @@ interface HttpResourceRef<T> extends WritableResource<T>, ResourceRef<T> {
4243
4243
  * Signal of the latest progress update, if the request was made with `reportProgress: true`.
4244
4244
  */
4245
4245
  readonly progress: Signal<HttpProgressEvent | undefined>;
4246
- hasValue(): this is HttpResourceRef<Exclude<T, undefined>>;
4246
+ hasValue(this: T extends undefined ? this : never): this is HttpResourceRef<Exclude<T, undefined>>;
4247
+ hasValue(): boolean;
4247
4248
  destroy(): void;
4248
4249
  }
4249
4250
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v21.0.0-next.4
2
+ * @license Angular v21.0.0-next.6
3
3
  * (c) 2010-2025 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -9,7 +9,7 @@ import { Provider, InjectionToken } from '@angular/core';
9
9
  export { ɵFakeNavigation } from '@angular/core/testing';
10
10
  import { Location, LocationStrategy } from '@angular/common';
11
11
  import { SubscriptionLike } from 'rxjs';
12
- import { PlatformLocation, LocationChangeListener } from '../platform_location.d.js';
12
+ import { PlatformLocation, LocationChangeListener } from './_platform_location-chunk.js';
13
13
 
14
14
  /**
15
15
  * Return a provider for the `FakeNavigation` in place of the real Navigation API.
@@ -1,11 +1,11 @@
1
1
  /**
2
- * @license Angular v21.0.0-next.4
2
+ * @license Angular v21.0.0-next.6
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.js';
8
- import { PlatformLocation } from '../platform_location.d.js';
7
+ import { Location, LocationStrategy, CommonModule } from './_common_module-chunk.js';
8
+ import { PlatformLocation } from './_platform_location-chunk.js';
9
9
  import { UpgradeModule } from '@angular/upgrade/static';
10
10
  import * as i0 from '@angular/core';
11
11
  import { InjectionToken, ModuleWithProviders } from '@angular/core';