@angular/common 22.0.0-next.4 → 22.0.0-next.5
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/_module-chunk.mjs +414 -410
- package/fesm2022/_module-chunk.mjs.map +1 -1
- package/fesm2022/_platform_location-chunk.mjs +7 -7
- package/fesm2022/_platform_navigation-chunk.mjs +4 -4
- package/fesm2022/_xhr-chunk.mjs +1 -1
- package/fesm2022/common.mjs +20 -17
- package/fesm2022/common.mjs.map +1 -1
- package/fesm2022/http-testing.mjs +8 -8
- package/fesm2022/http.mjs +1 -1
- package/fesm2022/testing.mjs +13 -13
- package/fesm2022/upgrade.mjs +5 -5
- package/package.json +2 -2
- package/types/_common_module-chunk.d.ts +4 -4
- 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 +10 -6
- package/types/testing.d.ts +1 -1
- package/types/upgrade.d.ts +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v22.0.0-next.
|
|
2
|
+
* @license Angular v22.0.0-next.5
|
|
3
3
|
* (c) 2010-2026 Google LLC. https://angular.dev/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -227,7 +227,7 @@ class HttpClientTestingBackend {
|
|
|
227
227
|
}
|
|
228
228
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
229
229
|
minVersion: "12.0.0",
|
|
230
|
-
version: "22.0.0-next.
|
|
230
|
+
version: "22.0.0-next.5",
|
|
231
231
|
ngImport: i0,
|
|
232
232
|
type: HttpClientTestingBackend,
|
|
233
233
|
deps: [],
|
|
@@ -235,14 +235,14 @@ class HttpClientTestingBackend {
|
|
|
235
235
|
});
|
|
236
236
|
static ɵprov = i0.ɵɵngDeclareInjectable({
|
|
237
237
|
minVersion: "12.0.0",
|
|
238
|
-
version: "22.0.0-next.
|
|
238
|
+
version: "22.0.0-next.5",
|
|
239
239
|
ngImport: i0,
|
|
240
240
|
type: HttpClientTestingBackend
|
|
241
241
|
});
|
|
242
242
|
}
|
|
243
243
|
i0.ɵɵngDeclareClassMetadata({
|
|
244
244
|
minVersion: "12.0.0",
|
|
245
|
-
version: "22.0.0-next.
|
|
245
|
+
version: "22.0.0-next.5",
|
|
246
246
|
ngImport: i0,
|
|
247
247
|
type: HttpClientTestingBackend,
|
|
248
248
|
decorators: [{
|
|
@@ -271,7 +271,7 @@ function provideHttpClientTesting() {
|
|
|
271
271
|
class HttpClientTestingModule {
|
|
272
272
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
273
273
|
minVersion: "12.0.0",
|
|
274
|
-
version: "22.0.0-next.
|
|
274
|
+
version: "22.0.0-next.5",
|
|
275
275
|
ngImport: i0,
|
|
276
276
|
type: HttpClientTestingModule,
|
|
277
277
|
deps: [],
|
|
@@ -279,14 +279,14 @@ class HttpClientTestingModule {
|
|
|
279
279
|
});
|
|
280
280
|
static ɵmod = i0.ɵɵngDeclareNgModule({
|
|
281
281
|
minVersion: "14.0.0",
|
|
282
|
-
version: "22.0.0-next.
|
|
282
|
+
version: "22.0.0-next.5",
|
|
283
283
|
ngImport: i0,
|
|
284
284
|
type: HttpClientTestingModule,
|
|
285
285
|
imports: [HttpClientModule]
|
|
286
286
|
});
|
|
287
287
|
static ɵinj = i0.ɵɵngDeclareInjector({
|
|
288
288
|
minVersion: "12.0.0",
|
|
289
|
-
version: "22.0.0-next.
|
|
289
|
+
version: "22.0.0-next.5",
|
|
290
290
|
ngImport: i0,
|
|
291
291
|
type: HttpClientTestingModule,
|
|
292
292
|
providers: [provideHttpClientTesting()],
|
|
@@ -295,7 +295,7 @@ class HttpClientTestingModule {
|
|
|
295
295
|
}
|
|
296
296
|
i0.ɵɵngDeclareClassMetadata({
|
|
297
297
|
minVersion: "12.0.0",
|
|
298
|
-
version: "22.0.0-next.
|
|
298
|
+
version: "22.0.0-next.5",
|
|
299
299
|
ngImport: i0,
|
|
300
300
|
type: HttpClientTestingModule,
|
|
301
301
|
decorators: [{
|
package/fesm2022/http.mjs
CHANGED
package/fesm2022/testing.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v22.0.0-next.
|
|
2
|
+
* @license Angular v22.0.0-next.5
|
|
3
3
|
* (c) 2010-2026 Google LLC. https://angular.dev/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -202,7 +202,7 @@ class MockPlatformLocation {
|
|
|
202
202
|
}
|
|
203
203
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
204
204
|
minVersion: "12.0.0",
|
|
205
|
-
version: "22.0.0-next.
|
|
205
|
+
version: "22.0.0-next.5",
|
|
206
206
|
ngImport: i0,
|
|
207
207
|
type: MockPlatformLocation,
|
|
208
208
|
deps: [{
|
|
@@ -213,14 +213,14 @@ class MockPlatformLocation {
|
|
|
213
213
|
});
|
|
214
214
|
static ɵprov = i0.ɵɵngDeclareInjectable({
|
|
215
215
|
minVersion: "12.0.0",
|
|
216
|
-
version: "22.0.0-next.
|
|
216
|
+
version: "22.0.0-next.5",
|
|
217
217
|
ngImport: i0,
|
|
218
218
|
type: MockPlatformLocation
|
|
219
219
|
});
|
|
220
220
|
}
|
|
221
221
|
i0.ɵɵngDeclareClassMetadata({
|
|
222
222
|
minVersion: "12.0.0",
|
|
223
|
-
version: "22.0.0-next.
|
|
223
|
+
version: "22.0.0-next.5",
|
|
224
224
|
ngImport: i0,
|
|
225
225
|
type: MockPlatformLocation,
|
|
226
226
|
decorators: [{
|
|
@@ -300,7 +300,7 @@ class FakeNavigationPlatformLocation {
|
|
|
300
300
|
}
|
|
301
301
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
302
302
|
minVersion: "12.0.0",
|
|
303
|
-
version: "22.0.0-next.
|
|
303
|
+
version: "22.0.0-next.5",
|
|
304
304
|
ngImport: i0,
|
|
305
305
|
type: FakeNavigationPlatformLocation,
|
|
306
306
|
deps: [],
|
|
@@ -308,14 +308,14 @@ class FakeNavigationPlatformLocation {
|
|
|
308
308
|
});
|
|
309
309
|
static ɵprov = i0.ɵɵngDeclareInjectable({
|
|
310
310
|
minVersion: "12.0.0",
|
|
311
|
-
version: "22.0.0-next.
|
|
311
|
+
version: "22.0.0-next.5",
|
|
312
312
|
ngImport: i0,
|
|
313
313
|
type: FakeNavigationPlatformLocation
|
|
314
314
|
});
|
|
315
315
|
}
|
|
316
316
|
i0.ɵɵngDeclareClassMetadata({
|
|
317
317
|
minVersion: "12.0.0",
|
|
318
|
-
version: "22.0.0-next.
|
|
318
|
+
version: "22.0.0-next.5",
|
|
319
319
|
ngImport: i0,
|
|
320
320
|
type: FakeNavigationPlatformLocation,
|
|
321
321
|
decorators: [{
|
|
@@ -501,7 +501,7 @@ class SpyLocation {
|
|
|
501
501
|
}
|
|
502
502
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
503
503
|
minVersion: "12.0.0",
|
|
504
|
-
version: "22.0.0-next.
|
|
504
|
+
version: "22.0.0-next.5",
|
|
505
505
|
ngImport: i0,
|
|
506
506
|
type: SpyLocation,
|
|
507
507
|
deps: [],
|
|
@@ -509,14 +509,14 @@ class SpyLocation {
|
|
|
509
509
|
});
|
|
510
510
|
static ɵprov = i0.ɵɵngDeclareInjectable({
|
|
511
511
|
minVersion: "12.0.0",
|
|
512
|
-
version: "22.0.0-next.
|
|
512
|
+
version: "22.0.0-next.5",
|
|
513
513
|
ngImport: i0,
|
|
514
514
|
type: SpyLocation
|
|
515
515
|
});
|
|
516
516
|
}
|
|
517
517
|
i0.ɵɵngDeclareClassMetadata({
|
|
518
518
|
minVersion: "12.0.0",
|
|
519
|
-
version: "22.0.0-next.
|
|
519
|
+
version: "22.0.0-next.5",
|
|
520
520
|
ngImport: i0,
|
|
521
521
|
type: SpyLocation,
|
|
522
522
|
decorators: [{
|
|
@@ -597,7 +597,7 @@ class MockLocationStrategy extends LocationStrategy {
|
|
|
597
597
|
}
|
|
598
598
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
599
599
|
minVersion: "12.0.0",
|
|
600
|
-
version: "22.0.0-next.
|
|
600
|
+
version: "22.0.0-next.5",
|
|
601
601
|
ngImport: i0,
|
|
602
602
|
type: MockLocationStrategy,
|
|
603
603
|
deps: [],
|
|
@@ -605,14 +605,14 @@ class MockLocationStrategy extends LocationStrategy {
|
|
|
605
605
|
});
|
|
606
606
|
static ɵprov = i0.ɵɵngDeclareInjectable({
|
|
607
607
|
minVersion: "12.0.0",
|
|
608
|
-
version: "22.0.0-next.
|
|
608
|
+
version: "22.0.0-next.5",
|
|
609
609
|
ngImport: i0,
|
|
610
610
|
type: MockLocationStrategy
|
|
611
611
|
});
|
|
612
612
|
}
|
|
613
613
|
i0.ɵɵngDeclareClassMetadata({
|
|
614
614
|
minVersion: "12.0.0",
|
|
615
|
-
version: "22.0.0-next.
|
|
615
|
+
version: "22.0.0-next.5",
|
|
616
616
|
ngImport: i0,
|
|
617
617
|
type: MockLocationStrategy,
|
|
618
618
|
decorators: [{
|
package/fesm2022/upgrade.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v22.0.0-next.
|
|
2
|
+
* @license Angular v22.0.0-next.5
|
|
3
3
|
* (c) 2010-2026 Google LLC. https://angular.dev/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -601,7 +601,7 @@ class LocationUpgradeModule {
|
|
|
601
601
|
}
|
|
602
602
|
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
603
603
|
minVersion: "12.0.0",
|
|
604
|
-
version: "22.0.0-next.
|
|
604
|
+
version: "22.0.0-next.5",
|
|
605
605
|
ngImport: i0,
|
|
606
606
|
type: LocationUpgradeModule,
|
|
607
607
|
deps: [],
|
|
@@ -609,14 +609,14 @@ class LocationUpgradeModule {
|
|
|
609
609
|
});
|
|
610
610
|
static ɵmod = i0.ɵɵngDeclareNgModule({
|
|
611
611
|
minVersion: "14.0.0",
|
|
612
|
-
version: "22.0.0-next.
|
|
612
|
+
version: "22.0.0-next.5",
|
|
613
613
|
ngImport: i0,
|
|
614
614
|
type: LocationUpgradeModule,
|
|
615
615
|
imports: [CommonModule]
|
|
616
616
|
});
|
|
617
617
|
static ɵinj = i0.ɵɵngDeclareInjector({
|
|
618
618
|
minVersion: "12.0.0",
|
|
619
|
-
version: "22.0.0-next.
|
|
619
|
+
version: "22.0.0-next.5",
|
|
620
620
|
ngImport: i0,
|
|
621
621
|
type: LocationUpgradeModule,
|
|
622
622
|
imports: [CommonModule]
|
|
@@ -624,7 +624,7 @@ class LocationUpgradeModule {
|
|
|
624
624
|
}
|
|
625
625
|
i0.ɵɵngDeclareClassMetadata({
|
|
626
626
|
minVersion: "12.0.0",
|
|
627
|
-
version: "22.0.0-next.
|
|
627
|
+
version: "22.0.0-next.5",
|
|
628
628
|
ngImport: i0,
|
|
629
629
|
type: LocationUpgradeModule,
|
|
630
630
|
decorators: [{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular/common",
|
|
3
|
-
"version": "22.0.0-next.
|
|
3
|
+
"version": "22.0.0-next.5",
|
|
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": "22.0.0-next.
|
|
47
|
+
"@angular/core": "22.0.0-next.5",
|
|
48
48
|
"rxjs": "^6.5.3 || ^7.4.0"
|
|
49
49
|
},
|
|
50
50
|
"repository": {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v22.0.0-next.
|
|
2
|
+
* @license Angular v22.0.0-next.5
|
|
3
3
|
* (c) 2010-2026 Google LLC. https://angular.dev/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -321,7 +321,7 @@ declare class Location implements OnDestroy {
|
|
|
321
321
|
* @publicApi
|
|
322
322
|
*/
|
|
323
323
|
declare abstract class NgLocalization {
|
|
324
|
-
abstract getPluralCategory(value:
|
|
324
|
+
abstract getPluralCategory(value: number, locale?: string): string;
|
|
325
325
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgLocalization, never>;
|
|
326
326
|
static ɵprov: i0.ɵɵInjectableDeclaration<NgLocalization>;
|
|
327
327
|
}
|
|
@@ -333,7 +333,7 @@ declare abstract class NgLocalization {
|
|
|
333
333
|
declare class NgLocaleLocalization extends NgLocalization {
|
|
334
334
|
protected locale: string;
|
|
335
335
|
constructor(locale: string);
|
|
336
|
-
getPluralCategory(value:
|
|
336
|
+
getPluralCategory(value: number, locale?: string): string;
|
|
337
337
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgLocaleLocalization, never>;
|
|
338
338
|
static ɵprov: i0.ɵɵInjectableDeclaration<NgLocaleLocalization>;
|
|
339
339
|
}
|
|
@@ -1399,7 +1399,7 @@ declare class JsonPipe implements PipeTransform {
|
|
|
1399
1399
|
/**
|
|
1400
1400
|
* @param value A value of any type to convert into a JSON-format string.
|
|
1401
1401
|
*/
|
|
1402
|
-
transform(value:
|
|
1402
|
+
transform(value: unknown): string;
|
|
1403
1403
|
static ɵfac: i0.ɵɵFactoryDeclaration<JsonPipe, never>;
|
|
1404
1404
|
static ɵpipe: i0.ɵɵPipeDeclaration<JsonPipe, "json", true>;
|
|
1405
1405
|
}
|
package/types/_module-chunk.d.ts
CHANGED
package/types/_xhr-chunk.d.ts
CHANGED
package/types/common.d.ts
CHANGED
package/types/http-testing.d.ts
CHANGED
package/types/http.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v22.0.0-next.
|
|
2
|
+
* @license Angular v22.0.0-next.5
|
|
3
3
|
* (c) 2010-2026 Google LLC. https://angular.dev/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -4108,6 +4108,8 @@ interface HttpFeature<KindT extends HttpFeatureKind> {
|
|
|
4108
4108
|
/**
|
|
4109
4109
|
* Configures Angular's `HttpClient` service to be available for injection.
|
|
4110
4110
|
*
|
|
4111
|
+
* The `HttpClient` service is provided in the root by default.
|
|
4112
|
+
*
|
|
4111
4113
|
* By default, `HttpClient` will be configured for injection with its default options for XSRF
|
|
4112
4114
|
* protection of outgoing requests. Additional configuration options can be provided by passing
|
|
4113
4115
|
* feature functions to `provideHttpClient`. For example, HTTP interceptors can be added using the
|
|
@@ -4115,16 +4117,18 @@ interface HttpFeature<KindT extends HttpFeatureKind> {
|
|
|
4115
4117
|
*
|
|
4116
4118
|
* <div class="docs-alert docs-alert-helpful">
|
|
4117
4119
|
*
|
|
4118
|
-
*
|
|
4119
|
-
* [`fetch`](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API)
|
|
4120
|
-
*
|
|
4121
|
-
*
|
|
4120
|
+
* By default, `HttpClient` uses the
|
|
4121
|
+
* [`fetch` API](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) to make requests.
|
|
4122
|
+
* This is strongly recommended for applications that use
|
|
4123
|
+
* Server-Side Rendering for better performance and compatibility.
|
|
4124
|
+
* To use the `XMLHttpRequest` API instead, add the {@link withXhr} feature:
|
|
4122
4125
|
*
|
|
4123
4126
|
* ```ts
|
|
4124
|
-
* provideHttpClient(
|
|
4127
|
+
* provideHttpClient(withXhr());
|
|
4125
4128
|
* ```
|
|
4126
4129
|
*
|
|
4127
4130
|
* </div>
|
|
4131
|
+
*
|
|
4128
4132
|
* @see [HTTP Client](guide/http/setup)
|
|
4129
4133
|
* @see {@link withInterceptors}
|
|
4130
4134
|
* @see {@link withInterceptorsFromDi}
|
package/types/testing.d.ts
CHANGED
package/types/upgrade.d.ts
CHANGED