@angular/core 21.1.0-next.1 → 21.1.0-next.3

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 (75) hide show
  1. package/fesm2022/_attribute-chunk.mjs +1 -1
  2. package/fesm2022/_attribute-chunk.mjs.map +1 -1
  3. package/fesm2022/_debug_node-chunk.mjs +29 -22
  4. package/fesm2022/_debug_node-chunk.mjs.map +1 -1
  5. package/fesm2022/_effect-chunk.mjs +1 -1
  6. package/fesm2022/_effect-chunk.mjs.map +1 -1
  7. package/fesm2022/_linked_signal-chunk.mjs +1 -1
  8. package/fesm2022/_linked_signal-chunk.mjs.map +1 -1
  9. package/fesm2022/_not_found-chunk.mjs +1 -1
  10. package/fesm2022/_not_found-chunk.mjs.map +1 -1
  11. package/fesm2022/_resource-chunk.mjs +5 -2
  12. package/fesm2022/_resource-chunk.mjs.map +1 -1
  13. package/fesm2022/_untracked-chunk.mjs +40 -40
  14. package/fesm2022/_untracked-chunk.mjs.map +1 -1
  15. package/fesm2022/_weak_ref-chunk.mjs +1 -1
  16. package/fesm2022/_weak_ref-chunk.mjs.map +1 -1
  17. package/fesm2022/core.mjs +4 -4
  18. package/fesm2022/core.mjs.map +1 -1
  19. package/fesm2022/primitives-di.mjs +1 -1
  20. package/fesm2022/primitives-di.mjs.map +1 -1
  21. package/fesm2022/primitives-event-dispatch.mjs +1 -1
  22. package/fesm2022/primitives-event-dispatch.mjs.map +1 -1
  23. package/fesm2022/primitives-signals.mjs +1 -1
  24. package/fesm2022/primitives-signals.mjs.map +1 -1
  25. package/fesm2022/rxjs-interop.mjs +1 -1
  26. package/fesm2022/rxjs-interop.mjs.map +1 -1
  27. package/fesm2022/testing.mjs +6 -6
  28. package/fesm2022/testing.mjs.map +1 -1
  29. package/package.json +2 -2
  30. package/schematics/bundles/add-bootstrap-context-to-server-main.cjs +1 -1
  31. package/schematics/bundles/application-config-core.cjs +1 -1
  32. package/schematics/bundles/apply_import_manager-1Zs_gpB6.cjs +1 -1
  33. package/schematics/bundles/bootstrap-options-migration.cjs +1 -1
  34. package/schematics/bundles/cleanup-unused-imports.cjs +1 -1
  35. package/schematics/bundles/common-to-standalone-migration.cjs +1 -1
  36. package/schematics/bundles/compiler_host-DBwYMlTo.cjs +1 -1
  37. package/schematics/bundles/control-flow-migration.cjs +1 -1
  38. package/schematics/bundles/imports-DP72APSx.cjs +1 -1
  39. package/schematics/bundles/index-B7I9sIUx.cjs +1 -1
  40. package/schematics/bundles/inject-migration.cjs +1 -1
  41. package/schematics/bundles/leading_space-D9nQ8UQC.cjs +1 -1
  42. package/schematics/bundles/migrate_ts_type_references-UGIUl7En.cjs +1 -1
  43. package/schematics/bundles/ng_component_template-Dsuq1Lw7.cjs +1 -1
  44. package/schematics/bundles/ng_decorators-DSFlWYQY.cjs +1 -1
  45. package/schematics/bundles/ngclass-to-class-migration.cjs +1 -1
  46. package/schematics/bundles/ngstyle-to-style-migration.cjs +1 -1
  47. package/schematics/bundles/nodes-B16H9JUd.cjs +1 -1
  48. package/schematics/bundles/output-migration.cjs +1 -1
  49. package/schematics/bundles/parse_html-8VLCL37B.cjs +1 -1
  50. package/schematics/bundles/project_paths-DvD50ouC.cjs +1 -1
  51. package/schematics/bundles/project_tsconfig_paths-CDVxT6Ov.cjs +1 -1
  52. package/schematics/bundles/property_name-BBwFuqMe.cjs +1 -1
  53. package/schematics/bundles/route-lazy-loading.cjs +1 -1
  54. package/schematics/bundles/router-current-navigation.cjs +1 -1
  55. package/schematics/bundles/router-last-successful-navigation.cjs +1 -1
  56. package/schematics/bundles/router-testing-module-migration.cjs +1 -1
  57. package/schematics/bundles/self-closing-tags-migration.cjs +1 -1
  58. package/schematics/bundles/signal-input-migration.cjs +1 -1
  59. package/schematics/bundles/signal-queries-migration.cjs +1 -1
  60. package/schematics/bundles/signals.cjs +1 -1
  61. package/schematics/bundles/standalone-migration.cjs +1 -1
  62. package/schematics/bundles/symbol-BObKoqes.cjs +1 -1
  63. package/types/_api-chunk.d.ts +1 -1
  64. package/types/_chrome_dev_tools_performance-chunk.d.ts +9 -2
  65. package/types/_discovery-chunk.d.ts +11 -5
  66. package/types/_effect-chunk.d.ts +1 -1
  67. package/types/_event_dispatcher-chunk.d.ts +1 -1
  68. package/types/_formatter-chunk.d.ts +1 -1
  69. package/types/_weak_ref-chunk.d.ts +1 -1
  70. package/types/core.d.ts +37 -16
  71. package/types/primitives-di.d.ts +1 -1
  72. package/types/primitives-event-dispatch.d.ts +1 -1
  73. package/types/primitives-signals.d.ts +1 -1
  74. package/types/rxjs-interop.d.ts +1 -1
  75. package/types/testing.d.ts +1 -1
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v21.1.0-next.1
2
+ * @license Angular v21.1.0-next.3
3
3
  * (c) 2010-2025 Google LLC. https://angular.dev/
