@angular/core 20.1.0-next.0 → 20.1.0-next.2
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-Dwpmmn5j.d.ts +1 -1
- package/chrome_dev_tools_performance.d-Dk_7kdX9.d.ts +1 -1
- package/{discovery.d-BAZTj_rM.d.ts → discovery.d-AiW64LSq.d.ts} +2 -2
- package/event_dispatcher.d-BReQpZfC.d.ts +1 -1
- package/fesm2022/attribute-BWp59EjE.mjs +1 -1
- package/fesm2022/core.mjs +16 -18
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/{debug_node-CjNGi9N3.mjs → debug_node-BFi6TVHr.mjs} +31 -24
- package/fesm2022/debug_node-BFi6TVHr.mjs.map +1 -0
- package/fesm2022/primitives/di.mjs +1 -1
- package/fesm2022/primitives/event-dispatch.mjs +1 -1
- package/fesm2022/primitives/signals.mjs +4 -4
- package/fesm2022/{resource-1o9xbJml.mjs → resource-BwChsGJq.mjs} +5 -5
- package/fesm2022/{resource-1o9xbJml.mjs.map → resource-BwChsGJq.mjs.map} +1 -1
- package/fesm2022/{root_effect_scheduler-Ds-Wmkv_.mjs → root_effect_scheduler-BkoRKl64.mjs} +11 -4
- package/fesm2022/{root_effect_scheduler-Ds-Wmkv_.mjs.map → root_effect_scheduler-BkoRKl64.mjs.map} +1 -1
- package/fesm2022/rxjs-interop.mjs +10 -7
- package/fesm2022/rxjs-interop.mjs.map +1 -1
- package/fesm2022/{signal-BZ1SD--i.mjs → signal-nCiHhWf6.mjs} +3 -10
- package/fesm2022/{signal-BZ1SD--i.mjs.map → signal-nCiHhWf6.mjs.map} +1 -1
- package/fesm2022/testing.mjs +8 -8
- package/fesm2022/testing.mjs.map +1 -1
- package/fesm2022/{untracked-C72kieeB.mjs → untracked-DmD_2MlC.mjs} +3 -3
- package/fesm2022/{untracked-C72kieeB.mjs.map → untracked-DmD_2MlC.mjs.map} +1 -1
- package/fesm2022/weak_ref-BaIq-pgY.mjs +1 -1
- package/graph.d-BcIOep_B.d.ts +1 -1
- package/index.d.ts +4 -7
- 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 -3
- package/rxjs-interop/index.d.ts +1 -1
- package/schematics/bundles/{apply_import_manager-CSEu0fby.cjs → apply_import_manager-BsIRDO9W.cjs} +3 -3
- package/schematics/bundles/{checker-CuQvkMhs.cjs → checker-CY7a8ko8.cjs} +4 -3
- package/schematics/bundles/cleanup-unused-imports.cjs +35 -21
- package/schematics/bundles/{compiler_host-Biezhzch.cjs → compiler_host-DNYQkH4l.cjs} +2 -2
- package/schematics/bundles/control-flow-migration.cjs +3 -3
- package/schematics/bundles/document-core.cjs +5 -5
- package/schematics/bundles/imports-CIX-JgAN.cjs +1 -1
- package/schematics/bundles/{index-vkqofxID.cjs → index-BJ3PYYwQ.cjs} +4 -4
- package/schematics/bundles/{index-C5wL4qaq.cjs → index-BUgQDm-J.cjs} +28 -15
- package/schematics/bundles/inject-flags.cjs +5 -5
- package/schematics/bundles/inject-migration.cjs +9 -4
- package/schematics/bundles/leading_space-D9nQ8UQC.cjs +1 -1
- package/schematics/bundles/{migrate_ts_type_references-BYgEQg0O.cjs → migrate_ts_type_references-MBd4NBjn.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-KPCsvRfl.cjs → project_paths-C5Df24y1.cjs} +3 -3
- package/schematics/bundles/project_tsconfig_paths-CDVxT6Ov.cjs +1 -1
- package/schematics/bundles/property_name-BBwFuqMe.cjs +1 -1
- package/schematics/bundles/route-lazy-loading.cjs +3 -3
- package/schematics/bundles/self-closing-tags-migration.cjs +4 -4
- package/schematics/bundles/signal-input-migration.cjs +7 -7
- package/schematics/bundles/signal-queries-migration.cjs +7 -7
- package/schematics/bundles/signals.cjs +7 -7
- package/schematics/bundles/standalone-migration.cjs +4 -4
- package/schematics/bundles/symbol-VPWguRxr.cjs +1 -1
- package/schematics/bundles/test-bed-get.cjs +4 -4
- package/{signal.d-fOdF0h0o.d.ts → signal.d-BcmOdASA.d.ts} +2 -7
- package/testing/index.d.ts +14 -5
- package/weak_ref.d-eGOEP9S1.d.ts +1 -1
- package/fesm2022/debug_node-CjNGi9N3.mjs.map +0 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v20.1.0-next.
|
|
2
|
+
* @license Angular v20.1.0-next.2
|
|
3
3
|
* (c) 2010-2025 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import { SIGNAL, runPostProducerCreatedFn, producerUpdateValueVersion, signalSetFn, producerMarkClean, signalUpdateFn, REACTIVE_NODE, UNSET, defaultEquals, COMPUTING, consumerBeforeComputation, ERRORED, consumerAfterComputation, producerAccessed, setActiveConsumer } from './signal-
|
|
7
|
+
import { SIGNAL, runPostProducerCreatedFn, producerUpdateValueVersion, signalSetFn, producerMarkClean, signalUpdateFn, REACTIVE_NODE, UNSET, defaultEquals, COMPUTING, consumerBeforeComputation, ERRORED, consumerAfterComputation, producerAccessed, setActiveConsumer } from './signal-nCiHhWf6.mjs';
|
|
8
8
|
|
|
9
9
|
function createLinkedSignal(sourceFn, computationFn, equalityFn) {
|
|
10
10
|
const node = Object.create(LINKED_SIGNAL_NODE);
|
|
@@ -114,4 +114,4 @@ function untracked(nonReactiveReadsFn) {
|
|
|
114
114
|
}
|
|
115
115
|
|
|
116
116
|
export { createLinkedSignal, linkedSignalSetFn, linkedSignalUpdateFn, untracked };
|
|
117
|
-
//# sourceMappingURL=untracked-
|
|
117
|
+
//# sourceMappingURL=untracked-DmD_2MlC.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"untracked-
|
|
1
|
+
{"version":3,"file":"untracked-DmD_2MlC.mjs","sources":["../../../../../darwin_arm64-fastbuild-ST-46c76129e412/bin/packages/core/primitives/signals/src/linked_signal.ts","../../../../../darwin_arm64-fastbuild-ST-46c76129e412/bin/packages/core/primitives/signals/src/untracked.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\nimport {COMPUTING, ERRORED, UNSET} from './computed';\nimport {defaultEquals, ValueEqualityFn} from './equality';\nimport {\n consumerAfterComputation,\n consumerBeforeComputation,\n producerAccessed,\n producerMarkClean,\n producerUpdateValueVersion,\n REACTIVE_NODE,\n ReactiveNode,\n runPostProducerCreatedFn,\n SIGNAL,\n} from './graph';\nimport {signalSetFn, signalUpdateFn} from './signal';\n\n// Required as the signals library is in a separate package, so we need to explicitly ensure the\n// global `ngDevMode` type is defined.\ndeclare const ngDevMode: boolean | undefined;\n\nexport type ComputationFn<S, D> = (source: S, previous?: {source: S; value: D}) => D;\n\nexport interface LinkedSignalNode<S, D> extends ReactiveNode {\n /**\n * Value of the source signal that was used to derive the computed value.\n */\n sourceValue: S;\n\n /**\n * Current state value, or one of the sentinel values (`UNSET`, `COMPUTING`,\n * `ERROR`).\n */\n value: D;\n\n /**\n * If `value` is `ERRORED`, the error caught from the last computation attempt which will\n * be re-thrown.\n */\n error: unknown;\n\n /**\n * The source function represents reactive dependency based on which the linked state is reset.\n */\n source: () => S;\n\n /**\n * The computation function which will produce a new value based on the source and, optionally - previous values.\n */\n computation: ComputationFn<S, D>;\n\n equal: ValueEqualityFn<D>;\n}\n\nexport type LinkedSignalGetter<S, D> = (() => D) & {\n [SIGNAL]: LinkedSignalNode<S, D>;\n};\n\nexport function createLinkedSignal<S, D>(\n sourceFn: () => S,\n computationFn: ComputationFn<S, D>,\n equalityFn?: ValueEqualityFn<D>,\n): LinkedSignalGetter<S, D> {\n const node: LinkedSignalNode<S, D> = Object.create(LINKED_SIGNAL_NODE);\n\n node.source = sourceFn;\n node.computation = computationFn;\n if (equalityFn != undefined) {\n node.equal = equalityFn;\n }\n\n const linkedSignalGetter = () => {\n // Check if the value needs updating before returning it.\n producerUpdateValueVersion(node);\n\n // Record that someone looked at this signal.\n producerAccessed(node);\n\n if (node.value === ERRORED) {\n throw node.error;\n }\n\n return node.value;\n };\n\n const getter = linkedSignalGetter as LinkedSignalGetter<S, D>;\n getter[SIGNAL] = node;\n if (typeof ngDevMode !== 'undefined' && ngDevMode) {\n const debugName = node.debugName ? ' (' + node.debugName + ')' : '';\n getter.toString = () => `[LinkedSignal${debugName}: ${node.value}]`;\n }\n\n runPostProducerCreatedFn(node);\n\n return getter;\n}\n\nexport function linkedSignalSetFn<S, D>(node: LinkedSignalNode<S, D>, newValue: D) {\n producerUpdateValueVersion(node);\n signalSetFn(node, newValue);\n producerMarkClean(node);\n}\n\nexport function linkedSignalUpdateFn<S, D>(\n node: LinkedSignalNode<S, D>,\n updater: (value: D) => D,\n): void {\n producerUpdateValueVersion(node);\n signalUpdateFn(node, updater);\n producerMarkClean(node);\n}\n\n// Note: Using an IIFE here to ensure that the spread assignment is not considered\n// a side-effect, ending up preserving `LINKED_SIGNAL_NODE` and `REACTIVE_NODE`.\n// TODO: remove when https://github.com/evanw/esbuild/issues/3392 is resolved.\nexport const LINKED_SIGNAL_NODE: object = /* @__PURE__ */ (() => {\n return {\n ...REACTIVE_NODE,\n value: UNSET,\n dirty: true,\n error: null,\n equal: defaultEquals,\n kind: 'linkedSignal',\n\n producerMustRecompute(node: LinkedSignalNode<unknown, unknown>): boolean {\n // Force a recomputation if there's no current value, or if the current value is in the\n // process of being calculated (which should throw an error).\n return node.value === UNSET || node.value === COMPUTING;\n },\n\n producerRecomputeValue(node: LinkedSignalNode<unknown, unknown>): void {\n if (node.value === COMPUTING) {\n // Our computation somehow led to a cyclic read of itself.\n throw new Error(\n typeof ngDevMode !== 'undefined' && ngDevMode ? 'Detected cycle in computations.' : '',\n );\n }\n\n const oldValue = node.value;\n node.value = COMPUTING;\n\n const prevConsumer = consumerBeforeComputation(node);\n let newValue: unknown;\n try {\n const newSourceValue = node.source();\n const prev =\n oldValue === UNSET || oldValue === ERRORED\n ? undefined\n : {\n source: node.sourceValue,\n value: oldValue,\n };\n newValue = node.computation(newSourceValue, prev);\n node.sourceValue = newSourceValue;\n } catch (err) {\n newValue = ERRORED;\n node.error = err;\n } finally {\n consumerAfterComputation(node, prevConsumer);\n }\n\n if (oldValue !== UNSET && newValue !== ERRORED && node.equal(oldValue, newValue)) {\n // No change to `valueVersion` - old and new values are\n // semantically equivalent.\n node.value = oldValue;\n return;\n }\n\n node.value = newValue;\n node.version++;\n },\n };\n})();\n","/**\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\nimport {setActiveConsumer} from './graph';\n\n/**\n * Execute an arbitrary function in a non-reactive (non-tracking) context. The executed function\n * can, optionally, return a value.\n */\nexport function untracked<T>(nonReactiveReadsFn: () => T): T {\n const prevConsumer = setActiveConsumer(null);\n // We are not trying to catch any particular errors here, just making sure that the consumers\n // stack is restored in case of errors.\n try {\n return nonReactiveReadsFn();\n } finally {\n setActiveConsumer(prevConsumer);\n }\n}\n"],"names":[],"mappings":"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"}
|
package/graph.d-BcIOep_B.d.ts
CHANGED
package/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v20.1.0-next.
|
|
2
|
+
* @license Angular v20.1.0-next.2
|
|
3
3
|
* (c) 2010-2025 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -7,15 +7,15 @@
|
|
|
7
7
|
import { SIGNAL, ValueEqualityFn as ValueEqualityFn$1 } from './graph.d-BcIOep_B.js';
|
|
8
8
|
import { Signal, WritableSignal, OutputRef, Provider, EnvironmentProviders, Type as Type$1, ModuleWithProviders, TypeProvider, ValueProvider, ClassProvider, ConstructorProvider, ExistingProvider, FactoryProvider, StaticClassProvider, ProviderToken, StaticProvider, Injector, ValueSansProvider, ExistingSansProvider, StaticClassSansProvider, ConstructorSansProvider, FactorySansProvider, ClassSansProvider, InjectionToken, InternalInjectFlags, InjectOptions, ValueEqualityFn, EventCallback, isSignal, enableProfiling as enableProfiling$1 } from './chrome_dev_tools_performance.d-Dk_7kdX9.js';
|
|
9
9
|
export { AbstractType, CreateSignalOptions, DestroyRef, DestroyableInjector, ImportedNgModuleProviders, OutputRefSubscription, signal, InternalEnvironmentProviders as ɵInternalEnvironmentProviders, JSACTION_EVENT_CONTRACT as ɵJSACTION_EVENT_CONTRACT, Writable as ɵWritable, isEnvironmentProviders as ɵisEnvironmentProviders, ɵunwrapWritableSignal } from './chrome_dev_tools_performance.d-Dk_7kdX9.js';
|
|
10
|
-
import { InputSignalNode, TypeDecorator, AfterRenderRef, EffectCleanupRegisterFn, SchemaMetadata, ComponentDef, DirectiveDef, CssSelectorList, DirectiveDefFeature, HostBindingsFunction, TAttributes, ContentQueriesFunction, ViewQueriesFunction, ComponentTemplate, TConstantsOrFactory, ComponentDefFeature, ViewEncapsulation as ViewEncapsulation$1, ChangeDetectionStrategy as ChangeDetectionStrategy$1, TypeOrFactory, DependencyTypeList, InputFlags, InputTransformFunction, EmbeddedViewRef, LView, ApplicationRef, ChangeDetectorRef, ComponentFactory as ComponentFactory$1, NgModuleRef as NgModuleRef$1, EnvironmentInjector, DirectiveWithBindings, Binding, ComponentRef as ComponentRef$1, ElementRef, ComponentFactoryResolver as ComponentFactoryResolver$1, InternalNgModuleRef, NgModuleFactory as NgModuleFactory$1, ViewRef as ViewRef$1, PlatformRef, NgZone, ChangeDetectionScheduler, NotificationSource, ɵɵFactoryDeclaration as __FactoryDeclaration, ɵɵInjectableDeclaration as __InjectableDeclaration, ɵɵNgModuleDeclaration as __NgModuleDeclaration, ɵɵInjectorDeclaration as __InjectorDeclaration, DeferBlockDependencyInterceptor, DeferBlockConfig, DeferBlockState, TNode, LContainer, TView, TDeferBlockDetails, RNode, Component, TrustedHTML, DehydratedDeferBlock, CompilerOptions, HostDirectiveConfig, ComponentType, NgModuleScopeInfoFromDecorator, DependencyResolverFn, TDeferDetailsFlags, SanitizerFn, LocalRefExtractor, OpaqueViewState, GlobalTargetResolver, ProjectionSlots, QueryFlags, QueryList, RElement, RawScopeInfoFromDecorator, ClassDebugInfo, Directive, NgModule, Pipe, TrustedScriptURL, TrustedScript, PipeType, DirectiveType } from './discovery.d-
|
|
11
|
-
export { APP_BOOTSTRAP_LISTENER, BootstrapOptions, COMPILER_OPTIONS, CUSTOM_ELEMENTS_SCHEMA, Compiler, CompilerFactory, ComponentDecorator, CreateEffectOptions, DebugElement, DebugEventListener, DebugNode, DirectiveDecorator, EffectCleanupFn, EffectRef, EventEmitter, HostBinding, HostBindingDecorator, HostListener, HostListenerDecorator, InjectableType, InjectorType, Input, InputDecorator, ListenerOptions, ModuleWithComponentFactories, NO_ERRORS_SCHEMA, NgModuleDecorator, NgProbeToken, Output, OutputDecorator, PipeDecorator, Predicate, Renderer2, RendererFactory2, RendererStyleFlags2, RendererType2, Sanitizer, SecurityContext, asNativeElements, defineInjectable, effect, getDebugNode, inputBinding, outputBinding, twoWayBinding, AfterRenderManager as ɵAfterRenderManager, AnimationRendererType as ɵAnimationRendererType, AttributeMarker as ɵAttributeMarker, CONTAINER_HEADER_OFFSET as ɵCONTAINER_HEADER_OFFSET, DeferBlockBehavior as ɵDeferBlockBehavior, DeferBlockDetails as ɵDeferBlockDetails, EffectScheduler as ɵEffectScheduler, INJECTOR_SCOPE as ɵINJECTOR_SCOPE, NG_INJ_DEF as ɵNG_INJ_DEF, NG_PROV_DEF as ɵNG_PROV_DEF, NavigateEvent as ɵNavigateEvent, Navigation as ɵNavigation, NavigationCurrentEntryChangeEvent as ɵNavigationCurrentEntryChangeEvent, NavigationDestination as ɵNavigationDestination, NavigationHistoryEntry as ɵNavigationHistoryEntry, NavigationInterceptOptions as ɵNavigationInterceptOptions, NavigationNavigateOptions as ɵNavigationNavigateOptions, NavigationOptions as ɵNavigationOptions, NavigationReloadOptions as ɵNavigationReloadOptions, NavigationResult as ɵNavigationResult, NavigationTransition as ɵNavigationTransition, NavigationTypeString as ɵNavigationTypeString, NavigationUpdateCurrentEntryOptions as ɵNavigationUpdateCurrentEntryOptions, NoopNgZone as ɵNoopNgZone, PipeDef as ɵPipeDef, R3Injector as ɵR3Injector, RenderFlags as ɵRenderFlags, TracingAction as ɵTracingAction, TracingService as ɵTracingService, TracingSnapshot as ɵTracingSnapshot, ZONELESS_ENABLED as ɵZONELESS_ENABLED, getDebugNode as ɵgetDebugNode, getDeferBlocks as ɵgetDeferBlocks, getInjectableDef as ɵgetInjectableDef, injectChangeDetectorRef as ɵinjectChangeDetectorRef, isBoundToModule as ɵisBoundToModule, isInjectable as ɵisInjectable, ɵɵComponentDeclaration, ɵɵDirectiveDeclaration, ɵɵInjectorDef, ɵɵPipeDeclaration, ɵɵdefineInjectable, ɵɵdefineInjector } from './discovery.d-
|
|
10
|
+
import { InputSignalNode, TypeDecorator, AfterRenderRef, EffectCleanupRegisterFn, SchemaMetadata, ComponentDef, DirectiveDef, CssSelectorList, DirectiveDefFeature, HostBindingsFunction, TAttributes, ContentQueriesFunction, ViewQueriesFunction, ComponentTemplate, TConstantsOrFactory, ComponentDefFeature, ViewEncapsulation as ViewEncapsulation$1, ChangeDetectionStrategy as ChangeDetectionStrategy$1, TypeOrFactory, DependencyTypeList, InputFlags, InputTransformFunction, EmbeddedViewRef, LView, ApplicationRef, ChangeDetectorRef, ComponentFactory as ComponentFactory$1, NgModuleRef as NgModuleRef$1, EnvironmentInjector, DirectiveWithBindings, Binding, ComponentRef as ComponentRef$1, ElementRef, ComponentFactoryResolver as ComponentFactoryResolver$1, InternalNgModuleRef, NgModuleFactory as NgModuleFactory$1, ViewRef as ViewRef$1, PlatformRef, NgZone, ChangeDetectionScheduler, NotificationSource, ɵɵFactoryDeclaration as __FactoryDeclaration, ɵɵInjectableDeclaration as __InjectableDeclaration, ɵɵNgModuleDeclaration as __NgModuleDeclaration, ɵɵInjectorDeclaration as __InjectorDeclaration, DeferBlockDependencyInterceptor, DeferBlockConfig, DeferBlockState, TNode, LContainer, TView, TDeferBlockDetails, RNode, Component, TrustedHTML, DehydratedDeferBlock, CompilerOptions, HostDirectiveConfig, ComponentType, NgModuleScopeInfoFromDecorator, DependencyResolverFn, TDeferDetailsFlags, SanitizerFn, LocalRefExtractor, OpaqueViewState, GlobalTargetResolver, ProjectionSlots, QueryFlags, QueryList, RElement, RawScopeInfoFromDecorator, ClassDebugInfo, Directive, NgModule, Pipe, TrustedScriptURL, TrustedScript, PipeType, DirectiveType } from './discovery.d-AiW64LSq.js';
|
|
11
|
+
export { APP_BOOTSTRAP_LISTENER, BootstrapOptions, COMPILER_OPTIONS, CUSTOM_ELEMENTS_SCHEMA, Compiler, CompilerFactory, ComponentDecorator, CreateEffectOptions, DebugElement, DebugEventListener, DebugNode, DirectiveDecorator, EffectCleanupFn, EffectRef, EventEmitter, HostBinding, HostBindingDecorator, HostListener, HostListenerDecorator, InjectableType, InjectorType, Input, InputDecorator, ListenerOptions, ModuleWithComponentFactories, NO_ERRORS_SCHEMA, NgModuleDecorator, NgProbeToken, Output, OutputDecorator, PipeDecorator, Predicate, Renderer2, RendererFactory2, RendererStyleFlags2, RendererType2, Sanitizer, SecurityContext, asNativeElements, defineInjectable, effect, getDebugNode, inputBinding, outputBinding, twoWayBinding, AfterRenderManager as ɵAfterRenderManager, AnimationRendererType as ɵAnimationRendererType, AttributeMarker as ɵAttributeMarker, CONTAINER_HEADER_OFFSET as ɵCONTAINER_HEADER_OFFSET, DeferBlockBehavior as ɵDeferBlockBehavior, DeferBlockDetails as ɵDeferBlockDetails, EffectScheduler as ɵEffectScheduler, INJECTOR_SCOPE as ɵINJECTOR_SCOPE, NG_INJ_DEF as ɵNG_INJ_DEF, NG_PROV_DEF as ɵNG_PROV_DEF, NavigateEvent as ɵNavigateEvent, Navigation as ɵNavigation, NavigationCurrentEntryChangeEvent as ɵNavigationCurrentEntryChangeEvent, NavigationDestination as ɵNavigationDestination, NavigationHistoryEntry as ɵNavigationHistoryEntry, NavigationInterceptOptions as ɵNavigationInterceptOptions, NavigationNavigateOptions as ɵNavigationNavigateOptions, NavigationOptions as ɵNavigationOptions, NavigationReloadOptions as ɵNavigationReloadOptions, NavigationResult as ɵNavigationResult, NavigationTransition as ɵNavigationTransition, NavigationTypeString as ɵNavigationTypeString, NavigationUpdateCurrentEntryOptions as ɵNavigationUpdateCurrentEntryOptions, NoopNgZone as ɵNoopNgZone, PipeDef as ɵPipeDef, R3Injector as ɵR3Injector, RenderFlags as ɵRenderFlags, TracingAction as ɵTracingAction, TracingService as ɵTracingService, TracingSnapshot as ɵTracingSnapshot, ZONELESS_ENABLED as ɵZONELESS_ENABLED, getDebugNode as ɵgetDebugNode, getDeferBlocks as ɵgetDeferBlocks, getInjectableDef as ɵgetInjectableDef, injectChangeDetectorRef as ɵinjectChangeDetectorRef, isBoundToModule as ɵisBoundToModule, isInjectable as ɵisInjectable, ɵɵComponentDeclaration, ɵɵDirectiveDeclaration, ɵɵInjectorDef, ɵɵPipeDeclaration, ɵɵdefineInjectable, ɵɵdefineInjector } from './discovery.d-AiW64LSq.js';
|
|
12
12
|
import { ResourceOptions, ResourceRef, ResourceStreamingLoader, ResourceStatus, WritableResource, Resource } from './api.d-Dwpmmn5j.js';
|
|
13
13
|
export { BaseResourceOptions, OutputEmitterRef, OutputOptions, PromiseResourceOptions, ResourceLoader, ResourceLoaderParams, ResourceStreamItem, StreamingResourceOptions, output, getOutputDestroyRef as ɵgetOutputDestroyRef } from './api.d-Dwpmmn5j.js';
|
|
14
14
|
import './event_dispatcher.d-BReQpZfC.js';
|
|
15
15
|
import { Observable, Subscribable } from 'rxjs';
|
|
16
16
|
export { setAlternateWeakRefImpl as ɵsetAlternateWeakRefImpl } from './weak_ref.d-eGOEP9S1.js';
|
|
17
17
|
export { setCurrentInjector as ɵsetCurrentInjector } from './primitives/di/index.js';
|
|
18
|
-
import './signal.d-
|
|
18
|
+
import './signal.d-BcmOdASA.js';
|
|
19
19
|
import '@angular/core/primitives/di';
|
|
20
20
|
|
|
21
21
|
/**
|
|
@@ -4559,7 +4559,6 @@ declare const LOCALE_ID: InjectionToken<string>;
|
|
|
4559
4559
|
* In standalone apps:
|
|
4560
4560
|
* ```ts
|
|
4561
4561
|
* import { LOCALE_ID, ApplicationConfig } from '@angular/core';
|
|
4562
|
-
* import { AppModule } from './app/app.module';
|
|
4563
4562
|
*
|
|
4564
4563
|
* const appConfig: ApplicationConfig = {
|
|
4565
4564
|
* providers: [{provide: DEFAULT_CURRENCY_CODE, useValue: 'EUR' }]
|
|
@@ -4590,7 +4589,6 @@ declare const DEFAULT_CURRENCY_CODE: InjectionToken<string>;
|
|
|
4590
4589
|
* In standalone apps:
|
|
4591
4590
|
* ```ts
|
|
4592
4591
|
* import { LOCALE_ID, ApplicationConfig } from '@angular/core';
|
|
4593
|
-
* import { AppModule } from './app/app.module';
|
|
4594
4592
|
*
|
|
4595
4593
|
* const appConfig: ApplicationConfig = {
|
|
4596
4594
|
* providers: [{provide: TRANSLATIONS, useValue: translations }]
|
|
@@ -4625,7 +4623,6 @@ declare const TRANSLATIONS: InjectionToken<string>;
|
|
|
4625
4623
|
* In standalone apps:
|
|
4626
4624
|
* ```ts
|
|
4627
4625
|
* import { LOCALE_ID, ApplicationConfig } from '@angular/core';
|
|
4628
|
-
* import { AppModule } from './app/app.module';
|
|
4629
4626
|
*
|
|
4630
4627
|
* const appConfig: ApplicationConfig = {
|
|
4631
4628
|
* providers: [{provide: TRANSLATIONS_FORMAT, useValue: 'xlf' }]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular/core",
|
|
3
|
-
"version": "20.1.0-next.
|
|
3
|
+
"version": "20.1.0-next.2",
|
|
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": "20.1.0-next.
|
|
49
|
+
"@angular/compiler": "20.1.0-next.2",
|
|
50
50
|
"rxjs": "^6.5.3 || ^7.4.0",
|
|
51
51
|
"zone.js": "~0.15.0"
|
|
52
52
|
},
|
package/primitives/di/index.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v20.1.0-next.
|
|
2
|
+
* @license Angular v20.1.0-next.2
|
|
3
3
|
* (c) 2010-2025 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
import { ReactiveNode, ValueEqualityFn, SIGNAL } from '../../graph.d-BcIOep_B.js';
|
|
8
8
|
export { REACTIVE_NODE, Reactive, ReactiveHookFn, consumerAfterComputation, consumerBeforeComputation, consumerDestroy, consumerMarkDirty, consumerPollProducersForChange, defaultEquals, getActiveConsumer, isInNotificationPhase, isReactive, producerAccessed, producerIncrementEpoch, producerMarkClean, producerNotifyConsumers, producerUpdateValueVersion, producerUpdatesAllowed, runPostProducerCreatedFn, setActiveConsumer, setPostProducerCreatedFn } from '../../graph.d-BcIOep_B.js';
|
|
9
|
-
import { SignalNode } from '../../signal.d-
|
|
10
|
-
export { SIGNAL_NODE, SignalGetter, createSignal,
|
|
9
|
+
import { SignalNode } from '../../signal.d-BcmOdASA.js';
|
|
10
|
+
export { SIGNAL_NODE, SignalGetter, createSignal, runPostSignalSetFn, setPostSignalSetFn, signalGetFn, signalSetFn, signalUpdateFn } from '../../signal.d-BcmOdASA.js';
|
|
11
11
|
export { setAlternateWeakRefImpl } from '../../weak_ref.d-eGOEP9S1.js';
|
|
12
12
|
|
|
13
13
|
/**
|
package/rxjs-interop/index.d.ts
CHANGED
package/schematics/bundles/{apply_import_manager-CSEu0fby.cjs → apply_import_manager-BsIRDO9W.cjs}
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
/**
|
|
3
|
-
* @license Angular v20.1.0-next.
|
|
3
|
+
* @license Angular v20.1.0-next.2
|
|
4
4
|
* (c) 2010-2025 Google LLC. https://angular.io/
|
|
5
5
|
* License: MIT
|
|
6
6
|
*/
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
|
|
9
9
|
var ts = require('typescript');
|
|
10
10
|
require('os');
|
|
11
|
-
var checker = require('./checker-
|
|
12
|
-
var project_paths = require('./project_paths-
|
|
11
|
+
var checker = require('./checker-CY7a8ko8.cjs');
|
|
12
|
+
var project_paths = require('./project_paths-C5Df24y1.cjs');
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
15
|
* Applies import manager changes, and writes them as replacements the
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
/**
|
|
3
|
-
* @license Angular v20.1.0-next.
|
|
3
|
+
* @license Angular v20.1.0-next.2
|
|
4
4
|
* (c) 2010-2025 Google LLC. https://angular.io/
|
|
5
5
|
* License: MIT
|
|
6
6
|
*/
|
|
@@ -32082,7 +32082,7 @@ function isAttrNode(ast) {
|
|
|
32082
32082
|
* @description
|
|
32083
32083
|
* Entry point for all public APIs of the compiler package.
|
|
32084
32084
|
*/
|
|
32085
|
-
new Version('20.1.0-next.
|
|
32085
|
+
new Version('20.1.0-next.2');
|
|
32086
32086
|
|
|
32087
32087
|
//////////////////////////////////////
|
|
32088
32088
|
// THIS FILE HAS GLOBAL SIDE EFFECT //
|
|
@@ -33102,7 +33102,7 @@ class NodeJSPathManipulation {
|
|
|
33102
33102
|
// G3-ESM-MARKER: G3 uses CommonJS, but externally everything in ESM.
|
|
33103
33103
|
// CommonJS/ESM interop for determining the current file name and containing dir.
|
|
33104
33104
|
const isCommonJS = typeof __filename !== 'undefined';
|
|
33105
|
-
const currentFileUrl = isCommonJS ? null : (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('checker-
|
|
33105
|
+
const currentFileUrl = isCommonJS ? null : (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('checker-CY7a8ko8.cjs', document.baseURI).href));
|
|
33106
33106
|
const currentFileName = isCommonJS ? __filename : url.fileURLToPath(currentFileUrl);
|
|
33107
33107
|
/**
|
|
33108
33108
|
* A wrapper around the Node.js file-system that supports readonly operations and path manipulation.
|
|
@@ -50305,6 +50305,7 @@ exports.ParseSourceFile = ParseSourceFile;
|
|
|
50305
50305
|
exports.ParseSourceSpan = ParseSourceSpan;
|
|
50306
50306
|
exports.Parser = Parser$1;
|
|
50307
50307
|
exports.Placeholder = Placeholder;
|
|
50308
|
+
exports.PrefixNot = PrefixNot;
|
|
50308
50309
|
exports.PropertyRead = PropertyRead;
|
|
50309
50310
|
exports.QUERY_INITIALIZER_FNS = QUERY_INITIALIZER_FNS;
|
|
50310
50311
|
exports.R3TargetBinder = R3TargetBinder;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
/**
|
|
3
|
-
* @license Angular v20.1.0-next.
|
|
3
|
+
* @license Angular v20.1.0-next.2
|
|
4
4
|
* (c) 2010-2025 Google LLC. https://angular.io/
|
|
5
5
|
* License: MIT
|
|
6
6
|
*/
|
|
@@ -8,14 +8,13 @@
|
|
|
8
8
|
|
|
9
9
|
require('@angular-devkit/core');
|
|
10
10
|
require('node:path/posix');
|
|
11
|
-
var project_paths = require('./project_paths-
|
|
11
|
+
var project_paths = require('./project_paths-C5Df24y1.cjs');
|
|
12
12
|
var ts = require('typescript');
|
|
13
13
|
require('os');
|
|
14
|
-
var checker = require('./checker-
|
|
15
|
-
var index = require('./index-
|
|
14
|
+
var checker = require('./checker-CY7a8ko8.cjs');
|
|
15
|
+
var index = require('./index-BUgQDm-J.cjs');
|
|
16
16
|
require('path');
|
|
17
|
-
var apply_import_manager = require('./apply_import_manager-
|
|
18
|
-
var leading_space = require('./leading_space-D9nQ8UQC.cjs');
|
|
17
|
+
var apply_import_manager = require('./apply_import_manager-BsIRDO9W.cjs');
|
|
19
18
|
require('@angular-devkit/schematics');
|
|
20
19
|
require('./project_tsconfig_paths-CDVxT6Ov.cjs');
|
|
21
20
|
require('fs');
|
|
@@ -207,7 +206,10 @@ class UnusedImportsMigration extends project_paths.TsurgeFunnelMigration {
|
|
|
207
206
|
// Filter out the unused identifiers from an array.
|
|
208
207
|
partialRemovals.forEach((toRemove, parent) => {
|
|
209
208
|
toRemove.forEach((node) => {
|
|
210
|
-
replacements.push(new project_paths.Replacement(project_paths.projectFile(sourceFile, info), getArrayElementRemovalUpdate(node,
|
|
209
|
+
replacements.push(new project_paths.Replacement(project_paths.projectFile(sourceFile, info), getArrayElementRemovalUpdate(node, sourceText)));
|
|
210
|
+
});
|
|
211
|
+
stripTrailingSameLineCommas(parent, toRemove, sourceText)?.forEach((update) => {
|
|
212
|
+
replacements.push(new project_paths.Replacement(project_paths.projectFile(sourceFile, info), update));
|
|
211
213
|
});
|
|
212
214
|
});
|
|
213
215
|
// Attempt to clean up unused import declarations. Note that this isn't foolproof, because we
|
|
@@ -229,7 +231,7 @@ class UnusedImportsMigration extends project_paths.TsurgeFunnelMigration {
|
|
|
229
231
|
}
|
|
230
232
|
}
|
|
231
233
|
/** Generates a `TextUpdate` for the removal of an array element. */
|
|
232
|
-
function getArrayElementRemovalUpdate(node,
|
|
234
|
+
function getArrayElementRemovalUpdate(node, sourceText) {
|
|
233
235
|
let position = node.getStart();
|
|
234
236
|
let end = node.getEnd();
|
|
235
237
|
let toInsert = '';
|
|
@@ -249,27 +251,39 @@ function getArrayElementRemovalUpdate(node, parent, sourceText) {
|
|
|
249
251
|
break;
|
|
250
252
|
}
|
|
251
253
|
}
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
254
|
+
return new project_paths.TextUpdate({ position, end, toInsert });
|
|
255
|
+
}
|
|
256
|
+
/** Returns `TextUpdate`s that will remove any leftover trailing commas on the same line. */
|
|
257
|
+
function stripTrailingSameLineCommas(node, toRemove, sourceText) {
|
|
258
|
+
let updates = null;
|
|
259
|
+
for (let i = 0; i < node.elements.length; i++) {
|
|
260
|
+
// Skip over elements that are being removed already.
|
|
261
|
+
if (toRemove.has(node.elements[i])) {
|
|
262
|
+
continue;
|
|
263
|
+
}
|
|
264
|
+
// An element might have a trailing comma if all elements after it have been removed.
|
|
265
|
+
const mightHaveTrailingComma = node.elements.slice(i + 1).every((e) => toRemove.has(e));
|
|
266
|
+
if (!mightHaveTrailingComma) {
|
|
267
|
+
continue;
|
|
268
|
+
}
|
|
269
|
+
const position = node.elements[i].getEnd();
|
|
270
|
+
let end = position;
|
|
271
|
+
// If the item might have a trailing comma, start looking after it until we hit a line break.
|
|
272
|
+
for (let charIndex = position; charIndex < node.getEnd(); charIndex++) {
|
|
273
|
+
const char = sourceText[charIndex];
|
|
259
274
|
if (char === ',' || char === ' ') {
|
|
260
|
-
|
|
275
|
+
end++;
|
|
261
276
|
}
|
|
262
277
|
else {
|
|
263
|
-
if (
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
toInsert = leading_space.getLeadingLineWhitespaceOfNode(node);
|
|
278
|
+
if (char !== '\n' && position !== end) {
|
|
279
|
+
updates ??= [];
|
|
280
|
+
updates.push(new project_paths.TextUpdate({ position, end, toInsert: '' }));
|
|
267
281
|
}
|
|
268
282
|
break;
|
|
269
283
|
}
|
|
270
284
|
}
|
|
271
285
|
}
|
|
272
|
-
return
|
|
286
|
+
return updates;
|
|
273
287
|
}
|
|
274
288
|
|
|
275
289
|
function migrate() {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
/**
|
|
3
|
-
* @license Angular v20.1.0-next.
|
|
3
|
+
* @license Angular v20.1.0-next.2
|
|
4
4
|
* (c) 2010-2025 Google LLC. https://angular.io/
|
|
5
5
|
* License: MIT
|
|
6
6
|
*/
|
|
7
7
|
'use strict';
|
|
8
8
|
|
|
9
9
|
var ts = require('typescript');
|
|
10
|
-
var checker = require('./checker-
|
|
10
|
+
var checker = require('./checker-CY7a8ko8.cjs');
|
|
11
11
|
require('os');
|
|
12
12
|
var p = require('path');
|
|
13
13
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
/**
|
|
3
|
-
* @license Angular v20.1.0-next.
|
|
3
|
+
* @license Angular v20.1.0-next.2
|
|
4
4
|
* (c) 2010-2025 Google LLC. https://angular.io/
|
|
5
5
|
* License: MIT
|
|
6
6
|
*/
|
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
|
|
9
9
|
var schematics = require('@angular-devkit/schematics');
|
|
10
10
|
var p = require('path');
|
|
11
|
-
var compiler_host = require('./compiler_host-
|
|
12
|
-
var checker = require('./checker-
|
|
11
|
+
var compiler_host = require('./compiler_host-DNYQkH4l.cjs');
|
|
12
|
+
var checker = require('./checker-CY7a8ko8.cjs');
|
|
13
13
|
var ts = require('typescript');
|
|
14
14
|
var project_tsconfig_paths = require('./project_tsconfig_paths-CDVxT6Ov.cjs');
|
|
15
15
|
require('os');
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
/**
|
|
3
|
-
* @license Angular v20.1.0-next.
|
|
3
|
+
* @license Angular v20.1.0-next.2
|
|
4
4
|
* (c) 2010-2025 Google LLC. https://angular.io/
|
|
5
5
|
* License: MIT
|
|
6
6
|
*/
|
|
7
7
|
'use strict';
|
|
8
8
|
|
|
9
|
-
var checker = require('./checker-
|
|
9
|
+
var checker = require('./checker-CY7a8ko8.cjs');
|
|
10
10
|
require('typescript');
|
|
11
11
|
require('os');
|
|
12
|
-
var apply_import_manager = require('./apply_import_manager-
|
|
13
|
-
require('./index-
|
|
12
|
+
var apply_import_manager = require('./apply_import_manager-BsIRDO9W.cjs');
|
|
13
|
+
require('./index-BUgQDm-J.cjs');
|
|
14
14
|
require('path');
|
|
15
|
-
var project_paths = require('./project_paths-
|
|
15
|
+
var project_paths = require('./project_paths-C5Df24y1.cjs');
|
|
16
16
|
var imports = require('./imports-CIX-JgAN.cjs');
|
|
17
17
|
require('@angular-devkit/core');
|
|
18
18
|
require('node:path/posix');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
/**
|
|
3
|
-
* @license Angular v20.1.0-next.
|
|
3
|
+
* @license Angular v20.1.0-next.2
|
|
4
4
|
* (c) 2010-2025 Google LLC. https://angular.io/
|
|
5
5
|
* License: MIT
|
|
6
6
|
*/
|
|
@@ -8,10 +8,10 @@
|
|
|
8
8
|
|
|
9
9
|
var ts = require('typescript');
|
|
10
10
|
require('os');
|
|
11
|
-
var checker = require('./checker-
|
|
12
|
-
var index = require('./index-
|
|
11
|
+
var checker = require('./checker-CY7a8ko8.cjs');
|
|
12
|
+
var index = require('./index-BUgQDm-J.cjs');
|
|
13
13
|
require('path');
|
|
14
|
-
var project_paths = require('./project_paths-
|
|
14
|
+
var project_paths = require('./project_paths-C5Df24y1.cjs');
|
|
15
15
|
|
|
16
16
|
function getMemberName(member) {
|
|
17
17
|
if (member.name === undefined) {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
/**
|
|
3
|
-
* @license Angular v20.1.0-next.
|
|
3
|
+
* @license Angular v20.1.0-next.2
|
|
4
4
|
* (c) 2010-2025 Google LLC. https://angular.io/
|
|
5
5
|
* License: MIT
|
|
6
6
|
*/
|
|
7
7
|
'use strict';
|
|
8
8
|
|
|
9
|
-
var checker = require('./checker-
|
|
9
|
+
var checker = require('./checker-CY7a8ko8.cjs');
|
|
10
10
|
var ts = require('typescript');
|
|
11
11
|
var p = require('path');
|
|
12
12
|
require('os');
|
|
@@ -891,7 +891,7 @@ const MINIMUM_PARTIAL_LINKER_DEFER_SUPPORT_VERSION = '18.0.0';
|
|
|
891
891
|
function compileDeclareClassMetadata(metadata) {
|
|
892
892
|
const definitionMap = new checker.DefinitionMap();
|
|
893
893
|
definitionMap.set('minVersion', checker.literal(MINIMUM_PARTIAL_LINKER_VERSION$5));
|
|
894
|
-
definitionMap.set('version', checker.literal('20.1.0-next.
|
|
894
|
+
definitionMap.set('version', checker.literal('20.1.0-next.2'));
|
|
895
895
|
definitionMap.set('ngImport', checker.importExpr(checker.Identifiers.core));
|
|
896
896
|
definitionMap.set('type', metadata.type);
|
|
897
897
|
definitionMap.set('decorators', metadata.decorators);
|
|
@@ -909,7 +909,7 @@ function compileComponentDeclareClassMetadata(metadata, dependencies) {
|
|
|
909
909
|
callbackReturnDefinitionMap.set('ctorParameters', metadata.ctorParameters ?? checker.literal(null));
|
|
910
910
|
callbackReturnDefinitionMap.set('propDecorators', metadata.propDecorators ?? checker.literal(null));
|
|
911
911
|
definitionMap.set('minVersion', checker.literal(MINIMUM_PARTIAL_LINKER_DEFER_SUPPORT_VERSION));
|
|
912
|
-
definitionMap.set('version', checker.literal('20.1.0-next.
|
|
912
|
+
definitionMap.set('version', checker.literal('20.1.0-next.2'));
|
|
913
913
|
definitionMap.set('ngImport', checker.importExpr(checker.Identifiers.core));
|
|
914
914
|
definitionMap.set('type', metadata.type);
|
|
915
915
|
definitionMap.set('resolveDeferredDeps', compileComponentMetadataAsyncResolver(dependencies));
|
|
@@ -1004,7 +1004,7 @@ function createDirectiveDefinitionMap(meta) {
|
|
|
1004
1004
|
const definitionMap = new checker.DefinitionMap();
|
|
1005
1005
|
const minVersion = getMinimumVersionForPartialOutput(meta);
|
|
1006
1006
|
definitionMap.set('minVersion', checker.literal(minVersion));
|
|
1007
|
-
definitionMap.set('version', checker.literal('20.1.0-next.
|
|
1007
|
+
definitionMap.set('version', checker.literal('20.1.0-next.2'));
|
|
1008
1008
|
// e.g. `type: MyDirective`
|
|
1009
1009
|
definitionMap.set('type', meta.type.value);
|
|
1010
1010
|
if (meta.isStandalone !== undefined) {
|
|
@@ -1420,7 +1420,7 @@ const MINIMUM_PARTIAL_LINKER_VERSION$4 = '12.0.0';
|
|
|
1420
1420
|
function compileDeclareFactoryFunction(meta) {
|
|
1421
1421
|
const definitionMap = new checker.DefinitionMap();
|
|
1422
1422
|
definitionMap.set('minVersion', checker.literal(MINIMUM_PARTIAL_LINKER_VERSION$4));
|
|
1423
|
-
definitionMap.set('version', checker.literal('20.1.0-next.
|
|
1423
|
+
definitionMap.set('version', checker.literal('20.1.0-next.2'));
|
|
1424
1424
|
definitionMap.set('ngImport', checker.importExpr(checker.Identifiers.core));
|
|
1425
1425
|
definitionMap.set('type', meta.type.value);
|
|
1426
1426
|
definitionMap.set('deps', compileDependencies(meta.deps));
|
|
@@ -1455,7 +1455,7 @@ function compileDeclareInjectableFromMetadata(meta) {
|
|
|
1455
1455
|
function createInjectableDefinitionMap(meta) {
|
|
1456
1456
|
const definitionMap = new checker.DefinitionMap();
|
|
1457
1457
|
definitionMap.set('minVersion', checker.literal(MINIMUM_PARTIAL_LINKER_VERSION$3));
|
|
1458
|
-
definitionMap.set('version', checker.literal('20.1.0-next.
|
|
1458
|
+
definitionMap.set('version', checker.literal('20.1.0-next.2'));
|
|
1459
1459
|
definitionMap.set('ngImport', checker.importExpr(checker.Identifiers.core));
|
|
1460
1460
|
definitionMap.set('type', meta.type.value);
|
|
1461
1461
|
// Only generate providedIn property if it has a non-null value
|
|
@@ -1506,7 +1506,7 @@ function compileDeclareInjectorFromMetadata(meta) {
|
|
|
1506
1506
|
function createInjectorDefinitionMap(meta) {
|
|
1507
1507
|
const definitionMap = new checker.DefinitionMap();
|
|
1508
1508
|
definitionMap.set('minVersion', checker.literal(MINIMUM_PARTIAL_LINKER_VERSION$2));
|
|
1509
|
-
definitionMap.set('version', checker.literal('20.1.0-next.
|
|
1509
|
+
definitionMap.set('version', checker.literal('20.1.0-next.2'));
|
|
1510
1510
|
definitionMap.set('ngImport', checker.importExpr(checker.Identifiers.core));
|
|
1511
1511
|
definitionMap.set('type', meta.type.value);
|
|
1512
1512
|
definitionMap.set('providers', meta.providers);
|
|
@@ -1539,7 +1539,7 @@ function createNgModuleDefinitionMap(meta) {
|
|
|
1539
1539
|
throw new Error('Invalid path! Local compilation mode should not get into the partial compilation path');
|
|
1540
1540
|
}
|
|
1541
1541
|
definitionMap.set('minVersion', checker.literal(MINIMUM_PARTIAL_LINKER_VERSION$1));
|
|
1542
|
-
definitionMap.set('version', checker.literal('20.1.0-next.
|
|
1542
|
+
definitionMap.set('version', checker.literal('20.1.0-next.2'));
|
|
1543
1543
|
definitionMap.set('ngImport', checker.importExpr(checker.Identifiers.core));
|
|
1544
1544
|
definitionMap.set('type', meta.type.value);
|
|
1545
1545
|
// We only generate the keys in the metadata if the arrays contain values.
|
|
@@ -1590,7 +1590,7 @@ function compileDeclarePipeFromMetadata(meta) {
|
|
|
1590
1590
|
function createPipeDefinitionMap(meta) {
|
|
1591
1591
|
const definitionMap = new checker.DefinitionMap();
|
|
1592
1592
|
definitionMap.set('minVersion', checker.literal(MINIMUM_PARTIAL_LINKER_VERSION));
|
|
1593
|
-
definitionMap.set('version', checker.literal('20.1.0-next.
|
|
1593
|
+
definitionMap.set('version', checker.literal('20.1.0-next.2'));
|
|
1594
1594
|
definitionMap.set('ngImport', checker.importExpr(checker.Identifiers.core));
|
|
1595
1595
|
// e.g. `type: MyPipe`
|
|
1596
1596
|
definitionMap.set('type', meta.type.value);
|
|
@@ -11522,7 +11522,7 @@ class PipeDecoratorHandler {
|
|
|
11522
11522
|
* @description
|
|
11523
11523
|
* Entry point for all public APIs of the compiler-cli package.
|
|
11524
11524
|
*/
|
|
11525
|
-
new checker.Version('20.1.0-next.
|
|
11525
|
+
new checker.Version('20.1.0-next.2');
|
|
11526
11526
|
|
|
11527
11527
|
/**
|
|
11528
11528
|
* Whether a given decorator should be treated as an Angular decorator.
|
|
@@ -15547,6 +15547,7 @@ class InterpolatedSignalCheck extends TemplateCheckWithVisitor {
|
|
|
15547
15547
|
// interpolations like `{{ mySignal }}`
|
|
15548
15548
|
if (node instanceof checker.Interpolation) {
|
|
15549
15549
|
return node.expressions
|
|
15550
|
+
.map((item) => (item instanceof checker.PrefixNot ? item.expression : item))
|
|
15550
15551
|
.filter((item) => item instanceof checker.PropertyRead)
|
|
15551
15552
|
.flatMap((item) => buildDiagnosticForSignal(ctx, item, component));
|
|
15552
15553
|
}
|
|
@@ -15559,6 +15560,7 @@ class InterpolatedSignalCheck extends TemplateCheckWithVisitor {
|
|
|
15559
15560
|
return [];
|
|
15560
15561
|
}
|
|
15561
15562
|
// otherwise, we check if the node is
|
|
15563
|
+
const nodeAst = isPropertyReadNodeAst(node);
|
|
15562
15564
|
if (
|
|
15563
15565
|
// a bound property like `[prop]="mySignal"`
|
|
15564
15566
|
(node.type === checker.BindingType.Property ||
|
|
@@ -15570,14 +15572,25 @@ class InterpolatedSignalCheck extends TemplateCheckWithVisitor {
|
|
|
15570
15572
|
node.type === checker.BindingType.Attribute ||
|
|
15571
15573
|
// or an animation binding like `[@myAnimation]="mySignal"`
|
|
15572
15574
|
node.type === checker.BindingType.Animation) &&
|
|
15573
|
-
|
|
15574
|
-
|
|
15575
|
-
return buildDiagnosticForSignal(ctx, node.value.ast, component);
|
|
15575
|
+
nodeAst) {
|
|
15576
|
+
return buildDiagnosticForSignal(ctx, nodeAst, component);
|
|
15576
15577
|
}
|
|
15577
15578
|
}
|
|
15578
15579
|
return [];
|
|
15579
15580
|
}
|
|
15580
15581
|
}
|
|
15582
|
+
function isPropertyReadNodeAst(node) {
|
|
15583
|
+
if (node.value instanceof checker.ASTWithSource === false) {
|
|
15584
|
+
return undefined;
|
|
15585
|
+
}
|
|
15586
|
+
if (node.value.ast instanceof checker.PrefixNot && node.value.ast.expression instanceof checker.PropertyRead) {
|
|
15587
|
+
return node.value.ast.expression;
|
|
15588
|
+
}
|
|
15589
|
+
if (node.value.ast instanceof checker.PropertyRead) {
|
|
15590
|
+
return node.value.ast;
|
|
15591
|
+
}
|
|
15592
|
+
return undefined;
|
|
15593
|
+
}
|
|
15581
15594
|
function isFunctionInstanceProperty(name) {
|
|
15582
15595
|
return FUNCTION_INSTANCE_PROPERTIES.has(name);
|
|
15583
15596
|
}
|
|
@@ -19374,7 +19387,7 @@ var semver = /*@__PURE__*/getDefaultExportFromCjs(semverExports);
|
|
|
19374
19387
|
* @param minVersion Minimum required version for the feature.
|
|
19375
19388
|
*/
|
|
19376
19389
|
function coreVersionSupportsFeature(coreVersion, minVersion) {
|
|
19377
|
-
// A version of `20.1.0-next.
|
|
19390
|
+
// A version of `20.1.0-next.2` usually means that core is at head so it supports
|
|
19378
19391
|
// all features. Use string interpolation prevent the placeholder from being replaced
|
|
19379
19392
|
// with the current version during build time.
|
|
19380
19393
|
if (coreVersion === `0.0.0-${'PLACEHOLDER'}`) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
/**
|
|
3
|
-
* @license Angular v20.1.0-next.
|
|
3
|
+
* @license Angular v20.1.0-next.2
|
|
4
4
|
* (c) 2010-2025 Google LLC. https://angular.io/
|
|
5
5
|
* License: MIT
|
|
6
6
|
*/
|
|
@@ -8,11 +8,11 @@
|
|
|
8
8
|
|
|
9
9
|
var ts = require('typescript');
|
|
10
10
|
require('os');
|
|
11
|
-
var checker = require('./checker-
|
|
12
|
-
require('./index-
|
|
11
|
+
var checker = require('./checker-CY7a8ko8.cjs');
|
|
12
|
+
require('./index-BUgQDm-J.cjs');
|
|
13
13
|
require('path');
|
|
14
|
-
var project_paths = require('./project_paths-
|
|
15
|
-
var apply_import_manager = require('./apply_import_manager-
|
|
14
|
+
var project_paths = require('./project_paths-C5Df24y1.cjs');
|
|
15
|
+
var apply_import_manager = require('./apply_import_manager-BsIRDO9W.cjs');
|
|
16
16
|
var imports = require('./imports-CIX-JgAN.cjs');
|
|
17
17
|
require('@angular-devkit/core');
|
|
18
18
|
require('node:path/posix');
|