@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
|
@@ -4457,7 +4457,7 @@ var ProgramBasedEntryPointFinder = class extends TracingEntryPointFinder {
|
|
|
4457
4457
|
};
|
|
4458
4458
|
|
|
4459
4459
|
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/packages/build_marker.mjs
|
|
4460
|
-
var NGCC_VERSION = "13.0.0-rc.
|
|
4460
|
+
var NGCC_VERSION = "13.0.0-rc.2";
|
|
4461
4461
|
function needsCleaning(packageJson) {
|
|
4462
4462
|
return Object.values(packageJson.__processed_by_ivy_ngcc__ || {}).some((value) => value !== NGCC_VERSION);
|
|
4463
4463
|
}
|
|
@@ -5227,9 +5227,6 @@ var ClusterExecutor = class {
|
|
|
5227
5227
|
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/execution/create_compile_function.mjs
|
|
5228
5228
|
import ts62 from "typescript";
|
|
5229
5229
|
|
|
5230
|
-
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error.mjs
|
|
5231
|
-
import ts18 from "typescript";
|
|
5232
|
-
|
|
5233
5230
|
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error_code.mjs
|
|
5234
5231
|
var ErrorCode;
|
|
5235
5232
|
(function(ErrorCode2) {
|
|
@@ -5280,6 +5277,8 @@ var ErrorCode;
|
|
|
5280
5277
|
ErrorCode2[ErrorCode2["SUGGEST_STRICT_TEMPLATES"] = 10001] = "SUGGEST_STRICT_TEMPLATES";
|
|
5281
5278
|
ErrorCode2[ErrorCode2["SUGGEST_SUBOPTIMAL_TYPE_INFERENCE"] = 10002] = "SUGGEST_SUBOPTIMAL_TYPE_INFERENCE";
|
|
5282
5279
|
})(ErrorCode || (ErrorCode = {}));
|
|
5280
|
+
|
|
5281
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/docs.mjs
|
|
5283
5282
|
var COMPILER_ERRORS_WITH_GUIDES = new Set([
|
|
5284
5283
|
ErrorCode.DECORATOR_ARG_NOT_LITERAL,
|
|
5285
5284
|
ErrorCode.IMPORT_CYCLE_DETECTED,
|
|
@@ -5289,6 +5288,15 @@ var COMPILER_ERRORS_WITH_GUIDES = new Set([
|
|
|
5289
5288
|
ErrorCode.MISSING_REFERENCE_TARGET,
|
|
5290
5289
|
ErrorCode.COMPONENT_INVALID_SHADOW_DOM_SELECTOR
|
|
5291
5290
|
]);
|
|
5291
|
+
|
|
5292
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/error.mjs
|
|
5293
|
+
import ts18 from "typescript";
|
|
5294
|
+
|
|
5295
|
+
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/util.mjs
|
|
5296
|
+
var ERROR_CODE_MATCHER = /(\u001b\[\d+m ?)TS-99(\d+: ?\u001b\[\d+m)/g;
|
|
5297
|
+
function replaceTsWithNgInErrors(errors) {
|
|
5298
|
+
return errors.replace(ERROR_CODE_MATCHER, "$1NG$2");
|
|
5299
|
+
}
|
|
5292
5300
|
function ngErrorCode(code) {
|
|
5293
5301
|
return parseInt("-99" + code);
|
|
5294
5302
|
}
|
|
@@ -5333,12 +5341,6 @@ function isFatalDiagnosticError(err) {
|
|
|
5333
5341
|
return err._isFatalDiagnosticError === true;
|
|
5334
5342
|
}
|
|
5335
5343
|
|
|
5336
|
-
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/diagnostics/src/util.mjs
|
|
5337
|
-
var ERROR_CODE_MATCHER = /(\u001b\[\d+m ?)TS-99(\d+: ?\u001b\[\d+m)/g;
|
|
5338
|
-
function replaceTsWithNgInErrors(errors) {
|
|
5339
|
-
return errors.replace(ERROR_CODE_MATCHER, "$1NG$2");
|
|
5340
|
-
}
|
|
5341
|
-
|
|
5342
5344
|
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/ngcc/src/packages/bundle_program.mjs
|
|
5343
5345
|
import ts20 from "typescript";
|
|
5344
5346
|
|
|
@@ -14315,11 +14317,11 @@ var UmdRenderingFormatter = class extends Esm5RenderingFormatter {
|
|
|
14315
14317
|
if (!umdModule) {
|
|
14316
14318
|
return;
|
|
14317
14319
|
}
|
|
14318
|
-
const
|
|
14319
|
-
renderCommonJsDependencies(output,
|
|
14320
|
-
renderAmdDependencies(output,
|
|
14321
|
-
renderGlobalDependencies(output,
|
|
14322
|
-
renderFactoryParameters(output,
|
|
14320
|
+
const { wrapperFn, factoryFn } = umdModule;
|
|
14321
|
+
renderCommonJsDependencies(output, wrapperFn, imports);
|
|
14322
|
+
renderAmdDependencies(output, wrapperFn, imports);
|
|
14323
|
+
renderGlobalDependencies(output, wrapperFn, imports);
|
|
14324
|
+
renderFactoryParameters(output, factoryFn, imports);
|
|
14323
14325
|
}
|
|
14324
14326
|
addExports(output, entryPointBasePath, exports, importManager, file) {
|
|
14325
14327
|
const umdModule = this.umdHost.getUmdModule(file);
|
|
@@ -14405,16 +14407,7 @@ function renderGlobalDependencies(output, wrapperFunction, imports) {
|
|
|
14405
14407
|
const importString = imports.map((i) => `global.${getGlobalIdentifier(i)}`).join(",");
|
|
14406
14408
|
output.appendLeft(injectionPoint, importString + (globalFactoryCall.arguments.length > 0 ? "," : ""));
|
|
14407
14409
|
}
|
|
14408
|
-
function renderFactoryParameters(output,
|
|
14409
|
-
const wrapperCall = wrapperFunction.parent;
|
|
14410
|
-
const secondArgument = wrapperCall.arguments[1];
|
|
14411
|
-
if (!secondArgument) {
|
|
14412
|
-
return;
|
|
14413
|
-
}
|
|
14414
|
-
const factoryFunction = ts60.isParenthesizedExpression(secondArgument) ? secondArgument.expression : secondArgument;
|
|
14415
|
-
if (!ts60.isFunctionExpression(factoryFunction)) {
|
|
14416
|
-
return;
|
|
14417
|
-
}
|
|
14410
|
+
function renderFactoryParameters(output, factoryFunction, imports) {
|
|
14418
14411
|
const parameters = factoryFunction.parameters;
|
|
14419
14412
|
const parameterString = imports.map((i) => i.qualifier.text).join(",");
|
|
14420
14413
|
if (parameters.length > 0) {
|