@angular/core 21.0.0-next.1 → 21.0.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 (74) 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 +11 -36
  4. package/effect.d.d.ts +1 -1
  5. package/event_dispatcher.d.d.ts +1 -1
  6. package/fesm2022/attribute.mjs +1 -1
  7. package/fesm2022/attribute.mjs.map +1 -1
  8. package/fesm2022/core.mjs +46 -41
  9. package/fesm2022/core.mjs.map +1 -1
  10. package/fesm2022/debug_node.mjs +29 -669
  11. package/fesm2022/debug_node.mjs.map +1 -1
  12. package/fesm2022/effect.mjs +1 -1
  13. package/fesm2022/effect.mjs.map +1 -1
  14. package/fesm2022/not_found.mjs +1 -1
  15. package/fesm2022/not_found.mjs.map +1 -1
  16. package/fesm2022/primitives/di.mjs +1 -1
  17. package/fesm2022/primitives/di.mjs.map +1 -1
  18. package/fesm2022/primitives/event-dispatch.mjs +1 -1
  19. package/fesm2022/primitives/event-dispatch.mjs.map +1 -1
  20. package/fesm2022/primitives/signals.mjs +1 -1
  21. package/fesm2022/primitives/signals.mjs.map +1 -1
  22. package/fesm2022/resource.mjs +1 -1
  23. package/fesm2022/resource.mjs.map +1 -1
  24. package/fesm2022/root_effect_scheduler.mjs +689 -81
  25. package/fesm2022/root_effect_scheduler.mjs.map +1 -1
  26. package/fesm2022/rxjs-interop.mjs +3 -3
  27. package/fesm2022/rxjs-interop.mjs.map +1 -1
  28. package/fesm2022/signal.mjs +1 -1
  29. package/fesm2022/signal.mjs.map +1 -1
  30. package/fesm2022/testing.mjs +6 -8
  31. package/fesm2022/testing.mjs.map +1 -1
  32. package/fesm2022/weak_ref.mjs +1 -1
  33. package/fesm2022/weak_ref.mjs.map +1 -1
  34. package/graph.d.d.ts +1 -1
  35. package/index.d.ts +37 -54
  36. package/package.json +2 -2
  37. package/primitives/di/index.d.ts +1 -1
  38. package/primitives/event-dispatch/index.d.ts +1 -1
  39. package/primitives/signals/index.d.ts +1 -1
  40. package/rxjs-interop/index.d.ts +1 -1
  41. package/schematics/bundles/add-bootstrap-context-to-server-main.cjs +135 -0
  42. package/schematics/bundles/application-config-core.cjs +95 -0
  43. package/schematics/bundles/{apply_import_manager-yycO3l8f.cjs → apply_import_manager-tNexl58m.cjs} +3 -3
  44. package/schematics/bundles/cleanup-unused-imports.cjs +5 -5
  45. package/schematics/bundles/{compiler_host-DrXTGf_7.cjs → compiler_host-Df7s6Riz.cjs} +2 -2
  46. package/schematics/bundles/control-flow-migration.cjs +4 -4
  47. package/schematics/bundles/imports-26VeX8i-.cjs +1 -1
  48. package/schematics/bundles/{index-jjHOgYYs.cjs → index-CBaykQBv.cjs} +35 -14
  49. package/schematics/bundles/{index-BdH2rlWJ.cjs → index-Clvp4COX.cjs} +4 -4
  50. package/schematics/bundles/inject-migration.cjs +142 -47
  51. package/schematics/bundles/leading_space-D9nQ8UQC.cjs +1 -1
  52. package/schematics/bundles/{migrate_ts_type_references-BVSg43hf.cjs → migrate_ts_type_references-C_gTvDtH.cjs} +5 -5
  53. package/schematics/bundles/{ng_component_template-DjLc4mdL.cjs → ng_component_template-HYGPuVhy.cjs} +2 -2
  54. package/schematics/bundles/ng_decorators-CtYwz9Lw.cjs +1 -1
  55. package/schematics/bundles/ngclass-to-class-migration.cjs +8 -8
  56. package/schematics/bundles/nodes-B16H9JUd.cjs +1 -1
  57. package/schematics/bundles/output-migration.cjs +6 -6
  58. package/schematics/bundles/{parse_html-CXR8hziE.cjs → parse_html-CLFKoiOK.cjs} +2 -2
  59. package/schematics/bundles/{project_paths-T_M15e2g.cjs → project_paths-BJTqcWvC.cjs} +3 -3
  60. package/schematics/bundles/{project_tsconfig_paths-D7xzGqRi.cjs → project_tsconfig_paths-bRwOJEk9.cjs} +13 -5
  61. package/schematics/bundles/property_name-BBwFuqMe.cjs +1 -1
  62. package/schematics/bundles/route-lazy-loading.cjs +3 -3
  63. package/schematics/bundles/router-current-navigation.cjs +4 -4
  64. package/schematics/bundles/router-last-successful-navigation.cjs +4 -4
  65. package/schematics/bundles/self-closing-tags-migration.cjs +6 -6
  66. package/schematics/bundles/signal-input-migration.cjs +7 -7
  67. package/schematics/bundles/signal-queries-migration.cjs +7 -7
  68. package/schematics/bundles/signals.cjs +7 -7
  69. package/schematics/bundles/standalone-migration.cjs +4 -4
  70. package/schematics/bundles/symbol-VPWguRxr.cjs +1 -1
  71. package/schematics/migrations/ngclass-to-class-migration/schema.json +2 -2
  72. package/schematics/migrations.json +10 -0
  73. package/testing/index.d.ts +1 -1
  74. package/weak_ref.d.d.ts +1 -1
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
  /**
3
- * @license Angular v21.0.0-next.1
3
+ * @license Angular v21.0.0-next.3
4
4
  * (c) 2010-2025 Google LLC. https://angular.io/
5
5
  * License: MIT
6
6
  */
