@angular/core 16.0.0-next.7 → 16.0.0-rc.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 (45) hide show
  1. package/esm2022/rxjs-interop/src/index.mjs +3 -3
  2. package/esm2022/rxjs-interop/src/to_observable.mjs +39 -0
  3. package/esm2022/rxjs-interop/src/to_signal.mjs +52 -0
  4. package/esm2022/src/application_ref.mjs +3 -3
  5. package/esm2022/src/application_tokens.mjs +11 -1
  6. package/esm2022/src/core_private_export.mjs +2 -1
  7. package/esm2022/src/errors.mjs +1 -1
  8. package/esm2022/src/hydration/annotate.mjs +42 -33
  9. package/esm2022/src/hydration/api.mjs +47 -19
  10. package/esm2022/src/hydration/error_handling.mjs +1 -17
  11. package/esm2022/src/initial_render_pending_tasks.mjs +10 -10
  12. package/esm2022/src/render3/component_ref.mjs +3 -3
  13. package/esm2022/src/render3/di.mjs +3 -3
  14. package/esm2022/src/render3/hooks.mjs +3 -3
  15. package/esm2022/src/render3/instructions/i18n.mjs +14 -2
  16. package/esm2022/src/render3/instructions/mark_view_dirty.mjs +1 -1
  17. package/esm2022/src/render3/instructions/shared.mjs +14 -14
  18. package/esm2022/src/render3/interfaces/type_checks.mjs +1 -1
  19. package/esm2022/src/render3/interfaces/view.mjs +1 -1
  20. package/esm2022/src/render3/node_manipulation.mjs +9 -9
  21. package/esm2022/src/render3/reactivity/effect.mjs +1 -1
  22. package/esm2022/src/render3/util/discovery_utils.mjs +1 -1
  23. package/esm2022/src/render3/util/view_traversal_utils.mjs +1 -1
  24. package/esm2022/src/render3/util/view_utils.mjs +2 -2
  25. package/esm2022/src/render3/view_ref.mjs +4 -4
  26. package/esm2022/src/signals/src/watch.mjs +6 -2
  27. package/esm2022/src/version.mjs +1 -1
  28. package/esm2022/testing/src/logger.mjs +3 -3
  29. package/esm2022/testing/src/ng_zone_mock.mjs +3 -3
  30. package/fesm2022/core.mjs +156 -113
  31. package/fesm2022/core.mjs.map +1 -1
  32. package/fesm2022/rxjs-interop.mjs +704 -56
  33. package/fesm2022/rxjs-interop.mjs.map +1 -1
  34. package/fesm2022/testing.mjs +67 -57
  35. package/fesm2022/testing.mjs.map +1 -1
  36. package/index.d.ts +32 -15
  37. package/package.json +2 -2
  38. package/rxjs-interop/index.d.ts +53 -46
  39. package/schematics/migrations/guard-and-resolve-interfaces/bundle.js +13 -13
  40. package/schematics/migrations/remove-module-id/bundle.js +14 -14
  41. package/schematics/ng-generate/standalone-migration/bundle.js +2938 -1229
  42. package/schematics/ng-generate/standalone-migration/bundle.js.map +4 -4
  43. package/testing/index.d.ts +1 -1
  44. package/esm2022/rxjs-interop/src/from_observable.mjs +0 -46
  45. package/esm2022/rxjs-interop/src/from_signal.mjs +0 -36
