@angular/core 20.2.0 → 21.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.
Files changed (58) hide show
  1. package/api.d.d.ts +1 -1
  2. package/chrome_dev_tools_performance.d.d.ts +1 -1
  3. package/discovery.d.d.ts +8 -2
  4. package/event_dispatcher.d.d.ts +1 -1
  5. package/fesm2022/attribute.mjs +1 -1
  6. package/fesm2022/core.mjs +9 -6
  7. package/fesm2022/core.mjs.map +1 -1
  8. package/fesm2022/debug_node.mjs +13 -4
  9. package/fesm2022/debug_node.mjs.map +1 -1
  10. package/fesm2022/not_found.mjs +1 -1
  11. package/fesm2022/primitives/di.mjs +1 -1
  12. package/fesm2022/primitives/event-dispatch.mjs +1 -1
  13. package/fesm2022/primitives/signals.mjs +1 -1
  14. package/fesm2022/resource.mjs +1 -1
  15. package/fesm2022/root_effect_scheduler.mjs +1 -1
  16. package/fesm2022/rxjs-interop.mjs +1 -1
  17. package/fesm2022/signal.mjs +1 -1
  18. package/fesm2022/testing.mjs +1 -1
  19. package/fesm2022/untracked.mjs +1 -1
  20. package/fesm2022/weak_ref.mjs +1 -1
  21. package/graph.d.d.ts +1 -1
  22. package/index.d.ts +3 -2
  23. package/package.json +2 -2
  24. package/primitives/di/index.d.ts +1 -1
  25. package/primitives/event-dispatch/index.d.ts +1 -1
  26. package/primitives/signals/index.d.ts +1 -1
  27. package/rxjs-interop/index.d.ts +1 -1
  28. package/schematics/bundles/{apply_import_manager-Ch1hTvRS.cjs → apply_import_manager-DR9xXCle.cjs} +3 -3
  29. package/schematics/bundles/cleanup-unused-imports.cjs +5 -5
  30. package/schematics/bundles/{compiler_host-CqB0JPzD.cjs → compiler_host-BXBP7CE2.cjs} +2 -2
  31. package/schematics/bundles/control-flow-migration.cjs +3 -3
  32. package/schematics/bundles/imports-CIX-JgAN.cjs +1 -1
  33. package/schematics/bundles/{index-COhCBz0q.cjs → index-CfTQUOiz.cjs} +4 -4
  34. package/schematics/bundles/{index-DwItZ4Tw.cjs → index-esqfDjNB.cjs} +28 -14
  35. package/schematics/bundles/inject-migration.cjs +3 -3
  36. package/schematics/bundles/leading_space-D9nQ8UQC.cjs +1 -1
  37. package/schematics/bundles/{migrate_ts_type_references-BMhLua30.cjs → migrate_ts_type_references-6NtAj-Wk.cjs} +5 -5
  38. package/schematics/bundles/ng_decorators-B5HCqr20.cjs +1 -1
  39. package/schematics/bundles/nodes-B16H9JUd.cjs +1 -1
  40. package/schematics/bundles/output-migration.cjs +6 -6
  41. package/schematics/bundles/{project_paths-OWnyHise.cjs → project_paths-DcaODbky.cjs} +3 -3
  42. package/schematics/bundles/{project_tsconfig_paths-BIeidc3E.cjs → project_tsconfig_paths-CS-eSeHC.cjs} +6 -3
  43. package/schematics/bundles/property_name-BBwFuqMe.cjs +1 -1
  44. package/schematics/bundles/route-lazy-loading.cjs +3 -3
  45. package/schematics/bundles/router-current-navigation.cjs +4 -4
  46. package/schematics/bundles/{test-bed-get.cjs → router-last-successful-navigation.cjs} +29 -13
  47. package/schematics/bundles/self-closing-tags-migration.cjs +4 -4
  48. package/schematics/bundles/signal-input-migration.cjs +7 -7
  49. package/schematics/bundles/signal-queries-migration.cjs +7 -7
  50. package/schematics/bundles/signals.cjs +7 -7
  51. package/schematics/bundles/standalone-migration.cjs +4 -4
  52. package/schematics/bundles/symbol-VPWguRxr.cjs +1 -1
  53. package/schematics/migrations.json +7 -17
  54. package/signal.d.d.ts +1 -1
  55. package/testing/index.d.ts +1 -1
  56. package/weak_ref.d.d.ts +1 -1
  57. package/schematics/bundles/document-core.cjs +0 -95
  58. package/schematics/bundles/inject-flags.cjs +0 -147