@@ -27970,7 +27970,7 @@ class BindingParser {
27970
27970
  if (isLegacyAnimationProp) {
27971
27971
  this._parseLegacyAnimation(name, expression, sourceSpan, absoluteOffset, keySpan, valueSpan, targetMatchableAttrs, targetProps);
27972
27972
  }
27973
- else if (name.startsWith(ANIMATE_PREFIX)) {
27973
+ else if (name.startsWith(`${ANIMATE_PREFIX}${PROPERTY_PARTS_SEPARATOR}`)) {
27974
27974
  this._parseAnimation(name, this.parseBinding(expression, isHost, valueSpan || sourceSpan, absoluteOffset), sourceSpan, keySpan, valueSpan, targetMatchableAttrs, targetProps);
27975
27975
  }
27976
27976
  else {
@@ -28133,7 +28133,7 @@ class BindingParser {
28133
28133
  if (isAssignmentEvent) {
28134
28134
  eventType = exports.ParsedEventType.TwoWay;
28135
28135
  }
28136
- if (name.startsWith(ANIMATE_PREFIX)) {
28136
+ if (name.startsWith(`${ANIMATE_PREFIX}${PROPERTY_PARTS_SEPARATOR}`)) {
28137
28137
  eventType = exports.ParsedEventType.Animation;
28138
28138
  }
28139
28139
  targetEvents.push(new ParsedEvent(eventName, target, eventType, ast, sourceSpan, handlerSpan, keySpan));
@@ -32840,7 +32840,7 @@ function isAttrNode(ast) {
32840
32840
  * @description
32841
32841
  * Entry point for all public APIs of the compiler package.
32842
32842
  */
32843
- new Version('21.0.0-next.1');
32843
+ new Version('21.0.0-next.3');
32844
32844
 
32845
32845
  //////////////////////////////////////
32846
32846
  // THIS FILE HAS GLOBAL SIDE EFFECT //
@@ -33876,7 +33876,7 @@ class NodeJSPathManipulation {
33876
33876
  // G3-ESM-MARKER: G3 uses CommonJS, but externally everything in ESM.
33877
33877
  // CommonJS/ESM interop for determining the current file name and containing dir.
33878
33878
  const isCommonJS = typeof __filename !== 'undefined';
33879
- const currentFileUrl = isCommonJS ? null : (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('project_tsconfig_paths-D7xzGqRi.cjs', document.baseURI).href));
33879
+ const currentFileUrl = isCommonJS ? null : (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('project_tsconfig_paths-bRwOJEk9.cjs', document.baseURI).href));
33880
33880
  // Note, when this code loads in the browser, `url` may be an empty `{}` due to the Closure shims.
33881
33881
  const currentFileName = isCommonJS
33882
33882
  ? __filename
@@ -42941,12 +42941,18 @@ class MagicString {
42941
42941
  if (this.byStart[index] || this.byEnd[index]) return;
42942
42942
 
42943
42943
  let chunk = this.lastSearchedChunk;
42944
+ let previousChunk = chunk;
42944
42945
  const searchForward = index > chunk.end;
42945
42946
 
42946
42947
  while (chunk) {
42947
42948
  if (chunk.contains(index)) return this._splitChunk(chunk, index);
42948
42949
 
42949
42950
  chunk = searchForward ? this.byStart[chunk.end] : this.byEnd[chunk.start];
42951
+
42952
+ // Prevent infinite loop (e.g. via empty chunks, where start === end)
42953
+ if (chunk === previousChunk) return;
42954
+
42955
+ previousChunk = chunk;
42950
42956
  }
42951
42957
  }
42952
42958
 
@@ -50875,6 +50881,7 @@ exports.INPUT_INITIALIZER_FN = INPUT_INITIALIZER_FN;
50875
50881
  exports.Icu = Icu;
50876
50882
  exports.IcuPlaceholder = IcuPlaceholder;
50877
50883
  exports.Identifiers = Identifiers;
50884
+ exports.IfBlock = IfBlock;
50878
50885
  exports.ImplicitReceiver = ImplicitReceiver;
50879
50886
  exports.ImportManager = ImportManager;
50880
50887
  exports.Interpolation = Interpolation$1;
@@ -50921,6 +50928,7 @@ exports.SafePropertyRead = SafePropertyRead;
50921
50928
  exports.SelectorMatcher = SelectorMatcher;
50922
50929
  exports.SelectorlessMatcher = SelectorlessMatcher;
50923
50930
  exports.Serializer = Serializer;
50931
+ exports.SwitchBlock = SwitchBlock;
50924
50932
  exports.Tag = Tag;
50925
50933
  exports.TagPlaceholder = TagPlaceholder;
50926
50934
  exports.Template = Template;
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
  /**
3
- * @license Angular v21.0.0-next.1
3
+ * @license Angular v21.0.0-next.3
4
4
  * (c) 2010-2025 Google LLC. https://angular.io/
5
5
  * License: MIT
6
6
  */
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
  /**
3
- * @license Angular v21.0.0-next.1
3
+ * @license Angular v21.0.0-next.3
4
4
  * (c) 2010-2025 Google LLC. https://angular.io/
5
5
  * License: MIT
6
6
  */
@@ -9,8 +9,8 @@
9
9
  var schematics = require('@angular-devkit/schematics');
10
10
  var fs = require('fs');
11
11
  var p = require('path');
12
- var compiler_host = require('./compiler_host-DrXTGf_7.cjs');
13
- var project_tsconfig_paths = require('./project_tsconfig_paths-D7xzGqRi.cjs');
12
+ var compiler_host = require('./compiler_host-Df7s6Riz.cjs');
13
+ var project_tsconfig_paths = require('./project_tsconfig_paths-bRwOJEk9.cjs');
14
14
  var ts = require('typescript');
15
15
  var property_name = require('./property_name-BBwFuqMe.cjs');
16
16
  require('os');
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
  /**
3
- * @license Angular v21.0.0-next.1
3
+ * @license Angular v21.0.0-next.3
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
- require('./project_tsconfig_paths-D7xzGqRi.cjs');
12
- require('./index-jjHOgYYs.cjs');
11
+ require('./project_tsconfig_paths-bRwOJEk9.cjs');
12
+ require('./index-CBaykQBv.cjs');
13
13
  require('path');
14
14
  require('node:path');
15
- var project_paths = require('./project_paths-T_M15e2g.cjs');
15
+ var project_paths = require('./project_paths-BJTqcWvC.cjs');
16
16
  var imports = require('./imports-26VeX8i-.cjs');
17
17
  var symbol = require('./symbol-VPWguRxr.cjs');
18
18
  require('@angular-devkit/core');
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
  /**
3
- * @license Angular v21.0.0-next.1
3
+ * @license Angular v21.0.0-next.3
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
- require('./project_tsconfig_paths-D7xzGqRi.cjs');
12
- require('./index-jjHOgYYs.cjs');
11
+ require('./project_tsconfig_paths-bRwOJEk9.cjs');
12
+ require('./index-CBaykQBv.cjs');
13
13
  require('path');
14
14
  require('node:path');
15
- var project_paths = require('./project_paths-T_M15e2g.cjs');
15
+ var project_paths = require('./project_paths-BJTqcWvC.cjs');
16
16
  var imports = require('./imports-26VeX8i-.cjs');
17
17
  var symbol = require('./symbol-VPWguRxr.cjs');
18
18
  require('@angular-devkit/core');
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
  /**
3
- * @license Angular v21.0.0-next.1
3
+ * @license Angular v21.0.0-next.3
4
4
  * (c) 2010-2025 Google LLC. https://angular.io/
5
5
  * License: MIT
6
6
  */
@@ -8,13 +8,13 @@
8
8
 
9
9
  var ts = require('typescript');
10
10
  require('os');
11
- var project_tsconfig_paths = require('./project_tsconfig_paths-D7xzGqRi.cjs');
12
- require('./index-jjHOgYYs.cjs');
11
+ var project_tsconfig_paths = require('./project_tsconfig_paths-bRwOJEk9.cjs');
12
+ require('./index-CBaykQBv.cjs');
13
13
  require('path');
14
14
  require('node:path');
15
- var project_paths = require('./project_paths-T_M15e2g.cjs');
16
- var ng_component_template = require('./ng_component_template-DjLc4mdL.cjs');
17
- var parse_html = require('./parse_html-CXR8hziE.cjs');
15
+ var project_paths = require('./project_paths-BJTqcWvC.cjs');
16
+ var ng_component_template = require('./ng_component_template-HYGPuVhy.cjs');
17
+ var parse_html = require('./parse_html-CLFKoiOK.cjs');
18
18
  require('@angular-devkit/core');
19
19
  require('node:path/posix');
20
20
  require('fs');
@@ -1,22 +1,22 @@
1
1
  'use strict';
2
2
  /**
3
- * @license Angular v21.0.0-next.1
3
+ * @license Angular v21.0.0-next.3
4
4
  * (c) 2010-2025 Google LLC. https://angular.io/
5
5
  * License: MIT
6
6
  */
7
7
  'use strict';
8
8
 
9
- var migrate_ts_type_references = require('./migrate_ts_type_references-BVSg43hf.cjs');
9
+ var migrate_ts_type_references = require('./migrate_ts_type_references-C_gTvDtH.cjs');
10
10
  var ts = require('typescript');
11
11
  require('os');
12
- var project_tsconfig_paths = require('./project_tsconfig_paths-D7xzGqRi.cjs');
13
- var index$1 = require('./index-jjHOgYYs.cjs');
12
+ var project_tsconfig_paths = require('./project_tsconfig_paths-bRwOJEk9.cjs');
13
+ var index$1 = require('./index-CBaykQBv.cjs');
14
14
  require('path');
15
15
  require('node:path');
16
- var project_paths = require('./project_paths-T_M15e2g.cjs');
17
- var index = require('./index-BdH2rlWJ.cjs');
16
+ var project_paths = require('./project_paths-BJTqcWvC.cjs');
17
+ var index = require('./index-Clvp4COX.cjs');
18
18
  var assert = require('assert');
19
- var apply_import_manager = require('./apply_import_manager-yycO3l8f.cjs');
19
+ var apply_import_manager = require('./apply_import_manager-tNexl58m.cjs');
20
20
  require('@angular-devkit/core');
21
21
  require('node:path/posix');
22
22
  require('./leading_space-D9nQ8UQC.cjs');
@@ -1,22 +1,22 @@
1
1
  'use strict';
2
2
  /**
3
- * @license Angular v21.0.0-next.1
3
+ * @license Angular v21.0.0-next.3
4
4
  * (c) 2010-2025 Google LLC. https://angular.io/
5
5
  * License: MIT
6
6
  */
7
7
  'use strict';
8
8
 
9
- var project_tsconfig_paths = require('./project_tsconfig_paths-D7xzGqRi.cjs');
9
+ var project_tsconfig_paths = require('./project_tsconfig_paths-bRwOJEk9.cjs');
10
10
  var ts = require('typescript');
11
11
  require('os');
12
- var index$1 = require('./index-jjHOgYYs.cjs');
12
+ var index$1 = require('./index-CBaykQBv.cjs');
13
13
  require('path');
14
14
  require('node:path');
15
- var project_paths = require('./project_paths-T_M15e2g.cjs');
16
- var apply_import_manager = require('./apply_import_manager-yycO3l8f.cjs');
17
- var migrate_ts_type_references = require('./migrate_ts_type_references-BVSg43hf.cjs');
15
+ var project_paths = require('./project_paths-BJTqcWvC.cjs');
16
+ var apply_import_manager = require('./apply_import_manager-tNexl58m.cjs');
17
+ var migrate_ts_type_references = require('./migrate_ts_type_references-C_gTvDtH.cjs');
18
18
  var assert = require('assert');
19
- var index = require('./index-BdH2rlWJ.cjs');
19
+ var index = require('./index-Clvp4COX.cjs');
20
20
  require('@angular-devkit/core');
21
21
  require('node:path/posix');
22
22
  require('fs');
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
  /**
3
- * @license Angular v21.0.0-next.1
3
+ * @license Angular v21.0.0-next.3
4
4
  * (c) 2010-2025 Google LLC. https://angular.io/
5
5
  * License: MIT
6
6
  */
@@ -10,7 +10,7 @@ var schematics = require('@angular-devkit/schematics');
10
10
  var signalQueriesMigration = require('./signal-queries-migration.cjs');
11
11
  var signalInputMigration = require('./signal-input-migration.cjs');
12
12
  var outputMigration = require('./output-migration.cjs');
13
- require('./project_tsconfig_paths-D7xzGqRi.cjs');
13
+ require('./project_tsconfig_paths-bRwOJEk9.cjs');
14
14
  require('typescript');
15
15
  require('os');
16
16
  require('fs');
@@ -18,14 +18,14 @@ require('module');
18
18
  require('path');
19
19
  require('url');
20
20
  require('@angular-devkit/core');
21
- require('./index-jjHOgYYs.cjs');
21
+ require('./index-CBaykQBv.cjs');
22
22
  require('node:path');
23
- require('./project_paths-T_M15e2g.cjs');
23
+ require('./project_paths-BJTqcWvC.cjs');
24
24
  require('node:path/posix');
25
- require('./apply_import_manager-yycO3l8f.cjs');
26
- require('./migrate_ts_type_references-BVSg43hf.cjs');
25
+ require('./apply_import_manager-tNexl58m.cjs');
26
+ require('./migrate_ts_type_references-C_gTvDtH.cjs');
27
27
  require('assert');
28
- require('./index-BdH2rlWJ.cjs');
28
+ require('./index-Clvp4COX.cjs');
29
29
  require('./leading_space-D9nQ8UQC.cjs');
30
30
 
31
31
  function migrate(options) {
@@ -1,18 +1,18 @@
1
1
  'use strict';
2
2
  /**
3
- * @license Angular v21.0.0-next.1
3
+ * @license Angular v21.0.0-next.3
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 schematics = require('@angular-devkit/schematics');
10
- var index = require('./index-jjHOgYYs.cjs');
10
+ var index = require('./index-CBaykQBv.cjs');
11
11
  var fs = require('fs');
12
12
  var p = require('path');
13
13
  var ts = require('typescript');
14
- var compiler_host = require('./compiler_host-DrXTGf_7.cjs');
15
- var project_tsconfig_paths = require('./project_tsconfig_paths-D7xzGqRi.cjs');
14
+ var compiler_host = require('./compiler_host-Df7s6Riz.cjs');
15
+ var project_tsconfig_paths = require('./project_tsconfig_paths-bRwOJEk9.cjs');
16
16
  var ng_decorators = require('./ng_decorators-CtYwz9Lw.cjs');
17
17
  var nodes = require('./nodes-B16H9JUd.cjs');
18
18
  var symbol = require('./symbol-VPWguRxr.cjs');
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
  /**
3
- * @license Angular v21.0.0-next.1
3
+ * @license Angular v21.0.0-next.3
4
4
  * (c) 2010-2025 Google LLC. https://angular.io/
5
5
  * License: MIT
6
6
  */
@@ -13,8 +13,8 @@
13
13
  "migrateSpaceSeparatedKey": {
14
14
  "type": "boolean",
15
15
  "description": "Enables the migration of object literals with space-separated keys",
16
- "x-prompt": "Should the migration also migrate space-separated keys ?",
17
- "default": "false"
16
+ "x-prompt": "Should the migration also migrate space-separated keys?",
17
+ "default": false
18
18
  }
19
19
  }
20
20
  }
@@ -16,6 +16,16 @@
16
16
  "version": "21.0.0",
17
17
  "description": "Ensures that the Router.lastSuccessfulNavigation signal is now invoked",
18
18
  "factory": "./bundles/router-last-successful-navigation.cjs#migrate"
19
+ },
20
+ "application-config-core": {
21
+ "version": "21.0.0",
22
+ "description": "Moves imports of `ApplicationConfig` from `@angular/platform-browser` to `@angular/core`",
23
+ "factory": "./bundles/application-config-core.cjs#migrate"
24
+ },
25
+ "add-bootstrap-context-to-server-main": {
26
+ "version": "21.0.0",
27
+ "description": "Adds `BootstrapContext` to `bootstrapApplication` calls in `main.server.ts` to support server rendering.",
28
+ "factory": "./bundles/add-bootstrap-context-to-server-main.cjs#migrate"
19
29
  }
20
30
  }
21
31
  }
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v21.0.0-next.1
2
+ * @license Angular v21.0.0-next.3
3
3
  * (c) 2010-2025 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
package/weak_ref.d.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v21.0.0-next.1
2
+ * @license Angular v21.0.0-next.3
3
3
  * (c) 2010-2025 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */