@angular/core 19.0.0-next.6 → 19.0.0-next.8

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 (37) hide show
  1. package/LICENSE +21 -0
  2. package/fesm2022/core.mjs +648 -273
  3. package/fesm2022/core.mjs.map +1 -1
  4. package/fesm2022/primitives/event-dispatch.mjs +1 -1
  5. package/fesm2022/primitives/event-dispatch.mjs.map +1 -1
  6. package/fesm2022/primitives/signals.mjs +1 -1
  7. package/fesm2022/primitives/signals.mjs.map +1 -1
  8. package/fesm2022/rxjs-interop.mjs +25 -4
  9. package/fesm2022/rxjs-interop.mjs.map +1 -1
  10. package/fesm2022/testing.mjs +12 -11
  11. package/fesm2022/testing.mjs.map +1 -1
  12. package/index.d.ts +232 -148
  13. package/package.json +1 -1
  14. package/primitives/event-dispatch/index.d.ts +1 -1
  15. package/primitives/signals/index.d.ts +1 -1
  16. package/rxjs-interop/index.d.ts +3 -1
  17. package/schematics/bundles/{checker-dcf9a14e.js → checker-e68dd7ce.js} +34 -13
  18. package/schematics/bundles/{compiler_host-6026cdf8.js → compiler_host-9a4d0c2b.js} +2 -2
  19. package/schematics/bundles/control-flow-migration.js +3 -3
  20. package/schematics/bundles/explicit-standalone-flag.js +5 -5
  21. package/schematics/bundles/group_replacements-472b2387.js +31445 -0
  22. package/schematics/bundles/{imports-44987700.js → imports-4ac08251.js} +1 -1
  23. package/schematics/bundles/inject-migration.js +28 -32
  24. package/schematics/bundles/leading_space-d190b83b.js +30 -0
  25. package/schematics/bundles/{nodes-b12e919a.js → nodes-0e7d45ca.js} +2 -2
  26. package/schematics/bundles/pending-tasks.js +103 -0
  27. package/schematics/bundles/{program-4dc8c0fa.js → program-105283c5.js} +1865 -1489
  28. package/schematics/bundles/{project_tsconfig_paths-6c9cde78.js → project_tsconfig_paths-e9ccccbf.js} +1 -1
  29. package/schematics/bundles/route-lazy-loading.js +4 -4
  30. package/schematics/bundles/signal-input-migration.js +706 -31790
  31. package/schematics/bundles/signal-queries-migration.js +905 -0
  32. package/schematics/bundles/standalone-migration.js +12 -12
  33. package/schematics/collection.json +6 -0
  34. package/schematics/migrations.json +5 -0
  35. package/schematics/ng-generate/signal-input-migration/schema.json +5 -0
  36. package/schematics/ng-generate/signal-queries-migration/schema.json +19 -0
  37. package/testing/index.d.ts +3 -1
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v19.0.0-next.6
2
+ * @license Angular v19.0.0-next.8
3
3
  * (c) 2010-2024 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v19.0.0-next.6
2
+ * @license Angular v19.0.0-next.8
3
3
  * (c) 2010-2024 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -164,4 +164,6 @@ export declare interface ToSignalOptions<T> {
164
164
  equal?: ValueEqualityFn<T>;
165
165
  }
166
166
 
167
+ export declare function ɵtoObservableMicrotask<T>(source: Signal<T>, options?: ToObservableOptions): Observable<T>;
168
+
167
169
  export { }
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
  /**
3
- * @license Angular v19.0.0-next.6
3
+ * @license Angular v19.0.0-next.8
4
4
  * (c) 2010-2024 Google LLC. https://angular.io/
5
5
  * License: MIT
6
6
  */
@@ -2539,6 +2539,7 @@ class Identifiers {
2539
2539
  }; }
2540
2540
  static { this.forwardRef = { name: 'forwardRef', moduleName: CORE }; }
