@angular/compiler-cli 13.0.0-rc.1 → 13.0.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/index.js +49 -49
- package/bundles/index.js.map +2 -2
- package/bundles/linker/babel/index.js +12 -12
- package/bundles/linker/babel/index.js.map +1 -1
- package/bundles/linker/index.js +12 -12
- package/bundles/linker/index.js.map +1 -1
- package/bundles/ngcc/index.js +124 -127
- package/bundles/ngcc/index.js.map +2 -2
- package/bundles/ngcc/main-ngcc.js +124 -127
- package/bundles/ngcc/main-ngcc.js.map +2 -2
- package/bundles/ngcc/src/execution/cluster/ngcc_cluster_worker.js +28 -44
- package/bundles/ngcc/src/execution/cluster/ngcc_cluster_worker.js.map +2 -2
- package/bundles/private/migrations.js +8 -6
- package/bundles/private/migrations.js.map +2 -2
- package/bundles/src/bin/ng_xi18n.js +48 -48
- package/bundles/src/bin/ng_xi18n.js.map +2 -2
- package/bundles/src/bin/ngc.js +48 -48
- package/bundles/src/bin/ngc.js.map +2 -2
- package/bundles_metadata.json +1 -1
- package/linker/src/file_linker/partial_linkers/util.d.ts +2 -2
- package/linker/src/file_linker/translator.d.ts +1 -1
- package/ngcc/src/packages/build_marker.d.ts +1 -1
- package/ngcc/src/packages/entry_point.d.ts +5 -0
- package/ngcc/src/rendering/commonjs_rendering_formatter.d.ts +1 -1
- package/package.json +2 -2
- package/src/ngtsc/annotations/src/ng_module.d.ts +1 -2
- package/src/ngtsc/diagnostics/index.d.ts +4 -2
- package/src/ngtsc/diagnostics/src/docs.d.ts +14 -0
- package/src/ngtsc/diagnostics/src/error_details_base_url.d.ts +16 -0
- package/src/ngtsc/diagnostics/src/util.d.ts +2 -0
- package/src/ngtsc/typecheck/api/checker.d.ts +1 -1
- package/src/ngtsc/typecheck/src/tcb_util.d.ts +1 -1
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* Use of this source code is governed by an MIT-style license that can be
|
|
7
7
|
* found in the LICENSE file at https://angular.io/license
|
|
8
8
|
*/
|
|
9
|
-
import { outputAst as o, R3DeclareDependencyMetadata, R3DependencyMetadata,
|
|
9
|
+
import { MaybeForwardRefExpression, outputAst as o, R3DeclareDependencyMetadata, R3DependencyMetadata, R3Reference } from '@angular/compiler';
|
|
10
10
|
import { AstObject, AstValue } from '../../ast/ast_value';
|
|
11
11
|
export declare function wrapReference<TExpression>(wrapped: o.WrappedNodeExpr<TExpression>): R3Reference;
|
|
12
12
|
/**
|
|
@@ -27,4 +27,4 @@ export declare function getDependency<TExpression>(depObj: AstObject<R3DeclareDe
|
|
|
27
27
|
*
|
|
28
28
|
* If there is no forwardRef call expression then we just return the opaque type.
|
|
29
29
|
*/
|
|
30
|
-
export declare function extractForwardRef<TExpression>(expr: AstValue<unknown, TExpression>):
|
|
30
|
+
export declare function extractForwardRef<TExpression>(expr: AstValue<unknown, TExpression>): MaybeForwardRefExpression<o.WrappedNodeExpr<TExpression>>;
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
* found in the LICENSE file at https://angular.io/license
|
|
8
8
|
*/
|
|
9
9
|
import * as o from '@angular/compiler';
|
|
10
|
-
import { AstFactory, ImportGenerator, TranslatorOptions } from '
|
|
10
|
+
import { AstFactory, ImportGenerator, TranslatorOptions } from '../../../src/ngtsc/translator';
|
|
11
11
|
/**
|
|
12
12
|
* Generic translator helper class, which exposes methods for translating expressions and
|
|
13
13
|
* statements.
|
|
@@ -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 = "13.0.
|
|
12
|
+
export declare const NGCC_VERSION = "13.0.1";
|
|
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.
|
|
@@ -22,6 +22,8 @@ export interface EntryPoint extends JsonObject {
|
|
|
22
22
|
packageName: string;
|
|
23
23
|
/** The path to the package that contains this entry-point. */
|
|
24
24
|
packagePath: AbsoluteFsPath;
|
|
25
|
+
/** The URL of the repository. */
|
|
26
|
+
repositoryUrl: string;
|
|
25
27
|
/** The parsed package.json file for this entry-point. */
|
|
26
28
|
packageJson: EntryPointPackageJson;
|
|
27
29
|
/** The path to a typings (.d.ts) file for this entry-point. */
|
|
@@ -60,6 +62,9 @@ export interface EntryPointPackageJson extends JsonObject, PackageJsonFormatProp
|
|
|
60
62
|
name: string;
|
|
61
63
|
version?: string;
|
|
62
64
|
scripts?: Record<string, string>;
|
|
65
|
+
repository?: string | {
|
|
66
|
+
url: string;
|
|
67
|
+
};
|
|
63
68
|
__processed_by_ivy_ngcc__?: Record<string, string>;
|
|
64
69
|
}
|
|
65
70
|
export declare type EntryPointJsonProperty = Exclude<PackageJsonFormatProperties, 'types' | 'typings'>;
|
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
* Use of this source code is governed by an MIT-style license that can be
|
|
7
7
|
* found in the LICENSE file at https://angular.io/license
|
|
8
8
|
*/
|
|
9
|
-
import { PathManipulation } from '@angular/compiler-cli/src/ngtsc/file_system';
|
|
10
9
|
import MagicString from 'magic-string';
|
|
11
10
|
import ts from 'typescript';
|
|
11
|
+
import { PathManipulation } from '../../../src/ngtsc/file_system';
|
|
12
12
|
import { Reexport } from '../../../src/ngtsc/imports';
|
|
13
13
|
import { Import, ImportManager } from '../../../src/ngtsc/translator';
|
|
14
14
|
import { ExportInfo } from '../analysis/private_declarations_analyzer';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular/compiler-cli",
|
|
3
|
-
"version": "13.0.
|
|
3
|
+
"version": "13.0.1",
|
|
4
4
|
"description": "Angular - the compiler CLI for Node.js",
|
|
5
5
|
"typings": "index.d.ts",
|
|
6
6
|
"bin": {
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"yargs": "^17.2.1"
|
|
67
67
|
},
|
|
68
68
|
"peerDependencies": {
|
|
69
|
-
"@angular/compiler": "13.0.
|
|
69
|
+
"@angular/compiler": "13.0.1",
|
|
70
70
|
"typescript": ">=4.4.2 <4.5"
|
|
71
71
|
},
|
|
72
72
|
"repository": {
|
|
@@ -62,8 +62,7 @@ export declare class NgModuleDecoratorHandler implements DecoratorHandler<Decora
|
|
|
62
62
|
private annotateForClosureCompiler;
|
|
63
63
|
private injectableRegistry;
|
|
64
64
|
private perf;
|
|
65
|
-
|
|
66
|
-
constructor(reflector: ReflectionHost, evaluator: PartialEvaluator, metaReader: MetadataReader, metaRegistry: MetadataRegistry, scopeRegistry: LocalModuleScopeRegistry, referencesRegistry: ReferencesRegistry, isCore: boolean, refEmitter: ReferenceEmitter, factoryTracker: FactoryTracker | null, annotateForClosureCompiler: boolean, injectableRegistry: InjectableClassRegistry, perf: PerfRecorder, localeId?: string | undefined);
|
|
65
|
+
constructor(reflector: ReflectionHost, evaluator: PartialEvaluator, metaReader: MetadataReader, metaRegistry: MetadataRegistry, scopeRegistry: LocalModuleScopeRegistry, referencesRegistry: ReferencesRegistry, isCore: boolean, refEmitter: ReferenceEmitter, factoryTracker: FactoryTracker | null, annotateForClosureCompiler: boolean, injectableRegistry: InjectableClassRegistry, perf: PerfRecorder);
|
|
67
66
|
readonly precedence = HandlerPrecedence.PRIMARY;
|
|
68
67
|
readonly name: string;
|
|
69
68
|
detect(node: ClassDeclaration, decorators: Decorator[] | null): DetectResult<Decorator> | undefined;
|
|
@@ -6,6 +6,8 @@
|
|
|
6
6
|
* found in the LICENSE file at https://angular.io/license
|
|
7
7
|
*/
|
|
8
8
|
/// <amd-module name="@angular/compiler-cli/src/ngtsc/diagnostics" />
|
|
9
|
+
export { COMPILER_ERRORS_WITH_GUIDES } from './src/docs';
|
|
9
10
|
export { FatalDiagnosticError, isFatalDiagnosticError, makeDiagnostic, makeRelatedInformation } from './src/error';
|
|
10
|
-
export {
|
|
11
|
-
export {
|
|
11
|
+
export { ErrorCode } from './src/error_code';
|
|
12
|
+
export { ERROR_DETAILS_PAGE_BASE_URL } from './src/error_details_base_url';
|
|
13
|
+
export { ngErrorCode, replaceTsWithNgInErrors } from './src/util';
|
|
@@ -0,0 +1,14 @@
|
|
|
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
|
+
/// <amd-module name="@angular/compiler-cli/src/ngtsc/diagnostics/src/docs" />
|
|
9
|
+
import { ErrorCode } from './error_code';
|
|
10
|
+
/**
|
|
11
|
+
* Contains a set of error messages that have detailed guides at angular.io.
|
|
12
|
+
* Full list of available error guides can be found at https://angular.io/errors
|
|
13
|
+
*/
|
|
14
|
+
export declare const COMPILER_ERRORS_WITH_GUIDES: Set<ErrorCode>;
|
|
@@ -0,0 +1,16 @@
|
|
|
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
|
+
/// <amd-module name="@angular/compiler-cli/src/ngtsc/diagnostics/src/error_details_base_url" />
|
|
9
|
+
/**
|
|
10
|
+
* Base URL for the error details page.
|
|
11
|
+
*
|
|
12
|
+
* Keep the files below in full sync:
|
|
13
|
+
* - packages/compiler-cli/src/ngtsc/diagnostics/src/error_details_base_url.ts
|
|
14
|
+
* - packages/core/src/render3/error_details_base_url.ts
|
|
15
|
+
*/
|
|
16
|
+
export declare const ERROR_DETAILS_PAGE_BASE_URL = "https://angular.io/errors";
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
* found in the LICENSE file at https://angular.io/license
|
|
7
7
|
*/
|
|
8
8
|
/// <amd-module name="@angular/compiler-cli/src/ngtsc/diagnostics/src/util" />
|
|
9
|
+
import { ErrorCode } from './error_code';
|
|
9
10
|
/**
|
|
10
11
|
* During formatting of `ts.Diagnostic`s, the numeric code of each diagnostic is prefixed with the
|
|
11
12
|
* hard-coded "TS" prefix. For Angular's own error codes, a prefix of "NG" is desirable. To achieve
|
|
@@ -16,3 +17,4 @@
|
|
|
16
17
|
* @param errors The formatted diagnostics
|
|
17
18
|
*/
|
|
18
19
|
export declare function replaceTsWithNgInErrors(errors: string): string;
|
|
20
|
+
export declare function ngErrorCode(code: ErrorCode): number;
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
*/
|
|
8
8
|
/// <amd-module name="@angular/compiler-cli/src/ngtsc/typecheck/api/checker" />
|
|
9
9
|
import { AST, LiteralPrimitive, ParseSourceSpan, PropertyRead, SafePropertyRead, TmplAstElement, TmplAstNode, TmplAstTemplate, TmplAstTextAttribute } from '@angular/compiler';
|
|
10
|
-
import { AbsoluteFsPath } from '@angular/compiler-cli/src/ngtsc/file_system';
|
|
11
10
|
import ts from 'typescript';
|
|
11
|
+
import { AbsoluteFsPath } from '../../../../src/ngtsc/file_system';
|
|
12
12
|
import { ErrorCode } from '../../diagnostics';
|
|
13
13
|
import { FullTemplateMapping, NgTemplateDiagnostic, TypeCheckableDirectiveMeta } from './api';
|
|
14
14
|
import { GlobalCompletion } from './completion';
|
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
*/
|
|
8
8
|
/// <amd-module name="@angular/compiler-cli/src/ngtsc/typecheck/src/tcb_util" />
|
|
9
9
|
import { AbsoluteSourceSpan, ParseSourceSpan } from '@angular/compiler';
|
|
10
|
-
import { ClassDeclaration, ReflectionHost } from '@angular/compiler-cli/src/ngtsc/reflection';
|
|
11
10
|
import ts from 'typescript';
|
|
11
|
+
import { ClassDeclaration, ReflectionHost } from '../../../../src/ngtsc/reflection';
|
|
12
12
|
import { Reference } from '../../imports';
|
|
13
13
|
import { FullTemplateMapping, SourceLocation, TemplateId, TemplateSourceMapping } from '../api';
|
|
14
14
|
/**
|