@angular/core 19.2.1 → 20.0.0-next.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 (42) hide show
  1. package/fesm2022/core.mjs +6420 -6161
  2. package/fesm2022/core.mjs.map +1 -1
  3. package/fesm2022/primitives/di.mjs +1 -1
  4. package/fesm2022/primitives/event-dispatch.mjs +1 -1
  5. package/fesm2022/primitives/signals.mjs +1 -1
  6. package/fesm2022/rxjs-interop.mjs +1 -1
  7. package/fesm2022/testing.mjs +15 -4
  8. package/fesm2022/testing.mjs.map +1 -1
  9. package/index.d.ts +114 -25
  10. package/package.json +7 -1
  11. package/primitives/di/index.d.ts +1 -1
  12. package/primitives/event-dispatch/index.d.ts +1 -1
  13. package/primitives/signals/index.d.ts +1 -1
  14. package/rxjs-interop/index.d.ts +1 -1
  15. package/schematics/bundles/{apply_import_manager-b8d6885d.js → apply_import_manager-e2a7fe5b.js} +3 -3
  16. package/schematics/bundles/{checker-89987c98.js → checker-af521da6.js} +452 -231
  17. package/schematics/bundles/cleanup-unused-imports.js +6 -6
  18. package/schematics/bundles/{compiler_host-2398e4ca.js → compiler_host-5a29293c.js} +2 -2
  19. package/schematics/bundles/control-flow-migration.js +3 -3
  20. package/schematics/bundles/explicit-standalone-flag.js +3 -3
  21. package/schematics/bundles/imports-047fbbc8.js +1 -1
  22. package/schematics/bundles/{index-e0b2e4a7.js → index-1bef3025.js} +4 -4
  23. package/schematics/bundles/{index-10911843.js → index-ef1bffbb.js} +4 -4
  24. package/schematics/bundles/inject-migration.js +3 -3
  25. package/schematics/bundles/leading_space-f8944434.js +1 -1
  26. package/schematics/bundles/{migrate_ts_type_references-52508cd4.js → migrate_ts_type_references-2a3e9e6b.js} +15 -13
  27. package/schematics/bundles/ng_decorators-b0d8b324.js +1 -1
  28. package/schematics/bundles/nodes-7758dbf6.js +1 -1
  29. package/schematics/bundles/output-migration.js +6 -6
  30. package/schematics/bundles/pending-tasks.js +3 -3
  31. package/schematics/bundles/{program-0e1d4f10.js → program-a449f9bf.js} +149 -149
  32. package/schematics/bundles/{project_paths-c48796dd.js → project_paths-17dc204d.js} +3 -3
  33. package/schematics/bundles/project_tsconfig_paths-b558633b.js +1 -1
  34. package/schematics/bundles/property_name-ac18447e.js +1 -1
  35. package/schematics/bundles/provide-initializer.js +3 -3
  36. package/schematics/bundles/route-lazy-loading.js +3 -3
  37. package/schematics/bundles/self-closing-tags-migration.js +4 -4
  38. package/schematics/bundles/signal-input-migration.js +7 -7
  39. package/schematics/bundles/signal-queries-migration.js +7 -7
  40. package/schematics/bundles/signals.js +7 -7
  41. package/schematics/bundles/standalone-migration.js +5 -5
  42. package/testing/index.d.ts +1 -1
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v19.2.1
2
+ * @license Angular v20.0.0-next.1
3
3
  * (c) 2010-2025 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v19.2.1
2
+ * @license Angular v20.0.0-next.1
3
3
  * (c) 2010-2025 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v19.2.1
2
+ * @license Angular v20.0.0-next.1
3
3
  * (c) 2010-2025 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v19.2.1
2
+ * @license Angular v20.0.0-next.1
3
3
  * (c) 2010-2025 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v19.2.1
2
+ * @license Angular v20.0.0-next.1
3
3
  * (c) 2010-2025 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -175,10 +175,10 @@ class TestBedApplicationErrorHandler {
175
175
  throw e;
176
176
  }
177
177
  }
178
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: TestBedApplicationErrorHandler, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
179
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: TestBedApplicationErrorHandler });
178
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: TestBedApplicationErrorHandler, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
179
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: TestBedApplicationErrorHandler });
180
180
  }
181
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: TestBedApplicationErrorHandler, decorators: [{
181
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.0-next.1", ngImport: i0, type: TestBedApplicationErrorHandler, decorators: [{
182
182
  type: Injectable
183
183
  }] });
184
184
 
@@ -257,6 +257,17 @@ class ComponentFixture {
257
257
  this._ngZone.runOutsideAngular(() => {
258
258
  this.subscriptions.add(this._ngZone.onError.subscribe({
259
259
  next: (error) => {
260
+ // The rethrow here is to ensure that errors don't go unreported. Since `NgZone.onHandleError` returns `false`,
261
+ // ZoneJS will not throw the error coming out of a task. Instead, the handling is defined by
262
+ // the chain of parent delegates and whether they indicate the error is handled in some way (by returning `false`).
263
+ // Unfortunately, 'onError' does not forward the information about whether the error was handled by a parent zone
264
+ // so cannot know here whether throwing is appropriate. As a half-solution, we can check to see if we're inside
265
+ // a fakeAsync context, which we know has its own error handling.
266
+ // https://github.com/angular/angular/blob/db2f2d99c82aae52d8a0ae46616c6411d070b35e/packages/zone.js/lib/zone-spec/fake-async-test.ts#L783-L784
267
+ // https://github.com/angular/angular/blob/db2f2d99c82aae52d8a0ae46616c6411d070b35e/packages/zone.js/lib/zone-spec/fake-async-test.ts#L473-L478
268
+ if (typeof Zone === 'undefined' || Zone.current.get('FakeAsyncTestZoneSpec')) {
269
+ return;
270
+ }
260
271
  throw error;
261
272
  },
262
273
  }));