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

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 (32) 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/api.mjs +6 -6
  11. package/esm2022/src/hydration/tokens.mjs +4 -3
  12. package/esm2022/src/render3/assert.mjs +1 -1
  13. package/esm2022/src/render3/instructions/element_validation.mjs +4 -5
  14. package/esm2022/src/render3/reactive_lview_consumer.mjs +2 -2
  15. package/esm2022/src/render3/util/view_utils.mjs +5 -1
  16. package/esm2022/src/signals/src/signal.mjs +8 -1
  17. package/esm2022/src/version.mjs +1 -1
  18. package/esm2022/testing/src/logger.mjs +3 -3
  19. package/esm2022/testing/src/ng_zone_mock.mjs +3 -3
  20. package/esm2022/testing/src/styling.mjs +1 -2
  21. package/fesm2022/core.mjs +30 -39
  22. package/fesm2022/core.mjs.map +1 -1
  23. package/fesm2022/rxjs-interop.mjs +62 -2
  24. package/fesm2022/rxjs-interop.mjs.map +1 -1
  25. package/fesm2022/testing.mjs +22 -26
  26. package/fesm2022/testing.mjs.map +1 -1
  27. package/index.d.ts +12 -4
  28. package/package.json +1 -1
  29. package/rxjs-interop/index.d.ts +3 -3
  30. package/schematics/ng-generate/standalone-migration/bundle.js +9 -9
  31. package/schematics/ng-generate/standalone-migration/bundle.js.map +1 -1
  32. package/testing/index.d.ts +1 -1
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.1
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.1",
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.1
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
  *
@@ -18170,7 +18170,7 @@ function publishFacade(global2) {
18170
18170
  }
18171
18171
 
18172
18172
  // bazel-out/k8-fastbuild/bin/packages/compiler/src/version.mjs
18173
- var VERSION2 = new Version("16.0.0-rc.0");
18173
+ var VERSION2 = new Version("16.0.0-rc.1");
18174
18174
 
18175
18175
  // bazel-out/k8-fastbuild/bin/packages/compiler/src/i18n/extractor_merger.mjs
18176
18176
  var _I18N_ATTR = "i18n";
@@ -19485,7 +19485,7 @@ var MINIMUM_PARTIAL_LINKER_VERSION = "12.0.0";
19485
19485
  function compileDeclareClassMetadata(metadata) {
19486
19486
  const definitionMap = new DefinitionMap();
19487
19487
  definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION));
19488
- definitionMap.set("version", literal("16.0.0-rc.0"));
19488
+ definitionMap.set("version", literal("16.0.0-rc.1"));
19489
19489
  definitionMap.set("ngImport", importExpr(Identifiers.core));
19490
19490
  definitionMap.set("type", metadata.type);
19491
19491
  definitionMap.set("decorators", metadata.decorators);
@@ -19554,7 +19554,7 @@ function createDirectiveDefinitionMap(meta) {
19554
19554
  var _a2;
19555
19555
  const definitionMap = new DefinitionMap();
19556
19556
  definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION2));
19557
- definitionMap.set("version", literal("16.0.0-rc.0"));
19557
+ definitionMap.set("version", literal("16.0.0-rc.1"));
19558
19558
  definitionMap.set("type", meta.type.value);
19559
19559
  if (meta.isStandalone) {
19560
19560
  definitionMap.set("isStandalone", literal(meta.isStandalone));
@@ -19736,7 +19736,7 @@ var MINIMUM_PARTIAL_LINKER_VERSION3 = "12.0.0";
19736
19736
  function compileDeclareFactoryFunction(meta) {
19737
19737
  const definitionMap = new DefinitionMap();
19738
19738
  definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION3));
19739
- definitionMap.set("version", literal("16.0.0-rc.0"));
19739
+ definitionMap.set("version", literal("16.0.0-rc.1"));
19740
19740
  definitionMap.set("ngImport", importExpr(Identifiers.core));
19741
19741
  definitionMap.set("type", meta.type.value);
19742
19742
  definitionMap.set("deps", compileDependencies(meta.deps));
@@ -19759,7 +19759,7 @@ function compileDeclareInjectableFromMetadata(meta) {
19759
19759
  function createInjectableDefinitionMap(meta) {
19760
19760
  const definitionMap = new DefinitionMap();
19761
19761
  definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION4));
19762
- definitionMap.set("version", literal("16.0.0-rc.0"));
19762
+ definitionMap.set("version", literal("16.0.0-rc.1"));
19763
19763
  definitionMap.set("ngImport", importExpr(Identifiers.core));
19764
19764
  definitionMap.set("type", meta.type.value);
19765
19765
  if (meta.providedIn !== void 0) {
@@ -19797,7 +19797,7 @@ function compileDeclareInjectorFromMetadata(meta) {
19797
19797
  function createInjectorDefinitionMap(meta) {
19798
19798
  const definitionMap = new DefinitionMap();
19799
19799
  definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION5));
19800
- definitionMap.set("version", literal("16.0.0-rc.0"));
19800
+ definitionMap.set("version", literal("16.0.0-rc.1"));
19801
19801
  definitionMap.set("ngImport", importExpr(Identifiers.core));
19802
19802
  definitionMap.set("type", meta.type.value);
19803
19803
  definitionMap.set("providers", meta.providers);
@@ -19818,7 +19818,7 @@ function compileDeclareNgModuleFromMetadata(meta) {
19818
19818
  function createNgModuleDefinitionMap(meta) {
19819
19819
  const definitionMap = new DefinitionMap();
19820
19820
  definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION6));
19821
- definitionMap.set("version", literal("16.0.0-rc.0"));
19821
+ definitionMap.set("version", literal("16.0.0-rc.1"));
19822
19822
  definitionMap.set("ngImport", importExpr(Identifiers.core));
19823
19823
  definitionMap.set("type", meta.type.value);
19824
19824
  if (meta.bootstrap.length > 0) {
@@ -19853,7 +19853,7 @@ function compileDeclarePipeFromMetadata(meta) {
19853
19853
  function createPipeDefinitionMap(meta) {
19854
19854
  const definitionMap = new DefinitionMap();
19855
19855
  definitionMap.set("minVersion", literal(MINIMUM_PARTIAL_LINKER_VERSION7));
19856
- definitionMap.set("version", literal("16.0.0-rc.0"));
19856
+ definitionMap.set("version", literal("16.0.0-rc.1"));
19857
19857
  definitionMap.set("ngImport", importExpr(Identifiers.core));
19858
19858
  definitionMap.set("type", meta.type.value);
19859
19859
  if (meta.isStandalone) {
@@ -19870,7 +19870,7 @@ function createPipeDefinitionMap(meta) {
19870
19870
  publishFacade(_global);
19871
19871
 
19872
19872
  // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/version.mjs
19873
- var VERSION3 = new Version("16.0.0-rc.0");
19873
+ var VERSION3 = new Version("16.0.0-rc.1");
19874
19874
 
19875
19875
  // bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/transformers/api.mjs
19876
19876
  var EmitFlags;