@angular/core 21.0.0-next.0 → 21.0.0-next.10
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 +12 -0
- package/fesm2022/_attribute-chunk.mjs.map +1 -0
- package/fesm2022/_debug_node-chunk.mjs +18469 -0
- package/fesm2022/_debug_node-chunk.mjs.map +1 -0
- package/fesm2022/_effect-chunk.mjs +423 -0
- package/fesm2022/_effect-chunk.mjs.map +1 -0
- package/fesm2022/_effect-chunk2.mjs +2951 -0
- package/fesm2022/_effect-chunk2.mjs.map +1 -0
- package/fesm2022/_not_found-chunk.mjs +39 -0
- package/fesm2022/_not_found-chunk.mjs.map +1 -0
- package/fesm2022/_resource-chunk.mjs +378 -0
- package/fesm2022/_resource-chunk.mjs.map +1 -0
- package/fesm2022/_untracked-chunk.mjs +96 -0
- package/fesm2022/_untracked-chunk.mjs.map +1 -0
- package/fesm2022/_weak_ref-chunk.mjs +10 -0
- package/fesm2022/_weak_ref-chunk.mjs.map +1 -0
- package/fesm2022/core.mjs +2499 -4185
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/primitives-di.mjs +23 -0
- package/fesm2022/primitives-di.mjs.map +1 -0
- package/fesm2022/primitives-event-dispatch.mjs +788 -0
- package/fesm2022/primitives-event-dispatch.mjs.map +1 -0
- package/fesm2022/primitives-signals.mjs +187 -0
- package/fesm2022/primitives-signals.mjs.map +1 -0
- package/fesm2022/rxjs-interop.mjs +210 -308
- package/fesm2022/rxjs-interop.mjs.map +1 -1
- package/fesm2022/testing.mjs +2309 -3170
- package/fesm2022/testing.mjs.map +1 -1
- package/package.json +18 -12
- package/resources/best-practices.md +56 -0
- package/schematics/bundles/add-bootstrap-context-to-server-main.cjs +117 -0
- package/schematics/bundles/application-config-core.cjs +84 -0
- package/schematics/bundles/{apply_import_manager-DR9xXCle.cjs → apply_import_manager-1Zs_gpB6.cjs} +4 -5
- package/schematics/bundles/bootstrap-options-migration.cjs +598 -0
- package/schematics/bundles/cleanup-unused-imports.cjs +9 -13
- package/schematics/bundles/common-to-standalone-migration.cjs +381 -0
- package/schematics/bundles/{compiler_host-BXBP7CE2.cjs → compiler_host-DBwYMlTo.cjs} +10 -11
- package/schematics/bundles/control-flow-migration.cjs +122 -119
- package/schematics/bundles/{imports-CIX-JgAN.cjs → imports-DP72APSx.cjs} +6 -1
- package/schematics/bundles/{index-CfTQUOiz.cjs → index-B7I9sIUx.cjs} +36 -39
- package/schematics/bundles/inject-migration.cjs +148 -70
- package/schematics/bundles/leading_space-D9nQ8UQC.cjs +1 -1
- package/schematics/bundles/{migrate_ts_type_references-6NtAj-Wk.cjs → migrate_ts_type_references-UGIUl7En.cjs} +500 -24
- package/schematics/bundles/ng_component_template-Dsuq1Lw7.cjs +185 -0
- package/schematics/bundles/{ng_decorators-B5HCqr20.cjs → ng_decorators-DSFlWYQY.cjs} +2 -2
- package/schematics/bundles/ngclass-to-class-migration.cjs +542 -0
- package/schematics/bundles/ngstyle-to-style-migration.cjs +487 -0
- package/schematics/bundles/nodes-B16H9JUd.cjs +1 -1
- package/schematics/bundles/output-migration.cjs +16 -19
- package/schematics/bundles/parse_html-8VLCL37B.cjs +132 -0
- package/schematics/bundles/{project_paths-DcaODbky.cjs → project_paths-DvD50ouC.cjs} +14 -247
- package/schematics/bundles/project_tsconfig_paths-CDVxT6Ov.cjs +90 -0
- package/schematics/bundles/property_name-BBwFuqMe.cjs +1 -1
- package/schematics/bundles/route-lazy-loading.cjs +54 -26
- package/schematics/bundles/router-current-navigation.cjs +7 -18
- package/schematics/bundles/router-last-successful-navigation.cjs +7 -18
- package/schematics/bundles/router-testing-module-migration.cjs +502 -0
- package/schematics/bundles/self-closing-tags-migration.cjs +17 -216
- package/schematics/bundles/signal-input-migration.cjs +93 -29
- package/schematics/bundles/signal-queries-migration.cjs +22 -25
- package/schematics/bundles/signals.cjs +10 -13
- package/schematics/bundles/standalone-migration.cjs +135 -102
- package/schematics/bundles/{symbol-VPWguRxr.cjs → symbol-BObKoqes.cjs} +3 -2
- package/schematics/collection.json +23 -0
- package/schematics/migrations/common-to-standalone-migration/schema.json +14 -0
- package/schematics/migrations/ngclass-to-class-migration/schema.json +20 -0
- package/schematics/migrations/ngstyle-to-style-migration/schema.json +20 -0
- package/schematics/migrations/router-testing-module-migration/schema.json +14 -0
- package/schematics/migrations.json +16 -2
- package/{api.d.d.ts → types/_api-chunk.d.ts} +9 -6
- package/{chrome_dev_tools_performance.d.d.ts → types/_chrome_dev_tools_performance-chunk.d.ts} +26 -31
- package/{discovery.d.d.ts → types/_discovery-chunk.d.ts} +135 -98
- package/{signal.d.d.ts → types/_effect-chunk.d.ts} +14 -5
- package/{event_dispatcher.d.d.ts → types/_event_dispatcher-chunk.d.ts} +2 -2
- package/{graph.d.d.ts → types/_formatter-chunk.d.ts} +40 -7
- package/{weak_ref.d.d.ts → types/_weak_ref-chunk.d.ts} +2 -2
- package/{index.d.ts → types/core.d.ts} +233 -305
- package/{primitives/di/index.d.ts → types/primitives-di.d.ts} +2 -2
- package/{primitives/event-dispatch/index.d.ts → types/primitives-event-dispatch.d.ts} +4 -4
- package/{primitives/signals/index.d.ts → types/primitives-signals.d.ts} +7 -8
- package/{rxjs-interop/index.d.ts → types/rxjs-interop.d.ts} +8 -6
- package/{testing/index.d.ts → types/testing.d.ts} +7 -7
- package/fesm2022/attribute.mjs +0 -24
- package/fesm2022/attribute.mjs.map +0 -1
- package/fesm2022/debug_node.mjs +0 -31833
- package/fesm2022/debug_node.mjs.map +0 -1
- package/fesm2022/not_found.mjs +0 -56
- package/fesm2022/not_found.mjs.map +0 -1
- package/fesm2022/primitives/di.mjs +0 -23
- package/fesm2022/primitives/di.mjs.map +0 -1
- package/fesm2022/primitives/event-dispatch.mjs +0 -1622
- package/fesm2022/primitives/event-dispatch.mjs.map +0 -1
- package/fesm2022/primitives/signals.mjs +0 -89
- package/fesm2022/primitives/signals.mjs.map +0 -1
- package/fesm2022/resource.mjs +0 -633
- package/fesm2022/resource.mjs.map +0 -1
- package/fesm2022/root_effect_scheduler.mjs +0 -4007
- package/fesm2022/root_effect_scheduler.mjs.map +0 -1
- package/fesm2022/signal.mjs +0 -560
- package/fesm2022/signal.mjs.map +0 -1
- package/fesm2022/untracked.mjs +0 -117
- package/fesm2022/untracked.mjs.map +0 -1
- package/fesm2022/weak_ref.mjs +0 -12
- package/fesm2022/weak_ref.mjs.map +0 -1
- package/schematics/bundles/index-esqfDjNB.cjs +0 -22074
- package/schematics/bundles/project_tsconfig_paths-CS-eSeHC.cjs +0 -51062
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v21.0.0-next.
|
|
3
|
-
* (c) 2010-2025 Google LLC. https://angular.
|
|
2
|
+
* @license Angular v21.0.0-next.10
|
|
3
|
+
* (c) 2010-2025 Google LLC. https://angular.dev/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import { ReactiveNode, ValueEqualityFn, SIGNAL, ReactiveHookFn } from './
|
|
7
|
+
import { ReactiveNode, ValueEqualityFn, SIGNAL, ReactiveHookFn } from './_formatter-chunk.js';
|
|
8
8
|
|
|
9
9
|
interface SignalNode<T> extends ReactiveNode {
|
|
10
10
|
value: T;
|
|
@@ -29,5 +29,14 @@ declare function signalUpdateFn<T>(node: SignalNode<T>, updater: (value: T) => T
|
|
|
29
29
|
declare function runPostSignalSetFn<T>(node: SignalNode<T>): void;
|
|
30
30
|
declare const SIGNAL_NODE: SignalNode<unknown>;
|
|
31
31
|
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
interface BaseEffectNode extends ReactiveNode {
|
|
33
|
+
fn: () => void;
|
|
34
|
+
destroy(): void;
|
|
35
|
+
cleanup(): void;
|
|
36
|
+
run(): void;
|
|
37
|
+
}
|
|
38
|
+
declare const BASE_EFFECT_NODE: Omit<BaseEffectNode, 'fn' | 'destroy' | 'cleanup' | 'run'>;
|
|
39
|
+
declare function runEffect(node: BaseEffectNode): void;
|
|
40
|
+
|
|
41
|
+
export { BASE_EFFECT_NODE, SIGNAL_NODE, createSignal, runEffect, runPostSignalSetFn, setPostSignalSetFn, signalGetFn, signalSetFn, signalUpdateFn };
|
|
42
|
+
export type { BaseEffectNode, SignalGetter, SignalNode };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v21.0.0-next.
|
|
3
|
-
* (c) 2010-2025 Google LLC. https://angular.
|
|
2
|
+
* @license Angular v21.0.0-next.10
|
|
3
|
+
* (c) 2010-2025 Google LLC. https://angular.dev/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -39,6 +39,7 @@ interface ReactiveLink {
|
|
|
39
39
|
nextConsumer: ReactiveLink | undefined;
|
|
40
40
|
nextProducer: ReactiveLink | undefined;
|
|
41
41
|
}
|
|
42
|
+
type ReactiveNodeKind = 'signal' | 'computed' | 'effect' | 'template' | 'linkedSignal' | 'afterRenderEffectPhase' | 'unknown';
|
|
42
43
|
/**
|
|
43
44
|
* A producer and/or consumer which participates in the reactive graph.
|
|
44
45
|
*
|
|
@@ -125,7 +126,7 @@ interface ReactiveNode {
|
|
|
125
126
|
*
|
|
126
127
|
* Used in Angular DevTools to identify the kind of signal.
|
|
127
128
|
*/
|
|
128
|
-
kind:
|
|
129
|
+
kind: ReactiveNodeKind;
|
|
129
130
|
}
|
|
130
131
|
/**
|
|
131
132
|
* Called by implementations when a producer's signal is read.
|
|
@@ -153,19 +154,39 @@ declare function producerUpdatesAllowed(): boolean;
|
|
|
153
154
|
declare function consumerMarkDirty(node: ReactiveNode): void;
|
|
154
155
|
declare function producerMarkClean(node: ReactiveNode): void;
|
|
155
156
|
/**
|
|
156
|
-
* Prepare this consumer to run a computation in its reactive context
|
|
157
|
+
* Prepare this consumer to run a computation in its reactive context and set
|
|
158
|
+
* it as the active consumer.
|
|
157
159
|
*
|
|
158
160
|
* Must be called by subclasses which represent reactive computations, before those computations
|
|
159
161
|
* begin.
|
|
160
162
|
*/
|
|
161
163
|
declare function consumerBeforeComputation(node: ReactiveNode | null): ReactiveNode | null;
|
|
162
164
|
/**
|
|
163
|
-
*
|
|
165
|
+
* Prepare this consumer to run a computation in its reactive context.
|
|
166
|
+
*
|
|
167
|
+
* We expose this mainly for code where we manually batch effects into a single
|
|
168
|
+
* consumer. In those cases we may wish to "reopen" a consumer multiple times
|
|
169
|
+
* in initial render before finalizing it. Most code should just call
|
|
170
|
+
* `consumerBeforeComputation` instead of calling this directly.
|
|
171
|
+
*/
|
|
172
|
+
declare function resetConsumerBeforeComputation(node: ReactiveNode): void;
|
|
173
|
+
/**
|
|
174
|
+
* Finalize this consumer's state and set previous consumer as the active consumer after a
|
|
175
|
+
* reactive computation has run.
|
|
164
176
|
*
|
|
165
177
|
* Must be called by subclasses which represent reactive computations, after those computations
|
|
166
178
|
* have finished.
|
|
167
179
|
*/
|
|
168
180
|
declare function consumerAfterComputation(node: ReactiveNode | null, prevConsumer: ReactiveNode | null): void;
|
|
181
|
+
/**
|
|
182
|
+
* Finalize this consumer's state after a reactive computation has run.
|
|
183
|
+
*
|
|
184
|
+
* We expose this mainly for code where we manually batch effects into a single
|
|
185
|
+
* consumer. In those cases we may wish to "reopen" a consumer multiple times
|
|
186
|
+
* in initial render before finalizing it. Most code should just call
|
|
187
|
+
* `consumerAfterComputation` instead of calling this directly.
|
|
188
|
+
*/
|
|
189
|
+
declare function finalizeConsumerAfterComputation(node: ReactiveNode): void;
|
|
169
190
|
/**
|
|
170
191
|
* Determine whether this consumer has any dependencies which have changed since the last time
|
|
171
192
|
* they were read.
|
|
@@ -178,5 +199,17 @@ declare function consumerDestroy(node: ReactiveNode): void;
|
|
|
178
199
|
declare function runPostProducerCreatedFn(node: ReactiveNode): void;
|
|
179
200
|
declare function setPostProducerCreatedFn(fn: ReactiveHookFn | null): ReactiveHookFn | null;
|
|
180
201
|
|
|
181
|
-
|
|
182
|
-
|
|
202
|
+
declare global {
|
|
203
|
+
var devtoolsFormatters: any[];
|
|
204
|
+
}
|
|
205
|
+
/**
|
|
206
|
+
* Installs the custom formatter into custom formatting on Signals in the devtools.
|
|
207
|
+
*
|
|
208
|
+
* Supported by both Chrome and Firefox.
|
|
209
|
+
*
|
|
210
|
+
* @see https://firefox-source-docs.mozilla.org/devtools-user/custom_formatters/index.html
|
|
211
|
+
*/
|
|
212
|
+
declare function installDevToolsSignalFormatter(): void;
|
|
213
|
+
|
|
214
|
+
export { REACTIVE_NODE, SIGNAL, consumerAfterComputation, consumerBeforeComputation, consumerDestroy, consumerMarkDirty, consumerPollProducersForChange, defaultEquals, finalizeConsumerAfterComputation, getActiveConsumer, installDevToolsSignalFormatter, isInNotificationPhase, isReactive, producerAccessed, producerIncrementEpoch, producerMarkClean, producerNotifyConsumers, producerUpdateValueVersion, producerUpdatesAllowed, resetConsumerBeforeComputation, runPostProducerCreatedFn, setActiveConsumer, setPostProducerCreatedFn };
|
|
215
|
+
export type { Reactive, ReactiveHookFn, ReactiveNode, ReactiveNodeKind, ValueEqualityFn };
|