@angular/compiler-cli 13.0.0-rc.1 → 13.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/index.js +14 -10
- package/bundles/index.js.map +2 -2
- package/bundles/linker/babel/index.js +2 -2
- package/bundles/linker/index.js +2 -2
- package/bundles/ngcc/index.js +18 -25
- package/bundles/ngcc/index.js.map +2 -2
- package/bundles/ngcc/main-ngcc.js +18 -25
- package/bundles/ngcc/main-ngcc.js.map +2 -2
- package/bundles/ngcc/src/execution/cluster/ngcc_cluster_worker.js +17 -24
- package/bundles/ngcc/src/execution/cluster/ngcc_cluster_worker.js.map +2 -2
- package/bundles/private/migrations.js +5 -3
- package/bundles/private/migrations.js.map +2 -2
- package/bundles/src/bin/ng_xi18n.js +13 -9
- package/bundles/src/bin/ng_xi18n.js.map +2 -2
- package/bundles/src/bin/ngc.js +13 -9
- package/bundles/src/bin/ngc.js.map +2 -2
- package/bundles_metadata.json +1 -1
- package/ngcc/src/packages/build_marker.d.ts +1 -1
- package/package.json +2 -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
|
@@ -1086,7 +1086,7 @@ var \u0275\u0275ngDeclareNgModule = "\u0275\u0275ngDeclareNgModule";
|
|
|
1086
1086
|
var \u0275\u0275ngDeclarePipe = "\u0275\u0275ngDeclarePipe";
|
|
1087
1087
|
function createLinkerMap(environment, sourceUrl, code) {
|
|
1088
1088
|
const linkers = new Map();
|
|
1089
|
-
const LATEST_VERSION_RANGE = getRange("<=", "13.0.0-rc.
|
|
1089
|
+
const LATEST_VERSION_RANGE = getRange("<=", "13.0.0-rc.2");
|
|
1090
1090
|
linkers.set(\u0275\u0275ngDeclareDirective, [
|
|
1091
1091
|
{ range: LATEST_VERSION_RANGE, linker: new PartialDirectiveLinkerVersion1(sourceUrl, code) }
|
|
1092
1092
|
]);
|
|
@@ -1133,7 +1133,7 @@ var PartialLinkerSelector = class {
|
|
|
1133
1133
|
throw new Error(`Unknown partial declaration function ${functionName}.`);
|
|
1134
1134
|
}
|
|
1135
1135
|
const linkerRanges = this.linkers.get(functionName);
|
|
1136
|
-
if (version === "13.0.0-rc.
|
|
1136
|
+
if (version === "13.0.0-rc.2") {
|
|
1137
1137
|
return linkerRanges[linkerRanges.length - 1].linker;
|
|
1138
1138
|
}
|
|
1139
1139
|
const declarationRange = getRange(">=", minVersion);
|
package/bundles/linker/index.js
CHANGED
|
@@ -795,7 +795,7 @@ var declarationFunctions = [
|
|
|
795
795
|
];
|
|
796
796
|
function createLinkerMap(environment, sourceUrl, code) {
|
|
797
797
|
const linkers = new Map();
|
|
798
|
-
const LATEST_VERSION_RANGE = getRange("<=", "13.0.0-rc.
|
|
798
|
+
const LATEST_VERSION_RANGE = getRange("<=", "13.0.0-rc.2");
|
|
799
799
|
linkers.set(\u0275\u0275ngDeclareDirective, [
|
|
800
800
|
{ range: LATEST_VERSION_RANGE, linker: new PartialDirectiveLinkerVersion1(sourceUrl, code) }
|
|
801
801
|
]);
|
|
@@ -842,7 +842,7 @@ var PartialLinkerSelector = class {
|
|
|
842
842
|
throw new Error(`Unknown partial declaration function ${functionName}.`);
|
|
843
843
|
}
|
|
844
844
|
const linkerRanges = this.linkers.get(functionName);
|
|
845
|
-
if (version === "13.0.0-rc.
|
|
845
|
+
if (version === "13.0.0-rc.2") {
|
|
846
846
|
return linkerRanges[linkerRanges.length - 1].linker;
|
|
847
847
|
}
|
|
848
848
|
const declarationRange = getRange(">=", minVersion);
|
package/bundles/ngcc/index.js
CHANGED
|
@@ -4458,7 +4458,7 @@ var ProgramBasedEntryPointFinder = class extends TracingEntryPointFinder {
|
|
|
4458
4458
|
};
|
|
4459
4459
|
|
|
4460
4460
|
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/packages/build_marker.mjs
|
|
4461
|
-
var NGCC_VERSION = "13.0.0-rc.
|
|
4461
|
+
var NGCC_VERSION = "13.0.0-rc.2";
|
|
4462
4462
|
function needsCleaning(packageJson) {
|
|
4463
4463
|
return Object.values(packageJson.__processed_by_ivy_ngcc__ || {}).some((value) => value !== NGCC_VERSION);
|
|
4464
4464
|
}
|
|
@@ -5228,9 +5228,6 @@ var ClusterExecutor = class {
|
|
|
5228
5228
|
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/execution/create_compile_function.mjs
|
|
5229
5229
|
import ts62 from "typescript";
|
|
5230
5230
|
|
|
5231
|
-
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error.mjs
|
|
5232
|
-
import ts18 from "typescript";
|
|
5233
|
-
|
|
5234
5231
|
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error_code.mjs
|
|
5235
5232
|
var ErrorCode;
|
|
5236
5233
|
(function(ErrorCode2) {
|
|
@@ -5281,6 +5278,8 @@ var ErrorCode;
|
|
|
5281
5278
|
ErrorCode2[ErrorCode2["SUGGEST_STRICT_TEMPLATES"] = 10001] = "SUGGEST_STRICT_TEMPLATES";
|
|
5282
5279
|
ErrorCode2[ErrorCode2["SUGGEST_SUBOPTIMAL_TYPE_INFERENCE"] = 10002] = "SUGGEST_SUBOPTIMAL_TYPE_INFERENCE";
|
|
5283
5280
|
})(ErrorCode || (ErrorCode = {}));
|
|
5281
|
+
|
|
5282
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/docs.mjs
|
|
5284
5283
|
var COMPILER_ERRORS_WITH_GUIDES = new Set([
|
|
5285
5284
|
ErrorCode.DECORATOR_ARG_NOT_LITERAL,
|
|
5286
5285
|
ErrorCode.IMPORT_CYCLE_DETECTED,
|
|
@@ -5290,6 +5289,15 @@ var COMPILER_ERRORS_WITH_GUIDES = new Set([
|
|
|
5290
5289
|
ErrorCode.MISSING_REFERENCE_TARGET,
|
|
5291
5290
|
ErrorCode.COMPONENT_INVALID_SHADOW_DOM_SELECTOR
|
|
5292
5291
|
]);
|
|
5292
|
+
|
|
5293
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error.mjs
|
|
5294
|
+
import ts18 from "typescript";
|
|
5295
|
+
|
|
5296
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/util.mjs
|
|
5297
|
+
var ERROR_CODE_MATCHER = /(\u001b\[\d+m ?)TS-99(\d+: ?\u001b\[\d+m)/g;
|
|
5298
|
+
function replaceTsWithNgInErrors(errors) {
|
|
5299
|
+
return errors.replace(ERROR_CODE_MATCHER, "$1NG$2");
|
|
5300
|
+
}
|
|
5293
5301
|
function ngErrorCode(code) {
|
|
5294
5302
|
return parseInt("-99" + code);
|
|
5295
5303
|
}
|
|
@@ -5334,12 +5342,6 @@ function isFatalDiagnosticError(err) {
|
|
|
5334
5342
|
return err._isFatalDiagnosticError === true;
|
|
5335
5343
|
}
|
|
5336
5344
|
|
|
5337
|
-
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/util.mjs
|
|
5338
|
-
var ERROR_CODE_MATCHER = /(\u001b\[\d+m ?)TS-99(\d+: ?\u001b\[\d+m)/g;
|
|
5339
|
-
function replaceTsWithNgInErrors(errors) {
|
|
5340
|
-
return errors.replace(ERROR_CODE_MATCHER, "$1NG$2");
|
|
5341
|
-
}
|
|
5342
|
-
|
|
5343
5345
|
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/packages/bundle_program.mjs
|
|
5344
5346
|
import ts20 from "typescript";
|
|
5345
5347
|
|
|
@@ -14316,11 +14318,11 @@ var UmdRenderingFormatter = class extends Esm5RenderingFormatter {
|
|
|
14316
14318
|
if (!umdModule) {
|
|
14317
14319
|
return;
|
|
14318
14320
|
}
|
|
14319
|
-
const
|
|
14320
|
-
renderCommonJsDependencies(output,
|
|
14321
|
-
renderAmdDependencies(output,
|
|
14322
|
-
renderGlobalDependencies(output,
|
|
14323
|
-
renderFactoryParameters(output,
|
|
14321
|
+
const { wrapperFn, factoryFn } = umdModule;
|
|
14322
|
+
renderCommonJsDependencies(output, wrapperFn, imports);
|
|
14323
|
+
renderAmdDependencies(output, wrapperFn, imports);
|
|
14324
|
+
renderGlobalDependencies(output, wrapperFn, imports);
|
|
14325
|
+
renderFactoryParameters(output, factoryFn, imports);
|
|
14324
14326
|
}
|
|
14325
14327
|
addExports(output, entryPointBasePath, exports, importManager, file) {
|
|
14326
14328
|
const umdModule = this.umdHost.getUmdModule(file);
|
|
@@ -14406,16 +14408,7 @@ function renderGlobalDependencies(output, wrapperFunction, imports) {
|
|
|
14406
14408
|
const importString = imports.map((i) => `global.${getGlobalIdentifier(i)}`).join(",");
|
|
14407
14409
|
output.appendLeft(injectionPoint, importString + (globalFactoryCall.arguments.length > 0 ? "," : ""));
|
|
14408
14410
|
}
|
|
14409
|
-
function renderFactoryParameters(output,
|
|
14410
|
-
const wrapperCall = wrapperFunction.parent;
|
|
14411
|
-
const secondArgument = wrapperCall.arguments[1];
|
|
14412
|
-
if (!secondArgument) {
|
|
14413
|
-
return;
|
|
14414
|
-
}
|
|
14415
|
-
const factoryFunction = ts60.isParenthesizedExpression(secondArgument) ? secondArgument.expression : secondArgument;
|
|
14416
|
-
if (!ts60.isFunctionExpression(factoryFunction)) {
|
|
14417
|
-
return;
|
|
14418
|
-
}
|
|
14411
|
+
function renderFactoryParameters(output, factoryFunction, imports) {
|
|
14419
14412
|
const parameters = factoryFunction.parameters;
|
|
14420
14413
|
const parameterString = imports.map((i) => i.qualifier.text).join(",");
|
|
14421
14414
|
if (parameters.length > 0) {
|