package/api.d.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v20.2.0
2
+ * @license Angular v21.0.0-next.0
3
3
  * (c) 2010-2025 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v20.2.0
2
+ * @license Angular v21.0.0-next.0
3
3
  * (c) 2010-2025 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
package/discovery.d.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v20.2.0
2
+ * @license Angular v21.0.0-next.0
3
3
  * (c) 2010-2025 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -2169,7 +2169,13 @@ declare enum ViewEncapsulation {
2169
2169
  * a ShadowRoot for the component's host element which is then used to encapsulate
2170
2170
  * all the Component's styling.
2171
2171
  */
2172
- ShadowDom = 3
2172
+ ShadowDom = 3,
2173
+ /**
2174
+ * Similar to `ShadowDom`, but prevents any external styles from leaking into the
2175
+ * component's ShadowRoot. This is useful when you want to ensure that the component's
2176
+ * styles are completely isolated from the rest of the application, including global styles.
2177
+ */
2178
+ IsolatedShadowDom = 4
2173
2179
  }
2174
2180
 
2175
2181
  /**
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v20.2.0
2
+ * @license Angular v21.0.0-next.0
3
3
  * (c) 2010-2025 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v20.2.0
2
+ * @license Angular v21.0.0-next.0
3
3
  * (c) 2010-2025 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
package/fesm2022/core.mjs CHANGED
@@ -1,10 +1,10 @@
1
1
  /**
2
- * @license Angular v20.2.0
2
+ * @license Angular v21.0.0-next.0
3
3
  * (c) 2010-2025 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
6
6
 
7
- import { RuntimeError, InjectionToken, getCurrentTNode, assertInInjectionContext, signalAsReadonlyFn, assertNgModuleType, Injector, inject, ɵɵdefineInjectable as __defineInjectable, formatRuntimeError, INTERNAL_APPLICATION_ERROR_HANDLER, PROVIDED_ZONELESS, PendingTasksInternal, stringify, ChangeDetectionScheduler, errorHandlerEnvironmentInitializer, ɵɵinject as __inject, INJECTOR_SCOPE, makeEnvironmentProviders, runInInjectionContext, provideEnvironmentInitializer, ErrorHandler, _global, isComponentHost, getComponentLViewByIndex, getLView, DECLARATION_COMPONENT_VIEW, ɵɵdefineInjector as __defineInjector, ENVIRONMENT_INITIALIZER, unwrapRNode, CLEANUP, isLContainer, HOST, hasI18n, unwrapLView, RENDERER, assertTNode, isProjectionTNode, getComponentDef, PARENT, isRootView, HEADER_OFFSET, TVIEW, CONTEXT, CONTAINER_HEADER_OFFSET, isLView, getTNode, assertNotInReactiveContext, ViewContext, DestroyRef, setInjectorProfilerContext, emitEffectCreatedEvent, getNullInjector } from './root_effect_scheduler.mjs';
7
+ import { RuntimeError, InjectionToken, getCurrentTNode, assertInInjectionContext, signalAsReadonlyFn, assertNgModuleType, Injector, inject, ɵɵdefineInjectable as __defineInjectable, formatRuntimeError, INTERNAL_APPLICATION_ERROR_HANDLER, PROVIDED_ZONELESS, PendingTasksInternal, stringify, ChangeDetectionScheduler, errorHandlerEnvironmentInitializer, ɵɵinject as __inject, INJECTOR_SCOPE, makeEnvironmentProviders, runInInjectionContext, provideEnvironmentInitializer, ErrorHandler, _global, isComponentHost, getComponentLViewByIndex, getLView, DECLARATION_COMPONENT_VIEW, ɵɵdefineInjector as __defineInjector, ENVIRONMENT_INITIALIZER, unwrapRNode, CLEANUP, isLContainer, HOST, hasI18n, unwrapLView, RENDERER, assertTNode, isProjectionTNode, PARENT, isRootView, HEADER_OFFSET, TVIEW, CONTEXT, getComponentDef, CONTAINER_HEADER_OFFSET, isLView, getTNode, assertNotInReactiveContext, ViewContext, DestroyRef, setInjectorProfilerContext, emitEffectCreatedEvent, getNullInjector } from './root_effect_scheduler.mjs';
8
8
  export { DOCUMENT, EnvironmentInjector, INJECTOR, PendingTasks, defineInjectable, forwardRef, importProvidersFrom, isSignal, isStandalone, provideBrowserGlobalErrorListeners, resolveForwardRef, signal, EffectScheduler as ɵEffectScheduler, NG_COMP_DEF as ɵNG_COMP_DEF, NG_DIR_DEF as ɵNG_DIR_DEF, NG_ELEMENT_ID as ɵNG_ELEMENT_ID, NG_INJ_DEF as ɵNG_INJ_DEF, NG_MOD_DEF as ɵNG_MOD_DEF, NG_PIPE_DEF as ɵNG_PIPE_DEF, NG_PROV_DEF as ɵNG_PROV_DEF, R3Injector as ɵR3Injector, XSS_SECURITY_URL as ɵXSS_SECURITY_URL, ZONELESS_ENABLED as ɵZONELESS_ENABLED, convertToBitFlags as ɵconvertToBitFlags, createInjector as ɵcreateInjector, getAnimationElementRemovalRegistry as ɵgetAnimationElementRemovalRegistry, getInjectableDef as ɵgetInjectableDef, isEnvironmentProviders as ɵisEnvironmentProviders, isInjectable as ɵisInjectable, store as ɵstore, truncateMiddle as ɵtruncateMiddle, ɵunwrapWritableSignal, ɵɵdisableBindings, ɵɵenableBindings, ɵɵinvalidFactoryDep, ɵɵnamespaceHTML, ɵɵnamespaceMathML, ɵɵnamespaceSVG, ɵɵresetView, ɵɵrestoreView } from './root_effect_scheduler.mjs';
9
9
  import { SIGNAL_NODE, signalSetFn, SIGNAL, producerAccessed, consumerDestroy, consumerPollProducersForChange, consumerBeforeComputation, consumerAfterComputation } from './signal.mjs';
10
10
  import { ɵɵinjectAttribute as __injectAttribute, createMultiResultQuerySignalFn, createSingleResultOptionalQuerySignalFn, createSingleResultRequiredQuerySignalFn, makePropDecorator, NgModuleFactory, COMPILER_OPTIONS, setJitOptions, isComponentResourceResolutionQueueEmpty, getCompilerFacade, resolveComponentResources, IMAGE_CONFIG, getDocument, setClassMetadata, Injectable, NgZone, PROVIDED_NG_ZONE, remove, isPromise, ApplicationInitStatus, LOCALE_ID, DEFAULT_LOCALE_ID, setLocaleId, ApplicationRef, internalProvideZoneChangeDetection, ChangeDetectionSchedulerImpl, createNgModuleRefWithProviders, optionsReducer, getNgZone, getNgZoneOptions, publishDefaultGlobalUtils, PLATFORM_INITIALIZER, publishSignalConfiguration, checkNoChangesInternal, UseExhaustiveCheckNoChanges, getRegisteredNgModuleType, ViewRef as ViewRef$1, isListLikeIterable, iterateListLike, isJsObject, SkipSelf, Optional, ɵɵdefineNgModule as __defineNgModule, NgModule, profiler, assertStandaloneComponentType, EnvironmentNgModuleRefAdapter, JSACTION_BLOCK_ELEMENT_MAP, APP_ID, setStashFn, APP_BOOTSTRAP_LISTENER, JSACTION_EVENT_CONTRACT, removeListeners, isIncrementalHydrationEnabled, DEFER_BLOCK_SSR_ID_ATTRIBUTE, invokeListeners, triggerHydrationFromBlockName, IS_EVENT_REPLAY_ENABLED, EVENT_REPLAY_ENABLED_DEFAULT, performanceMarkFeature, sharedStashFunction, sharedMapFunction, enableStashEventListenerImpl, isI18nHydrationEnabled, TransferState, NGH_DATA_KEY, NGH_DEFER_BLOCKS_KEY, SKIP_HYDRATION_ATTR_NAME, NGH_ATTR_NAME, getLNodeForHydration, isI18nHydrationSupportEnabled, getOrComputeI18nChildren, trySerializeI18nBlock, I18N_DATA, isTNodeShape, isDetachedByI18n, TEMPLATES, isDisconnectedNode, isInSkipHydrationBlock, unsupportedProjectionOfDomNodes, CONTAINERS, isLetDeclaration, ELEMENT_CONTAINERS, processTextNodeBeforeSerialization, setJSActionAttributes, ViewEncapsulation as ViewEncapsulation$1, collectNativeNodes, TEMPLATE_ID, NUM_ROOT_NODES, isDeferBlock, getLDeferBlockDetails, getTDeferBlockDetails, collectNativeNodesInLContainer, validateNodeExists, validateMatchingNode, DEFER_BLOCK_ID, DEFER_BLOCK_STATE, DEFER_BLOCK_STATE$1, MULTIPLIER, NODES, calcPathForNode, DISCONNECTED_NODES, convertHydrateTriggersToJsAction, DEFER_HYDRATE_TRIGGERS, DEFER_PARENT_BLOCK_ID, IS_I18N_HYDRATION_ENABLED, IS_HYDRATION_DOM_REUSE_ENABLED, IS_INCREMENTAL_HYDRATION_ENABLED, DEHYDRATED_BLOCK_REGISTRY, DehydratedBlockRegistry, processBlockData, gatherDeferBlocksCommentNodes, processAndInitTriggers, appendDeferBlocksToJSActionMap, verifySsrContentsIntegrity, Console, PRESERVE_HOST_CONTENT, cleanupDehydratedViews, countBlocksSkippedByHydration, enableRetrieveHydrationInfoImpl, enableLocateOrCreateElementNodeImpl, enableLocateOrCreateTextNodeImpl, enableLocateOrCreateElementContainerNodeImpl, enableLocateOrCreateContainerAnchorImpl, enableLocateOrCreateContainerRefImpl, enableFindMatchingDehydratedViewImpl, enableApplyRootElementTransformImpl, enableLocateOrCreateI18nNodeImpl, enablePrepareI18nBlockForHydrationImpl, setIsI18nHydrationSupportEnabled, enableClaimDehydratedIcuCaseImpl, enableRetrieveDeferBlockDataImpl, readPatchedLView, angularCoreEnv, setClassMetadataAsync, NOOP_AFTER_RENDER_REF, AfterRenderManager, TracingService, AfterRenderImpl, AfterRenderSequence, AFTER_RENDER_PHASES, assertComponentDef, ComponentFactory } from './debug_node.mjs';
@@ -90,6 +90,7 @@ var ViewEncapsulation;
90
90
  // Historically the 1 value was for `Native` encapsulation which has been removed as of v11.
91
91
  ViewEncapsulation[ViewEncapsulation["None"] = 2] = "None";
92
92
  ViewEncapsulation[ViewEncapsulation["ShadowDom"] = 3] = "ShadowDom";
93
+ ViewEncapsulation[ViewEncapsulation["IsolatedShadowDom"] = 4] = "IsolatedShadowDom";
93
94
  })(ViewEncapsulation || (ViewEncapsulation = {}));
94
95
 
95
96
  /*!
@@ -626,7 +627,7 @@ class Version {
626
627
  /**
627
628
  * @publicApi
628
629
  */
629
- const VERSION = new Version('20.2.0');
630
+ const VERSION = new Version('21.0.0-next.0');
630
631
 
631
632
  function compileNgModuleFactory(injector, options, moduleType) {
632
633
  ngDevMode && assertNgModuleType(moduleType);
@@ -3461,9 +3462,11 @@ function conditionallyAnnotateNodePath(ngh, tNode, lView, excludedParentNodes) {
3461
3462
  */
3462
3463
  function componentUsesShadowDomEncapsulation(lView) {
3463
3464
  const instance = lView[CONTEXT];
3464
- return instance?.constructor
3465
- ? getComponentDef(instance.constructor)?.encapsulation === ViewEncapsulation$1.ShadowDom
3466
- : false;
3465
+ if (!instance?.constructor)
3466
+ return false;
3467
+ const def = getComponentDef(instance.constructor);
3468
+ return (def?.encapsulation === ViewEncapsulation$1.ShadowDom ||
3469
+ def?.encapsulation === ViewEncapsulation$1.IsolatedShadowDom);
3467
3470
  }
3468
3471
  /**
3469
3472
  * Annotates component host element for hydration: