@angular/core 21.2.0 → 22.0.0-next.0
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/_debug_node-chunk.mjs +613 -523
- package/fesm2022/_debug_node-chunk.mjs.map +1 -1
- package/fesm2022/_effect-chunk.mjs +1 -1
- package/fesm2022/_not_found-chunk.mjs +1 -1
- package/fesm2022/{_effect-chunk2.mjs → _pending_tasks-chunk.mjs} +31 -31
- package/fesm2022/_pending_tasks-chunk.mjs.map +1 -0
- package/fesm2022/_resource-chunk.mjs +92 -30
- package/fesm2022/_resource-chunk.mjs.map +1 -1
- package/fesm2022/_untracked-chunk.mjs +1 -1
- package/fesm2022/_weak_ref-chunk.mjs +1 -1
- package/fesm2022/core.mjs +5 -5
- 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 +1 -1
- package/fesm2022/rxjs-interop.mjs +2 -2
- package/fesm2022/testing.mjs +14 -2
- package/fesm2022/testing.mjs.map +1 -1
- package/package.json +3 -3
- package/schematics/bundles/apply_import_manager-CxA_YYgB.cjs +1 -1
- package/schematics/bundles/change-detection-eager.cjs +155 -0
- package/schematics/bundles/cleanup-unused-imports.cjs +1 -1
- package/schematics/bundles/common-to-standalone-migration.cjs +4 -4
- package/schematics/bundles/compiler_host-CY14HvaP.cjs +1 -1
- package/schematics/bundles/control-flow-migration.cjs +1 -1
- package/schematics/bundles/http-xhr-backend.cjs +118 -0
- package/schematics/bundles/{imports-CVmcbVA9.cjs → imports-CKV-ITqD.cjs} +4 -3
- package/schematics/bundles/index-BtLcQH8g.cjs +1 -1
- package/schematics/bundles/inject-migration.cjs +3 -3
- 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 → ng_component_template-DPAF1aEA.cjs} +2 -2
- package/schematics/bundles/{ng_decorators-DYy6II6x.cjs → ng_decorators-IVztR9rk.cjs} +2 -2
- package/schematics/bundles/ngclass-to-class-migration.cjs +4 -4
- package/schematics/bundles/ngstyle-to-style-migration.cjs +4 -4
- 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 +4 -16
- package/schematics/bundles/router-testing-module-migration.cjs +1 -1
- package/schematics/bundles/self-closing-tags-migration.cjs +4 -4
- 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 +20 -6
- package/schematics/collection.json +5 -5
- package/schematics/migrations.json +9 -30
- package/types/_api-chunk.d.ts +31 -4
- package/types/_chrome_dev_tools_performance-chunk.d.ts +1 -1
- package/types/_discovery-chunk.d.ts +2 -2
- 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 +44 -14
- 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 +1 -1
- package/types/testing.d.ts +6 -1
- package/fesm2022/_effect-chunk2.mjs.map +0 -1
- package/schematics/bundles/add-bootstrap-context-to-server-main.cjs +0 -117
- package/schematics/bundles/application-config-core.cjs +0 -84
- package/schematics/bundles/bootstrap-options-migration.cjs +0 -644
- package/schematics/bundles/router-current-navigation.cjs +0 -103
- package/schematics/bundles/router-last-successful-navigation.cjs +0 -103
- package/schematics/bundles/symbol-DZeHSR-V.cjs +0 -26
- /package/schematics/{migrations → ng-generate}/common-to-standalone-migration/schema.json +0 -0
- /package/schematics/{migrations → ng-generate}/control-flow-migration/schema.json +0 -0
- /package/schematics/{migrations → ng-generate}/ngclass-to-class-migration/schema.json +0 -0
- /package/schematics/{migrations → ng-generate}/ngstyle-to-style-migration/schema.json +0 -0
- /package/schematics/{migrations → ng-generate}/router-testing-module-migration/schema.json +0 -0
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular
|
|
2
|
+
* @license Angular v22.0.0-next.0
|
|
3
3
|
* (c) 2010-2026 Google LLC. https://angular.dev/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
import { getActiveConsumer, setActiveConsumer as setActiveConsumer$1, createSignal, SIGNAL, consumerDestroy, BASE_EFFECT_NODE, isInNotificationPhase, runEffect } from './_effect-chunk.mjs';
|
|
8
|
-
import { BehaviorSubject, Observable, Subject, Subscription } from 'rxjs';
|
|
9
8
|
import { isNotFound, getCurrentInjector, setCurrentInjector } from './_not_found-chunk.mjs';
|
|
10
9
|
import { setActiveConsumer } from '@angular/core/primitives/signals';
|
|
11
10
|
import { isNotFound as isNotFound$1 } from '@angular/core/primitives/di';
|
|
11
|
+
import { BehaviorSubject, Observable, Subject, Subscription } from 'rxjs';
|
|
12
12
|
|
|
13
13
|
class Version {
|
|
14
14
|
full;
|
|
@@ -23,7 +23,7 @@ class Version {
|
|
|
23
23
|
this.patch = parts.slice(2).join('.');
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
|
-
const VERSION = /* @__PURE__ */new Version('
|
|
26
|
+
const VERSION = /* @__PURE__ */new Version('22.0.0-next.0');
|
|
27
27
|
|
|
28
28
|
const DOC_PAGE_BASE_URL = (() => {
|
|
29
29
|
const full = VERSION.full;
|
|
@@ -2729,33 +2729,6 @@ const PROVIDED_ZONELESS = new InjectionToken(typeof ngDevMode === 'undefined' ||
|
|
|
2729
2729
|
});
|
|
2730
2730
|
const SCHEDULE_IN_ROOT_ZONE = new InjectionToken(typeof ngDevMode === 'undefined' || ngDevMode ? 'run changes outside zone in root' : '');
|
|
2731
2731
|
|
|
2732
|
-
class PendingTasks {
|
|
2733
|
-
internalPendingTasks = inject(PendingTasksInternal);
|
|
2734
|
-
scheduler = inject(ChangeDetectionScheduler);
|
|
2735
|
-
errorHandler = inject(INTERNAL_APPLICATION_ERROR_HANDLER);
|
|
2736
|
-
add() {
|
|
2737
|
-
const taskId = this.internalPendingTasks.add();
|
|
2738
|
-
return () => {
|
|
2739
|
-
if (!this.internalPendingTasks.has(taskId)) {
|
|
2740
|
-
return;
|
|
2741
|
-
}
|
|
2742
|
-
this.scheduler.notify(11);
|
|
2743
|
-
this.internalPendingTasks.remove(taskId);
|
|
2744
|
-
};
|
|
2745
|
-
}
|
|
2746
|
-
run(fn) {
|
|
2747
|
-
const removeTask = this.add();
|
|
2748
|
-
fn().catch(this.errorHandler).finally(removeTask);
|
|
2749
|
-
}
|
|
2750
|
-
static ɵprov =
|
|
2751
|
-
/* @__PURE__ */
|
|
2752
|
-
ɵɵdefineInjectable({
|
|
2753
|
-
token: PendingTasks,
|
|
2754
|
-
providedIn: 'root',
|
|
2755
|
-
factory: () => new PendingTasks()
|
|
2756
|
-
});
|
|
2757
|
-
}
|
|
2758
|
-
|
|
2759
2732
|
class EffectScheduler {
|
|
2760
2733
|
static ɵprov =
|
|
2761
2734
|
/* @__PURE__ */
|
|
@@ -2973,5 +2946,32 @@ function createEffectFn(node, fn) {
|
|
|
2973
2946
|
};
|
|
2974
2947
|
}
|
|
2975
2948
|
|
|
2949
|
+
class PendingTasks {
|
|
2950
|
+
internalPendingTasks = inject(PendingTasksInternal);
|
|
2951
|
+
scheduler = inject(ChangeDetectionScheduler);
|
|
2952
|
+
errorHandler = inject(INTERNAL_APPLICATION_ERROR_HANDLER);
|
|
2953
|
+
add() {
|
|
2954
|
+
const taskId = this.internalPendingTasks.add();
|
|
2955
|
+
return () => {
|
|
2956
|
+
if (!this.internalPendingTasks.has(taskId)) {
|
|
2957
|
+
return;
|
|
2958
|
+
}
|
|
2959
|
+
this.scheduler.notify(11);
|
|
2960
|
+
this.internalPendingTasks.remove(taskId);
|
|
2961
|
+
};
|
|
2962
|
+
}
|
|
2963
|
+
run(fn) {
|
|
2964
|
+
const removeTask = this.add();
|
|
2965
|
+
fn().catch(this.errorHandler).finally(removeTask);
|
|
2966
|
+
}
|
|
2967
|
+
static ɵprov =
|
|
2968
|
+
/* @__PURE__ */
|
|
2969
|
+
ɵɵdefineInjectable({
|
|
2970
|
+
token: PendingTasks,
|
|
2971
|
+
providedIn: 'root',
|
|
2972
|
+
factory: () => new PendingTasks()
|
|
2973
|
+
});
|
|
2974
|
+
}
|
|
2975
|
+
|
|
2976
2976
|
export { AFTER_RENDER_SEQUENCES_TO_ADD, ANIMATIONS, CHILD_HEAD, CHILD_TAIL, CLEANUP, CONTAINER_HEADER_OFFSET, CONTEXT, ChangeDetectionScheduler, CheckNoChangesMode, DEBUG_TASK_TRACKER, DECLARATION_COMPONENT_VIEW, DECLARATION_LCONTAINER, DECLARATION_VIEW, DEHYDRATED_VIEWS, DOCUMENT, DOC_PAGE_BASE_URL, DestroyRef, EFFECTS, EFFECTS_TO_SCHEDULE, EMBEDDED_VIEW_INJECTOR, EMPTY_ARRAY, EMPTY_OBJ, ENVIRONMENT, ENVIRONMENT_INITIALIZER, ERROR_DETAILS_PAGE_BASE_URL, EffectRefImpl, EffectScheduler, EnvironmentInjector, ErrorHandler, EventEmitter, FLAGS, HEADER_OFFSET, HOST, HYDRATION, ID, INJECTOR$1 as INJECTOR, INJECTOR as INJECTOR$1, INJECTOR_DEF_TYPES, INJECTOR_SCOPE, INTERNAL_APPLICATION_ERROR_HANDLER, InjectionToken, Injector, MATH_ML_NAMESPACE, MOVED_VIEWS, NATIVE, NEXT, NG_COMP_DEF, NG_DIR_DEF, NG_ELEMENT_ID, NG_FACTORY_DEF, NG_INJ_DEF, NG_MOD_DEF, NG_PIPE_DEF, NG_PROV_DEF, NgZone, NoopNgZone, NullInjector, ON_DESTROY_HOOKS, PARENT, PREORDER_HOOK_FLAGS, PROVIDED_ZONELESS, PendingTasks, PendingTasksInternal, QUERIES, R3Injector, REACTIVE_TEMPLATE_CONSUMER, RENDERER, RuntimeError, SCHEDULE_IN_ROOT_ZONE, SCHEDULE_IN_ROOT_ZONE_DEFAULT, SVG_NAMESPACE, TVIEW, T_HOST, VERSION, VIEW_REFS, Version, ViewContext, XSS_SECURITY_URL, ZONELESS_ENABLED, _global, addToArray, angularZoneInstanceIdProperty, arrayEquals, arrayInsert2, arraySplice, assertComponentType, assertDefined, assertDirectiveDef, assertDomNode, assertElement, assertEqual, assertFirstCreatePass, assertFirstUpdatePass, assertFunction, assertGreaterThan, assertGreaterThanOrEqual, assertHasParent, assertInInjectionContext, assertIndexInDeclRange, assertIndexInExpandoRange, assertIndexInRange, assertInjectImplementationNotEqual, assertLContainer, assertLView, assertLessThan, assertNgModuleType, assertNodeInjector, assertNotDefined, assertNotEqual, assertNotInReactiveContext, assertNotReactive, assertNotSame, assertNumber, assertNumberInRange, assertOneOf, assertParentView, assertProjectionSlots, assertSame, assertString, assertTIcu, assertTNode, assertTNodeCreationIndex, assertTNodeForLView, assertTNodeForTView, attachInjectFlag, concatStringsWithSpace, convertToBitFlags, createInjector, createInjectorWithoutInjectorInstances, cyclicDependencyError, cyclicDependencyErrorWithDetails, debugStringifyTypeForError, decreaseElementDepthCount, deepForEach, effect, emitAfterRenderEffectPhaseCreatedEvent, emitInjectEvent, emitInjectorToCreateInstanceEvent, emitInstanceCreatedByInjectorEvent, emitProviderConfiguredEvent, enterDI, enterSkipHydrationBlock, enterView, errorHandlerEnvironmentInitializer, fillProperties, flatten, formatRuntimeError, forwardRef, getBindingIndex, getBindingRoot, getBindingsEnabled, getClosureSafeProperty, getComponentDef, getComponentLViewByIndex, getConstant, getContextLView, getCurrentDirectiveDef, getCurrentDirectiveIndex, getCurrentParentTNode, getCurrentQueryIndex, getCurrentTNode, getCurrentTNodePlaceholderOk, getDirectiveDef, getDirectiveDefOrThrow, getElementDepthCount, getFactoryDef, getInjectableDef, getInjectorDef, getLView, getLViewParent, getNamespace, getNativeByIndex, getNativeByTNode, getNativeByTNodeOrNull, getNgModuleDef, getNgModuleDefOrThrow, getNullInjector, getOrCreateLViewCleanup, getOrCreateTViewCleanup, getPipeDef, getSelectedIndex, getSelectedTNode, getTNode, getTView, hasI18n, importProvidersFrom, increaseElementDepthCount, incrementBindingIndex, initNgDevMode, inject, injectRootLimpMode, internalImportProvidersFrom, isClassProvider, isComponentDef, isComponentHost, isContentQueryHost, isCreationMode, isCurrentTNodeParent, isDestroyed, isDirectiveHost, isEnvironmentProviders, isExhaustiveCheckNoChanges, isForwardRef, isInCheckNoChangesMode, isInI18nBlock, isInInjectionContext, isInSkipHydrationBlock, isInjectable, isLContainer, isLView, isProjectionTNode, isRefreshingViews, isRootView, isSkipHydrationRootTNode, isStandalone, isTypeProvider, keyValueArrayGet, keyValueArrayIndexOf, keyValueArraySet, lastNodeWasCreated, leaveDI, leaveSkipHydrationBlock, leaveView, load, makeEnvironmentProviders, markAncestorsForTraversal, markViewForRefresh, newArray, nextBindingIndex, nextContextImpl, provideBrowserGlobalErrorListeners, provideEnvironmentInitializer, providerToFactory, removeFromArray, removeLViewOnDestroy, renderStringify, requiresRefreshOrTraversal, resetPreOrderHookFlags, resolveForwardRef, runInInjectionContext, runInInjectorProfilerContext, scheduleCallbackWithMicrotask, scheduleCallbackWithRafRace, setBindingIndex, setBindingRootForHostBindings, setCurrentDirectiveIndex, setCurrentQueryIndex, setCurrentTNode, setCurrentTNodeAsNotParent, setInI18nBlock, setInjectImplementation, setInjectorProfiler, setInjectorProfilerContext, setIsInCheckNoChangesMode, setIsRefreshingViews, setSelectedIndex, signal, signalAsReadonlyFn, store, storeCleanupWithContext, storeLViewOnDestroy, stringify, stringifyForError, throwError, throwProviderNotFoundError, truncateMiddle, unwrapLView, unwrapRNode, updateAncestorTraversalFlagsOnAttach, viewAttachedToChangeDetector, viewAttachedToContainer, walkProviderTree, walkUpViews, wasLastNodeCreated, ɵunwrapWritableSignal, ɵɵdefineInjectable, ɵɵdefineInjector, ɵɵdisableBindings, ɵɵenableBindings, ɵɵinject, ɵɵinvalidFactoryDep, ɵɵnamespaceHTML, ɵɵnamespaceMathML, ɵɵnamespaceSVG, ɵɵresetView, ɵɵrestoreView };
|
|
2977
|
-
//# sourceMappingURL=
|
|
2977
|
+
//# sourceMappingURL=_pending_tasks-chunk.mjs.map
|