@angular/core 16.0.0-rc.1 → 16.0.0-rc.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 (50) hide show
  1. package/esm2022/rxjs-interop/src/take_until_destroyed.mjs +3 -2
  2. package/esm2022/rxjs-interop/src/to_observable.mjs +19 -18
  3. package/esm2022/src/application_init.mjs +9 -3
  4. package/esm2022/src/application_ref.mjs +2 -1
  5. package/esm2022/src/errors.mjs +3 -3
  6. package/esm2022/src/hydration/annotate.mjs +5 -2
  7. package/esm2022/src/hydration/api.mjs +2 -2
  8. package/esm2022/src/hydration/error_handling.mjs +13 -5
  9. package/esm2022/src/hydration/node_lookup_utils.mjs +13 -8
  10. package/esm2022/src/hydration/tokens.mjs +3 -4
  11. package/esm2022/src/linker/template_ref.mjs +3 -2
  12. package/esm2022/src/render3/collect_native_nodes.mjs +18 -3
  13. package/esm2022/src/render3/component_ref.mjs +3 -2
  14. package/esm2022/src/render3/definition.mjs +4 -5
  15. package/esm2022/src/render3/i18n/i18n_parse.mjs +5 -6
  16. package/esm2022/src/render3/instructions/change_detection.mjs +263 -3
  17. package/esm2022/src/render3/instructions/element.mjs +2 -2
  18. package/esm2022/src/render3/instructions/element_container.mjs +2 -2
  19. package/esm2022/src/render3/instructions/render.mjs +125 -0
  20. package/esm2022/src/render3/instructions/shared.mjs +72 -427
  21. package/esm2022/src/render3/instructions/styling.mjs +22 -2
  22. package/esm2022/src/render3/instructions/template.mjs +22 -9
  23. package/esm2022/src/render3/interfaces/container.mjs +3 -3
  24. package/esm2022/src/render3/interfaces/view.mjs +2 -2
  25. package/esm2022/src/render3/node_manipulation.mjs +4 -8
  26. package/esm2022/src/render3/reactive_lview_consumer.mjs +4 -4
  27. package/esm2022/src/render3/reactivity/effect.mjs +8 -3
  28. package/esm2022/src/render3/util/view_utils.mjs +35 -11
  29. package/esm2022/src/render3/view_ref.mjs +2 -2
  30. package/esm2022/src/version.mjs +1 -1
  31. package/esm2022/testing/src/logger.mjs +3 -3
  32. package/esm2022/testing/src/test_bed.mjs +1 -3
  33. package/esm2022/testing/src/test_bed_common.mjs +1 -1
  34. package/esm2022/testing/src/test_bed_compiler.mjs +3 -8
  35. package/esm2022/testing/src/testing_internal.mjs +1 -2
  36. package/fesm2022/core.mjs +741 -640
  37. package/fesm2022/core.mjs.map +1 -1
  38. package/fesm2022/rxjs-interop.mjs +23 -21
  39. package/fesm2022/rxjs-interop.mjs.map +1 -1
  40. package/fesm2022/testing.mjs +730 -645
  41. package/fesm2022/testing.mjs.map +1 -1
  42. package/index.d.ts +24 -10
  43. package/package.json +1 -1
  44. package/rxjs-interop/index.d.ts +1 -1
  45. package/schematics/migrations/guard-and-resolve-interfaces/bundle.js +13 -13
  46. package/schematics/migrations/remove-module-id/bundle.js +14 -14
  47. package/schematics/ng-generate/standalone-migration/bundle.js +965 -494
  48. package/schematics/ng-generate/standalone-migration/bundle.js.map +4 -4
  49. package/testing/index.d.ts +3 -3
  50. package/esm2022/testing/src/ng_zone_mock.mjs +0 -34
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v16.0.0-rc.1
2
+ * @license Angular v16.0.0-rc.3
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -119,12 +119,12 @@ export declare class ComponentFixture<T> {
119
119
  /**
120
120
  * @publicApi
121
121
  */
122
- export declare const ComponentFixtureAutoDetect: InjectionToken<boolean[]>;
122
+ export declare const ComponentFixtureAutoDetect: InjectionToken<boolean>;
123
123
 
124
124
  /**
125
125
  * @publicApi
126
126
  */
127
- export declare const ComponentFixtureNoNgZone: InjectionToken<boolean[]>;
127
+ export declare const ComponentFixtureNoNgZone: InjectionToken<boolean>;
128
128
 
129
129
  /**
130
130
  * Discard all remaining periodic tasks.
@@ -1,34 +0,0 @@
1
- /**
2
- * @license
3
- * Copyright Google LLC All Rights Reserved.
4
- *
5
- * Use of this source code is governed by an MIT-style license that can be
6
- * found in the LICENSE file at https://angular.io/license
7
- */
8
- import { EventEmitter, Injectable, NgZone } from '@angular/core';
9
- import * as i0 from "@angular/core";
10
- /**
11
- * A mock implementation of {@link NgZone}.
12
- */
13
- class MockNgZone extends NgZone {
14
- constructor() {
15
- super({ enableLongStackTrace: false, shouldCoalesceEventChangeDetection: false });
16
- this.onStable = new EventEmitter(false);
17
- }
18
- run(fn) {
19
- return fn();
20
- }
21
- runOutsideAngular(fn) {
22
- return fn();
23
- }
24
- simulateZoneExit() {
25
- this.onStable.emit(null);
26
- }
27
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.0-rc.1", ngImport: i0, type: MockNgZone, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
28
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.0-rc.1", ngImport: i0, type: MockNgZone }); }
29
- }
30
- export { MockNgZone };
31
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.0-rc.1", ngImport: i0, type: MockNgZone, decorators: [{
32
- type: Injectable
33
- }], ctorParameters: function () { return []; } });
34
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmdfem9uZV9tb2NrLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvY29yZS90ZXN0aW5nL3NyYy9uZ196b25lX21vY2sudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7OztHQU1HO0FBRUgsT0FBTyxFQUFDLFlBQVksRUFBRSxVQUFVLEVBQUUsTUFBTSxFQUFDLE1BQU0sZUFBZSxDQUFDOztBQUcvRDs7R0FFRztBQUNILE1BQ2EsVUFBVyxTQUFRLE1BQU07SUFHcEM7UUFDRSxLQUFLLENBQUMsRUFBQyxvQkFBb0IsRUFBRSxLQUFLLEVBQUUsa0NBQWtDLEVBQUUsS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