package/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v16.0.0-next.7
2
+ * @license Angular v16.0.0-rc.0
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -2933,24 +2933,29 @@ export declare interface DoCheck {
2933
2933
  *
2934
2934
  * @developerPreview
2935
2935
  */
2936
- export declare function effect(effectFn: () => EffectCleanupFn | void, options?: CreateEffectOptions): EffectRef;
2936
+ export declare function effect(effectFn: (onCleanup: EffectCleanupRegisterFn) => void, options?: CreateEffectOptions): EffectRef;
2937
2937
 
2938
2938
  /**
2939
- * An effect can, optionally, return a cleanup function. If returned, the cleanup is executed before
2940
- * the next effect run. The cleanup function makes it possible to "cancel" any work that the
2939
+ * An effect can, optionally, register a cleanup function. If registered, the cleanup is executed
2940
+ * before the next effect run. The cleanup function makes it possible to "cancel" any work that the
2941
2941
  * previous effect run might have started.
2942
2942
  *
2943
2943
  * @developerPreview
2944
2944
  */
2945
2945
  export declare type EffectCleanupFn = () => void;
2946
2946
 
2947
+ /**
2948
+ * A callback passed to the effect function that makes it possible to register cleanup logic.
2949
+ */
2950
+ declare type EffectCleanupRegisterFn = (cleanupFn: EffectCleanupFn) => void;
2951
+
2947
2952
  /**
2948
2953
  * Tracks all effects registered within a given application and runs them via `flush`.
2949
2954
  */
2950
2955
  declare class EffectManager {
2951
2956
  private all;
2952
2957
  private queue;
2953
- create(effectFn: () => void, destroyRef: DestroyRef | null, allowSignalWrites: boolean): EffectRef;
2958
+ create(effectFn: (onCleanup: (cleanupFn: EffectCleanupFn) => void) => void, destroyRef: DestroyRef | null, allowSignalWrites: boolean): EffectRef;
2954
2959
  flush(): void;
2955
2960
  get isQueueEmpty(): boolean;
2956
2961
  /** @nocollapse */
@@ -5452,27 +5457,29 @@ declare const enum LViewFlags {
5452
5457
  FirstLViewPass = 8,
5453
5458
  /** Whether this view has default change detection strategy (checks always) or onPush */
5454
5459
  CheckAlways = 16,
5460
+ /** Whether there are any i18n blocks inside this LView. */
5461
+ HasI18n = 32,
5455
5462
  /** Whether or not this view is currently dirty (needing check) */
5456
- Dirty = 32,
5463
+ Dirty = 64,
5457
5464
  /** Whether or not this view is currently attached to change detection tree. */
5458
- Attached = 64,
5465
+ Attached = 128,
5459
5466
  /** Whether or not this view is destroyed. */
5460
- Destroyed = 128,
5467
+ Destroyed = 256,
5461
5468
  /** Whether or not this view is the root view */
5462
- IsRoot = 256,
5469
+ IsRoot = 512,
5463
5470
  /**
5464
5471
  * Whether this moved LView was needs to be refreshed at the insertion location because the
5465
5472
  * declaration was dirty.
5466
5473
  */
5467
- RefreshTransplantedView = 512,
5474
+ RefreshTransplantedView = 1024,
5468
5475
  /** Indicates that the view **or any of its ancestors** have an embedded view injector. */
5469
- HasEmbeddedViewInjector = 1024,
5476
+ HasEmbeddedViewInjector = 2048,
5470
5477
  /**
5471
5478
  * Index of the current init phase on last 21 bits
5472
5479
  */
5473
- IndexWithinInitPhaseIncrementer = 2048,
5474
- IndexWithinInitPhaseShift = 11,
5475
- IndexWithinInitPhaseReset = 2047
5480
+ IndexWithinInitPhaseIncrementer = 4096,
5481
+ IndexWithinInitPhaseShift = 12,
5482
+ IndexWithinInitPhaseReset = 4095
5476
5483
  }
5477
5484
 
5478
5485
  /**
@@ -7535,8 +7542,9 @@ declare const enum RuntimeErrorCode {
7535
7542
  HYDRATION_MISSING_NODE = -502,
7536
7543
  UNSUPPORTED_PROJECTION_DOM_NODES = -503,
7537
7544
  INVALID_SKIP_HYDRATION_HOST = -504,
7538
- HYDRATION_I18N_NOT_YET_SUPPORTED = 518,
7545
+ MISSING_HYDRATION_ANNOTATIONS = -505,
7539
7546
  SIGNAL_WRITE_FROM_ILLEGAL_CONTEXT = 600,
7547
+ REQUIRE_SYNC_WITHOUT_SYNC_EMIT = 601,
7540
7548
  INVALID_I18N_STRUCTURE = 700,
7541
7549
  MISSING_LOCALE_DATA = 701,
7542
7550
  IMPORT_PROVIDERS_FROM_STANDALONE = 800,
@@ -10659,6 +10667,14 @@ export declare interface ɵDirectiveType<T> extends Type<T> {
10659
10667
  ɵfac: unknown;
10660
10668
  }
10661
10669
 
10670
+ /**
10671
+ * Internal token to collect all SSR-related features enabled for this application.
10672
+ *
10673
+ * Note: the token is in `core` to let other packages register features (the `core`
10674
+ * package is imported in other packages).
10675
+ */
10676
+ export declare const ɵENABLED_SSR_FEATURES: InjectionToken<Set<string>>;
10677
+
10662
10678
 
10663
10679
  export declare function ɵescapeTransferStateContent(text: string): string;
10664
10680
 
@@ -10820,6 +10836,7 @@ export declare class ɵInitialRenderPendingTasks implements OnDestroy {
10820
10836
  add(): number;
10821
10837
  remove(taskId: number): void;
10822
10838
  ngOnDestroy(): void;
10839
+ private complete;
10823
10840
  static ɵfac: i0.ɵɵFactoryDeclaration<ɵInitialRenderPendingTasks, never>;
10824
10841
  static ɵprov: i0.ɵɵInjectableDeclaration<ɵInitialRenderPendingTasks>;
10825
10842
  }
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@angular/core",
3
- "version": "16.0.0-next.7",
3
+ "version": "16.0.0-rc.0",
4
4
  "description": "Angular - the core framework",
5
5
  "author": "angular",
6
6
  "license": "MIT",
7
7
  "engines": {
8
- "node": "^16.13.0 || >=18.10.0"
8
+ "node": "^16.14.0 || >=18.10.0"
9
9
  },
10
10
  "exports": {
11
11
  "./schematics/*": {
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v16.0.0-next.7
2
+ * @license Angular v16.0.0-rc.0
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -11,37 +11,74 @@ import { MonoTypeOperatorFunction } from 'rxjs';
11
11
  import { Observable } from 'rxjs';
12
12
  import { Signal } from '@angular/core';
13
13
 
14
+ /**
15
+ * Operator which completes the Observable when the calling context (component, directive, service,
16
+ * etc) is destroyed.
17
+ *
18
+ * @param destroyRef optionally, the `DestroyRef` representing the current context. This can be
19
+ * passed explicitly to use `takeUntilDestroyed` outside of an injection context. Otherwise, the
20
+ * current `DestroyRef` is injected.
21
+ *
22
+ * @developerPreview
23
+ */
24
+ export declare function takeUntilDestroyed<T>(destroyRef?: DestroyRef): MonoTypeOperatorFunction<T>;
25
+
26
+ /**
27
+ * Exposes the value of an Angular `Signal` as an RxJS `Observable`.
28
+ *
29
+ * The signal's value will be propagated into the `Observable`'s subscribers using an `effect`.
30
+ *
31
+ * `toObservable` must be called in an injection context.
32
+ *
33
+ * @developerPreview
34
+ */
35
+ export declare function toObservable<T>(source: Signal<T>, options?: toObservableOptions): Observable<T>;
36
+
37
+ /**
38
+ * Options for `toObservable`.
39
+ *
40
+ * @developerPreview
41
+ */
42
+ export declare interface toObservableOptions {
43
+ /**
44
+ * The `Injector` to use when creating the effect.
45
+ *
46
+ * If this isn't specified, the current injection context will be used.
47
+ */
48
+ injector?: Injector;
49
+ }
50
+
14
51
  /**
15
52
  * Get the current value of an `Observable` as a reactive `Signal`.
16
53
  *
17
- * `fromObservable` returns a `Signal` which provides synchronous reactive access to values produced
54
+ * `toSignal` returns a `Signal` which provides synchronous reactive access to values produced
18
55
  * by the given `Observable`, by subscribing to that `Observable`. The returned `Signal` will always
19
56
  * have the most recent value emitted by the subscription, and will throw an error if the
20
57
  * `Observable` errors.
21
58
  *
22
59
  * The subscription will last for the lifetime of the current injection context. That is, if
23
- * `fromObservable` is called from a component context, the subscription will be cleaned up when the
60
+ * `toSignal` is called from a component context, the subscription will be cleaned up when the
24
61
  * component is destroyed. When called outside of a component, the current `EnvironmentInjector`'s
25
62
  * lifetime will be used (which is typically the lifetime of the application itself).
26
63
  *
27
64
  * If the `Observable` does not produce a value before the `Signal` is read, the `Signal` will throw
28
65
  * an error. To avoid this, use a synchronous `Observable` (potentially created with the `startWith`
29
- * operator) or pass an initial value to `fromObservable` as the second argument.
66
+ * operator) or pass an initial value to `toSignal` as the second argument.
30
67
  *
31
- * `fromObservable` must be called in an injection context.
68
+ * `toSignal` must be called in an injection context.
32
69
  */
33
- export declare function fromObservable<T>(source: Observable<T>): Signal<T>;
70
+ export declare function toSignal<T>(source: Observable<T>): Signal<T | undefined>;
34
71
 
35
72
  /**
36
73
  * Get the current value of an `Observable` as a reactive `Signal`.
37
74
  *
38
- * `fromObservable` returns a `Signal` which provides synchronous reactive access to values produced
75
+ * `toSignal` returns a `Signal` which provides synchronous reactive access to values produced
39
76
  * by the given `Observable`, by subscribing to that `Observable`. The returned `Signal` will always
40
77
  * have the most recent value emitted by the subscription, and will throw an error if the
41
78
  * `Observable` errors.
42
79
  *
43
80
  * The subscription will last for the lifetime of the current injection context. That is, if
44
- * `fromObservable` is called from a component context, the subscription will be cleaned up when the
81
+ * `toSignal` is called from a component context, the subscription will be cleaned up when the
45
82
  * component is destroyed. When called outside of a component, the current `EnvironmentInjector`'s
46
83
  * lifetime will be used (which is typically the lifetime of the application itself).
47
84
  *
@@ -49,47 +86,17 @@ export declare function fromObservable<T>(source: Observable<T>): Signal<T>;
49
86
  * `initialValue`. If the `Observable` is known to produce a value before the `Signal` will be read,
50
87
  * `initialValue` does not need to be passed.
51
88
  *
52
- * `fromObservable` must be called in an injection context.
89
+ * `toSignal` must be called in an injection context.
53
90
  *
54
91
  * @developerPreview
55
92
  */
56
- export declare function fromObservable<T, U extends T | null | undefined>(source: Observable<T>, initialValue: U): Signal<T | U>;
93
+ export declare function toSignal<T, U extends T | null | undefined>(source: Observable<T>, options: {
94
+ initialValue: U;
95
+ requireSync?: false;
96
+ }): Signal<T | U>;
57
97
 
58
- /**
59
- * Exposes the value of an Angular `Signal` as an RxJS `Observable`.
60
- *
61
- * The signal's value will be propagated into the `Observable`'s subscribers using an `effect`.
62
- *
63
- * `fromSignal` must be called in an injection context.
64
- *
65
- * @developerPreview
66
- */
67
- export declare function fromSignal<T>(source: Signal<T>, options?: FromSignalOptions): Observable<T>;
68
-
69
- /**
70
- * Options for `fromSignal`.
71
- *
72
- * @developerPreview
73
- */
74
- export declare interface FromSignalOptions {
75
- /**
76
- * The `Injector` to use when creating the effect.
77
- *
78
- * If this isn't specified, the current injection context will be used.
79
- */
80
- injector?: Injector;
81
- }
82
-
83
- /**
84
- * Operator which completes the Observable when the calling context (component, directive, service,
85
- * etc) is destroyed.
86
- *
87
- * @param destroyRef optionally, the `DestroyRef` representing the current context. This can be
88
- * passed explicitly to use `takeUntilDestroyed` outside of an injection context. Otherwise, the
89
- * current `DestroyRef` is injected.
90
- *
91
- * @developerPreview
92
- */
93
- export declare function takeUntilDestroyed<T>(destroyRef?: DestroyRef): MonoTypeOperatorFunction<T>;
98
+ export declare function toSignal<T>(source: Observable<T>, options: {
99
+ requireSync: true;
100
+ }): Signal<T>;
94
101
 
95
102
  export { }
@@ -60,7 +60,7 @@ var __async = (__this, __arguments, generator) => {
60
60
  });
61
61
  };
62
62
 
63
- // bazel-out/darwin-fastbuild/bin/packages/core/schematics/migrations/guard-and-resolve-interfaces/index.mjs
63
+ // bazel-out/k8-fastbuild/bin/packages/core/schematics/migrations/guard-and-resolve-interfaces/index.mjs
64
64
  var guard_and_resolve_interfaces_exports = {};
65
65
  __export(guard_and_resolve_interfaces_exports, {
66
66
  default: () => guard_and_resolve_interfaces_default
@@ -69,7 +69,7 @@ module.exports = __toCommonJS(guard_and_resolve_interfaces_exports);
69
69
  var import_schematics = require("@angular-devkit/schematics");
70
70
  var import_path3 = require("path");
71
71
 
72
- // bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/project_tsconfig_paths.mjs
72
+ // bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/project_tsconfig_paths.mjs
73
73
  var import_core = require("@angular-devkit/core");
74
74
  function getProjectTsConfigPaths(tree) {
75
75
  return __async(this, null, function* () {
@@ -149,11 +149,11 @@ function getWorkspace(tree) {
149
149
  });
150
150
  }
151
151
 
152
- // bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
152
+ // bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
153
153
  var import_path = require("path");
154
154
  var import_typescript2 = __toESM(require("typescript"), 1);
155
155
 
156
- // bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/typescript/parse_tsconfig.mjs
156
+ // bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/parse_tsconfig.mjs
157
157
  var path = __toESM(require("path"), 1);
158
158
  var import_typescript = __toESM(require("typescript"), 1);
159
159
  function parseTsconfigFile(tsconfigPath, basePath) {
@@ -170,7 +170,7 @@ function parseTsconfigFile(tsconfigPath, basePath) {
170
170
  return import_typescript.default.parseJsonConfigFileContent(config, parseConfigHost, basePath, {});
171
171
  }
172
172
 
173
- // bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
173
+ // bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
174
174
  function createMigrationProgram(tree, tsconfigPath, basePath, fakeFileRead, additionalFiles) {
175
175
  const { rootNames, options, host } = createProgramOptions(tree, tsconfigPath, basePath, fakeFileRead, additionalFiles);
176
176
  return import_typescript2.default.createProgram(rootNames, options, host);
@@ -203,13 +203,13 @@ function canMigrateFile(basePath, sourceFile, program) {
203
203
  return !(0, import_path.relative)(basePath, sourceFile.fileName).startsWith("..");
204
204
  }
205
205
 
206
- // bazel-out/darwin-fastbuild/bin/packages/core/schematics/migrations/guard-and-resolve-interfaces/util.mjs
206
+ // bazel-out/k8-fastbuild/bin/packages/core/schematics/migrations/guard-and-resolve-interfaces/util.mjs
207
207
  var import_typescript7 = __toESM(require("typescript"), 1);
208
208
 
209
- // bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/change_tracker.mjs
209
+ // bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/change_tracker.mjs
210
210
  var import_typescript4 = __toESM(require("typescript"), 1);
211
211
 
212
- // bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/import_manager.mjs
212
+ // bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/import_manager.mjs
213
213
  var import_path2 = require("path");
214
214
  var import_typescript3 = __toESM(require("typescript"), 1);
215
215
  var ImportManager = class {
@@ -393,7 +393,7 @@ ${text}`;
393
393
  }
394
394
  };
395
395
 
396
- // bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/change_tracker.mjs
396
+ // bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/change_tracker.mjs
397
397
  var ChangeTracker = class {
398
398
  constructor(_printer, _importRemapper) {
399
399
  __publicField(this, "_printer");
@@ -449,7 +449,7 @@ function normalizePath(path2) {
449
449
  return path2.replace(/\\/g, "/");
450
450
  }
451
451
 
452
- // bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/typescript/imports.mjs
452
+ // bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/imports.mjs
453
453
  var import_typescript5 = __toESM(require("typescript"), 1);
454
454
  function getImportOfIdentifier(typeChecker, node) {
455
455
  const symbol = typeChecker.getSymbolAtLocation(node);
@@ -521,7 +521,7 @@ function findImportSpecifier(nodes, specifierName) {
521
521
  });
522
522
  }
523
523
 
524
- // bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/typescript/nodes.mjs
524
+ // bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/nodes.mjs
525
525
  var import_typescript6 = __toESM(require("typescript"), 1);
526
526
  function closestNode(node, predicate) {
527
527
  let current = node.parent;
@@ -534,7 +534,7 @@ function closestNode(node, predicate) {
534
534
  return null;
535
535
  }
536
536
 
537
- // bazel-out/darwin-fastbuild/bin/packages/core/schematics/migrations/guard-and-resolve-interfaces/util.mjs
537
+ // bazel-out/k8-fastbuild/bin/packages/core/schematics/migrations/guard-and-resolve-interfaces/util.mjs
538
538
  var deprecatedInterfaces = /* @__PURE__ */ new Set(["CanLoad", "CanMatch", "CanActivate", "CanDeactivate", "CanActivateChild", "Resolve"]);
539
539
  var routerModule = "@angular/router";
540
540
  function migrateFile(sourceFile, typeChecker, rewriteFn) {
@@ -647,7 +647,7 @@ function visitTypeReference(typeReference, typeChecker, changeTracker, sourceFil
647
647
  import_typescript7.default.forEachChild(typeReference, visitTypeReferenceChildren);
648
648
  }
649
649
 
650
- // bazel-out/darwin-fastbuild/bin/packages/core/schematics/migrations/guard-and-resolve-interfaces/index.mjs
650
+ // bazel-out/k8-fastbuild/bin/packages/core/schematics/migrations/guard-and-resolve-interfaces/index.mjs
651
651
  function guard_and_resolve_interfaces_default() {
652
652
  return (tree) => __async(this, null, function* () {
653
653
  const { buildPaths, testPaths } = yield getProjectTsConfigPaths(tree);
@@ -56,7 +56,7 @@ var __async = (__this, __arguments, generator) => {
56
56
  });
57
57
  };
58
58
 
59
- // bazel-out/darwin-fastbuild/bin/packages/core/schematics/migrations/remove-module-id/index.mjs
59
+ // bazel-out/k8-fastbuild/bin/packages/core/schematics/migrations/remove-module-id/index.mjs
60
60
  var remove_module_id_exports = {};
61
61
  __export(remove_module_id_exports, {
62
62
  default: () => remove_module_id_default
@@ -66,13 +66,13 @@ var import_schematics = require("@angular-devkit/schematics");
66
66
  var import_path2 = require("path");
67
67
  var import_typescript8 = __toESM(require("typescript"), 1);
68
68
 
69
- // bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/extract_metadata.mjs
69
+ // bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/extract_metadata.mjs
70
70
  var import_typescript4 = __toESM(require("typescript"), 1);
71
71
 
72
- // bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/typescript/decorators.mjs
72
+ // bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/decorators.mjs
73
73
  var import_typescript2 = __toESM(require("typescript"), 1);
74
74
 
75
- // bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/typescript/imports.mjs
75
+ // bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/imports.mjs
76
76
  var import_typescript = __toESM(require("typescript"), 1);
77
77
  function getImportOfIdentifier(typeChecker, node) {
78
78
  const symbol = typeChecker.getSymbolAtLocation(node);
@@ -94,7 +94,7 @@ function getImportOfIdentifier(typeChecker, node) {
94
94
  };
95
95
  }
96
96
 
97
- // bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/typescript/decorators.mjs
97
+ // bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/decorators.mjs
98
98
  function getCallDecoratorImport(typeChecker, decorator) {
99
99
  if (!import_typescript2.default.isCallExpression(decorator.expression) || !import_typescript2.default.isIdentifier(decorator.expression.expression)) {
100
100
  return null;
@@ -103,7 +103,7 @@ function getCallDecoratorImport(typeChecker, decorator) {
103
103
  return getImportOfIdentifier(typeChecker, identifier);
104
104
  }
105
105
 
106
- // bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/ng_decorators.mjs
106
+ // bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/ng_decorators.mjs
107
107
  function getAngularDecorators(typeChecker, decorators) {
108
108
  return decorators.map((node) => ({ node, importData: getCallDecoratorImport(typeChecker, node) })).filter(({ importData }) => importData && importData.importModule.startsWith("@angular/")).map(({ node, importData }) => ({
109
109
  node,
@@ -113,7 +113,7 @@ function getAngularDecorators(typeChecker, decorators) {
113
113
  }));
114
114
  }
115
115
 
116
- // bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/typescript/functions.mjs
116
+ // bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/functions.mjs
117
117
  var import_typescript3 = __toESM(require("typescript"), 1);
118
118
  function unwrapExpression(node) {
119
119
  if (import_typescript3.default.isParenthesizedExpression(node) || import_typescript3.default.isAsExpression(node)) {
@@ -123,7 +123,7 @@ function unwrapExpression(node) {
123
123
  }
124
124
  }
125
125
 
126
- // bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/extract_metadata.mjs
126
+ // bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/extract_metadata.mjs
127
127
  function extractAngularClassMetadata(typeChecker, node) {
128
128
  const decorators = import_typescript4.default.getDecorators(node);
129
129
  if (!decorators || !decorators.length) {
@@ -150,7 +150,7 @@ function extractAngularClassMetadata(typeChecker, node) {
150
150
  };
151
151
  }
152
152
 
153
- // bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/project_tsconfig_paths.mjs
153
+ // bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/project_tsconfig_paths.mjs
154
154
  var import_core = require("@angular-devkit/core");
155
155
  function getProjectTsConfigPaths(tree) {
156
156
  return __async(this, null, function* () {
@@ -230,11 +230,11 @@ function getWorkspace(tree) {
230
230
  });
231
231
  }
232
232
 
233
- // bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
233
+ // bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
234
234
  var import_path = require("path");
235
235
  var import_typescript6 = __toESM(require("typescript"), 1);
236
236
 
237
- // bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/typescript/parse_tsconfig.mjs
237
+ // bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/parse_tsconfig.mjs
238
238
  var path = __toESM(require("path"), 1);
239
239
  var import_typescript5 = __toESM(require("typescript"), 1);
240
240
  function parseTsconfigFile(tsconfigPath, basePath) {
@@ -251,7 +251,7 @@ function parseTsconfigFile(tsconfigPath, basePath) {
251
251
  return import_typescript5.default.parseJsonConfigFileContent(config, parseConfigHost, basePath, {});
252
252
  }
253
253
 
254
- // bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
254
+ // bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/compiler_host.mjs
255
255
  function createMigrationProgram(tree, tsconfigPath, basePath, fakeFileRead, additionalFiles) {
256
256
  const { rootNames, options, host } = createProgramOptions(tree, tsconfigPath, basePath, fakeFileRead, additionalFiles);
257
257
  return import_typescript6.default.createProgram(rootNames, options, host);
@@ -284,7 +284,7 @@ function canMigrateFile(basePath, sourceFile, program) {
284
284
  return !(0, import_path.relative)(basePath, sourceFile.fileName).startsWith("..");
285
285
  }
286
286
 
287
- // bazel-out/darwin-fastbuild/bin/packages/core/schematics/utils/typescript/property_name.mjs
287
+ // bazel-out/k8-fastbuild/bin/packages/core/schematics/utils/typescript/property_name.mjs
288
288
  var import_typescript7 = __toESM(require("typescript"), 1);
289
289
  function getPropertyNameText(node) {
290
290
  if (import_typescript7.default.isIdentifier(node) || import_typescript7.default.isStringLiteralLike(node)) {
@@ -293,7 +293,7 @@ function getPropertyNameText(node) {
293
293
  return null;
294
294
  }
295
295
 
296
- // bazel-out/darwin-fastbuild/bin/packages/core/schematics/migrations/remove-module-id/index.mjs
296
+ // bazel-out/k8-fastbuild/bin/packages/core/schematics/migrations/remove-module-id/index.mjs
297
297
  function remove_module_id_default() {
298
298
  return (tree) => __async(this, null, function* () {
299
299
  const { buildPaths, testPaths } = yield getProjectTsConfigPaths(tree);