@angular/core 20.3.1 → 20.3.3
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/api.d.d.ts +7 -4
- package/chrome_dev_tools_performance.d.d.ts +2 -2
- package/discovery.d.d.ts +7 -6
- package/effect.d.d.ts +2 -3
- package/event_dispatcher.d.d.ts +1 -1
- package/fesm2022/attribute.mjs +1 -1
- package/fesm2022/attribute.mjs.map +1 -1
- package/fesm2022/core.mjs +4 -4
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/debug_node.mjs +31 -42
- package/fesm2022/debug_node.mjs.map +1 -1
- package/fesm2022/effect.mjs +3 -4
- package/fesm2022/effect.mjs.map +1 -1
- package/fesm2022/not_found.mjs +1 -1
- package/fesm2022/not_found.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 +1 -1
- package/fesm2022/primitives/event-dispatch.mjs.map +1 -1
- package/fesm2022/primitives/signals.mjs +138 -6
- package/fesm2022/primitives/signals.mjs.map +1 -1
- package/fesm2022/resource.mjs +5 -4
- package/fesm2022/resource.mjs.map +1 -1
- package/fesm2022/root_effect_scheduler.mjs +2 -2
- package/fesm2022/root_effect_scheduler.mjs.map +1 -1
- package/fesm2022/rxjs-interop.mjs +1 -1
- package/fesm2022/rxjs-interop.mjs.map +1 -1
- package/fesm2022/signal.mjs +8 -8
- package/fesm2022/signal.mjs.map +1 -1
- package/fesm2022/testing.mjs +1 -1
- package/fesm2022/testing.mjs.map +1 -1
- package/fesm2022/weak_ref.mjs +1 -1
- package/fesm2022/weak_ref.mjs.map +1 -1
- package/{graph.d.d.ts → formatter.d.d.ts} +14 -2
- package/index.d.ts +10 -8
- package/package.json +2 -2
- package/primitives/di/index.d.ts +1 -1
- package/primitives/event-dispatch/index.d.ts +1 -1
- package/primitives/signals/index.d.ts +3 -4
- package/rxjs-interop/index.d.ts +2 -2
- package/schematics/bundles/add-bootstrap-context-to-server-main.cjs +5 -5
- package/schematics/bundles/{apply_import_manager-C8vgfoJx.cjs → apply_import_manager-CUBvPp_2.cjs} +3 -3
- package/schematics/bundles/cleanup-unused-imports.cjs +5 -5
- package/schematics/bundles/{compiler_host-DC7Yquzy.cjs → compiler_host-DJHZ7M9N.cjs} +2 -2
- package/schematics/bundles/control-flow-migration.cjs +70 -38
- package/schematics/bundles/document-core.cjs +5 -5
- package/schematics/bundles/imports-CIX-JgAN.cjs +1 -1
- package/schematics/bundles/{index-B5lv9x1v.cjs → index-BZJ8bv9v.cjs} +50 -26
- package/schematics/bundles/{index-Bufm9_1r.cjs → index-DU_evmAi.cjs} +4 -4
- package/schematics/bundles/inject-flags.cjs +5 -5
- package/schematics/bundles/inject-migration.cjs +3 -3
- package/schematics/bundles/leading_space-D9nQ8UQC.cjs +1 -1
- package/schematics/bundles/{migrate_ts_type_references-Ctl6-8qO.cjs → migrate_ts_type_references-58gA72Ti.cjs} +5 -5
- package/schematics/bundles/ng_decorators-B5HCqr20.cjs +1 -1
- package/schematics/bundles/nodes-B16H9JUd.cjs +1 -1
- package/schematics/bundles/output-migration.cjs +6 -6
- package/schematics/bundles/{project_paths-CIUSEdn4.cjs → project_paths-DcM18127.cjs} +3 -3
- package/schematics/bundles/{project_tsconfig_paths-crm5NKE7.cjs → project_tsconfig_paths-Dqd0J7st.cjs} +50 -42
- package/schematics/bundles/property_name-BBwFuqMe.cjs +1 -1
- package/schematics/bundles/route-lazy-loading.cjs +3 -3
- package/schematics/bundles/router-current-navigation.cjs +4 -4
- package/schematics/bundles/self-closing-tags-migration.cjs +4 -4
- package/schematics/bundles/signal-input-migration.cjs +67 -8
- package/schematics/bundles/signal-queries-migration.cjs +7 -7
- package/schematics/bundles/signals.cjs +7 -7
- package/schematics/bundles/standalone-migration.cjs +70 -43
- package/schematics/bundles/symbol-VPWguRxr.cjs +1 -1
- package/schematics/bundles/test-bed-get.cjs +4 -4
- package/testing/index.d.ts +2 -2
- package/weak_ref.d.d.ts +1 -1
package/api.d.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v20.3.
|
|
2
|
+
* @license Angular v20.3.3
|
|
3
3
|
* (c) 2010-2025 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -139,7 +139,8 @@ interface Resource<T> {
|
|
|
139
139
|
*
|
|
140
140
|
* This function is reactive.
|
|
141
141
|
*/
|
|
142
|
-
hasValue(): this is Resource<Exclude<T, undefined>>;
|
|
142
|
+
hasValue(this: T extends undefined ? this : never): this is Resource<Exclude<T, undefined>>;
|
|
143
|
+
hasValue(): boolean;
|
|
143
144
|
}
|
|
144
145
|
/**
|
|
145
146
|
* A `Resource` with a mutable value.
|
|
@@ -150,7 +151,8 @@ interface Resource<T> {
|
|
|
150
151
|
*/
|
|
151
152
|
interface WritableResource<T> extends Resource<T> {
|
|
152
153
|
readonly value: WritableSignal<T>;
|
|
153
|
-
hasValue(): this is WritableResource<Exclude<T, undefined>>;
|
|
154
|
+
hasValue(this: T extends undefined ? this : never): this is WritableResource<Exclude<T, undefined>>;
|
|
155
|
+
hasValue(): boolean;
|
|
154
156
|
/**
|
|
155
157
|
* Convenience wrapper for `value.set`.
|
|
156
158
|
*/
|
|
@@ -176,7 +178,8 @@ interface WritableResource<T> extends Resource<T> {
|
|
|
176
178
|
* @experimental
|
|
177
179
|
*/
|
|
178
180
|
interface ResourceRef<T> extends WritableResource<T> {
|
|
179
|
-
hasValue(): this is ResourceRef<Exclude<T, undefined>>;
|
|
181
|
+
hasValue(this: T extends undefined ? this : never): this is ResourceRef<Exclude<T, undefined>>;
|
|
182
|
+
hasValue(): boolean;
|
|
180
183
|
/**
|
|
181
184
|
* Manually destroy the resource, which cancels pending requests and returns it to `idle` state.
|
|
182
185
|
*/
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v20.3.
|
|
2
|
+
* @license Angular v20.3.3
|
|
3
3
|
* (c) 2010-2025 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import { SIGNAL } from './
|
|
7
|
+
import { SIGNAL } from './formatter.d.js';
|
|
8
8
|
import { EventContract } from './event_dispatcher.d.js';
|
|
9
9
|
|
|
10
10
|
/**
|
package/discovery.d.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v20.3.
|
|
2
|
+
* @license Angular v20.3.3
|
|
3
3
|
* (c) 2010-2025 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -7,9 +7,9 @@
|
|
|
7
7
|
import { InjectionToken, Type, ValueProvider, ExistingProvider, FactoryProvider, ConstructorProvider, StaticClassProvider, ClassProvider, EnvironmentProviders, Injector, ProviderToken, InjectOptions, Provider, ProcessProvidersFunction, ModuleWithProviders, DestroyRef, InternalInjectFlags, WritableSignal, OutputRef, StaticProvider } from './chrome_dev_tools_performance.d.js';
|
|
8
8
|
import { Observable, Subject, Subscription } from 'rxjs';
|
|
9
9
|
import './event_dispatcher.d.js';
|
|
10
|
+
import { ReactiveNode } from './formatter.d.js';
|
|
10
11
|
import { SignalNode, BaseEffectNode } from './effect.d.js';
|
|
11
12
|
import { Injector as Injector$1, InjectionToken as InjectionToken$1, NotFound } from '@angular/core/primitives/di';
|
|
12
|
-
import { ReactiveNode } from './graph.d.js';
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
15
|
* Reactive node type for an input signal. An input signal extends a signal.
|
|
@@ -70,7 +70,7 @@ type AnimationFunction = (event: AnimationCallbackEvent) => void;
|
|
|
70
70
|
interface AnimationLViewData {
|
|
71
71
|
enter?: Function[];
|
|
72
72
|
leave?: (() => Promise<void>)[];
|
|
73
|
-
running?: Promise<
|
|
73
|
+
running?: Promise<unknown>;
|
|
74
74
|
skipLeaveAnimations?: boolean;
|
|
75
75
|
}
|
|
76
76
|
|
|
@@ -3638,9 +3638,10 @@ declare abstract class Renderer2 {
|
|
|
3638
3638
|
* @param parent The parent node.
|
|
3639
3639
|
* @param oldChild The child node to remove.
|
|
3640
3640
|
* @param isHostElement Optionally signal to the renderer whether this element is a host element
|
|
3641
|
-
*
|
|
3641
|
+
* @param requireSynchronousElementRemoval Optionally signal to the renderer whether this element
|
|
3642
|
+
* needs synchronous removal
|
|
3642
3643
|
*/
|
|
3643
|
-
abstract removeChild(parent: any, oldChild: any, isHostElement?: boolean): void;
|
|
3644
|
+
abstract removeChild(parent: any, oldChild: any, isHostElement?: boolean, requireSynchronousElementRemoval?: boolean): void;
|
|
3644
3645
|
/**
|
|
3645
3646
|
* Implement this callback to prepare an element to be bootstrapped
|
|
3646
3647
|
* as a root element, and return the element instance.
|
|
@@ -3785,7 +3786,7 @@ interface Renderer {
|
|
|
3785
3786
|
destroyNode?: ((node: RNode) => void) | null;
|
|
3786
3787
|
appendChild(parent: RElement, newChild: RNode): void;
|
|
3787
3788
|
insertBefore(parent: RNode, newChild: RNode, refChild: RNode | null, isMove?: boolean): void;
|
|
3788
|
-
removeChild(parent: RElement | null, oldChild: RNode, isHostElement?: boolean): void;
|
|
3789
|
+
removeChild(parent: RElement | null, oldChild: RNode, isHostElement?: boolean, requireSynchronousElementRemoval?: boolean): void;
|
|
3789
3790
|
selectRootElement(selectorOrNode: string | any, preserveContent?: boolean): RElement;
|
|
3790
3791
|
parentNode(node: RNode): RElement | null;
|
|
3791
3792
|
nextSibling(node: RNode): RNode | null;
|
package/effect.d.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v20.3.
|
|
2
|
+
* @license Angular v20.3.3
|
|
3
3
|
* (c) 2010-2025 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import { ReactiveNode, ValueEqualityFn, SIGNAL, ReactiveHookFn } from './
|
|
7
|
+
import { ReactiveNode, ValueEqualityFn, SIGNAL, ReactiveHookFn } from './formatter.d.js';
|
|
8
8
|
|
|
9
9
|
interface SignalNode<T> extends ReactiveNode {
|
|
10
10
|
value: T;
|
|
@@ -30,7 +30,6 @@ declare function runPostSignalSetFn<T>(node: SignalNode<T>): void;
|
|
|
30
30
|
declare const SIGNAL_NODE: SignalNode<unknown>;
|
|
31
31
|
|
|
32
32
|
interface BaseEffectNode extends ReactiveNode {
|
|
33
|
-
hasRun: boolean;
|
|
34
33
|
fn: () => void;
|
|
35
34
|
destroy(): void;
|
|
36
35
|
cleanup(): void;
|
package/event_dispatcher.d.d.ts
CHANGED
package/fesm2022/attribute.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"attribute.mjs","sources":["../../../../../
|
|
1
|
+
{"version":3,"file":"attribute.mjs","sources":["../../../../../darwin_arm64-fastbuild-ST-199a4f3c4e20/bin/packages/core/primitives/event-dispatch/src/attribute.ts"],"sourcesContent":["/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n\nexport const Attribute = {\n /**\n * The jsaction attribute defines a mapping of a DOM event to a\n * generic event (aka jsaction), to which the actual event handlers\n * that implement the behavior of the application are bound. The\n * value is a semicolon separated list of colon separated pairs of\n * an optional DOM event name and a jsaction name. If the optional\n * DOM event name is omitted, 'click' is assumed. The jsaction names\n * are dot separated pairs of a namespace and a simple jsaction\n * name.\n *\n * See grammar in README.md for expected syntax in the attribute value.\n */\n JSACTION: 'jsaction' as const,\n};\n"],"names":[],"mappings":";;;;;;AAQa,MAAA,SAAS,GAAG;AACvB;;;;;;;;;;;AAWG;AACH,IAAA,QAAQ,EAAE,UAAmB;;;;;"}
|
package/fesm2022/core.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v20.3.
|
|
2
|
+
* @license Angular v20.3.3
|
|
3
3
|
* (c) 2010-2025 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -1189,7 +1189,7 @@ function createPlatformInjector(providers = [], name) {
|
|
|
1189
1189
|
function assertPlatform(requiredToken) {
|
|
1190
1190
|
const platform = getPlatform();
|
|
1191
1191
|
if (!platform) {
|
|
1192
|
-
throw new RuntimeError(401 /* RuntimeErrorCode.PLATFORM_NOT_FOUND */, ngDevMode && 'No platform exists!');
|
|
1192
|
+
throw new RuntimeError(-401 /* RuntimeErrorCode.PLATFORM_NOT_FOUND */, ngDevMode && 'No platform exists!');
|
|
1193
1193
|
}
|
|
1194
1194
|
if ((typeof ngDevMode === 'undefined' || ngDevMode) &&
|
|
1195
1195
|
!platform.injector.get(requiredToken, null)) {
|
|
@@ -2615,7 +2615,7 @@ function internalCreateApplication(config) {
|
|
|
2615
2615
|
const { rootComponent, appProviders, platformProviders, platformRef } = config;
|
|
2616
2616
|
profiler(8 /* ProfilerEvent.BootstrapApplicationStart */);
|
|
2617
2617
|
if (typeof ngServerMode !== 'undefined' && ngServerMode && !platformRef) {
|
|
2618
|
-
throw new RuntimeError(401 /* RuntimeErrorCode.PLATFORM_NOT_FOUND */, ngDevMode &&
|
|
2618
|
+
throw new RuntimeError(-401 /* RuntimeErrorCode.PLATFORM_NOT_FOUND */, ngDevMode &&
|
|
2619
2619
|
'Missing Platform: This may be due to using `bootstrapApplication` on the server without passing a `BootstrapContext`. ' +
|
|
2620
2620
|
'Please make sure that `bootstrapApplication` is called with a `context` argument.');
|
|
2621
2621
|
}
|
|
@@ -4367,7 +4367,7 @@ function phaseDebugName(phase) {
|
|
|
4367
4367
|
* `[[element1, element2], [element3]]`: projects `element1` and `element2` into one `<ng-content>`,
|
|
4368
4368
|
* and `element3` into a separate `<ng-content>`.
|
|
4369
4369
|
* * `directives` (optional): Directives that should be applied to the component.
|
|
4370
|
-
* * `
|
|
4370
|
+
* * `bindings` (optional): Bindings to apply to the root component.
|
|
4371
4371
|
* @returns ComponentRef instance that represents a given Component.
|
|
4372
4372
|
*
|
|
4373
4373
|
* @publicApi
|