@angular/core 21.1.3 → 21.2.0-next.1
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/_attribute-chunk.mjs +1 -1
- package/fesm2022/_attribute-chunk.mjs.map +1 -1
- package/fesm2022/_debug_node-chunk.mjs +34 -33
- package/fesm2022/_debug_node-chunk.mjs.map +1 -1
- package/fesm2022/_effect-chunk.mjs +1 -1
- package/fesm2022/_effect-chunk.mjs.map +1 -1
- package/fesm2022/_linked_signal-chunk.mjs +2 -5
- package/fesm2022/_linked_signal-chunk.mjs.map +1 -1
- package/fesm2022/_not_found-chunk.mjs +1 -1
- package/fesm2022/_not_found-chunk.mjs.map +1 -1
- package/fesm2022/_resource-chunk.mjs +19 -2
- package/fesm2022/_resource-chunk.mjs.map +1 -1
- package/fesm2022/_untracked-chunk.mjs +2 -2
- package/fesm2022/_untracked-chunk.mjs.map +1 -1
- package/fesm2022/_weak_ref-chunk.mjs +1 -1
- package/fesm2022/_weak_ref-chunk.mjs.map +1 -1
- package/fesm2022/core.mjs +36 -6
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/primitives-di.mjs +1 -1
- package/fesm2022/primitives-di.mjs.map +1 -1
- package/fesm2022/primitives-event-dispatch.mjs +2 -2
- package/fesm2022/primitives-event-dispatch.mjs.map +1 -1
- package/fesm2022/primitives-signals.mjs +1 -1
- package/fesm2022/primitives-signals.mjs.map +1 -1
- package/fesm2022/rxjs-interop.mjs +1 -1
- package/fesm2022/rxjs-interop.mjs.map +1 -1
- package/fesm2022/testing.mjs +1 -1
- package/fesm2022/testing.mjs.map +1 -1
- package/package.json +2 -2
- package/resources/best-practices.md +0 -1
- package/schematics/bundles/add-bootstrap-context-to-server-main.cjs +1 -1
- package/schematics/bundles/application-config-core.cjs +1 -1
- package/schematics/bundles/apply_import_manager-CxA_YYgB.cjs +1 -1
- package/schematics/bundles/bootstrap-options-migration.cjs +1 -1
- package/schematics/bundles/cleanup-unused-imports.cjs +1 -1
- package/schematics/bundles/common-to-standalone-migration.cjs +1 -1
- package/schematics/bundles/compiler_host-CY14HvaP.cjs +1 -1
- package/schematics/bundles/control-flow-migration.cjs +1 -1
- package/schematics/bundles/imports-CVmcbVA9.cjs +1 -1
- package/schematics/bundles/index-BtLcQH8g.cjs +1 -1
- package/schematics/bundles/inject-migration.cjs +1 -1
- package/schematics/bundles/leading_space-BTPRV0wu.cjs +1 -1
- package/schematics/bundles/{migrate_ts_type_references-CV7qdt5t.cjs → migrate_ts_type_references-MWoZx-Cb.cjs} +11 -10
- package/schematics/bundles/ng_component_template-BOuKAnQd.cjs +1 -1
- package/schematics/bundles/ng_decorators-DYy6II6x.cjs +1 -1
- package/schematics/bundles/ngclass-to-class-migration.cjs +1 -1
- package/schematics/bundles/ngstyle-to-style-migration.cjs +1 -1
- package/schematics/bundles/nodes-ZSQ7WZRB.cjs +1 -1
- package/schematics/bundles/output-migration.cjs +1 -1
- package/schematics/bundles/parse_html-C8eKA9px.cjs +1 -1
- package/schematics/bundles/project_paths-D2V-Uh2L.cjs +1 -1
- package/schematics/bundles/project_tsconfig_paths-DkkMibv-.cjs +1 -1
- package/schematics/bundles/property_name-BCpALNpZ.cjs +1 -1
- package/schematics/bundles/route-lazy-loading.cjs +1 -1
- package/schematics/bundles/router-current-navigation.cjs +1 -1
- package/schematics/bundles/router-last-successful-navigation.cjs +1 -1
- package/schematics/bundles/router-testing-module-migration.cjs +1 -1
- package/schematics/bundles/self-closing-tags-migration.cjs +1 -1
- package/schematics/bundles/signal-input-migration.cjs +2 -2
- package/schematics/bundles/signal-queries-migration.cjs +2 -2
- package/schematics/bundles/signals.cjs +2 -2
- package/schematics/bundles/standalone-migration.cjs +1 -1
- package/schematics/bundles/symbol-DZeHSR-V.cjs +1 -1
- package/types/_api-chunk.d.ts +25 -2
- package/types/_chrome_dev_tools_performance-chunk.d.ts +1 -1
- package/types/_discovery-chunk.d.ts +2 -2
- package/types/_effect-chunk.d.ts +1 -1
- package/types/_event_dispatcher-chunk.d.ts +2 -2
- package/types/_formatter-chunk.d.ts +1 -1
- package/types/_weak_ref-chunk.d.ts +1 -1
- package/types/core.d.ts +34 -4
- package/types/primitives-di.d.ts +1 -1
- package/types/primitives-event-dispatch.d.ts +3 -3
- package/types/primitives-signals.d.ts +1 -1
- package/types/rxjs-interop.d.ts +1 -1
- package/types/testing.d.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular/core",
|
|
3
|
-
"version": "21.1
|
|
3
|
+
"version": "21.2.0-next.1",
|
|
4
4
|
"description": "Angular - the core framework",
|
|
5
5
|
"author": "angular",
|
|
6
6
|
"license": "MIT",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"tslib": "^2.3.0"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
|
-
"@angular/compiler": "21.1
|
|
49
|
+
"@angular/compiler": "21.2.0-next.1",
|
|
50
50
|
"rxjs": "^6.5.3 || ^7.4.0",
|
|
51
51
|
"zone.js": "~0.15.0 || ~0.16.0"
|
|
52
52
|
},
|
|
@@ -46,7 +46,6 @@ You are an expert in TypeScript, Angular, and scalable web application developme
|
|
|
46
46
|
- Use native control flow (`@if`, `@for`, `@switch`) instead of `*ngIf`, `*ngFor`, `*ngSwitch`
|
|
47
47
|
- Use the async pipe to handle observables
|
|
48
48
|
- Do not assume globals like (`new Date()`) are available.
|
|
49
|
-
- Do not write arrow functions in templates (they are not supported).
|
|
50
49
|
|
|
51
50
|
## Services
|
|
52
51
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
/**
|
|
3
|
-
* @license Angular v21.1
|
|
3
|
+
* @license Angular v21.2.0-next.1
|
|
4
4
|
* (c) 2010-2026 Google LLC. https://angular.dev/
|
|
5
5
|
* License: MIT
|
|
6
6
|
*/
|
|
@@ -158,15 +158,16 @@ var BinaryOperator;
|
|
|
158
158
|
BinaryOperator[BinaryOperator["NullishCoalesce"] = 18] = "NullishCoalesce";
|
|
159
159
|
BinaryOperator[BinaryOperator["Exponentiation"] = 19] = "Exponentiation";
|
|
160
160
|
BinaryOperator[BinaryOperator["In"] = 20] = "In";
|
|
161
|
-
BinaryOperator[BinaryOperator["
|
|
162
|
-
BinaryOperator[BinaryOperator["
|
|
163
|
-
BinaryOperator[BinaryOperator["
|
|
164
|
-
BinaryOperator[BinaryOperator["
|
|
165
|
-
BinaryOperator[BinaryOperator["
|
|
166
|
-
BinaryOperator[BinaryOperator["
|
|
167
|
-
BinaryOperator[BinaryOperator["
|
|
168
|
-
BinaryOperator[BinaryOperator["
|
|
169
|
-
BinaryOperator[BinaryOperator["
|
|
161
|
+
BinaryOperator[BinaryOperator["InstanceOf"] = 21] = "InstanceOf";
|
|
162
|
+
BinaryOperator[BinaryOperator["AdditionAssignment"] = 22] = "AdditionAssignment";
|
|
163
|
+
BinaryOperator[BinaryOperator["SubtractionAssignment"] = 23] = "SubtractionAssignment";
|
|
164
|
+
BinaryOperator[BinaryOperator["MultiplicationAssignment"] = 24] = "MultiplicationAssignment";
|
|
165
|
+
BinaryOperator[BinaryOperator["DivisionAssignment"] = 25] = "DivisionAssignment";
|
|
166
|
+
BinaryOperator[BinaryOperator["RemainderAssignment"] = 26] = "RemainderAssignment";
|
|
167
|
+
BinaryOperator[BinaryOperator["ExponentiationAssignment"] = 27] = "ExponentiationAssignment";
|
|
168
|
+
BinaryOperator[BinaryOperator["AndAssignment"] = 28] = "AndAssignment";
|
|
169
|
+
BinaryOperator[BinaryOperator["OrAssignment"] = 29] = "OrAssignment";
|
|
170
|
+
BinaryOperator[BinaryOperator["NullishCoalesceAssignment"] = 30] = "NullishCoalesceAssignment";
|
|
170
171
|
})(BinaryOperator || (BinaryOperator = {}));
|
|
171
172
|
function nullSafeIsEquivalent(base, other) {
|
|
172
173
|
if (base == null || other == null) {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
/**
|
|
3
|
-
* @license Angular v21.1
|
|
3
|
+
* @license Angular v21.2.0-next.1
|
|
4
4
|
* (c) 2010-2026 Google LLC. https://angular.dev/
|
|
5
5
|
* License: MIT
|
|
6
6
|
*/
|
|
7
7
|
'use strict';
|
|
8
8
|
|
|
9
|
-
var migrate_ts_type_references = require('./migrate_ts_type_references-
|
|
9
|
+
var migrate_ts_type_references = require('./migrate_ts_type_references-MWoZx-Cb.cjs');
|
|
10
10
|
var ts = require('typescript');
|
|
11
11
|
require('@angular/compiler-cli');
|
|
12
12
|
var migrations = require('@angular/compiler-cli/private/migrations');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
/**
|
|
3
|
-
* @license Angular v21.1
|
|
3
|
+
* @license Angular v21.2.0-next.1
|
|
4
4
|
* (c) 2010-2026 Google LLC. https://angular.dev/
|
|
5
5
|
* License: MIT
|
|
6
6
|
*/
|
|
@@ -12,7 +12,7 @@ require('@angular/compiler-cli');
|
|
|
12
12
|
require('node:path');
|
|
13
13
|
var project_paths = require('./project_paths-D2V-Uh2L.cjs');
|
|
14
14
|
var apply_import_manager = require('./apply_import_manager-CxA_YYgB.cjs');
|
|
15
|
-
var migrate_ts_type_references = require('./migrate_ts_type_references-
|
|
15
|
+
var migrate_ts_type_references = require('./migrate_ts_type_references-MWoZx-Cb.cjs');
|
|
16
16
|
var assert = require('assert');
|
|
17
17
|
var index = require('./index-BtLcQH8g.cjs');
|
|
18
18
|
var compiler = require('@angular/compiler');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
/**
|
|
3
|
-
* @license Angular v21.1
|
|
3
|
+
* @license Angular v21.2.0-next.1
|
|
4
4
|
* (c) 2010-2026 Google LLC. https://angular.dev/
|
|
5
5
|
* License: MIT
|
|
6
6
|
*/
|
|
@@ -19,7 +19,7 @@ require('@angular-devkit/core');
|
|
|
19
19
|
require('node:path/posix');
|
|
20
20
|
require('./project_tsconfig_paths-DkkMibv-.cjs');
|
|
21
21
|
require('./apply_import_manager-CxA_YYgB.cjs');
|
|
22
|
-
require('./migrate_ts_type_references-
|
|
22
|
+
require('./migrate_ts_type_references-MWoZx-Cb.cjs');
|
|
23
23
|
require('assert');
|
|
24
24
|
require('./index-BtLcQH8g.cjs');
|
|
25
25
|
require('@angular/compiler');
|
package/types/_api-chunk.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v21.1
|
|
2
|
+
* @license Angular v21.2.0-next.1
|
|
3
3
|
* (c) 2010-2026 Google LLC. https://angular.dev/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -141,6 +141,10 @@ interface Resource<T> {
|
|
|
141
141
|
* Whether this resource is loading a new value (or reloading the existing one).
|
|
142
142
|
*/
|
|
143
143
|
readonly isLoading: Signal<boolean>;
|
|
144
|
+
/**
|
|
145
|
+
* The current state of this resource, represented as a `ResourceSnapshot`.
|
|
146
|
+
*/
|
|
147
|
+
readonly snapshot: Signal<ResourceSnapshot<T>>;
|
|
144
148
|
/**
|
|
145
149
|
* Whether this resource has a valid current value.
|
|
146
150
|
*
|
|
@@ -292,6 +296,25 @@ type ResourceStreamItem<T> = {
|
|
|
292
296
|
} | {
|
|
293
297
|
error: Error;
|
|
294
298
|
};
|
|
299
|
+
/**
|
|
300
|
+
* An explicit representation of a resource's state.
|
|
301
|
+
*
|
|
302
|
+
* @experimental
|
|
303
|
+
* @see [Resource composition with snapshots](guide/signals/resource#resource-composition-with-snapshots)
|
|
304
|
+
*/
|
|
305
|
+
type ResourceSnapshot<T> = {
|
|
306
|
+
readonly status: 'idle';
|
|
307
|
+
readonly value: T;
|
|
308
|
+
} | {
|
|
309
|
+
readonly status: 'loading' | 'reloading';
|
|
310
|
+
readonly value: T;
|
|
311
|
+
} | {
|
|
312
|
+
readonly status: 'resolved' | 'local';
|
|
313
|
+
readonly value: T;
|
|
314
|
+
} | {
|
|
315
|
+
readonly status: 'error';
|
|
316
|
+
readonly error: Error;
|
|
317
|
+
};
|
|
295
318
|
|
|
296
319
|
export { OutputEmitterRef, getOutputDestroyRef, output };
|
|
297
|
-
export type { BaseResourceOptions, OutputOptions, PromiseResourceOptions, Resource, ResourceLoader, ResourceLoaderParams, ResourceOptions, ResourceRef, ResourceStatus, ResourceStreamItem, ResourceStreamingLoader, StreamingResourceOptions, WritableResource };
|
|
320
|
+
export type { BaseResourceOptions, OutputOptions, PromiseResourceOptions, Resource, ResourceLoader, ResourceLoaderParams, ResourceOptions, ResourceRef, ResourceSnapshot, ResourceStatus, ResourceStreamItem, ResourceStreamingLoader, StreamingResourceOptions, WritableResource };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v21.1
|
|
2
|
+
* @license Angular v21.2.0-next.1
|
|
3
3
|
* (c) 2010-2026 Google LLC. https://angular.dev/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -5595,7 +5595,7 @@ interface HostListenerDecorator {
|
|
|
5595
5595
|
*
|
|
5596
5596
|
* @usageNotes
|
|
5597
5597
|
*
|
|
5598
|
-
* NOTE: **Always** prefer using the
|
|
5598
|
+
* NOTE: **Always** prefer using the `host` property over `@HostListener`.
|
|
5599
5599
|
* This decorator exist exclusively for backwards compatibility.
|
|
5600
5600
|
*
|
|
5601
5601
|
* The following example declares a directive
|
package/types/_effect-chunk.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v21.1
|
|
2
|
+
* @license Angular v21.2.0-next.1
|
|
3
3
|
* (c) 2010-2026 Google LLC. https://angular.dev/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -368,5 +368,5 @@ declare class EventDispatcher {
|
|
|
368
368
|
*/
|
|
369
369
|
declare function registerDispatcher(eventContract: UnrenamedEventContract, dispatcher: EventDispatcher): void;
|
|
370
370
|
|
|
371
|
-
export { EventContract, EventContractContainer, EventDispatcher, EventInfoWrapper, EventPhase, registerDispatcher };
|
|
371
|
+
export { EventContract, EventContractContainer, EventDispatcher, EventInfoWrapper, EventPhase, Restriction, registerDispatcher };
|
|
372
372
|
export type { EarlyJsactionDataContainer, EventInfo };
|