@angular/core 19.1.0-next.4 → 19.1.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.
- package/LICENSE +1 -1
- package/fesm2022/core.mjs +85 -91
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/primitives/event-dispatch.mjs +1 -24
- package/fesm2022/primitives/event-dispatch.mjs.map +1 -1
- package/fesm2022/primitives/signals.mjs +1 -1
- package/fesm2022/rxjs-interop.mjs +1 -1
- package/fesm2022/rxjs-interop.mjs.map +1 -1
- package/fesm2022/testing.mjs +4 -4
- package/index.d.ts +41 -36
- package/package.json +1 -1
- package/primitives/event-dispatch/index.d.ts +1 -1
- package/primitives/signals/index.d.ts +1 -1
- package/rxjs-interop/index.d.ts +1 -1
- package/schematics/bundles/apply_import_manager-5082ccea.js +732 -0
- package/schematics/bundles/{checker-884633eb.js → checker-aa999c96.js} +50 -25
- package/schematics/bundles/cleanup-unused-imports.js +295 -0
- package/schematics/bundles/{compiler_host-22f6513d.js → compiler_host-f0b570c8.js} +2 -2
- package/schematics/bundles/control-flow-migration.js +3 -3
- package/schematics/bundles/explicit-standalone-flag.js +5 -5
- package/schematics/bundles/{imports-abe29092.js → imports-31a38653.js} +1 -1
- package/schematics/bundles/index-02a11f43.js +30 -0
- package/schematics/bundles/{combine_units-4a95b1b9.js → index-15b61bae.js} +10 -723
- package/schematics/bundles/inject-migration.js +6 -6
- package/schematics/bundles/{leading_space-d190b83b.js → leading_space-6e7a8ec6.js} +1 -1
- package/schematics/bundles/{migrate_ts_type_references-4b11f3f2.js → migrate_ts_type_references-042ca765.js} +30 -29
- package/schematics/bundles/{nodes-a9f0b985.js → nodes-88c2157f.js} +2 -2
- package/schematics/bundles/output-migration.js +27 -26
- package/schematics/bundles/pending-tasks.js +5 -5
- package/schematics/bundles/{program-094352ba.js → program-393ca8f3.js} +106 -46
- package/schematics/bundles/{project_tsconfig_paths-e9ccccbf.js → project_tsconfig_paths-6c9cde78.js} +1 -1
- package/schematics/bundles/provide-initializer.js +5 -5
- package/schematics/bundles/route-lazy-loading.js +4 -4
- package/schematics/bundles/signal-input-migration.js +33 -32
- package/schematics/bundles/signal-queries-migration.js +56 -49
- package/schematics/bundles/signals.js +8 -7
- package/schematics/bundles/standalone-migration.js +12 -28
- package/schematics/collection.json +5 -0
- package/schematics/ng-generate/cleanup-unused-imports/schema.json +7 -0
- package/testing/index.d.ts +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
/**
|
|
3
|
-
* @license Angular v19.1.0
|
|
3
|
+
* @license Angular v19.1.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('
|
|
13
|
-
var ts = require('typescript');
|
|
14
|
-
var checker = require('./checker-884633eb.js');
|
|
15
|
-
var program = require('./program-094352ba.js');
|
|
16
|
-
var p = require('path');
|
|
12
|
+
require('./index-02a11f43.js');
|
|
17
13
|
var fs = require('fs');
|
|
18
|
-
var
|
|
19
|
-
var
|
|
20
|
-
var
|
|
21
|
-
var
|
|
14
|
+
var p = require('path');
|
|
15
|
+
var ts = require('typescript');
|
|
16
|
+
var compiler_host = require('./compiler_host-f0b570c8.js');
|
|
17
|
+
var project_tsconfig_paths = require('./project_tsconfig_paths-6c9cde78.js');
|
|
18
|
+
var nodes = require('./nodes-88c2157f.js');
|
|
19
|
+
var imports = require('./imports-31a38653.js');
|
|
20
|
+
var checker = require('./checker-aa999c96.js');
|
|
21
|
+
require('os');
|
|
22
|
+
var program = require('./program-393ca8f3.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.4');
|
|
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
|
}
|
package/testing/index.d.ts
CHANGED