@angular/compiler-cli 17.2.3 → 17.3.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.
- package/bundles/{chunk-LWM7EW6L.js → chunk-2CAUFIKU.js} +3 -3
- package/bundles/{chunk-SGHI77T2.js → chunk-5A5Y7O22.js} +29 -19
- package/bundles/chunk-5A5Y7O22.js.map +6 -0
- package/bundles/{chunk-YBXVKJOM.js → chunk-7VU7HCQZ.js} +290 -286
- package/bundles/chunk-7VU7HCQZ.js.map +6 -0
- package/bundles/{chunk-NQAH24UD.js → chunk-FPKC3HSK.js} +2 -2
- package/bundles/{chunk-FS75LCNP.js → chunk-IIZOI4XA.js} +7 -4
- package/bundles/{chunk-FS75LCNP.js.map → chunk-IIZOI4XA.js.map} +1 -1
- package/bundles/{chunk-MV5DSSRA.js → chunk-YVYW546M.js} +3 -3
- package/bundles/{chunk-MV5DSSRA.js.map → chunk-YVYW546M.js.map} +1 -1
- package/bundles/index.js +8 -5
- package/bundles/index.js.map +1 -1
- package/bundles/linker/babel/index.js +2 -2
- package/bundles/linker/index.js +2 -2
- package/bundles/private/migrations.js +2 -2
- package/bundles/private/tooling.js +3 -3
- package/bundles/src/bin/ng_xi18n.js +4 -4
- package/bundles/src/bin/ngc.js +4 -4
- package/bundles_metadata.json +1 -1
- package/index.d.ts +1 -0
- package/linker/src/file_linker/partial_linkers/util.d.ts +2 -2
- package/package.json +3 -3
- package/src/ngtsc/core/src/feature_detection.d.ts +13 -0
- package/src/ngtsc/diagnostics/index.d.ts +1 -1
- package/src/ngtsc/diagnostics/src/error.d.ts +7 -0
- package/src/ngtsc/diagnostics/src/error_code.d.ts +9 -3
- package/bundles/chunk-SGHI77T2.js.map +0 -6
- package/bundles/chunk-YBXVKJOM.js.map +0 -6
- /package/bundles/{chunk-LWM7EW6L.js.map → chunk-2CAUFIKU.js.map} +0 -0
- /package/bundles/{chunk-NQAH24UD.js.map → chunk-FPKC3HSK.js.map} +0 -0
package/index.d.ts
CHANGED
|
@@ -13,3 +13,4 @@ export { OptimizeFor } from './src/ngtsc/typecheck/api';
|
|
|
13
13
|
export { ConsoleLogger, Logger, LogLevel } from './src/ngtsc/logging';
|
|
14
14
|
export { NodeJSFileSystem } from './src/ngtsc/file_system';
|
|
15
15
|
export * from './src/ngtsc/docs/src/entities';
|
|
16
|
+
export { isLocalCompilationDiagnostics } from './src/ngtsc/diagnostics';
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import { MaybeForwardRefExpression, outputAst as o, R3DeclareDependencyMetadata, R3DependencyMetadata, R3Reference } from '@angular/compiler';
|
|
9
9
|
import { AstObject, AstValue } from '../../ast/ast_value';
|
|
10
|
-
export declare const PLACEHOLDER_VERSION = "17.
|
|
11
|
-
export declare const SHOULD_USE_TEMPLATE_PIPELINE_FOR_LINKER =
|
|
10
|
+
export declare const PLACEHOLDER_VERSION = "17.3.0-next.1";
|
|
11
|
+
export declare const SHOULD_USE_TEMPLATE_PIPELINE_FOR_LINKER = true;
|
|
12
12
|
export declare function wrapReference<TExpression>(wrapped: o.WrappedNodeExpr<TExpression>): R3Reference;
|
|
13
13
|
/**
|
|
14
14
|
* Parses the value of an enum from the AST value's symbol name.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular/compiler-cli",
|
|
3
|
-
"version": "17.
|
|
3
|
+
"version": "17.3.0-next.1",
|
|
4
4
|
"description": "Angular - the compiler CLI for Node.js",
|
|
5
5
|
"typings": "index.d.ts",
|
|
6
6
|
"bin": {
|
|
@@ -53,8 +53,8 @@
|
|
|
53
53
|
"yargs": "^17.2.1"
|
|
54
54
|
},
|
|
55
55
|
"peerDependencies": {
|
|
56
|
-
"@angular/compiler": "17.
|
|
57
|
-
"typescript": ">=5.2 <5.
|
|
56
|
+
"@angular/compiler": "17.3.0-next.1",
|
|
57
|
+
"typescript": ">=5.2 <5.5"
|
|
58
58
|
},
|
|
59
59
|
"repository": {
|
|
60
60
|
"type": "git",
|
|
@@ -0,0 +1,13 @@
|
|
|
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
|
+
/**
|
|
9
|
+
* Whether a version of `@angular/core` supports a specific feature.
|
|
10
|
+
* @param coreVersion Current version of core.
|
|
11
|
+
* @param minVersion Minimum required version for the feature.
|
|
12
|
+
*/
|
|
13
|
+
export declare function coreVersionSupportsFeature(coreVersion: string, minVersion: string): boolean;
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* found in the LICENSE file at https://angular.io/license
|
|
7
7
|
*/
|
|
8
8
|
export { COMPILER_ERRORS_WITH_GUIDES } from './src/docs';
|
|
9
|
-
export { addDiagnosticChain, FatalDiagnosticError, isFatalDiagnosticError, makeDiagnostic, makeDiagnosticChain, makeRelatedInformation } from './src/error';
|
|
9
|
+
export { addDiagnosticChain, FatalDiagnosticError, isFatalDiagnosticError, isLocalCompilationDiagnostics, makeDiagnostic, makeDiagnosticChain, makeRelatedInformation } from './src/error';
|
|
10
10
|
export { ErrorCode } from './src/error_code';
|
|
11
11
|
export { ERROR_DETAILS_PAGE_BASE_URL } from './src/error_details_base_url';
|
|
12
12
|
export { ExtendedTemplateDiagnosticName } from './src/extended_template_diagnostic_name';
|
|
@@ -21,3 +21,10 @@ export declare function makeDiagnosticChain(messageText: string, next?: ts.Diagn
|
|
|
21
21
|
export declare function makeRelatedInformation(node: ts.Node, messageText: string): ts.DiagnosticRelatedInformation;
|
|
22
22
|
export declare function addDiagnosticChain(messageText: string | ts.DiagnosticMessageChain, add: ts.DiagnosticMessageChain[]): ts.DiagnosticMessageChain;
|
|
23
23
|
export declare function isFatalDiagnosticError(err: any): err is FatalDiagnosticError;
|
|
24
|
+
/**
|
|
25
|
+
* Whether the compiler diagnostics represents an error related to local compilation mode.
|
|
26
|
+
*
|
|
27
|
+
* This helper has application in 1P where we check whether a diagnostic is related to local
|
|
28
|
+
* compilation in order to add some g3 specific info to it.
|
|
29
|
+
*/
|
|
30
|
+
export declare function isLocalCompilationDiagnostics(diagnostic: ts.Diagnostic): boolean;
|
|
@@ -413,11 +413,17 @@ export declare enum ErrorCode {
|
|
|
413
413
|
*/
|
|
414
414
|
SUGGEST_SUBOPTIMAL_TYPE_INFERENCE = 10002,
|
|
415
415
|
/**
|
|
416
|
-
* In local compilation mode a const is required to be resolved statically but cannot be so since
|
|
416
|
+
* In local compilation mode a const is required to be resolved statically but cannot be so since
|
|
417
|
+
* it is imported from a file outside of the compilation unit. This usually happens with const
|
|
418
|
+
* being used as Angular decorators parameters such as `@Component.template`,
|
|
419
|
+
* `@HostListener.eventName`, etc.
|
|
417
420
|
*/
|
|
418
421
|
LOCAL_COMPILATION_UNRESOLVED_CONST = 11001,
|
|
419
422
|
/**
|
|
420
|
-
* In local compilation mode
|
|
423
|
+
* In local compilation mode a certain expression or syntax is not supported. This is usually
|
|
424
|
+
* because the expression/syntax is not very common and so we did not add support for it yet. This
|
|
425
|
+
* can be changed in the future and support for more expressions could be added if need be.
|
|
426
|
+
* Meanwhile, this error is thrown to indicate a current unavailability.
|
|
421
427
|
*/
|
|
422
|
-
|
|
428
|
+
LOCAL_COMPILATION_UNSUPPORTED_EXPRESSION = 11003
|
|
423
429
|
}
|