@angular/compiler-cli 15.0.0-rc.0 → 15.0.0-rc.2
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/bundles/{chunk-7YKDVBJ5.js → chunk-24QFMHYM.js} +31 -31
- package/bundles/{chunk-7YKDVBJ5.js.map → chunk-24QFMHYM.js.map} +0 -0
- package/bundles/{chunk-CTEVZGOM.js → chunk-2HPI44CB.js} +5 -5
- package/bundles/{chunk-CTEVZGOM.js.map → chunk-2HPI44CB.js.map} +0 -0
- package/bundles/{chunk-DLWNNV6S.js → chunk-3KIUHCHT.js} +40 -40
- package/bundles/{chunk-DLWNNV6S.js.map → chunk-3KIUHCHT.js.map} +0 -0
- package/bundles/{chunk-D55CQOCC.js → chunk-5QCN26YI.js} +5 -5
- package/bundles/{chunk-D55CQOCC.js.map → chunk-5QCN26YI.js.map} +1 -1
- package/bundles/{chunk-Z57D3OKU.js → chunk-CYVTLM4Z.js} +7 -7
- package/bundles/{chunk-Z57D3OKU.js.map → chunk-CYVTLM4Z.js.map} +0 -0
- package/bundles/{chunk-4SINIALN.js → chunk-E7NQQTT7.js} +3 -3
- package/bundles/{chunk-4SINIALN.js.map → chunk-E7NQQTT7.js.map} +0 -0
- package/bundles/{chunk-MEB4YHNS.js → chunk-F526PAOI.js} +2 -2
- package/bundles/{chunk-MEB4YHNS.js.map → chunk-F526PAOI.js.map} +0 -0
- package/bundles/{chunk-YGJACQGV.js → chunk-GQT3DC2W.js} +7 -7
- package/bundles/{chunk-YGJACQGV.js.map → chunk-GQT3DC2W.js.map} +0 -0
- package/bundles/{chunk-JSLY52ZU.js → chunk-JBW3LNWN.js} +26 -26
- package/bundles/{chunk-JSLY52ZU.js.map → chunk-JBW3LNWN.js.map} +0 -0
- package/bundles/{chunk-RMZB2XBA.js → chunk-KGXXQYFO.js} +100 -99
- package/bundles/{chunk-RMZB2XBA.js.map → chunk-KGXXQYFO.js.map} +1 -1
- package/bundles/{chunk-GGLQGQHV.js → chunk-PKFN6ZKR.js} +4 -4
- package/bundles/{chunk-GGLQGQHV.js.map → chunk-PKFN6ZKR.js.map} +0 -0
- package/bundles/{chunk-SJL5HBUW.js → chunk-R3C7RFJ4.js} +2 -2
- package/bundles/{chunk-SJL5HBUW.js.map → chunk-R3C7RFJ4.js.map} +0 -0
- package/bundles/{chunk-KIQI22GZ.js → chunk-RSZNB3FD.js} +73 -73
- package/bundles/{chunk-KIQI22GZ.js.map → chunk-RSZNB3FD.js.map} +0 -0
- package/bundles/{chunk-GVQAA5D3.js → chunk-SHFEZGDP.js} +71 -71
- package/bundles/{chunk-GVQAA5D3.js.map → chunk-SHFEZGDP.js.map} +0 -0
- package/bundles/{chunk-RC2GY3FU.js → chunk-WEEZR5JR.js} +7 -7
- package/bundles/{chunk-RC2GY3FU.js.map → chunk-WEEZR5JR.js.map} +0 -0
- package/bundles/{chunk-VZ2Q36OK.js → chunk-ZXBCBXWY.js} +7 -7
- package/bundles/{chunk-VZ2Q36OK.js.map → chunk-ZXBCBXWY.js.map} +0 -0
- package/bundles/index.js +13 -13
- package/bundles/linker/babel/index.js +13 -13
- package/bundles/linker/index.js +5 -5
- package/bundles/ngcc/index.js +13 -13
- package/bundles/ngcc/main-ngcc.js +14 -14
- package/bundles/ngcc/src/execution/cluster/ngcc_cluster_worker.js +14 -14
- package/bundles/ngcc/src/locking/lock_file_with_child_process/ngcc_lock_unlocker.js +4 -4
- package/bundles/private/bazel.js +1 -1
- package/bundles/private/localize.js +3 -3
- package/bundles/private/migrations.js +6 -6
- package/bundles/private/tooling.js +3 -3
- package/bundles/src/bin/ng_xi18n.js +11 -11
- package/bundles/src/bin/ngc.js +9 -9
- package/bundles_metadata.json +1 -1
- package/ngcc/src/packages/build_marker.d.ts +1 -1
- package/package.json +2 -2
- package/src/ngtsc/program.d.ts +1 -8
- package/src/perform_compile.d.ts +3 -3
- package/src/perform_watch.d.ts +3 -3
- package/src/transformers/api.d.ts +13 -12
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
import { AbsoluteFsPath } from '../../../src/ngtsc/file_system';
|
|
10
10
|
import { PackageJsonUpdater } from '../writing/package_json_updater';
|
|
11
11
|
import { EntryPointPackageJson, PackageJsonFormatProperties } from './entry_point';
|
|
12
|
-
export declare const NGCC_VERSION = "15.0.0-rc.
|
|
12
|
+
export declare const NGCC_VERSION = "15.0.0-rc.2";
|
|
13
13
|
/**
|
|
14
14
|
* Returns true if there is a format in this entry-point that was compiled with an outdated version
|
|
15
15
|
* of ngcc.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular/compiler-cli",
|
|
3
|
-
"version": "15.0.0-rc.
|
|
3
|
+
"version": "15.0.0-rc.2",
|
|
4
4
|
"description": "Angular - the compiler CLI for Node.js",
|
|
5
5
|
"typings": "index.d.ts",
|
|
6
6
|
"bin": {
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"yargs": "^17.2.1"
|
|
66
66
|
},
|
|
67
67
|
"peerDependencies": {
|
|
68
|
-
"@angular/compiler": "15.0.0-rc.
|
|
68
|
+
"@angular/compiler": "15.0.0-rc.2",
|
|
69
69
|
"typescript": ">=4.8.2 <4.9"
|
|
70
70
|
},
|
|
71
71
|
"repository": {
|
package/src/ngtsc/program.d.ts
CHANGED
|
@@ -45,14 +45,7 @@ export declare class NgtscProgram implements api.Program {
|
|
|
45
45
|
loadNgStructureAsync(): Promise<void>;
|
|
46
46
|
listLazyRoutes(entryRoute?: string | undefined): api.LazyRoute[];
|
|
47
47
|
private emitXi18n;
|
|
48
|
-
emit(opts?:
|
|
49
|
-
emitFlags?: api.EmitFlags | undefined;
|
|
50
|
-
forceEmit?: boolean;
|
|
51
|
-
cancellationToken?: ts.CancellationToken | undefined;
|
|
52
|
-
customTransformers?: api.CustomTransformers | undefined;
|
|
53
|
-
emitCallback?: api.TsEmitCallback | undefined;
|
|
54
|
-
mergeEmitResultsCallback?: api.TsMergeEmitResultsCallback | undefined;
|
|
55
|
-
} | undefined): ts.EmitResult;
|
|
48
|
+
emit<CbEmitRes extends ts.EmitResult>(opts?: api.EmitOptions<CbEmitRes> | undefined): ts.EmitResult;
|
|
56
49
|
getIndexedComponents(): Map<DeclarationNode, IndexedComponent>;
|
|
57
50
|
getEmittedSourceFiles(): Map<string, ts.SourceFile>;
|
|
58
51
|
}
|
package/src/perform_compile.d.ts
CHANGED
|
@@ -31,13 +31,13 @@ export interface PerformCompilationResult {
|
|
|
31
31
|
emitResult?: ts.EmitResult;
|
|
32
32
|
}
|
|
33
33
|
export declare function exitCodeFromResult(diags: ReadonlyArray<ts.Diagnostic> | undefined): number;
|
|
34
|
-
export declare function performCompilation({ rootNames, options, host, oldProgram, emitCallback, mergeEmitResultsCallback, gatherDiagnostics, customTransformers, emitFlags, forceEmit, modifiedResourceFiles }: {
|
|
34
|
+
export declare function performCompilation<CbEmitRes extends ts.EmitResult = ts.EmitResult>({ rootNames, options, host, oldProgram, emitCallback, mergeEmitResultsCallback, gatherDiagnostics, customTransformers, emitFlags, forceEmit, modifiedResourceFiles }: {
|
|
35
35
|
rootNames: string[];
|
|
36
36
|
options: api.CompilerOptions;
|
|
37
37
|
host?: api.CompilerHost;
|
|
38
38
|
oldProgram?: api.Program;
|
|
39
|
-
emitCallback?: api.TsEmitCallback
|
|
40
|
-
mergeEmitResultsCallback?: api.TsMergeEmitResultsCallback
|
|
39
|
+
emitCallback?: api.TsEmitCallback<CbEmitRes>;
|
|
40
|
+
mergeEmitResultsCallback?: api.TsMergeEmitResultsCallback<CbEmitRes>;
|
|
41
41
|
gatherDiagnostics?: (program: api.Program) => ReadonlyArray<ts.Diagnostic>;
|
|
42
42
|
customTransformers?: api.CustomTransformers;
|
|
43
43
|
emitFlags?: api.EmitFlags;
|
package/src/perform_watch.d.ts
CHANGED
|
@@ -14,18 +14,18 @@ export declare enum FileChangeEvent {
|
|
|
14
14
|
CreateDelete = 1,
|
|
15
15
|
CreateDeleteDir = 2
|
|
16
16
|
}
|
|
17
|
-
export interface PerformWatchHost {
|
|
17
|
+
export interface PerformWatchHost<CbEmitRes extends ts.EmitResult = ts.EmitResult> {
|
|
18
18
|
reportDiagnostics(diagnostics: ReadonlyArray<ts.Diagnostic>): void;
|
|
19
19
|
readConfiguration(): ParsedConfiguration;
|
|
20
20
|
createCompilerHost(options: api.CompilerOptions): api.CompilerHost;
|
|
21
|
-
createEmitCallback(options: api.CompilerOptions): api.TsEmitCallback | undefined;
|
|
21
|
+
createEmitCallback(options: api.CompilerOptions): api.TsEmitCallback<CbEmitRes> | undefined;
|
|
22
22
|
onFileChange(options: api.CompilerOptions, listener: (event: FileChangeEvent, fileName: string) => void, ready: () => void): {
|
|
23
23
|
close: () => void;
|
|
24
24
|
};
|
|
25
25
|
setTimeout(callback: () => void, ms: number): any;
|
|
26
26
|
clearTimeout(timeoutId: any): void;
|
|
27
27
|
}
|
|
28
|
-
export declare function createPerformWatchHost(configFileName: string, reportDiagnostics: (diagnostics: ReadonlyArray<ts.Diagnostic>) => void, existingOptions?: ts.CompilerOptions, createEmitCallback?: (options: api.CompilerOptions) => api.TsEmitCallback | undefined): PerformWatchHost;
|
|
28
|
+
export declare function createPerformWatchHost<CbEmitRes extends ts.EmitResult = ts.EmitResult>(configFileName: string, reportDiagnostics: (diagnostics: ReadonlyArray<ts.Diagnostic>) => void, existingOptions?: ts.CompilerOptions, createEmitCallback?: (options: api.CompilerOptions) => api.TsEmitCallback<CbEmitRes> | undefined): PerformWatchHost;
|
|
29
29
|
/**
|
|
30
30
|
* The logic in this function is adapted from `tsc.ts` from TypeScript.
|
|
31
31
|
*/
|
|
@@ -100,11 +100,11 @@ export interface TsEmitArguments {
|
|
|
100
100
|
emitOnlyDtsFiles?: boolean;
|
|
101
101
|
customTransformers?: ts.CustomTransformers;
|
|
102
102
|
}
|
|
103
|
-
export interface TsEmitCallback {
|
|
104
|
-
(args: TsEmitArguments):
|
|
103
|
+
export interface TsEmitCallback<T extends ts.EmitResult> {
|
|
104
|
+
(args: TsEmitArguments): T;
|
|
105
105
|
}
|
|
106
|
-
export interface TsMergeEmitResultsCallback {
|
|
107
|
-
(results:
|
|
106
|
+
export interface TsMergeEmitResultsCallback<T extends ts.EmitResult> {
|
|
107
|
+
(results: T[]): T;
|
|
108
108
|
}
|
|
109
109
|
export interface LazyRoute {
|
|
110
110
|
route: string;
|
|
@@ -117,6 +117,14 @@ export interface LazyRoute {
|
|
|
117
117
|
filePath: string;
|
|
118
118
|
};
|
|
119
119
|
}
|
|
120
|
+
export interface EmitOptions<CbEmitRes extends ts.EmitResult> {
|
|
121
|
+
emitFlags?: EmitFlags;
|
|
122
|
+
forceEmit?: boolean;
|
|
123
|
+
cancellationToken?: ts.CancellationToken;
|
|
124
|
+
customTransformers?: CustomTransformers;
|
|
125
|
+
emitCallback?: TsEmitCallback<CbEmitRes>;
|
|
126
|
+
mergeEmitResultsCallback?: TsMergeEmitResultsCallback<CbEmitRes>;
|
|
127
|
+
}
|
|
120
128
|
export interface Program {
|
|
121
129
|
/**
|
|
122
130
|
* Retrieve the TypeScript program used to produce semantic diagnostics and emit the sources.
|
|
@@ -179,12 +187,5 @@ export interface Program {
|
|
|
179
187
|
*
|
|
180
188
|
* Angular structural information is required to emit files.
|
|
181
189
|
*/
|
|
182
|
-
emit
|
|
183
|
-
emitFlags?: EmitFlags;
|
|
184
|
-
forceEmit?: boolean;
|
|
185
|
-
cancellationToken?: ts.CancellationToken;
|
|
186
|
-
customTransformers?: CustomTransformers;
|
|
187
|
-
emitCallback?: TsEmitCallback;
|
|
188
|
-
mergeEmitResultsCallback?: TsMergeEmitResultsCallback;
|
|
189
|
-
}): ts.EmitResult;
|
|
190
|
+
emit<CbEmitRes extends ts.EmitResult>(opts?: EmitOptions<CbEmitRes> | undefined): ts.EmitResult;
|
|
190
191
|
}
|