@angular/core 16.0.0-rc.0 → 16.0.0-rc.2

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 (42) hide show
  1. package/esm2022/rxjs-interop/src/index.mjs +1 -1
  2. package/esm2022/rxjs-interop/src/to_observable.mjs +1 -1
  3. package/esm2022/rxjs-interop/src/to_signal.mjs +2 -2
  4. package/esm2022/src/application_tokens.mjs +2 -2
  5. package/esm2022/src/core_private_export.mjs +2 -2
  6. package/esm2022/src/debug/debug_node.mjs +4 -9
  7. package/esm2022/src/di/interface/defs.mjs +3 -18
  8. package/esm2022/src/di/r3_injector.mjs +2 -1
  9. package/esm2022/src/errors.mjs +1 -1
  10. package/esm2022/src/hydration/annotate.mjs +5 -2
  11. package/esm2022/src/hydration/api.mjs +7 -7
  12. package/esm2022/src/hydration/node_lookup_utils.mjs +13 -8
  13. package/esm2022/src/hydration/tokens.mjs +5 -5
  14. package/esm2022/src/render3/assert.mjs +1 -1
  15. package/esm2022/src/render3/collect_native_nodes.mjs +18 -3
  16. package/esm2022/src/render3/i18n/i18n_parse.mjs +5 -6
  17. package/esm2022/src/render3/instructions/element_validation.mjs +4 -5
  18. package/esm2022/src/render3/instructions/shared.mjs +52 -25
  19. package/esm2022/src/render3/instructions/styling.mjs +22 -2
  20. package/esm2022/src/render3/instructions/template.mjs +2 -2
  21. package/esm2022/src/render3/reactive_lview_consumer.mjs +5 -5
  22. package/esm2022/src/render3/reactivity/effect.mjs +8 -3
  23. package/esm2022/src/render3/util/view_utils.mjs +5 -1
  24. package/esm2022/src/signals/src/signal.mjs +8 -1
  25. package/esm2022/src/version.mjs +1 -1
  26. package/esm2022/testing/src/logger.mjs +3 -3
  27. package/esm2022/testing/src/styling.mjs +1 -2
  28. package/esm2022/testing/src/test_bed_compiler.mjs +3 -8
  29. package/esm2022/testing/src/testing_internal.mjs +1 -2
  30. package/fesm2022/core.mjs +148 -85
  31. package/fesm2022/core.mjs.map +1 -1
  32. package/fesm2022/rxjs-interop.mjs +62 -2
  33. package/fesm2022/rxjs-interop.mjs.map +1 -1
  34. package/fesm2022/testing.mjs +137 -77
  35. package/fesm2022/testing.mjs.map +1 -1
  36. package/index.d.ts +12 -4
  37. package/package.json +1 -1
  38. package/rxjs-interop/index.d.ts +3 -3
  39. package/schematics/ng-generate/standalone-migration/bundle.js +618 -161
  40. package/schematics/ng-generate/standalone-migration/bundle.js.map +4 -4
  41. package/testing/index.d.ts +1 -1
  42. package/esm2022/testing/src/ng_zone_mock.mjs +0 -34
package/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v16.0.0-rc.0
2
+ * @license Angular v16.0.0-rc.2
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -7558,7 +7558,8 @@ declare const enum RuntimeErrorCode {
7558
7558
  TYPE_IS_NOT_STANDALONE = 907,
7559
7559
  MISSING_ZONEJS = 908,
7560
7560
  UNEXPECTED_ZONE_STATE = 909,
7561
- UNSAFE_IFRAME_ATTRS = -910
7561
+ UNSAFE_IFRAME_ATTRS = -910,
7562
+ VIEW_ALREADY_DESTROYED = 911
7562
7563
  }
7563
7564
 
7564
7565
  /**
@@ -10081,6 +10082,12 @@ export declare interface WritableSignal<T> extends Signal<T> {
10081
10082
  * notify any dependents.
10082
10083
  */
10083
10084
  mutate(mutatorFn: (value: T) => void): void;
10085
+ /**
10086
+ * Returns a readonly version of this signal. Readonly signals can be accessed to read their value
10087
+ * but can't be changed using set, update or mutate methods. The readonly signals do _not_ have
10088
+ * any built-in mechanism that would prevent deep-mutation of their value.
10089
+ */
10090
+ asReadonly(): Signal<T>;
10084
10091
  }
10085
10092
 
10086
10093
  /**
@@ -10879,9 +10886,10 @@ export declare interface ɵInternalEnvironmentProviders extends EnvironmentProvi
10879
10886
  }
10880
10887
 
10881
10888
  /**
10882
- * Internal token that specifies whether hydration is enabled.
10889
+ * Internal token that specifies whether DOM reuse logic
10890
+ * during hydration is enabled.
10883
10891
  */
10884
- export declare const ɵIS_HYDRATION_FEATURE_ENABLED: InjectionToken<boolean>;
10892
+ export declare const ɵIS_HYDRATION_DOM_REUSE_ENABLED: InjectionToken<boolean>;
10885
10893
 
10886
10894
  export declare function ɵisBoundToModule<C>(cf: ComponentFactory<C>): boolean;
10887
10895
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/core",
3
- "version": "16.0.0-rc.0",
3
+ "version": "16.0.0-rc.2",
4
4
  "description": "Angular - the core framework",
5
5
  "author": "angular",
6
6
  "license": "MIT",
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v16.0.0-rc.0
2
+ * @license Angular v16.0.0-rc.2
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -32,14 +32,14 @@ export declare function takeUntilDestroyed<T>(destroyRef?: DestroyRef): MonoType
32
32
  *
33
33
  * @developerPreview
34
34
  */
35
- export declare function toObservable<T>(source: Signal<T>, options?: toObservableOptions): Observable<T>;
35
+ export declare function toObservable<T>(source: Signal<T>, options?: ToObservableOptions): Observable<T>;
36
36
 
37
37
  /**
38
38
  * Options for `toObservable`.
39
39
  *
40
40
  * @developerPreview
41
41
  */
42
- export declare interface toObservableOptions {
42
+ export declare interface ToObservableOptions {
43
43
  /**
44
44
  * The `Injector` to use when creating the effect.
45
45
  *