@angular/core 19.2.3 → 19.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/event_dispatcher.d-pVP0-wST.d.ts +345 -0
- package/fesm2022/core.mjs +130 -121
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/primitives/di.mjs +1 -1
- package/fesm2022/primitives/event-dispatch.mjs +1 -1
- package/fesm2022/primitives/signals.mjs +4 -595
- package/fesm2022/primitives/signals.mjs.map +1 -1
- package/fesm2022/rxjs-interop.mjs +1 -1
- package/fesm2022/testing.mjs +1 -1
- package/fesm2022/untracked-CS7WUAzb.mjs +605 -0
- package/fesm2022/untracked-CS7WUAzb.mjs.map +1 -0
- package/index.d.ts +7 -8
- package/{navigation_types.d-u4EOrrdZ.d.ts → navigation_types.d-DgDrF5rp.d.ts} +2 -2
- package/package.json +1 -1
- package/primitives/di/index.d.ts +1 -1
- package/primitives/event-dispatch/index.d.ts +5 -340
- package/primitives/signals/index.d.ts +4 -207
- package/rxjs-interop/index.d.ts +1 -1
- package/schematics/bundles/apply_import_manager-BynuozbO.js +1 -1
- package/schematics/bundles/checker-DP-zos5Q.js +2 -2
- package/schematics/bundles/cleanup-unused-imports.js +1 -1
- package/schematics/bundles/compiler_host-DzM2hemp.js +1 -1
- package/schematics/bundles/control-flow-migration.js +32 -11
- package/schematics/bundles/explicit-standalone-flag.js +1 -1
- package/schematics/bundles/imports-CIX-JgAN.js +1 -1
- package/schematics/bundles/index-BPqwMr5d.js +2 -2
- package/schematics/bundles/index-CPpyW--c.js +1 -1
- package/schematics/bundles/inject-migration.js +1 -1
- package/schematics/bundles/leading_space-D9nQ8UQC.js +1 -1
- package/schematics/bundles/migrate_ts_type_references-Ri-K4P_1.js +1 -1
- package/schematics/bundles/ng_decorators-DznZ5jMl.js +1 -1
- package/schematics/bundles/nodes-B16H9JUd.js +1 -1
- package/schematics/bundles/output-migration.js +1 -1
- package/schematics/bundles/pending-tasks.js +1 -1
- package/schematics/bundles/program-BmLi-Vxz.js +10 -10
- package/schematics/bundles/project_paths-CXXqWSoY.js +1 -1
- package/schematics/bundles/project_tsconfig_paths-CDVxT6Ov.js +1 -1
- package/schematics/bundles/property_name-BBwFuqMe.js +1 -1
- package/schematics/bundles/provide-initializer.js +1 -1
- package/schematics/bundles/route-lazy-loading.js +1 -1
- package/schematics/bundles/self-closing-tags-migration.js +1 -1
- package/schematics/bundles/signal-input-migration.js +1 -1
- package/schematics/bundles/signal-queries-migration.js +1 -1
- package/schematics/bundles/signals.js +1 -1
- package/schematics/bundles/standalone-migration.js +1 -1
- package/testing/index.d.ts +2 -2
- package/weak_ref.d-Bp6cSy-X.d.ts +213 -0
- package/fesm2022/weak_ref-DrMdAIDh.mjs +0 -12
- package/fesm2022/weak_ref-DrMdAIDh.mjs.map +0 -1
- package/weak_ref.d-ttyj86RV.d.ts +0 -9
|
@@ -1,194 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v19.2.
|
|
2
|
+
* @license Angular v19.2.4
|
|
3
3
|
* (c) 2010-2025 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* A comparison function which can determine if two values are equal.
|
|
11
|
-
*/
|
|
12
|
-
type ValueEqualityFn<T> = (a: T, b: T) => boolean;
|
|
13
|
-
/**
|
|
14
|
-
* The default equality function used for `signal` and `computed`, which uses referential equality.
|
|
15
|
-
*/
|
|
16
|
-
declare function defaultEquals<T>(a: T, b: T): boolean;
|
|
17
|
-
|
|
18
|
-
type Version = number & {
|
|
19
|
-
__brand: 'Version';
|
|
20
|
-
};
|
|
21
|
-
/**
|
|
22
|
-
* Symbol used to tell `Signal`s apart from other functions.
|
|
23
|
-
*
|
|
24
|
-
* This can be used to auto-unwrap signals in various cases, or to auto-wrap non-signal values.
|
|
25
|
-
*/
|
|
26
|
-
declare const SIGNAL: unique symbol;
|
|
27
|
-
declare function setActiveConsumer(consumer: ReactiveNode | null): ReactiveNode | null;
|
|
28
|
-
declare function getActiveConsumer(): ReactiveNode | null;
|
|
29
|
-
declare function isInNotificationPhase(): boolean;
|
|
30
|
-
interface Reactive {
|
|
31
|
-
[SIGNAL]: ReactiveNode;
|
|
32
|
-
}
|
|
33
|
-
declare function isReactive(value: unknown): value is Reactive;
|
|
34
|
-
declare const REACTIVE_NODE: ReactiveNode;
|
|
35
|
-
/**
|
|
36
|
-
* A producer and/or consumer which participates in the reactive graph.
|
|
37
|
-
*
|
|
38
|
-
* Producer `ReactiveNode`s which are accessed when a consumer `ReactiveNode` is the
|
|
39
|
-
* `activeConsumer` are tracked as dependencies of that consumer.
|
|
40
|
-
*
|
|
41
|
-
* Certain consumers are also tracked as "live" consumers and create edges in the other direction,
|
|
42
|
-
* from producer to consumer. These edges are used to propagate change notifications when a
|
|
43
|
-
* producer's value is updated.
|
|
44
|
-
*
|
|
45
|
-
* A `ReactiveNode` may be both a producer and consumer.
|
|
46
|
-
*/
|
|
47
|
-
interface ReactiveNode {
|
|
48
|
-
/**
|
|
49
|
-
* Version of the value that this node produces.
|
|
50
|
-
*
|
|
51
|
-
* This is incremented whenever a new value is produced by this node which is not equal to the
|
|
52
|
-
* previous value (by whatever definition of equality is in use).
|
|
53
|
-
*/
|
|
54
|
-
version: Version;
|
|
55
|
-
/**
|
|
56
|
-
* Epoch at which this node is verified to be clean.
|
|
57
|
-
*
|
|
58
|
-
* This allows skipping of some polling operations in the case where no signals have been set
|
|
59
|
-
* since this node was last read.
|
|
60
|
-
*/
|
|
61
|
-
lastCleanEpoch: Version;
|
|
62
|
-
/**
|
|
63
|
-
* Whether this node (in its consumer capacity) is dirty.
|
|
64
|
-
*
|
|
65
|
-
* Only live consumers become dirty, when receiving a change notification from a dependency
|
|
66
|
-
* producer.
|
|
67
|
-
*/
|
|
68
|
-
dirty: boolean;
|
|
69
|
-
/**
|
|
70
|
-
* Producers which are dependencies of this consumer.
|
|
71
|
-
*
|
|
72
|
-
* Uses the same indices as the `producerLastReadVersion` and `producerIndexOfThis` arrays.
|
|
73
|
-
*/
|
|
74
|
-
producerNode: ReactiveNode[] | undefined;
|
|
75
|
-
/**
|
|
76
|
-
* `Version` of the value last read by a given producer.
|
|
77
|
-
*
|
|
78
|
-
* Uses the same indices as the `producerNode` and `producerIndexOfThis` arrays.
|
|
79
|
-
*/
|
|
80
|
-
producerLastReadVersion: Version[] | undefined;
|
|
81
|
-
/**
|
|
82
|
-
* Index of `this` (consumer) in each producer's `liveConsumers` array.
|
|
83
|
-
*
|
|
84
|
-
* This value is only meaningful if this node is live (`liveConsumers.length > 0`). Otherwise
|
|
85
|
-
* these indices are stale.
|
|
86
|
-
*
|
|
87
|
-
* Uses the same indices as the `producerNode` and `producerLastReadVersion` arrays.
|
|
88
|
-
*/
|
|
89
|
-
producerIndexOfThis: number[] | undefined;
|
|
90
|
-
/**
|
|
91
|
-
* Index into the producer arrays that the next dependency of this node as a consumer will use.
|
|
92
|
-
*
|
|
93
|
-
* This index is zeroed before this node as a consumer begins executing. When a producer is read,
|
|
94
|
-
* it gets inserted into the producers arrays at this index. There may be an existing dependency
|
|
95
|
-
* in this location which may or may not match the incoming producer, depending on whether the
|
|
96
|
-
* same producers were read in the same order as the last computation.
|
|
97
|
-
*/
|
|
98
|
-
nextProducerIndex: number;
|
|
99
|
-
/**
|
|
100
|
-
* Array of consumers of this producer that are "live" (they require push notifications).
|
|
101
|
-
*
|
|
102
|
-
* `liveConsumerNode.length` is effectively our reference count for this node.
|
|
103
|
-
*/
|
|
104
|
-
liveConsumerNode: ReactiveNode[] | undefined;
|
|
105
|
-
/**
|
|
106
|
-
* Index of `this` (producer) in each consumer's `producerNode` array.
|
|
107
|
-
*
|
|
108
|
-
* Uses the same indices as the `liveConsumerNode` array.
|
|
109
|
-
*/
|
|
110
|
-
liveConsumerIndexOfThis: number[] | undefined;
|
|
111
|
-
/**
|
|
112
|
-
* Whether writes to signals are allowed when this consumer is the `activeConsumer`.
|
|
113
|
-
*
|
|
114
|
-
* This is used to enforce guardrails such as preventing writes to writable signals in the
|
|
115
|
-
* computation function of computed signals, which is supposed to be pure.
|
|
116
|
-
*/
|
|
117
|
-
consumerAllowSignalWrites: boolean;
|
|
118
|
-
readonly consumerIsAlwaysLive: boolean;
|
|
119
|
-
/**
|
|
120
|
-
* Tracks whether producers need to recompute their value independently of the reactive graph (for
|
|
121
|
-
* example, if no initial value has been computed).
|
|
122
|
-
*/
|
|
123
|
-
producerMustRecompute(node: unknown): boolean;
|
|
124
|
-
producerRecomputeValue(node: unknown): void;
|
|
125
|
-
consumerMarkedDirty(node: unknown): void;
|
|
126
|
-
/**
|
|
127
|
-
* Called when a signal is read within this consumer.
|
|
128
|
-
*/
|
|
129
|
-
consumerOnSignalRead(node: unknown): void;
|
|
130
|
-
/**
|
|
131
|
-
* A debug name for the reactive node. Used in Angular DevTools to identify the node.
|
|
132
|
-
*/
|
|
133
|
-
debugName?: string;
|
|
134
|
-
/**
|
|
135
|
-
* Kind of node. Example: 'signal', 'computed', 'input', 'effect'.
|
|
136
|
-
*
|
|
137
|
-
* ReactiveNode has this as 'unknown' by default, but derived node types should override this to
|
|
138
|
-
* make available the kind of signal that particular instance of a ReactiveNode represents.
|
|
139
|
-
*
|
|
140
|
-
* Used in Angular DevTools to identify the kind of signal.
|
|
141
|
-
*/
|
|
142
|
-
kind: string;
|
|
143
|
-
}
|
|
144
|
-
/**
|
|
145
|
-
* Called by implementations when a producer's signal is read.
|
|
146
|
-
*/
|
|
147
|
-
declare function producerAccessed(node: ReactiveNode): void;
|
|
148
|
-
/**
|
|
149
|
-
* Increment the global epoch counter.
|
|
150
|
-
*
|
|
151
|
-
* Called by source producers (that is, not computeds) whenever their values change.
|
|
152
|
-
*/
|
|
153
|
-
declare function producerIncrementEpoch(): void;
|
|
154
|
-
/**
|
|
155
|
-
* Ensure this producer's `version` is up-to-date.
|
|
156
|
-
*/
|
|
157
|
-
declare function producerUpdateValueVersion(node: ReactiveNode): void;
|
|
158
|
-
/**
|
|
159
|
-
* Propagate a dirty notification to live consumers of this producer.
|
|
160
|
-
*/
|
|
161
|
-
declare function producerNotifyConsumers(node: ReactiveNode): void;
|
|
162
|
-
/**
|
|
163
|
-
* Whether this `ReactiveNode` in its producer capacity is currently allowed to initiate updates,
|
|
164
|
-
* based on the current consumer context.
|
|
165
|
-
*/
|
|
166
|
-
declare function producerUpdatesAllowed(): boolean;
|
|
167
|
-
declare function consumerMarkDirty(node: ReactiveNode): void;
|
|
168
|
-
declare function producerMarkClean(node: ReactiveNode): void;
|
|
169
|
-
/**
|
|
170
|
-
* Prepare this consumer to run a computation in its reactive context.
|
|
171
|
-
*
|
|
172
|
-
* Must be called by subclasses which represent reactive computations, before those computations
|
|
173
|
-
* begin.
|
|
174
|
-
*/
|
|
175
|
-
declare function consumerBeforeComputation(node: ReactiveNode | null): ReactiveNode | null;
|
|
176
|
-
/**
|
|
177
|
-
* Finalize this consumer's state after a reactive computation has run.
|
|
178
|
-
*
|
|
179
|
-
* Must be called by subclasses which represent reactive computations, after those computations
|
|
180
|
-
* have finished.
|
|
181
|
-
*/
|
|
182
|
-
declare function consumerAfterComputation(node: ReactiveNode | null, prevConsumer: ReactiveNode | null): void;
|
|
183
|
-
/**
|
|
184
|
-
* Determine whether this consumer has any dependencies which have changed since the last time
|
|
185
|
-
* they were read.
|
|
186
|
-
*/
|
|
187
|
-
declare function consumerPollProducersForChange(node: ReactiveNode): boolean;
|
|
188
|
-
/**
|
|
189
|
-
* Disconnect this consumer from the graph.
|
|
190
|
-
*/
|
|
191
|
-
declare function consumerDestroy(node: ReactiveNode): void;
|
|
7
|
+
import { R as ReactiveNode, V as ValueEqualityFn, S as SIGNAL, a as SignalNode } from '../../weak_ref.d-Bp6cSy-X.js';
|
|
8
|
+
export { b as REACTIVE_NODE, c as Reactive, t as SIGNAL_NODE, u as SignalGetter, e as consumerAfterComputation, f as consumerBeforeComputation, g as consumerDestroy, h as consumerMarkDirty, i as consumerPollProducersForChange, v as createSignal, d as defaultEquals, j as getActiveConsumer, k as isInNotificationPhase, l as isReactive, p as producerAccessed, m as producerIncrementEpoch, n as producerMarkClean, o as producerNotifyConsumers, q as producerUpdateValueVersion, r as producerUpdatesAllowed, w as runPostSignalSetFn, s as setActiveConsumer, A as setAlternateWeakRefImpl, x as setPostSignalSetFn, y as signalSetFn, z as signalUpdateFn } from '../../weak_ref.d-Bp6cSy-X.js';
|
|
192
9
|
|
|
193
10
|
/**
|
|
194
11
|
* A computation, which derives a value from a declarative reactive expression.
|
|
@@ -256,26 +73,6 @@ declare function createLinkedSignal<S, D>(sourceFn: () => S, computationFn: Comp
|
|
|
256
73
|
declare function linkedSignalSetFn<S, D>(node: LinkedSignalNode<S, D>, newValue: D): void;
|
|
257
74
|
declare function linkedSignalUpdateFn<S, D>(node: LinkedSignalNode<S, D>, updater: (value: D) => D): void;
|
|
258
75
|
|
|
259
|
-
interface SignalNode<T> extends ReactiveNode {
|
|
260
|
-
value: T;
|
|
261
|
-
equal: ValueEqualityFn<T>;
|
|
262
|
-
}
|
|
263
|
-
type SignalBaseGetter<T> = (() => T) & {
|
|
264
|
-
readonly [SIGNAL]: unknown;
|
|
265
|
-
};
|
|
266
|
-
interface SignalGetter<T> extends SignalBaseGetter<T> {
|
|
267
|
-
readonly [SIGNAL]: SignalNode<T>;
|
|
268
|
-
}
|
|
269
|
-
/**
|
|
270
|
-
* Create a `Signal` that can be set or updated directly.
|
|
271
|
-
*/
|
|
272
|
-
declare function createSignal<T>(initialValue: T, equal?: ValueEqualityFn<T>): SignalGetter<T>;
|
|
273
|
-
declare function setPostSignalSetFn(fn: (() => void) | null): (() => void) | null;
|
|
274
|
-
declare function signalSetFn<T>(node: SignalNode<T>, newValue: T): void;
|
|
275
|
-
declare function signalUpdateFn<T>(node: SignalNode<T>, updater: (value: T) => T): void;
|
|
276
|
-
declare function runPostSignalSetFn(): void;
|
|
277
|
-
declare const SIGNAL_NODE: SignalNode<unknown>;
|
|
278
|
-
|
|
279
76
|
declare function setThrowInvalidWriteToSignalError(fn: <T>(node: SignalNode<T>) => never): void;
|
|
280
77
|
|
|
281
78
|
/**
|
|
@@ -320,4 +117,4 @@ declare function createWatch(fn: (onCleanup: WatchCleanupRegisterFn) => void, sc
|
|
|
320
117
|
*/
|
|
321
118
|
declare function untracked<T>(nonReactiveReadsFn: () => T): T;
|
|
322
119
|
|
|
323
|
-
export { type ComputationFn, type ComputedNode, type LinkedSignalGetter, type LinkedSignalNode,
|
|
120
|
+
export { type ComputationFn, type ComputedNode, type LinkedSignalGetter, type LinkedSignalNode, ReactiveNode, SIGNAL, SignalNode, ValueEqualityFn, type Watch, type WatchCleanupFn, type WatchCleanupRegisterFn, createComputed, createLinkedSignal, createWatch, linkedSignalSetFn, linkedSignalUpdateFn, setThrowInvalidWriteToSignalError, untracked };
|
package/rxjs-interop/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
/**
|
|
3
|
-
* @license Angular v19.2.
|
|
3
|
+
* @license Angular v19.2.4
|
|
4
4
|
* (c) 2010-2025 Google LLC. https://angular.io/
|
|
5
5
|
* License: MIT
|
|
6
6
|
*/
|
|
@@ -30721,7 +30721,7 @@ function publishFacade(global) {
|
|
|
30721
30721
|
* @description
|
|
30722
30722
|
* Entry point for all public APIs of the compiler package.
|
|
30723
30723
|
*/
|
|
30724
|
-
new Version('19.2.
|
|
30724
|
+
new Version('19.2.4');
|
|
30725
30725
|
|
|
30726
30726
|
const _I18N_ATTR = 'i18n';
|
|
30727
30727
|
const _I18N_ATTR_PREFIX = 'i18n-';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
/**
|
|
3
|
-
* @license Angular v19.2.
|
|
3
|
+
* @license Angular v19.2.4
|
|
4
4
|
* (c) 2010-2025 Google LLC. https://angular.io/
|
|
5
5
|
* License: MIT
|
|
6
6
|
*/
|
|
@@ -680,9 +680,6 @@ function calculateNesting(visitor, hasLineBreaks) {
|
|
|
680
680
|
}
|
|
681
681
|
}
|
|
682
682
|
}
|
|
683
|
-
function escapeRegExp(val) {
|
|
684
|
-
return val.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'); // $& means the whole matched string
|
|
685
|
-
}
|
|
686
683
|
/**
|
|
687
684
|
* determines if a given template string contains line breaks
|
|
688
685
|
*/
|
|
@@ -711,18 +708,42 @@ function getTemplates(template) {
|
|
|
711
708
|
if (parsed.tree !== undefined) {
|
|
712
709
|
const visitor = new TemplateCollector();
|
|
713
710
|
checker.visitAll(visitor, parsed.tree.rootNodes);
|
|
714
|
-
// count usages of each ng-template
|
|
715
711
|
for (let [key, tmpl] of visitor.templates) {
|
|
716
|
-
|
|
717
|
-
const regex = new RegExp(`[^a-zA-Z0-9-<(\']${escapeKey}\\W`, 'gm');
|
|
718
|
-
const matches = template.match(regex);
|
|
719
|
-
tmpl.count = matches?.length ?? 0;
|
|
712
|
+
tmpl.count = countTemplateUsage(parsed.tree.rootNodes, key);
|
|
720
713
|
tmpl.generateContents(template);
|
|
721
714
|
}
|
|
722
715
|
return visitor.templates;
|
|
723
716
|
}
|
|
724
717
|
return new Map();
|
|
725
718
|
}
|
|
719
|
+
function countTemplateUsage(nodes, templateName) {
|
|
720
|
+
let count = 0;
|
|
721
|
+
let isReferencedInTemplateOutlet = false;
|
|
722
|
+
for (const node of nodes) {
|
|
723
|
+
if (node.attrs) {
|
|
724
|
+
for (const attr of node.attrs) {
|
|
725
|
+
if (attr.name === '*ngTemplateOutlet' && attr.value === templateName.slice(1)) {
|
|
726
|
+
isReferencedInTemplateOutlet = true;
|
|
727
|
+
break;
|
|
728
|
+
}
|
|
729
|
+
if (attr.name.trim() === templateName) {
|
|
730
|
+
count++;
|
|
731
|
+
}
|
|
732
|
+
}
|
|
733
|
+
}
|
|
734
|
+
if (node.children) {
|
|
735
|
+
if (node.name === 'for') {
|
|
736
|
+
for (const child of node.children) {
|
|
737
|
+
if (child.value?.includes(templateName.slice(1))) {
|
|
738
|
+
count++;
|
|
739
|
+
}
|
|
740
|
+
}
|
|
741
|
+
}
|
|
742
|
+
count += countTemplateUsage(node.children, templateName);
|
|
743
|
+
}
|
|
744
|
+
}
|
|
745
|
+
return isReferencedInTemplateOutlet ? count + 2 : count;
|
|
746
|
+
}
|
|
726
747
|
function updateTemplates(template, templates) {
|
|
727
748
|
const updatedTemplates = getTemplates(template);
|
|
728
749
|
for (let [key, tmpl] of updatedTemplates) {
|
|
@@ -772,8 +793,8 @@ function processNgTemplates(template, sourceFile) {
|
|
|
772
793
|
else {
|
|
773
794
|
template = template.replace(replaceRegex, t.children);
|
|
774
795
|
}
|
|
775
|
-
|
|
776
|
-
if (t.count === matches.length
|
|
796
|
+
const dist = matches.filter((obj, index, self) => index === self.findIndex((t) => t.input === obj.input));
|
|
797
|
+
if ((t.count === dist.length || t.count - matches.length === 1) && safeToRemove) {
|
|
777
798
|
const refsInComponentFile = getViewChildOrViewChildrenNames(sourceFile);
|
|
778
799
|
if (refsInComponentFile?.length > 0) {
|
|
779
800
|
const templateRefs = getTemplateReferences(template);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
/**
|
|
3
|
-
* @license Angular v19.2.
|
|
3
|
+
* @license Angular v19.2.4
|
|
4
4
|
* (c) 2010-2025 Google LLC. https://angular.io/
|
|
5
5
|
* License: MIT
|
|
6
6
|
*/
|
|
@@ -17,7 +17,7 @@ require('path');
|
|
|
17
17
|
* @description
|
|
18
18
|
* Entry point for all public APIs of the compiler-cli package.
|
|
19
19
|
*/
|
|
20
|
-
new checker.Version('19.2.
|
|
20
|
+
new checker.Version('19.2.4');
|
|
21
21
|
|
|
22
22
|
var LogLevel;
|
|
23
23
|
(function (LogLevel) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
/**
|
|
3
|
-
* @license Angular v19.2.
|
|
3
|
+
* @license Angular v19.2.4
|
|
4
4
|
* (c) 2010-2025 Google LLC. https://angular.io/
|
|
5
5
|
* License: MIT
|
|
6
6
|
*/
|
|
@@ -1007,7 +1007,7 @@ const MINIMUM_PARTIAL_LINKER_DEFER_SUPPORT_VERSION = '18.0.0';
|
|
|
1007
1007
|
function compileDeclareClassMetadata(metadata) {
|
|
1008
1008
|
const definitionMap = new checker.DefinitionMap();
|
|
1009
1009
|
definitionMap.set('minVersion', checker.literal(MINIMUM_PARTIAL_LINKER_VERSION$5));
|
|
1010
|
-
definitionMap.set('version', checker.literal('19.2.
|
|
1010
|
+
definitionMap.set('version', checker.literal('19.2.4'));
|
|
1011
1011
|
definitionMap.set('ngImport', checker.importExpr(checker.Identifiers.core));
|
|
1012
1012
|
definitionMap.set('type', metadata.type);
|
|
1013
1013
|
definitionMap.set('decorators', metadata.decorators);
|
|
@@ -1025,7 +1025,7 @@ function compileComponentDeclareClassMetadata(metadata, dependencies) {
|
|
|
1025
1025
|
callbackReturnDefinitionMap.set('ctorParameters', metadata.ctorParameters ?? checker.literal(null));
|
|
1026
1026
|
callbackReturnDefinitionMap.set('propDecorators', metadata.propDecorators ?? checker.literal(null));
|
|
1027
1027
|
definitionMap.set('minVersion', checker.literal(MINIMUM_PARTIAL_LINKER_DEFER_SUPPORT_VERSION));
|
|
1028
|
-
definitionMap.set('version', checker.literal('19.2.
|
|
1028
|
+
definitionMap.set('version', checker.literal('19.2.4'));
|
|
1029
1029
|
definitionMap.set('ngImport', checker.importExpr(checker.Identifiers.core));
|
|
1030
1030
|
definitionMap.set('type', metadata.type);
|
|
1031
1031
|
definitionMap.set('resolveDeferredDeps', compileComponentMetadataAsyncResolver(dependencies));
|
|
@@ -1120,7 +1120,7 @@ function createDirectiveDefinitionMap(meta) {
|
|
|
1120
1120
|
const definitionMap = new checker.DefinitionMap();
|
|
1121
1121
|
const minVersion = getMinimumVersionForPartialOutput(meta);
|
|
1122
1122
|
definitionMap.set('minVersion', checker.literal(minVersion));
|
|
1123
|
-
definitionMap.set('version', checker.literal('19.2.
|
|
1123
|
+
definitionMap.set('version', checker.literal('19.2.4'));
|
|
1124
1124
|
// e.g. `type: MyDirective`
|
|
1125
1125
|
definitionMap.set('type', meta.type.value);
|
|
1126
1126
|
if (meta.isStandalone !== undefined) {
|
|
@@ -1536,7 +1536,7 @@ const MINIMUM_PARTIAL_LINKER_VERSION$4 = '12.0.0';
|
|
|
1536
1536
|
function compileDeclareFactoryFunction(meta) {
|
|
1537
1537
|
const definitionMap = new checker.DefinitionMap();
|
|
1538
1538
|
definitionMap.set('minVersion', checker.literal(MINIMUM_PARTIAL_LINKER_VERSION$4));
|
|
1539
|
-
definitionMap.set('version', checker.literal('19.2.
|
|
1539
|
+
definitionMap.set('version', checker.literal('19.2.4'));
|
|
1540
1540
|
definitionMap.set('ngImport', checker.importExpr(checker.Identifiers.core));
|
|
1541
1541
|
definitionMap.set('type', meta.type.value);
|
|
1542
1542
|
definitionMap.set('deps', compileDependencies(meta.deps));
|
|
@@ -1571,7 +1571,7 @@ function compileDeclareInjectableFromMetadata(meta) {
|
|
|
1571
1571
|
function createInjectableDefinitionMap(meta) {
|
|
1572
1572
|
const definitionMap = new checker.DefinitionMap();
|
|
1573
1573
|
definitionMap.set('minVersion', checker.literal(MINIMUM_PARTIAL_LINKER_VERSION$3));
|
|
1574
|
-
definitionMap.set('version', checker.literal('19.2.
|
|
1574
|
+
definitionMap.set('version', checker.literal('19.2.4'));
|
|
1575
1575
|
definitionMap.set('ngImport', checker.importExpr(checker.Identifiers.core));
|
|
1576
1576
|
definitionMap.set('type', meta.type.value);
|
|
1577
1577
|
// Only generate providedIn property if it has a non-null value
|
|
@@ -1622,7 +1622,7 @@ function compileDeclareInjectorFromMetadata(meta) {
|
|
|
1622
1622
|
function createInjectorDefinitionMap(meta) {
|
|
1623
1623
|
const definitionMap = new checker.DefinitionMap();
|
|
1624
1624
|
definitionMap.set('minVersion', checker.literal(MINIMUM_PARTIAL_LINKER_VERSION$2));
|
|
1625
|
-
definitionMap.set('version', checker.literal('19.2.
|
|
1625
|
+
definitionMap.set('version', checker.literal('19.2.4'));
|
|
1626
1626
|
definitionMap.set('ngImport', checker.importExpr(checker.Identifiers.core));
|
|
1627
1627
|
definitionMap.set('type', meta.type.value);
|
|
1628
1628
|
definitionMap.set('providers', meta.providers);
|
|
@@ -1655,7 +1655,7 @@ function createNgModuleDefinitionMap(meta) {
|
|
|
1655
1655
|
throw new Error('Invalid path! Local compilation mode should not get into the partial compilation path');
|
|
1656
1656
|
}
|
|
1657
1657
|
definitionMap.set('minVersion', checker.literal(MINIMUM_PARTIAL_LINKER_VERSION$1));
|
|
1658
|
-
definitionMap.set('version', checker.literal('19.2.
|
|
1658
|
+
definitionMap.set('version', checker.literal('19.2.4'));
|
|
1659
1659
|
definitionMap.set('ngImport', checker.importExpr(checker.Identifiers.core));
|
|
1660
1660
|
definitionMap.set('type', meta.type.value);
|
|
1661
1661
|
// We only generate the keys in the metadata if the arrays contain values.
|
|
@@ -1706,7 +1706,7 @@ function compileDeclarePipeFromMetadata(meta) {
|
|
|
1706
1706
|
function createPipeDefinitionMap(meta) {
|
|
1707
1707
|
const definitionMap = new checker.DefinitionMap();
|
|
1708
1708
|
definitionMap.set('minVersion', checker.literal(MINIMUM_PARTIAL_LINKER_VERSION));
|
|
1709
|
-
definitionMap.set('version', checker.literal('19.2.
|
|
1709
|
+
definitionMap.set('version', checker.literal('19.2.4'));
|
|
1710
1710
|
definitionMap.set('ngImport', checker.importExpr(checker.Identifiers.core));
|
|
1711
1711
|
// e.g. `type: MyPipe`
|
|
1712
1712
|
definitionMap.set('type', meta.type.value);
|
|
@@ -18552,7 +18552,7 @@ var semver = /*@__PURE__*/getDefaultExportFromCjs(semverExports);
|
|
|
18552
18552
|
* @param minVersion Minimum required version for the feature.
|
|
18553
18553
|
*/
|
|
18554
18554
|
function coreVersionSupportsFeature(coreVersion, minVersion) {
|
|
18555
|
-
// A version of `19.2.
|
|
18555
|
+
// A version of `19.2.4` usually means that core is at head so it supports
|
|
18556
18556
|
// all features. Use string interpolation prevent the placeholder from being replaced
|
|
18557
18557
|
// with the current version during build time.
|
|
18558
18558
|
if (coreVersion === `0.0.0-${'PLACEHOLDER'}`) {
|