2541
2541
  static { this.resolveForwardRef = { name: 'resolveForwardRef', moduleName: CORE }; }
2542
+ static { this.replaceMetadata = { name: 'ɵɵreplaceMetadata', moduleName: CORE }; }
2542
2543
  static { this.ɵɵdefineInjectable = { name: 'ɵɵdefineInjectable', moduleName: CORE }; }
2543
2544
  static { this.declareInjectable = { name: 'ɵɵngDeclareInjectable', moduleName: CORE }; }
2544
2545
  static { this.InjectableDeclaration = {
@@ -11793,7 +11794,10 @@ function formatValue(value) {
11793
11794
  // Self-closing tags use a special form that concatenates the start and close tag values.
11794
11795
  if (value.flags & I18nParamValueFlags.OpenTag &&
11795
11796
  value.flags & I18nParamValueFlags.CloseTag) {
11796
- return `${formatValue({ ...value, flags: value.flags & ~I18nParamValueFlags.CloseTag })}${formatValue({ ...value, flags: value.flags & ~I18nParamValueFlags.OpenTag })}`;
11797
+ return `${formatValue({
11798
+ ...value,
11799
+ flags: value.flags & ~I18nParamValueFlags.CloseTag,
11800
+ })}${formatValue({ ...value, flags: value.flags & ~I18nParamValueFlags.OpenTag })}`;
11797
11801
  }
11798
11802
  // If there are no special flags, just return the raw value.
11799
11803
  if (value.flags === I18nParamValueFlags.None) {
@@ -12185,13 +12189,17 @@ class IcuSerializerVisitor {
12185
12189
  visitTagPlaceholder(ph) {
12186
12190
  return ph.isVoid
12187
12191
  ? this.formatPh(ph.startName)
12188
- : `${this.formatPh(ph.startName)}${ph.children.map((child) => child.visit(this)).join('')}${this.formatPh(ph.closeName)}`;
12192
+ : `${this.formatPh(ph.startName)}${ph.children
12193
+ .map((child) => child.visit(this))
12194
+ .join('')}${this.formatPh(ph.closeName)}`;
12189
12195
  }
12190
12196
  visitPlaceholder(ph) {
12191
12197
  return this.formatPh(ph.name);
12192
12198
  }
12193
12199
  visitBlockPlaceholder(ph) {
12194
- return `${this.formatPh(ph.startName)}${ph.children.map((child) => child.visit(this)).join('')}${this.formatPh(ph.closeName)}`;
12200
+ return `${this.formatPh(ph.startName)}${ph.children
12201
+ .map((child) => child.visit(this))
12202
+ .join('')}${this.formatPh(ph.closeName)}`;
12195
12203
  }
12196
12204
  visitIcuPlaceholder(ph, context) {
12197
12205
  return this.formatPh(ph.name);
@@ -19523,13 +19531,17 @@ class GetMsgSerializerVisitor {
19523
19531
  visitTagPlaceholder(ph) {
19524
19532
  return ph.isVoid
19525
19533
  ? this.formatPh(ph.startName)
19526
- : `${this.formatPh(ph.startName)}${ph.children.map((child) => child.visit(this)).join('')}${this.formatPh(ph.closeName)}`;
19534
+ : `${this.formatPh(ph.startName)}${ph.children
19535
+ .map((child) => child.visit(this))
19536
+ .join('')}${this.formatPh(ph.closeName)}`;
19527
19537
  }
19528
19538
  visitPlaceholder(ph) {
19529
19539
  return this.formatPh(ph.name);
19530
19540
  }
19531
19541
  visitBlockPlaceholder(ph) {
19532
- return `${this.formatPh(ph.startName)}${ph.children.map((child) => child.visit(this)).join('')}${this.formatPh(ph.closeName)}`;
19542
+ return `${this.formatPh(ph.startName)}${ph.children
19543
+ .map((child) => child.visit(this))
19544
+ .join('')}${this.formatPh(ph.closeName)}`;
19533
19545
  }
19534
19546
  visitIcuPlaceholder(ph, context) {
19535
19547
  return this.formatPh(ph.name);
@@ -23640,7 +23652,7 @@ function wrapI18nIcus(job) {
23640
23652
  * Copyright Google LLC All Rights Reserved.
23641
23653
  *
23642
23654
  * Use of this source code is governed by an MIT-style license that can be
23643
- * found in the LICENSE file at https://angular.io/license
23655
+ * found in the LICENSE file at https://angular.dev/license
23644
23656
  */
23645
23657
  /**
23646
23658
  * Removes any `storeLet` calls that aren't referenced outside of the current view.
@@ -23723,7 +23735,7 @@ function generateLocalLetReferences(job) {
23723
23735
  * Copyright Google LLC All Rights Reserved.
23724
23736
  *
23725
23737
  * Use of this source code is governed by an MIT-style license that can be
23726
- * found in the LICENSE file at https://angular.io/license
23738
+ * found in the LICENSE file at https://angular.dev/license
23727
23739
  */
23728
23740
  const phases = [
23729
23741
  { kind: CompilationJobKind.Tmpl, fn: removeContentSelectors },
@@ -29234,7 +29246,7 @@ function publishFacade(global) {
29234
29246
  * @description
29235
29247
  * Entry point for all public APIs of the compiler package.
29236
29248
  */
29237
- new Version('19.0.0-next.6');
29249
+ new Version('19.0.0-next.8');
29238
29250
 
29239
29251
  const _I18N_ATTR = 'i18n';
29240
29252
  const _I18N_ATTR_PREFIX = 'i18n-';
@@ -29795,6 +29807,10 @@ exports.ErrorCode = void 0;
29795
29807
  * pipe.
29796
29808
  */
29797
29809
  ErrorCode[ErrorCode["COMPONENT_UNKNOWN_DEFERRED_IMPORT"] = 2022] = "COMPONENT_UNKNOWN_DEFERRED_IMPORT";
29810
+ /**
29811
+ * Raised when a `standalone: false` component is declared but `strictStandalone` is set.
29812
+ */
29813
+ ErrorCode[ErrorCode["NON_STANDALONE_NOT_ALLOWED"] = 2023] = "NON_STANDALONE_NOT_ALLOWED";
29798
29814
  ErrorCode[ErrorCode["SYMBOL_NOT_EXPORTED"] = 3001] = "SYMBOL_NOT_EXPORTED";
29799
29815
  /**
29800
29816
  * Raised when a relationship between directives and/or pipes would cause a cyclic import to be
@@ -30578,7 +30594,7 @@ class NodeJSPathManipulation {
30578
30594
  // G3-ESM-MARKER: G3 uses CommonJS, but externally everything in ESM.
30579
30595
  // CommonJS/ESM interop for determining the current file name and containing dir.
30580
30596
  const isCommonJS = typeof __filename !== 'undefined';
30581
- const currentFileUrl = isCommonJS ? null : (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('checker-dcf9a14e.js', document.baseURI).href));
30597
+ const currentFileUrl = isCommonJS ? null : (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('checker-e68dd7ce.js', document.baseURI).href));
30582
30598
  const currentFileName = isCommonJS ? __filename : url.fileURLToPath(currentFileUrl);
30583
30599
  /**
30584
30600
  * A wrapper around the Node.js file-system that supports readonly operations and path manipulation.
@@ -35383,7 +35399,7 @@ class TypeEmitter {
35383
35399
  * Copyright Google LLC All Rights Reserved.
35384
35400
  *
35385
35401
  * Use of this source code is governed by an MIT-style license that can be
35386
- * found in the LICENSE file at https://angular.io/license
35402
+ * found in the LICENSE file at https://angular.dev/license
35387
35403
  */
35388
35404
  /**
35389
35405
  * Creates a TypeScript node representing a numeric value.
@@ -43445,9 +43461,11 @@ class SymbolBuilder {
43445
43461
  return this.getSymbol(expressionTarget);
43446
43462
  }
43447
43463
  let withSpan = expression.sourceSpan;
43448
- // The `name` part of a `PropertyWrite` and a non-safe `Call` does not have its own
43464
+ // The `name` part of a `PropertyWrite` and `ASTWithName` do not have their own
43449
43465
  // AST so there is no way to retrieve a `Symbol` for just the `name` via a specific node.
43450
- if (expression instanceof PropertyWrite) {
43466
+ // Also skipping SafePropertyReads as it breaks nullish coalescing not nullable extended diagnostic
43467
+ if (expression instanceof PropertyWrite ||
43468
+ (expression instanceof ASTWithName && !(expression instanceof SafePropertyRead))) {
43451
43469
  withSpan = expression.nameSpan;
43452
43470
  }
43453
43471
  let node = null;
@@ -43500,6 +43518,9 @@ class SymbolBuilder {
43500
43518
  if (ts__default["default"].isPropertyAccessExpression(node)) {
43501
43519
  tsSymbol = this.getTypeChecker().getSymbolAtLocation(node.name);
43502
43520
  }
43521
+ else if (ts__default["default"].isCallExpression(node)) {
43522
+ tsSymbol = this.getTypeChecker().getSymbolAtLocation(node.expression);
43523
+ }
43503
43524
  else {
43504
43525
  tsSymbol = this.getTypeChecker().getSymbolAtLocation(node);
43505
43526
  }
@@ -1,13 +1,13 @@
1
1
  'use strict';
2
2
  /**
3
- * @license Angular v19.0.0-next.6
3
+ * @license Angular v19.0.0-next.8
4
4
  * (c) 2010-2024 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-dcf9a14e.js');
10
+ var checker = require('./checker-e68dd7ce.js');
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 v19.0.0-next.6
3
+ * @license Angular v19.0.0-next.8
4
4
  * (c) 2010-2024 Google LLC. https://angular.io/
5
5
  * License: MIT
6
6
  */
@@ -10,8 +10,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
10
10
 
11
11
  var schematics = require('@angular-devkit/schematics');
12
12
  var p = require('path');
13
- var compiler_host = require('./compiler_host-6026cdf8.js');
14
- var checker = require('./checker-dcf9a14e.js');
13
+ var compiler_host = require('./compiler_host-9a4d0c2b.js');
14
+ var checker = require('./checker-e68dd7ce.js');
15
15
  var ts = require('typescript');
16
16
  require('os');
17
17
  require('fs');
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
  /**
3
- * @license Angular v19.0.0-next.6
3
+ * @license Angular v19.0.0-next.8
4
4
  * (c) 2010-2024 Google LLC. https://angular.io/
5
5
  * License: MIT
6
6
  */
@@ -10,12 +10,12 @@ Object.defineProperty(exports, '__esModule', { value: true });
10
10
 
11
11
  var schematics = require('@angular-devkit/schematics');
12
12
  var p = require('path');
13
- var project_tsconfig_paths = require('./project_tsconfig_paths-6c9cde78.js');
14
- var compiler_host = require('./compiler_host-6026cdf8.js');
13
+ var project_tsconfig_paths = require('./project_tsconfig_paths-e9ccccbf.js');
14
+ var compiler_host = require('./compiler_host-9a4d0c2b.js');
15
15
  var ts = require('typescript');
16
- var imports = require('./imports-44987700.js');
16
+ var imports = require('./imports-4ac08251.js');
17
17
  require('@angular-devkit/core');
18
- require('./checker-dcf9a14e.js');
18
+ require('./checker-e68dd7ce.js');
19
19
  require('os');
20
20
  require('fs');
21
21
  require('module');