4
4
  * License: MIT
5
5
  */
@@ -1 +1 @@
1
- {"version":3,"file":"_attribute-chunk.mjs","sources":["../../../../../darwin_arm64-fastbuild-ST-199a4f3c4e20/bin/packages/core/primitives/event-dispatch/src/attribute.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\nexport const Attribute = {\n /**\n * The jsaction attribute defines a mapping of a DOM event to a\n * generic event (aka jsaction), to which the actual event handlers\n * that implement the behavior of the application are bound. The\n * value is a semicolon separated list of colon separated pairs of\n * an optional DOM event name and a jsaction name. If the optional\n * DOM event name is omitted, 'click' is assumed. The jsaction names\n * are dot separated pairs of a namespace and a simple jsaction\n * name.\n *\n * See grammar in README.md for expected syntax in the attribute value.\n */\n JSACTION: 'jsaction' as const,\n};\n"],"names":["Attribute","JSACTION"],"mappings":";;;;;;AAQO,MAAMA,SAAS,GAAG;AAavBC,EAAAA,QAAQ,EAAE;;;;;"}
1
+ {"version":3,"file":"_attribute-chunk.mjs","sources":["../../../../../darwin_arm64-fastbuild-ST-fdfa778d11ba/bin/packages/core/primitives/event-dispatch/src/attribute.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\nexport const Attribute = {\n /**\n * The jsaction attribute defines a mapping of a DOM event to a\n * generic event (aka jsaction), to which the actual event handlers\n * that implement the behavior of the application are bound. The\n * value is a semicolon separated list of colon separated pairs of\n * an optional DOM event name and a jsaction name. If the optional\n * DOM event name is omitted, 'click' is assumed. The jsaction names\n * are dot separated pairs of a namespace and a simple jsaction\n * name.\n *\n * See grammar in README.md for expected syntax in the attribute value.\n */\n JSACTION: 'jsaction' as const,\n};\n"],"names":["Attribute","JSACTION"],"mappings":";;;;;;AAQO,MAAMA,SAAS,GAAG;AAavBC,EAAAA,QAAQ,EAAE;;;;;"}
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v21.1.0-next.1
2
+ * @license Angular v21.1.0-next.3
3
3
  * (c) 2010-2025 Google LLC. https://angular.dev/
4
4
  * License: MIT
5
5
  */
@@ -1912,7 +1912,7 @@ function getDocument() {
1912
1912
  throw new RuntimeError(210, (typeof ngDevMode === 'undefined' || ngDevMode) && `The document object is not available in this context. Make sure the DOCUMENT injection token is provided.`);
1913
1913
  }
1914
1914
 
1915
- const APP_ID = new InjectionToken(typeof ngDevMode !== undefined && ngDevMode ? 'AppId' : '', {
1915
+ const APP_ID = new InjectionToken(typeof ngDevMode !== 'undefined' && ngDevMode ? 'AppId' : '', {
1916
1916
  factory: () => DEFAULT_APP_ID
1917
1917
  });
1918
1918
  const DEFAULT_APP_ID = 'ng';
@@ -1927,13 +1927,13 @@ const validAppIdInitializer = {
1927
1927
  }
1928
1928
  }
1929
1929
  };
1930
- const PLATFORM_INITIALIZER = new InjectionToken(typeof ngDevMode !== undefined && ngDevMode ? 'Platform Initializer' : '');
1931
- const PLATFORM_ID = new InjectionToken(typeof ngDevMode !== undefined && ngDevMode ? 'Platform ID' : '', {
1930
+ const PLATFORM_INITIALIZER = new InjectionToken(typeof ngDevMode !== 'undefined' && ngDevMode ? 'Platform Initializer' : '');
1931
+ const PLATFORM_ID = new InjectionToken(typeof ngDevMode !== 'undefined' && ngDevMode ? 'Platform ID' : '', {
1932
1932
  providedIn: 'platform',
1933
1933
  factory: () => 'unknown'
1934
1934
  });
1935
- const ANIMATION_MODULE_TYPE = new InjectionToken(typeof ngDevMode !== undefined && ngDevMode ? 'AnimationModuleType' : '');
1936
- const CSP_NONCE = new InjectionToken(typeof ngDevMode !== undefined && ngDevMode ? 'CSP nonce' : '', {
1935
+ const ANIMATION_MODULE_TYPE = new InjectionToken(typeof ngDevMode !== 'undefined' && ngDevMode ? 'AnimationModuleType' : '');
1936
+ const CSP_NONCE = new InjectionToken(typeof ngDevMode !== 'undefined' && ngDevMode ? 'CSP nonce' : '', {
1937
1937
  factory: () => {
1938
1938
  return inject(DOCUMENT$1).body?.querySelector('[ngCspNonce]')?.getAttribute('ngCspNonce') || null;
1939
1939
  }
@@ -1944,7 +1944,7 @@ const IMAGE_CONFIG_DEFAULTS = {
1944
1944
  disableImageSizeWarning: false,
1945
1945
  disableImageLazyLoadWarning: false
1946
1946
  };
1947
- const IMAGE_CONFIG = new InjectionToken(typeof ngDevMode !== undefined && ngDevMode ? 'ImageConfig' : '', {
1947
+ const IMAGE_CONFIG = new InjectionToken(typeof ngDevMode !== 'undefined' && ngDevMode ? 'ImageConfig' : '', {
1948
1948
  factory: () => IMAGE_CONFIG_DEFAULTS
1949
1949
  });
1950
1950
 
@@ -2037,7 +2037,7 @@ const IS_I18N_HYDRATION_ENABLED = new InjectionToken(typeof ngDevMode === 'undef
2037
2037
  const IS_EVENT_REPLAY_ENABLED = new InjectionToken(typeof ngDevMode === 'undefined' || ngDevMode ? 'IS_EVENT_REPLAY_ENABLED' : '');
2038
2038
  const EVENT_REPLAY_ENABLED_DEFAULT = false;
2039
2039
  const IS_INCREMENTAL_HYDRATION_ENABLED = new InjectionToken(typeof ngDevMode === 'undefined' || ngDevMode ? 'IS_INCREMENTAL_HYDRATION_ENABLED' : '');
2040
- const JSACTION_BLOCK_ELEMENT_MAP = new InjectionToken(typeof ngDevMode !== undefined && ngDevMode ? 'JSACTION_BLOCK_ELEMENT_MAP' : '', {
2040
+ const JSACTION_BLOCK_ELEMENT_MAP = new InjectionToken(typeof ngDevMode !== 'undefined' && ngDevMode ? 'JSACTION_BLOCK_ELEMENT_MAP' : '', {
2041
2041
  factory: () => new Map()
2042
2042
  });
2043
2043
  const IS_ENABLED_BLOCKING_INITIAL_NAVIGATION = new InjectionToken(typeof ngDevMode === 'undefined' || ngDevMode ? 'IS_ENABLED_BLOCKING_INITIAL_NAVIGATION' : '');
@@ -2220,7 +2220,7 @@ const removeListeners = el => {
2220
2220
  el.removeAttribute(DEFER_BLOCK_SSR_ID_ATTRIBUTE);
2221
2221
  el.__jsaction_fns = undefined;
2222
2222
  };
2223
- const JSACTION_EVENT_CONTRACT = new InjectionToken(typeof ngDevMode !== undefined && ngDevMode ? 'EVENT_CONTRACT_DETAILS' : '', {
2223
+ const JSACTION_EVENT_CONTRACT = new InjectionToken(typeof ngDevMode !== 'undefined' && ngDevMode ? 'EVENT_CONTRACT_DETAILS' : '', {
2224
2224
  factory: () => ({})
2225
2225
  });
2226
2226
  function invokeListeners(event, currentTarget) {
@@ -2253,7 +2253,7 @@ function enableStashEventListenerImpl() {
2253
2253
  }
2254
2254
  }
2255
2255
 
2256
- const DEHYDRATED_BLOCK_REGISTRY = new InjectionToken(typeof ngDevMode !== undefined && ngDevMode ? 'DEHYDRATED_BLOCK_REGISTRY' : '');
2256
+ const DEHYDRATED_BLOCK_REGISTRY = new InjectionToken(typeof ngDevMode !== 'undefined' && ngDevMode ? 'DEHYDRATED_BLOCK_REGISTRY' : '');
2257
2257
  class DehydratedBlockRegistry {
2258
2258
  registry = new Map();
2259
2259
  cleanupFns = new Map();
@@ -4092,7 +4092,7 @@ var TracingAction;
4092
4092
  TracingAction[TracingAction["CHANGE_DETECTION"] = 0] = "CHANGE_DETECTION";
4093
4093
  TracingAction[TracingAction["AFTER_NEXT_RENDER"] = 1] = "AFTER_NEXT_RENDER";
4094
4094
  })(TracingAction || (TracingAction = {}));
4095
- const TracingService = new InjectionToken(typeof ngDevMode !== undefined && ngDevMode ? 'TracingService' : '');
4095
+ const TracingService = new InjectionToken(typeof ngDevMode !== 'undefined' && ngDevMode ? 'TracingService' : '');
4096
4096
 
4097
4097
  const markedFeatures = new Set();
4098
4098
  function performanceMarkFeature(feature) {
@@ -5287,7 +5287,7 @@ function shouldAddViewToDom(tNode, dehydratedView) {
5287
5287
  }
5288
5288
 
5289
5289
  const USE_EXHAUSTIVE_CHECK_NO_CHANGES_DEFAULT = false;
5290
- const UseExhaustiveCheckNoChanges = new InjectionToken(typeof ngDevMode !== undefined && ngDevMode ? 'exhaustive checkNoChanges' : '');
5290
+ const UseExhaustiveCheckNoChanges = new InjectionToken(typeof ngDevMode !== 'undefined' && ngDevMode ? 'exhaustive checkNoChanges' : '');
5291
5291
 
5292
5292
  function collectNativeNodes(tView, lView, tNode, result, isProjection = false) {
5293
5293
  while (tNode !== null) {
@@ -8310,7 +8310,7 @@ class ComponentFactory extends ComponentFactory$1 {
8310
8310
  }
8311
8311
  }
8312
8312
  function createRootTView(rootSelectorOrNode, componentDef, componentBindings, directives) {
8313
- const tAttributes = rootSelectorOrNode ? ['ng-version', '21.1.0-next.1'] : extractAttrsAndClassesFromSelector(componentDef.selectors[0]);
8313
+ const tAttributes = rootSelectorOrNode ? ['ng-version', '21.1.0-next.3'] : extractAttrsAndClassesFromSelector(componentDef.selectors[0]);
8314
8314
  let creationBindings = null;
8315
8315
  let updateBindings = null;
8316
8316
  let varsToAllocate = 0;
@@ -10328,7 +10328,7 @@ class CachedInjectorService {
10328
10328
  }
10329
10329
 
10330
10330
  const DEFER_BLOCK_DEPENDENCY_INTERCEPTOR = /* @__PURE__ */new InjectionToken('DEFER_BLOCK_DEPENDENCY_INTERCEPTOR');
10331
- const DEFER_BLOCK_CONFIG = new InjectionToken(typeof ngDevMode !== undefined && ngDevMode ? 'DEFER_BLOCK_CONFIG' : '');
10331
+ const DEFER_BLOCK_CONFIG = new InjectionToken(typeof ngDevMode !== 'undefined' && ngDevMode ? 'DEFER_BLOCK_CONFIG' : '');
10332
10332
  function getOrCreateEnvironmentInjector(parentInjector, tDetails, providers) {
10333
10333
  return parentInjector.get(CachedInjectorService).getOrCreateInjector(tDetails, parentInjector, providers, ngDevMode ? 'DeferBlock Injector' : '');
10334
10334
  }
@@ -13689,7 +13689,9 @@ const CONTROL_VALUE = /* @__PURE__ */getClosureSafeProperty({
13689
13689
  const CONTROL_BINDING_NAMES = {
13690
13690
  disabled: 'disabled',
13691
13691
  disabledReasons: 'disabledReasons',
13692
+ dirty: 'dirty',
13692
13693
  errors: 'errors',
13694
+ hidden: 'hidden',
13693
13695
  invalid: 'invalid',
13694
13696
  max: 'max',
13695
13697
  maxLength: 'maxLength',
@@ -13697,6 +13699,7 @@ const CONTROL_BINDING_NAMES = {
13697
13699
  minLength: 'minLength',
13698
13700
  name: 'name',
13699
13701
  pattern: 'pattern',
13702
+ pending: 'pending',
13700
13703
  readonly: 'readonly',
13701
13704
  required: 'required',
13702
13705
  touched: 'touched'
@@ -14141,19 +14144,19 @@ class LiveCollectionLContainerImpl extends LiveCollection {
14141
14144
  const embeddedLView = createAndRenderEmbeddedLView(this.hostLView, this.templateTNode, new RepeaterContext(this.lContainer, value, index), {
14142
14145
  dehydratedView
14143
14146
  });
14144
- this.operationsCounter?.recordCreate();
14147
+ ngDevMode && this.operationsCounter?.recordCreate();
14145
14148
  return embeddedLView;
14146
14149
  }
14147
14150
  destroy(lView) {
14148
14151
  destroyLView(lView[TVIEW], lView);
14149
- this.operationsCounter?.recordDestroy();
14152
+ ngDevMode && this.operationsCounter?.recordDestroy();
14150
14153
  }
14151
14154
  updateValue(index, value) {
14152
14155
  this.getLView(index)[CONTEXT].$implicit = value;
14153
14156
  }
14154
14157
  reset() {
14155
14158
  this.needsIndexUpdate = false;
14156
- this.operationsCounter?.reset();
14159
+ ngDevMode && this.operationsCounter?.reset();
14157
14160
  }
14158
14161
  updateIndexes() {
14159
14162
  if (this.needsIndexUpdate) {
@@ -15740,9 +15743,11 @@ function insertFallbackContent(lView, tView, fallbackIndex) {
15740
15743
 
15741
15744
  function ɵɵcontentQuery(directiveIndex, predicate, flags, read) {
15742
15745
  createContentQuery(directiveIndex, predicate, flags, read);
15746
+ return ɵɵcontentQuery;
15743
15747
  }
15744
15748
  function ɵɵviewQuery(predicate, flags, read) {
15745
15749
  createViewQuery(predicate, flags, read);
15750
+ return ɵɵviewQuery;
15746
15751
  }
15747
15752
  function ɵɵqueryRefresh(queryList) {
15748
15753
  const lView = getLView();
@@ -15768,9 +15773,11 @@ function ɵɵloadQuery() {
15768
15773
 
15769
15774
  function ɵɵcontentQuerySignal(directiveIndex, target, predicate, flags, read) {
15770
15775
  bindQueryToSignal(target, createContentQuery(directiveIndex, predicate, flags, read));
15776
+ return ɵɵcontentQuerySignal;
15771
15777
  }
15772
15778
  function ɵɵviewQuerySignal(target, predicate, flags, read) {
15773
15779
  bindQueryToSignal(target, createViewQuery(predicate, flags, read));
15780
+ return ɵɵviewQuerySignal;
15774
15781
  }
15775
15782
  function ɵɵqueryAdvance(indexOffset = 1) {
15776
15783
  setCurrentQueryIndex(getCurrentQueryIndex() + indexOffset);
@@ -18179,7 +18186,7 @@ class Compiler {
18179
18186
  }]
18180
18187
  }], null, null);
18181
18188
  })();
18182
- const COMPILER_OPTIONS = new InjectionToken(typeof ngDevMode !== undefined && ngDevMode ? 'compilerOptions' : '');
18189
+ const COMPILER_OPTIONS = new InjectionToken(typeof ngDevMode !== 'undefined' && ngDevMode ? 'compilerOptions' : '');
18183
18190
  class CompilerFactory {}
18184
18191
 
18185
18192
  const CONSECUTIVE_MICROTASK_NOTIFICATION_LIMIT = 100;
@@ -18403,17 +18410,17 @@ function getGlobalLocale() {
18403
18410
  return typeof $localize !== 'undefined' && $localize.locale || DEFAULT_LOCALE_ID;
18404
18411
  }
18405
18412
  }
18406
- const LOCALE_ID = new InjectionToken(typeof ngDevMode !== undefined && ngDevMode ? 'LocaleId' : '', {
18413
+ const LOCALE_ID = new InjectionToken(typeof ngDevMode !== 'undefined' && ngDevMode ? 'LocaleId' : '', {
18407
18414
  factory: () => inject(LOCALE_ID, {
18408
18415
  optional: true,
18409
18416
  skipSelf: true
18410
18417
  }) || getGlobalLocale()
18411
18418
  });
18412
- const DEFAULT_CURRENCY_CODE = new InjectionToken(typeof ngDevMode !== undefined && ngDevMode ? 'DefaultCurrencyCode' : '', {
18419
+ const DEFAULT_CURRENCY_CODE = new InjectionToken(typeof ngDevMode !== 'undefined' && ngDevMode ? 'DefaultCurrencyCode' : '', {
18413
18420
  factory: () => USD_CURRENCY_CODE
18414
18421
  });
18415
- const TRANSLATIONS = new InjectionToken(typeof ngDevMode !== undefined && ngDevMode ? 'Translations' : '');
18416
- const TRANSLATIONS_FORMAT = new InjectionToken(typeof ngDevMode !== undefined && ngDevMode ? 'TranslationsFormat' : '');
18422
+ const TRANSLATIONS = new InjectionToken(typeof ngDevMode !== 'undefined' && ngDevMode ? 'Translations' : '');
18423
+ const TRANSLATIONS_FORMAT = new InjectionToken(typeof ngDevMode !== 'undefined' && ngDevMode ? 'TranslationsFormat' : '');
18417
18424
  var MissingTranslationStrategy;
18418
18425
  (function (MissingTranslationStrategy) {
18419
18426
  MissingTranslationStrategy[MissingTranslationStrategy["Error"] = 0] = "Error";