@angular/core 21.2.2 → 21.2.4
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 +50 -147
- package/fesm2022/_debug_node-chunk.mjs.map +1 -1
- package/fesm2022/_effect-chunk.mjs +3 -5
- package/fesm2022/_effect-chunk.mjs.map +1 -1
- package/fesm2022/_effect-chunk2.mjs +6 -5
- package/fesm2022/_effect-chunk2.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 +7 -7
- package/fesm2022/_resource-chunk.mjs.map +1 -1
- package/fesm2022/_untracked-chunk.mjs +2 -3
- 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 +2 -2
- 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 +1 -1
- 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 +2 -2
- 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/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-MWoZx-Cb.cjs +1 -1
- 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 +1 -1
- package/schematics/bundles/signal-queries-migration.cjs +1 -1
- package/schematics/bundles/signals.cjs +1 -1
- package/schematics/bundles/standalone-migration.cjs +1 -1
- package/schematics/bundles/symbol-DZeHSR-V.cjs +1 -1
- package/types/_api-chunk.d.ts +1 -1
- package/types/_chrome_dev_tools_performance-chunk.d.ts +3 -2
- package/types/_discovery-chunk.d.ts +38 -8
- package/types/_effect-chunk.d.ts +1 -1
- package/types/_event_dispatcher-chunk.d.ts +1 -1
- package/types/_formatter-chunk.d.ts +1 -1
- package/types/_weak_ref-chunk.d.ts +1 -1
- package/types/core.d.ts +26 -23
- package/types/primitives-di.d.ts +1 -1
- package/types/primitives-event-dispatch.d.ts +1 -1
- package/types/primitives-signals.d.ts +1 -1
- package/types/rxjs-interop.d.ts +2 -1
- package/types/testing.d.ts +4 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular/core",
|
|
3
|
-
"version": "21.2.
|
|
3
|
+
"version": "21.2.4",
|
|
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.2.
|
|
49
|
+
"@angular/compiler": "21.2.4",
|
|
50
50
|
"rxjs": "^6.5.3 || ^7.4.0",
|
|
51
51
|
"zone.js": "~0.15.0 || ~0.16.0"
|
|
52
52
|
},
|
package/types/_api-chunk.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v21.2.
|
|
2
|
+
* @license Angular v21.2.4
|
|
3
3
|
* (c) 2010-2026 Google LLC. https://angular.dev/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
import { SIGNAL } from './_formatter-chunk.js';
|
|
8
|
+
import * as _angular_core from '@angular/core';
|
|
8
9
|
import { EventContract } from './_event_dispatcher-chunk.js';
|
|
9
10
|
|
|
10
11
|
/** Symbol used distinguish `WritableSignal` from other non-writable signals and functions. */
|
|
@@ -741,7 +742,7 @@ declare abstract class Injector {
|
|
|
741
742
|
name?: string;
|
|
742
743
|
}): DestroyableInjector;
|
|
743
744
|
/** @nocollapse */
|
|
744
|
-
static ɵprov:
|
|
745
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<Injector>;
|
|
745
746
|
}
|
|
746
747
|
/**
|
|
747
748
|
* An Injector that the owner can destroy and trigger the DestroyRef.destroy hooks.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v21.2.
|
|
2
|
+
* @license Angular v21.2.4
|
|
3
3
|
* (c) 2010-2026 Google LLC. https://angular.dev/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -10,6 +10,7 @@ import './_event_dispatcher-chunk.js';
|
|
|
10
10
|
import { ReactiveNode } from './_formatter-chunk.js';
|
|
11
11
|
import { SignalNode, BaseEffectNode } from './_effect-chunk.js';
|
|
12
12
|
import { Injector as Injector$1, InjectionToken as InjectionToken$1, NotFound } from '@angular/core/primitives/di';
|
|
13
|
+
import * as _angular_core from '@angular/core';
|
|
13
14
|
|
|
14
15
|
/**
|
|
15
16
|
* Reactive node type for an input signal. An input signal extends a signal.
|
|
@@ -68,6 +69,8 @@ declare const MAX_ANIMATION_TIMEOUT: InjectionToken<number>;
|
|
|
68
69
|
* function callbacks.
|
|
69
70
|
*
|
|
70
71
|
* @publicApi 20.2
|
|
72
|
+
*
|
|
73
|
+
* @see [Animating your applications with animate.enter and animate.leave](guide/animations)
|
|
71
74
|
*/
|
|
72
75
|
type AnimationFunction = (event: AnimationCallbackEvent) => void;
|
|
73
76
|
type RunEnterAnimationFn = VoidFunction;
|
|
@@ -2113,8 +2116,8 @@ interface InjectorTypeWithProviders<T> {
|
|
|
2113
2116
|
declare function ɵɵdefineInjectable<T>(opts: {
|
|
2114
2117
|
token: unknown;
|
|
2115
2118
|
providedIn?: Type<any> | 'root' | 'platform' | 'any' | 'environment' | null;
|
|
2116
|
-
factory: () => T;
|
|
2117
|
-
}):
|
|
2119
|
+
factory: (parent?: Type<any>) => T;
|
|
2120
|
+
}): ɵɵInjectableDeclaration<T>;
|
|
2118
2121
|
/**
|
|
2119
2122
|
* Construct an `InjectorDef` which configures an injector.
|
|
2120
2123
|
*
|
|
@@ -3111,7 +3114,7 @@ declare enum SecurityContext {
|
|
|
3111
3114
|
declare abstract class Sanitizer {
|
|
3112
3115
|
abstract sanitize(context: SecurityContext, value: {} | string | null): string | null;
|
|
3113
3116
|
/** @nocollapse */
|
|
3114
|
-
static ɵprov:
|
|
3117
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<null>;
|
|
3115
3118
|
}
|
|
3116
3119
|
|
|
3117
3120
|
/**
|
|
@@ -3130,7 +3133,7 @@ declare class AfterRenderManager {
|
|
|
3130
3133
|
impl: AfterRenderImpl | null;
|
|
3131
3134
|
execute(): void;
|
|
3132
3135
|
/** @nocollapse */
|
|
3133
|
-
static ɵprov:
|
|
3136
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<AfterRenderManager>;
|
|
3134
3137
|
}
|
|
3135
3138
|
declare class AfterRenderImpl {
|
|
3136
3139
|
private readonly ngZone;
|
|
@@ -3153,7 +3156,7 @@ declare class AfterRenderImpl {
|
|
|
3153
3156
|
unregister(sequence: AfterRenderSequence): void;
|
|
3154
3157
|
protected maybeTrace<T>(fn: () => T, snapshot: TracingSnapshot | null): T;
|
|
3155
3158
|
/** @nocollapse */
|
|
3156
|
-
static ɵprov:
|
|
3159
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<AfterRenderImpl>;
|
|
3157
3160
|
}
|
|
3158
3161
|
type AfterRenderHook = (value?: unknown) => unknown;
|
|
3159
3162
|
type AfterRenderHooks = [
|
|
@@ -3216,13 +3219,35 @@ declare abstract class EffectScheduler {
|
|
|
3216
3219
|
/** Remove a scheduled effect */
|
|
3217
3220
|
abstract remove(e: SchedulableEffect): void;
|
|
3218
3221
|
/** @nocollapse */
|
|
3219
|
-
static ɵprov:
|
|
3222
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<ZoneAwareEffectScheduler>;
|
|
3223
|
+
}
|
|
3224
|
+
/**
|
|
3225
|
+
* A wrapper around `ZoneAwareQueueingScheduler` that schedules flushing via the microtask queue
|
|
3226
|
+
* when.
|
|
3227
|
+
*/
|
|
3228
|
+
declare class ZoneAwareEffectScheduler implements EffectScheduler {
|
|
3229
|
+
private dirtyEffectCount;
|
|
3230
|
+
private queues;
|
|
3231
|
+
add(handle: SchedulableEffect): void;
|
|
3232
|
+
schedule(handle: SchedulableEffect): void;
|
|
3233
|
+
remove(handle: SchedulableEffect): void;
|
|
3234
|
+
private enqueue;
|
|
3235
|
+
/**
|
|
3236
|
+
* Run all scheduled effects.
|
|
3237
|
+
*
|
|
3238
|
+
* Execution order of effects within the same zone is guaranteed to be FIFO, but there is no
|
|
3239
|
+
* ordering guarantee between effects scheduled in different zones.
|
|
3240
|
+
*/
|
|
3241
|
+
flush(): void;
|
|
3242
|
+
private flushQueue;
|
|
3220
3243
|
}
|
|
3221
3244
|
|
|
3222
3245
|
/**
|
|
3223
3246
|
* A global reactive effect, which can be manually destroyed.
|
|
3224
3247
|
*
|
|
3225
3248
|
* @publicApi 20.0
|
|
3249
|
+
*
|
|
3250
|
+
* @see [Destroying effects](guide/signals/effect#destroying-effects)
|
|
3226
3251
|
*/
|
|
3227
3252
|
interface EffectRef {
|
|
3228
3253
|
/**
|
|
@@ -5853,12 +5878,16 @@ declare const BINDING: unique symbol;
|
|
|
5853
5878
|
/**
|
|
5854
5879
|
* A dynamically-defined binding targeting.
|
|
5855
5880
|
* For example, `inputBinding('value', () => 123)` creates an input binding.
|
|
5881
|
+
*
|
|
5882
|
+
* @see [Binding inputs, outputs and setting host directives at creation](guide/components/programmatic-rendering#binding-inputs-outputs-and-setting-host-directives-at-creation)
|
|
5856
5883
|
*/
|
|
5857
5884
|
interface Binding {
|
|
5858
5885
|
readonly [BINDING]: unknown;
|
|
5859
5886
|
}
|
|
5860
5887
|
/**
|
|
5861
5888
|
* Represents a dynamically-created directive with bindings targeting it specifically.
|
|
5889
|
+
*
|
|
5890
|
+
* @see [Binding inputs, outputs and setting host directives at creation](guide/components/programmatic-rendering#binding-inputs-outputs-and-setting-host-directives-at-creation)
|
|
5862
5891
|
*/
|
|
5863
5892
|
interface DirectiveWithBindings<T> {
|
|
5864
5893
|
/** Directive type that should be created. */
|
|
@@ -6527,6 +6556,7 @@ type ɵɵComponentDeclaration<T, Selector extends String, ExportAs extends strin
|
|
|
6527
6556
|
[key: string]: string | {
|
|
6528
6557
|
alias: string | null;
|
|
6529
6558
|
required: boolean;
|
|
6559
|
+
isSignal?: boolean;
|
|
6530
6560
|
};
|
|
6531
6561
|
}, OutputMap extends {
|
|
6532
6562
|
[key: string]: string;
|
|
@@ -6546,7 +6576,7 @@ type ɵɵInjectorDeclaration<T> = unknown;
|
|
|
6546
6576
|
/**
|
|
6547
6577
|
* @publicApi
|
|
6548
6578
|
*/
|
|
6549
|
-
type ɵɵFactoryDeclaration<T, CtorDependencies extends CtorDependency[]> =
|
|
6579
|
+
type ɵɵFactoryDeclaration<T, CtorDependencies extends CtorDependency[]> = (parent?: Type<any>) => T;
|
|
6550
6580
|
/**
|
|
6551
6581
|
* An object literal of this type is used to represent the metadata of a constructor dependency.
|
|
6552
6582
|
* The type itself is never referred to from generated code.
|
package/types/_effect-chunk.d.ts
CHANGED