@angular/compiler-cli 15.2.0 → 15.2.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-2PLRZDNU.js +2 -2
- package/bundles/{chunk-2OF2AI57.js → chunk-AYNYESJJ.js} +2 -2
- package/bundles/{chunk-P6SWFK2U.js → chunk-E6XIZDH3.js} +2 -2
- package/bundles/{chunk-MLCT4AWL.js → chunk-EYXJKNSD.js} +3 -3
- package/bundles/{chunk-J3L7WZP3.js → chunk-PT6IDEJZ.js} +5 -34
- package/bundles/chunk-PT6IDEJZ.js.map +6 -0
- package/bundles/{chunk-PKSKJEUS.js → chunk-VVIQFUX6.js} +14 -5
- package/bundles/{chunk-PKSKJEUS.js.map → chunk-VVIQFUX6.js.map} +1 -1
- package/bundles/{chunk-NXCQCU6C.js → chunk-ZEOG7UFV.js} +3 -3
- package/bundles/index.js +4 -4
- package/bundles/ngcc/index.js +4 -4
- package/bundles/ngcc/main-ngcc.js +4 -4
- package/bundles/ngcc/src/execution/cluster/ngcc_cluster_worker.js +3 -3
- package/bundles/private/migrations.js +1 -1
- package/bundles/private/tooling.js +1 -1
- package/bundles/src/bin/ng_xi18n.js +3 -3
- package/bundles/src/bin/ngc.js +3 -3
- package/bundles_metadata.json +1 -1
- package/ngcc/src/packages/build_marker.d.ts +1 -1
- package/package.json +2 -2
- package/src/ngtsc/annotations/component/src/resources.d.ts +1 -1
- package/src/transformers/downlevel_decorators_transform/downlevel_decorators_transform.d.ts +6 -8
- package/bundles/chunk-J3L7WZP3.js.map +0 -6
- /package/bundles/{chunk-2OF2AI57.js.map → chunk-AYNYESJJ.js.map} +0 -0
- /package/bundles/{chunk-P6SWFK2U.js.map → chunk-E6XIZDH3.js.map} +0 -0
- /package/bundles/{chunk-MLCT4AWL.js.map → chunk-EYXJKNSD.js.map} +0 -0
- /package/bundles/{chunk-NXCQCU6C.js.map → chunk-ZEOG7UFV.js.map} +0 -0
|
@@ -848,7 +848,7 @@ var declarationFunctions = [
|
|
|
848
848
|
];
|
|
849
849
|
function createLinkerMap(environment, sourceUrl, code) {
|
|
850
850
|
const linkers = /* @__PURE__ */ new Map();
|
|
851
|
-
const LATEST_VERSION_RANGE = getRange("<=", "15.2.
|
|
851
|
+
const LATEST_VERSION_RANGE = getRange("<=", "15.2.2");
|
|
852
852
|
linkers.set(\u0275\u0275ngDeclareDirective, [
|
|
853
853
|
{ range: LATEST_VERSION_RANGE, linker: new PartialDirectiveLinkerVersion1(sourceUrl, code) }
|
|
854
854
|
]);
|
|
@@ -895,7 +895,7 @@ var PartialLinkerSelector = class {
|
|
|
895
895
|
throw new Error(`Unknown partial declaration function ${functionName}.`);
|
|
896
896
|
}
|
|
897
897
|
const linkerRanges = this.linkers.get(functionName);
|
|
898
|
-
if (version === "15.2.
|
|
898
|
+
if (version === "15.2.2") {
|
|
899
899
|
return linkerRanges[linkerRanges.length - 1].linker;
|
|
900
900
|
}
|
|
901
901
|
const declarationRange = getRange(">=", minVersion);
|
|
@@ -35,7 +35,7 @@ import {
|
|
|
35
35
|
aliasTransformFactory,
|
|
36
36
|
declarationTransformFactory,
|
|
37
37
|
ivyTransformFactory
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-VVIQFUX6.js";
|
|
39
39
|
import {
|
|
40
40
|
TypeScriptReflectionHost,
|
|
41
41
|
isNamedClassDeclaration
|
|
@@ -7955,4 +7955,4 @@ export {
|
|
|
7955
7955
|
* found in the LICENSE file at https://angular.io/license
|
|
7956
7956
|
*/
|
|
7957
7957
|
// Closure Compiler ignores @suppress and similar if the comment contains @license.
|
|
7958
|
-
//# sourceMappingURL=chunk-
|
|
7958
|
+
//# sourceMappingURL=chunk-AYNYESJJ.js.map
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
formatDiagnostics,
|
|
13
13
|
performCompilation,
|
|
14
14
|
readConfiguration
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-AYNYESJJ.js";
|
|
16
16
|
|
|
17
17
|
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/src/main.mjs
|
|
18
18
|
import ts2 from "typescript";
|
|
@@ -375,4 +375,4 @@ export {
|
|
|
375
375
|
* Use of this source code is governed by an MIT-style license that can be
|
|
376
376
|
* found in the LICENSE file at https://angular.io/license
|
|
377
377
|
*/
|
|
378
|
-
//# sourceMappingURL=chunk-
|
|
378
|
+
//# sourceMappingURL=chunk-E6XIZDH3.js.map
|
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
sendMessageToWorker,
|
|
38
38
|
sortTasksByPriority,
|
|
39
39
|
stringifyTask
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-ZEOG7UFV.js";
|
|
41
41
|
import {
|
|
42
42
|
LogLevel
|
|
43
43
|
} from "./chunk-SBDNBITT.js";
|
|
@@ -892,7 +892,7 @@ var ProgramBasedEntryPointFinder = class extends TracingEntryPointFinder {
|
|
|
892
892
|
};
|
|
893
893
|
|
|
894
894
|
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler-cli/ngcc/src/packages/build_marker.mjs
|
|
895
|
-
var NGCC_VERSION = "15.2.
|
|
895
|
+
var NGCC_VERSION = "15.2.2";
|
|
896
896
|
function needsCleaning(packageJson) {
|
|
897
897
|
return Object.values(packageJson.__processed_by_ivy_ngcc__ || {}).some((value) => value !== NGCC_VERSION);
|
|
898
898
|
}
|
|
@@ -2184,4 +2184,4 @@ export {
|
|
|
2184
2184
|
* Use of this source code is governed by an MIT-style license that can be
|
|
2185
2185
|
* found in the LICENSE file at https://angular.io/license
|
|
2186
2186
|
*/
|
|
2187
|
-
//# sourceMappingURL=chunk-
|
|
2187
|
+
//# sourceMappingURL=chunk-EYXJKNSD.js.map
|
|
@@ -130,7 +130,7 @@ function symbolIsRuntimeValue(typeChecker, symbol) {
|
|
|
130
130
|
}
|
|
131
131
|
return (symbol.flags & ts.SymbolFlags.Value & ts.SymbolFlags.ConstEnumExcludes) !== 0;
|
|
132
132
|
}
|
|
133
|
-
function getDownlevelDecoratorsTransform(typeChecker, host, diagnostics, isCore, isClosureCompilerEnabled
|
|
133
|
+
function getDownlevelDecoratorsTransform(typeChecker, host, diagnostics, isCore, isClosureCompilerEnabled) {
|
|
134
134
|
function addJSDocTypeAnnotation(node, jsdocType) {
|
|
135
135
|
if (!isClosureCompilerEnabled) {
|
|
136
136
|
return;
|
|
@@ -145,13 +145,6 @@ function getDownlevelDecoratorsTransform(typeChecker, host, diagnostics, isCore,
|
|
|
145
145
|
}
|
|
146
146
|
]);
|
|
147
147
|
}
|
|
148
|
-
function createDecoratorClassProperty(decoratorList) {
|
|
149
|
-
const modifier = ts.factory.createToken(ts.SyntaxKind.StaticKeyword);
|
|
150
|
-
const initializer = ts.factory.createArrayLiteralExpression(decoratorList, true);
|
|
151
|
-
const prop = ts.factory.createPropertyDeclaration([modifier], "decorators", void 0, void 0, initializer);
|
|
152
|
-
addJSDocTypeAnnotation(prop, DECORATOR_INVOCATION_JSDOC_TYPE);
|
|
153
|
-
return prop;
|
|
154
|
-
}
|
|
155
148
|
function createPropDecoratorsClassProperty(diagnostics2, properties) {
|
|
156
149
|
const entries = [];
|
|
157
150
|
for (const [name, decorators] of properties.entries()) {
|
|
@@ -280,24 +273,8 @@ function getDownlevelDecoratorsTransform(typeChecker, host, diagnostics, isCore,
|
|
|
280
273
|
}
|
|
281
274
|
newMembers.push(ts.visitEachChild(member, decoratorDownlevelVisitor, context));
|
|
282
275
|
}
|
|
283
|
-
const decoratorsToKeep = new Set(ts.getDecorators(classDecl));
|
|
284
276
|
const possibleAngularDecorators = host.getDecoratorsOfDeclaration(classDecl) || [];
|
|
285
|
-
|
|
286
|
-
const decoratorsToLower = [];
|
|
287
|
-
for (const decorator of possibleAngularDecorators) {
|
|
288
|
-
const decoratorNode = decorator.node;
|
|
289
|
-
const isNgDecorator = isAngularDecorator(decorator, isCore);
|
|
290
|
-
if (isNgDecorator) {
|
|
291
|
-
hasAngularDecorator = true;
|
|
292
|
-
}
|
|
293
|
-
if (isNgDecorator && !skipClassDecorators) {
|
|
294
|
-
decoratorsToLower.push(extractMetadataFromSingleDecorator(decoratorNode, diagnostics));
|
|
295
|
-
decoratorsToKeep.delete(decoratorNode);
|
|
296
|
-
}
|
|
297
|
-
}
|
|
298
|
-
if (decoratorsToLower.length) {
|
|
299
|
-
newMembers.push(createDecoratorClassProperty(decoratorsToLower));
|
|
300
|
-
}
|
|
277
|
+
const hasAngularDecorator = possibleAngularDecorators.some((d) => isAngularDecorator(d, isCore));
|
|
301
278
|
if (classParameters) {
|
|
302
279
|
if (hasAngularDecorator || classParameters.some((p) => !!p.decorators.length)) {
|
|
303
280
|
newMembers.push(createCtorParametersClassProperty(diagnostics, entityNameToExpression, classParameters, isClosureCompilerEnabled));
|
|
@@ -307,12 +284,7 @@ function getDownlevelDecoratorsTransform(typeChecker, host, diagnostics, isCore,
|
|
|
307
284
|
newMembers.push(createPropDecoratorsClassProperty(diagnostics, decoratedProperties));
|
|
308
285
|
}
|
|
309
286
|
const members = ts.setTextRange(ts.factory.createNodeArray(newMembers, classDecl.members.hasTrailingComma), classDecl.members);
|
|
310
|
-
|
|
311
|
-
let modifiers;
|
|
312
|
-
if (decoratorsToKeep.size || (classModifiers == null ? void 0 : classModifiers.length)) {
|
|
313
|
-
modifiers = [...decoratorsToKeep, ...classModifiers || []];
|
|
314
|
-
}
|
|
315
|
-
return ts.factory.updateClassDeclaration(classDecl, modifiers, classDecl.name, classDecl.typeParameters, classDecl.heritageClauses, members);
|
|
287
|
+
return ts.factory.updateClassDeclaration(classDecl, classDecl.modifiers, classDecl.name, classDecl.typeParameters, classDecl.heritageClauses, members);
|
|
316
288
|
}
|
|
317
289
|
function decoratorDownlevelVisitor(node) {
|
|
318
290
|
if (ts.isClassDeclaration(node)) {
|
|
@@ -358,8 +330,7 @@ function constructorParametersDownlevelTransform(program) {
|
|
|
358
330
|
reflectionHost,
|
|
359
331
|
[],
|
|
360
332
|
false,
|
|
361
|
-
false
|
|
362
|
-
true
|
|
333
|
+
false
|
|
363
334
|
);
|
|
364
335
|
}
|
|
365
336
|
|
|
@@ -375,4 +346,4 @@ export {
|
|
|
375
346
|
* Use of this source code is governed by an MIT-style license that can be
|
|
376
347
|
* found in the LICENSE file at https://angular.io/license
|
|
377
348
|
*/
|
|
378
|
-
//# sourceMappingURL=chunk-
|
|
349
|
+
//# sourceMappingURL=chunk-PT6IDEJZ.js.map
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../../../../../packages/compiler-cli/src/transformers/downlevel_decorators_transform/downlevel_decorators_transform.ts", "../../../../../../packages/compiler-cli/private/tooling.ts"],
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;AAQA,OAAO,QAAQ;AASf,SAAS,mBAAmB,WAAsB,QAAe;AAC/D,SAAO,UAAW,UAAU,WAAW,QAAQ,UAAU,OAAO,SAAS;AAC3E;AAwBA,IAAM,kCAAkC;AASxC,SAAS,mCACL,WAAyB,aAA4B;AACvD,QAAM,qBAAoD,CAAA;AAC1D,QAAM,OAAO,UAAU;AACvB,UAAQ,KAAK,MAAM;IACjB,KAAK,GAAG,WAAW;AAEjB,yBAAmB,KAAK,GAAG,QAAQ,yBAAyB,QAAQ,IAAI,CAAC;AACzE;IACF,KAAK,GAAG,WAAW;AAEjB,YAAM,OAAO;AACb,yBAAmB,KAAK,GAAG,QAAQ,yBAAyB,QAAQ,KAAK,UAAU,CAAC;AACpF,UAAI,KAAK,UAAU,QAAQ;AACzB,cAAM,OAAwB,CAAA;AAC9B,mBAAW,OAAO,KAAK,WAAW;AAChC,eAAK,KAAK,GAAG;;AAEf,cAAM,mBACF,GAAG,QAAQ,6BAA6B,GAAG,QAAQ,gBAAgB,MAAM,IAAI,CAAC;AAClF,2BAAmB,KAAK,GAAG,QAAQ,yBAAyB,QAAQ,gBAAgB,CAAC;;AAEvF;IACF;AACE,kBAAY,KAAK;QACf,MA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Ae,IAAI,2BAA2B,OAAO;IACjE;EACF;AACF;AAEA,SAAS,+BACL,MAAuB,WAA+C;AACxE,MAAI;AAEJ,MAAI,GAAG,oBAAoB,IAAI,GAAG;AAChC,YAAQ,GAAG,QAAQ,wBACf,WAAW,KAAK,eAAe,KAAK,MAAM,KAAK,eAAe,KAAK,gBACnE,KAAK,YAAY,KAAK,MAAM,KAAK,IAAI;aAChC,GAAG,sBAAsB,IAAI,GAAG;AACzC,YAAQ,GAAG,QAAQ,0BACf,WAAW,KAAK,MAAM,KAAK,eAAe,KAAK,MAAM,KAAK,WAAW;aAChE,GAAG,cAAc,IAAI,GAAG;AACjC,YAAQ,GAAG,QAAQ,6BACf,WAAW,KAAK,MAAM,KAAK,YAAY,KAAK,MAAM,KAAK,IAAI;aACtD,GAAG,cAAc,IAAI,GAAG;AACjC,YACI,GAAG,QAAQ,6BAA6B,WAAW,KAAK,MAAM,KAAK,YAAY,KAAK,IAAI;SACvF;AACL,UAAM,IAAI,MAAM,0CAA0C,GAAG,WAAW,KAAK,OAAO;;AAGtF,SAAO,GAAG,gBAAgB,OAAO,IAAI;AACvC;;;ACviBO,IAAM,yBAAyB;EACpC,WAAW;EACX,mBAAmB;;AAGd,IAAM,kCAAkC;EAC7C,GAAG;EACH,WAAW;;AAUP,SAAU,wCAAwC,SAAmB;AAEzE,QAAM,cAAc,QAAQ,eAAc;AAC1C,QAAM,iBAAiB,IAAI,yBAAyB,WAAW;AAC/D,SAAO;IACH;IAAa;IAAgB,CAAA;IAAiB;IAClB;EAAK;AACvC;",
|
|
5
|
+
"names": ["diagnostics"]
|
|
6
|
+
}
|
|
@@ -5611,7 +5611,7 @@ function parseExtractedTemplate(template, sourceStr, sourceParseRange, escapedSt
|
|
|
5611
5611
|
file: new ParseSourceFile2(sourceStr, sourceMapUrl != null ? sourceMapUrl : "")
|
|
5612
5612
|
};
|
|
5613
5613
|
}
|
|
5614
|
-
function parseTemplateDeclaration(decorator, component, containingFile, evaluator, resourceLoader, defaultPreserveWhitespaces) {
|
|
5614
|
+
function parseTemplateDeclaration(node, decorator, component, containingFile, evaluator, depTracker, resourceLoader, defaultPreserveWhitespaces) {
|
|
5615
5615
|
let preserveWhitespaces = defaultPreserveWhitespaces;
|
|
5616
5616
|
if (component.has("preserveWhitespaces")) {
|
|
5617
5617
|
const expr = component.get("preserveWhitespaces");
|
|
@@ -5647,6 +5647,9 @@ function parseTemplateDeclaration(decorator, component, containingFile, evaluato
|
|
|
5647
5647
|
resolvedTemplateUrl: resourceUrl
|
|
5648
5648
|
};
|
|
5649
5649
|
} catch (e) {
|
|
5650
|
+
if (depTracker !== null) {
|
|
5651
|
+
depTracker.recordDependencyAnalysisFailure(node.getSourceFile());
|
|
5652
|
+
}
|
|
5650
5653
|
throw makeResourceNotFoundError(templateUrl, templateUrlExpr, 0);
|
|
5651
5654
|
}
|
|
5652
5655
|
} else if (component.has("template")) {
|
|
@@ -5674,7 +5677,7 @@ function preloadAndParseTemplate(evaluator, resourceLoader, depTracker, preanaly
|
|
|
5674
5677
|
const templatePromise = resourceLoader.preload(resourceUrl, { type: "template", containingFile });
|
|
5675
5678
|
if (templatePromise !== void 0) {
|
|
5676
5679
|
return templatePromise.then(() => {
|
|
5677
|
-
const templateDecl = parseTemplateDeclaration(decorator, component, containingFile, evaluator, resourceLoader, defaultPreserveWhitespaces);
|
|
5680
|
+
const templateDecl = parseTemplateDeclaration(node, decorator, component, containingFile, evaluator, depTracker, resourceLoader, defaultPreserveWhitespaces);
|
|
5678
5681
|
const template = extractTemplate(node, templateDecl, evaluator, depTracker, resourceLoader, options);
|
|
5679
5682
|
preanalyzeTemplateCache.set(node, template);
|
|
5680
5683
|
return template;
|
|
@@ -5683,10 +5686,13 @@ function preloadAndParseTemplate(evaluator, resourceLoader, depTracker, preanaly
|
|
|
5683
5686
|
return Promise.resolve(null);
|
|
5684
5687
|
}
|
|
5685
5688
|
} catch (e) {
|
|
5689
|
+
if (depTracker !== null) {
|
|
5690
|
+
depTracker.recordDependencyAnalysisFailure(node.getSourceFile());
|
|
5691
|
+
}
|
|
5686
5692
|
throw makeResourceNotFoundError(templateUrl, templateUrlExpr, 0);
|
|
5687
5693
|
}
|
|
5688
5694
|
} else {
|
|
5689
|
-
const templateDecl = parseTemplateDeclaration(decorator, component, containingFile, evaluator, resourceLoader, defaultPreserveWhitespaces);
|
|
5695
|
+
const templateDecl = parseTemplateDeclaration(node, decorator, component, containingFile, evaluator, depTracker, resourceLoader, defaultPreserveWhitespaces);
|
|
5690
5696
|
const template = extractTemplate(node, templateDecl, evaluator, depTracker, resourceLoader, options);
|
|
5691
5697
|
preanalyzeTemplateCache.set(node, template);
|
|
5692
5698
|
return Promise.resolve(template);
|
|
@@ -6116,7 +6122,7 @@ var ComponentDecoratorHandler = class {
|
|
|
6116
6122
|
this.preanalyzeTemplateCache.delete(node);
|
|
6117
6123
|
template = preanalyzed;
|
|
6118
6124
|
} else {
|
|
6119
|
-
const templateDecl = parseTemplateDeclaration(decorator, component, containingFile, this.evaluator, this.resourceLoader, this.defaultPreserveWhitespaces);
|
|
6125
|
+
const templateDecl = parseTemplateDeclaration(node, decorator, component, containingFile, this.evaluator, this.depTracker, this.resourceLoader, this.defaultPreserveWhitespaces);
|
|
6120
6126
|
template = extractTemplate(node, templateDecl, this.evaluator, this.depTracker, this.resourceLoader, {
|
|
6121
6127
|
enableI18nLegacyMessageIdFormat: this.enableI18nLegacyMessageIdFormat,
|
|
6122
6128
|
i18nNormalizeLineEndingsInICUs: this.i18nNormalizeLineEndingsInICUs,
|
|
@@ -6142,6 +6148,9 @@ var ComponentDecoratorHandler = class {
|
|
|
6142
6148
|
this.depTracker.addResourceDependency(node.getSourceFile(), absoluteFrom(resourceUrl));
|
|
6143
6149
|
}
|
|
6144
6150
|
} catch {
|
|
6151
|
+
if (this.depTracker !== null) {
|
|
6152
|
+
this.depTracker.recordDependencyAnalysisFailure(node.getSourceFile());
|
|
6153
|
+
}
|
|
6145
6154
|
if (diagnostics === void 0) {
|
|
6146
6155
|
diagnostics = [];
|
|
6147
6156
|
}
|
|
@@ -7034,4 +7043,4 @@ export {
|
|
|
7034
7043
|
* Use of this source code is governed by an MIT-style license that can be
|
|
7035
7044
|
* found in the LICENSE file at https://angular.io/license
|
|
7036
7045
|
*/
|
|
7037
|
-
//# sourceMappingURL=chunk-
|
|
7046
|
+
//# sourceMappingURL=chunk-VVIQFUX6.js.map
|