@angular/core 19.1.0-next.3 → 19.1.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 (39) hide show
  1. package/LICENSE +1 -1
  2. package/fesm2022/core.mjs +516 -266
  3. package/fesm2022/core.mjs.map +1 -1
  4. package/fesm2022/primitives/event-dispatch.mjs +1 -24
  5. package/fesm2022/primitives/event-dispatch.mjs.map +1 -1
  6. package/fesm2022/primitives/signals.mjs +1 -1
  7. package/fesm2022/rxjs-interop.mjs +1 -1
  8. package/fesm2022/testing.mjs +5 -5
  9. package/index.d.ts +169 -17
  10. package/package.json +1 -1
  11. package/primitives/event-dispatch/index.d.ts +1 -1
  12. package/primitives/signals/index.d.ts +1 -1
  13. package/rxjs-interop/index.d.ts +1 -1
  14. package/schematics/bundles/apply_import_manager-6508401d.js +732 -0
  15. package/schematics/bundles/{checker-228cb8a8.js → checker-24b68d23.js} +75 -27
  16. package/schematics/bundles/cleanup-unused-imports.js +295 -0
  17. package/schematics/bundles/{compiler_host-fc806dbe.js → compiler_host-5f693799.js} +2 -2
  18. package/schematics/bundles/control-flow-migration.js +3 -3
  19. package/schematics/bundles/explicit-standalone-flag.js +3 -3
  20. package/schematics/bundles/imports-abe29092.js +1 -1
  21. package/schematics/bundles/{combine_units-5d6a7099.js → index-767e341d.js} +10 -723
  22. package/schematics/bundles/index-b1033cf0.js +30 -0
  23. package/schematics/bundles/inject-migration.js +3 -3
  24. package/schematics/bundles/leading_space-d190b83b.js +1 -1
  25. package/schematics/bundles/{migrate_ts_type_references-d02c6750.js → migrate_ts_type_references-bc7d8784.js} +29 -28
  26. package/schematics/bundles/nodes-a9f0b985.js +1 -1
  27. package/schematics/bundles/output-migration.js +26 -25
  28. package/schematics/bundles/pending-tasks.js +3 -3
  29. package/schematics/bundles/{program-1591ec8f.js → program-c810a4c2.js} +81 -40
  30. package/schematics/bundles/project_tsconfig_paths-e9ccccbf.js +1 -1
  31. package/schematics/bundles/provide-initializer.js +3 -3
  32. package/schematics/bundles/route-lazy-loading.js +3 -3
  33. package/schematics/bundles/signal-input-migration.js +31 -30
  34. package/schematics/bundles/signal-queries-migration.js +48 -47
  35. package/schematics/bundles/signals.js +6 -5
  36. package/schematics/bundles/standalone-migration.js +9 -25
  37. package/schematics/collection.json +5 -0
  38. package/schematics/ng-generate/cleanup-unused-imports/schema.json +7 -0
  39. package/testing/index.d.ts +1 -1
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
  /**
3
- * @license Angular v19.1.0-next.3
3
+ * @license Angular v19.1.0-rc.0
4
4
  * (c) 2010-2024 Google LLC. https://angular.io/
5
5
  * License: MIT
6
6
  */
@@ -9,45 +9,29 @@
9
9
  Object.defineProperty(exports, '__esModule', { value: true });
10
10
 
11
11
  var schematics = require('@angular-devkit/schematics');
12
- require('os');
13
- var ts = require('typescript');
14
- var checker = require('./checker-228cb8a8.js');
15
- var program = require('./program-1591ec8f.js');
16
- var p = require('path');
12
+ require('./index-b1033cf0.js');
17
13
  var fs = require('fs');
18
- var compiler_host = require('./compiler_host-fc806dbe.js');
14
+ var p = require('path');
15
+ var ts = require('typescript');
16
+ var compiler_host = require('./compiler_host-5f693799.js');
19
17
  var project_tsconfig_paths = require('./project_tsconfig_paths-e9ccccbf.js');
20
18
  var nodes = require('./nodes-a9f0b985.js');
21
19
  var imports = require('./imports-abe29092.js');
20
+ var checker = require('./checker-24b68d23.js');
21
+ require('os');
22
+ var program = require('./program-c810a4c2.js');
23
+ require('@angular-devkit/core');
22
24
  require('module');
23
25
  require('url');
24
- require('@angular-devkit/core');
25
26
 
26
27
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
27
28
 
28
29
  var ts__default = /*#__PURE__*/_interopDefaultLegacy(ts);
29
30
 
30
- /**
31
- * @module
32
- * @description
33
- * Entry point for all public APIs of the compiler-cli package.
34
- */
35
- new checker.Version('19.1.0-next.3');
36
-
37
31
  function createProgram({ rootNames, options, host, oldProgram, }) {
38
32
  return new program.NgtscProgram(rootNames, options, host, oldProgram);
39
33
  }
40
34
 
41
- var LogLevel;
42
- (function (LogLevel) {
43
- LogLevel[LogLevel["debug"] = 0] = "debug";
44
- LogLevel[LogLevel["info"] = 1] = "info";
45
- LogLevel[LogLevel["warn"] = 2] = "warn";
46
- LogLevel[LogLevel["error"] = 3] = "error";
47
- })(LogLevel || (LogLevel = {}));
48
-
49
- checker.setFileSystem(new checker.NodeJSFileSystem());
50
-
51
35
  /** Checks whether a node is referring to a specific import specifier. */
52
36
  function isReferenceToImport(typeChecker, node, importSpecifier) {
53
37
  // If this function is called on an identifier (should be most cases), we can quickly rule out
@@ -46,6 +46,11 @@
46
46
  "description": "Combines all signals-related migrations into a single migration",
47
47
  "factory": "./bundles/signals#migrate",
48
48
  "schema": "./ng-generate/signals/schema.json"
49
+ },
50
+ "cleanup-unused-imports": {
51
+ "description": "Removes unused imports from standalone components.",
52
+ "factory": "./bundles/cleanup-unused-imports#migrate",
53
+ "schema": "./ng-generate/cleanup-unused-imports/schema.json"
49
54
  }
50
55
  }
51
56
  }
@@ -0,0 +1,7 @@
1
+ {
2
+ "$schema": "http://json-schema.org/draft-07/schema",
3
+ "$id": "AngularCleanupUnusedImportsMigration",
4
+ "title": "Angular Cleanup Unused Imports Schema",
5
+ "type": "object",
6
+ "properties": {}
7
+ }
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v19.1.0-next.3
2
+ * @license Angular v19.1.0-rc.0
3
3
  * (c) 2010-2024 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */