@angular/compiler-cli
Advanced tools
Comparing version
@@ -31,17 +31,12 @@ | ||
readConfiguration | ||
} from "./chunk-YNE6T2TY.js"; | ||
} from "./chunk-WX5V4QZA.js"; | ||
import { | ||
ConsoleLogger, | ||
LogLevel | ||
} from "./chunk-SEKYV57I.js"; | ||
} from "./chunk-6HOSNZU5.js"; | ||
import { | ||
GLOBAL_DEFS_FOR_TERSER, | ||
GLOBAL_DEFS_FOR_TERSER_WITH_AOT, | ||
constructorParametersDownlevelTransform | ||
} from "./chunk-2FHBFXPC.js"; | ||
import { | ||
angularJitApplicationTransform, | ||
getDownlevelDecoratorsTransform, | ||
getInitializerApiJitTransform | ||
} from "./chunk-5TMRGUHP.js"; | ||
} from "./chunk-NA3RDKZL.js"; | ||
import { | ||
@@ -55,4 +50,4 @@ ActivePerfRecorder, | ||
ngErrorCode | ||
} from "./chunk-UZOSFHTN.js"; | ||
import "./chunk-6ECVYRSU.js"; | ||
} from "./chunk-GXMJGI7A.js"; | ||
import "./chunk-I2BHWRAU.js"; | ||
import { | ||
@@ -79,13 +74,26 @@ InvalidFileSystem, | ||
toRelativeImport | ||
} from "./chunk-TPEB2IXF.js"; | ||
} from "./chunk-GWZQLAGK.js"; | ||
import { | ||
NodeJSFileSystem | ||
} from "./chunk-5JF7HF3W.js"; | ||
import "./chunk-KPQ72R34.js"; | ||
} from "./chunk-SZY7NM6F.js"; | ||
import "./chunk-DWRM7PIK.js"; | ||
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/version.js | ||
// packages/compiler-cli/src/version.js | ||
import { Version } from "@angular/compiler"; | ||
var VERSION = new Version("20.1.0"); | ||
var VERSION = new Version("20.1.1"); | ||
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/ngtsc/tsc_plugin.js | ||
// packages/compiler-cli/private/tooling.js | ||
var GLOBAL_DEFS_FOR_TERSER = { | ||
ngDevMode: false, | ||
ngI18nClosureMode: false | ||
}; | ||
var GLOBAL_DEFS_FOR_TERSER_WITH_AOT = { | ||
...GLOBAL_DEFS_FOR_TERSER, | ||
ngJitMode: false | ||
}; | ||
var constructorParametersDownlevelTransform = (program, isCore = false) => { | ||
return angularJitApplicationTransform(program, isCore); | ||
}; | ||
// packages/compiler-cli/src/ngtsc/tsc_plugin.js | ||
var NgTscPlugin = class { | ||
@@ -109,3 +117,9 @@ ngOptions; | ||
this.options = { ...this.ngOptions, ...options }; | ||
this.host = NgCompilerHost.wrap(host, inputFiles, this.options, null); | ||
this.host = NgCompilerHost.wrap( | ||
host, | ||
inputFiles, | ||
this.options, | ||
/* oldProgram */ | ||
null | ||
); | ||
return this.host; | ||
@@ -136,3 +150,5 @@ } | ||
perfRecorder, | ||
/* enableTemplateTypeChecker */ | ||
false, | ||
/* usePoisonedData */ | ||
false | ||
@@ -168,3 +184,3 @@ ); | ||
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/index.js | ||
// packages/compiler-cli/index.ts | ||
setFileSystem(new NodeJSFileSystem()); | ||
@@ -235,2 +251,1 @@ export { | ||
*/ | ||
//# sourceMappingURL=index.js.map |
@@ -11,18 +11,18 @@ | ||
isFatalLinkerError | ||
} from "../../chunk-FPHHL4UV.js"; | ||
} from "../../chunk-BPDNYZBC.js"; | ||
import { | ||
ConsoleLogger, | ||
LogLevel | ||
} from "../../chunk-SEKYV57I.js"; | ||
import "../../chunk-PML5JK7B.js"; | ||
import "../../chunk-6ECVYRSU.js"; | ||
} from "../../chunk-6HOSNZU5.js"; | ||
import "../../chunk-HYJ2H3FU.js"; | ||
import "../../chunk-I2BHWRAU.js"; | ||
import { | ||
NodeJSFileSystem | ||
} from "../../chunk-5JF7HF3W.js"; | ||
import "../../chunk-KPQ72R34.js"; | ||
} from "../../chunk-SZY7NM6F.js"; | ||
import "../../chunk-DWRM7PIK.js"; | ||
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/linker/babel/src/es2015_linker_plugin.js | ||
// packages/compiler-cli/linker/babel/src/es2015_linker_plugin.js | ||
import { types as t4 } from "@babel/core"; | ||
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/linker/babel/src/ast/babel_ast_factory.js | ||
// packages/compiler-cli/linker/babel/src/ast/babel_ast_factory.js | ||
import { types as t } from "@babel/core"; | ||
@@ -70,3 +70,9 @@ var BabelAstFactory = class { | ||
if (pure) { | ||
t.addComment(call, "leading", " @__PURE__ ", false); | ||
t.addComment( | ||
call, | ||
"leading", | ||
" @__PURE__ ", | ||
/* line */ | ||
false | ||
); | ||
} | ||
@@ -77,3 +83,8 @@ return call; | ||
createElementAccess(expression, element) { | ||
return t.memberExpression(expression, element, true); | ||
return t.memberExpression( | ||
expression, | ||
element, | ||
/* computed */ | ||
true | ||
); | ||
} | ||
@@ -99,3 +110,8 @@ createExpressionStatement = t.expressionStatement; | ||
createDynamicImport(url) { | ||
return this.createCallExpression(t.import(), [typeof url === "string" ? t.stringLiteral(url) : url], false); | ||
return this.createCallExpression( | ||
t.import(), | ||
[typeof url === "string" ? t.stringLiteral(url) : url], | ||
false | ||
/* pure */ | ||
); | ||
} | ||
@@ -126,3 +142,8 @@ createLiteral(value) { | ||
createPropertyAccess(expression, propertyName) { | ||
return t.memberExpression(expression, t.identifier(propertyName), false); | ||
return t.memberExpression( | ||
expression, | ||
t.identifier(propertyName), | ||
/* computed */ | ||
false | ||
); | ||
} | ||
@@ -155,5 +176,9 @@ createReturnStatement = t.returnStatement; | ||
node.loc = { | ||
// Add in the filename so that we can map to external template files. | ||
// Note that Babel gets confused if you specify a filename when it is the original source | ||
// file. This happens when the template is inline, in which case just use `undefined`. | ||
filename: sourceMapRange.url !== this.sourceUrl ? sourceMapRange.url : void 0, | ||
start: { | ||
line: sourceMapRange.start.line + 1, | ||
// lines are 1-based in Babel. | ||
column: sourceMapRange.start.column | ||
@@ -163,2 +188,3 @@ }, | ||
line: sourceMapRange.end.line + 1, | ||
// lines are 1-based in Babel. | ||
column: sourceMapRange.end.column | ||
@@ -176,3 +202,3 @@ } | ||
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/linker/babel/src/ast/babel_ast_host.js | ||
// packages/compiler-cli/linker/babel/src/ast/babel_ast_host.js | ||
import { types as t2 } from "@babel/core"; | ||
@@ -281,2 +307,3 @@ var BabelAstHost = class { | ||
startLine: node.loc.start.line - 1, | ||
// Babel lines are 1-based | ||
startCol: node.loc.start.column, | ||
@@ -304,9 +331,24 @@ startPos: node.start, | ||
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/linker/babel/src/babel_declaration_scope.js | ||
// packages/compiler-cli/linker/babel/src/babel_declaration_scope.js | ||
import { types as t3 } from "@babel/core"; | ||
var BabelDeclarationScope = class { | ||
declarationScope; | ||
/** | ||
* Construct a new `BabelDeclarationScope`. | ||
* | ||
* @param declarationScope the Babel scope containing the declaration call expression. | ||
*/ | ||
constructor(declarationScope) { | ||
this.declarationScope = declarationScope; | ||
} | ||
/** | ||
* Compute the Babel `NodePath` that can be used to reference the lexical scope where any | ||
* shared constant statements would be inserted. | ||
* | ||
* There will only be a shared constant scope if the expression is in an ECMAScript module, or a | ||
* UMD module. Otherwise `null` is returned to indicate that constant statements must be emitted | ||
* locally to the generated linked definition, to avoid polluting the global scope. | ||
* | ||
* @param expression the expression that points to the Angular core framework import. | ||
*/ | ||
getConstantScopeRef(expression) { | ||
@@ -332,3 +374,3 @@ let bindingExpression = expression; | ||
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/linker/babel/src/es2015_linker_plugin.js | ||
// packages/compiler-cli/linker/babel/src/es2015_linker_plugin.js | ||
function createEs2015LinkerPlugin({ fileSystem, logger, ...options }) { | ||
@@ -339,2 +381,5 @@ let fileLinker = null; | ||
Program: { | ||
/** | ||
* Create a new `FileLinker` as we enter each file (`t.Program` in Babel). | ||
*/ | ||
enter(_, state) { | ||
@@ -351,2 +396,6 @@ assertNull(fileLinker); | ||
}, | ||
/** | ||
* On exiting the file, insert any shared constant statements that were generated during | ||
* linking of the partial declarations. | ||
*/ | ||
exit() { | ||
@@ -360,2 +409,6 @@ assertNotNull(fileLinker); | ||
}, | ||
/** | ||
* Test each call expression to see if it is a partial declaration; it if is then replace it | ||
* with the results of linking the declaration. | ||
*/ | ||
CallExpression(call, state) { | ||
@@ -436,3 +489,3 @@ if (fileLinker === null) { | ||
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/linker/babel/src/babel_plugin.js | ||
// packages/compiler-cli/linker/babel/src/babel_plugin.js | ||
function defaultLinkerPlugin(api, options) { | ||
@@ -447,3 +500,3 @@ api.assertVersion(7); | ||
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/linker/babel/index.js | ||
// packages/compiler-cli/linker/babel/index.ts | ||
var babel_default = defaultLinkerPlugin; | ||
@@ -461,2 +514,1 @@ export { | ||
*/ | ||
//# sourceMappingURL=index.js.map |
@@ -13,6 +13,6 @@ | ||
needsLinking | ||
} from "../chunk-FPHHL4UV.js"; | ||
import "../chunk-PML5JK7B.js"; | ||
import "../chunk-6ECVYRSU.js"; | ||
import "../chunk-KPQ72R34.js"; | ||
} from "../chunk-BPDNYZBC.js"; | ||
import "../chunk-HYJ2H3FU.js"; | ||
import "../chunk-I2BHWRAU.js"; | ||
import "../chunk-DWRM7PIK.js"; | ||
export { | ||
@@ -27,2 +27,8 @@ DEFAULT_LINKER_OPTIONS, | ||
}; | ||
//# sourceMappingURL=index.js.map | ||
/** | ||
* @license | ||
* Copyright Google LLC All Rights Reserved. | ||
* | ||
* Use of this source code is governed by an MIT-style license that can be | ||
* found in the LICENSE file at https://angular.dev/license | ||
*/ |
@@ -8,7 +8,7 @@ | ||
LogLevel | ||
} from "../chunk-SEKYV57I.js"; | ||
} from "../chunk-6HOSNZU5.js"; | ||
import { | ||
SourceFile, | ||
SourceFileLoader | ||
} from "../chunk-PML5JK7B.js"; | ||
} from "../chunk-HYJ2H3FU.js"; | ||
import { | ||
@@ -35,7 +35,7 @@ InvalidFileSystem, | ||
toRelativeImport | ||
} from "../chunk-TPEB2IXF.js"; | ||
} from "../chunk-GWZQLAGK.js"; | ||
import { | ||
NodeJSFileSystem | ||
} from "../chunk-5JF7HF3W.js"; | ||
import "../chunk-KPQ72R34.js"; | ||
} from "../chunk-SZY7NM6F.js"; | ||
import "../chunk-DWRM7PIK.js"; | ||
export { | ||
@@ -75,2 +75,1 @@ ConsoleLogger, | ||
*/ | ||
//# sourceMappingURL=localize.js.map |
@@ -16,7 +16,7 @@ | ||
reflectObjectLiteral | ||
} from "../chunk-UZOSFHTN.js"; | ||
import "../chunk-6ECVYRSU.js"; | ||
import "../chunk-TPEB2IXF.js"; | ||
import "../chunk-5JF7HF3W.js"; | ||
import "../chunk-KPQ72R34.js"; | ||
} from "../chunk-GXMJGI7A.js"; | ||
import "../chunk-I2BHWRAU.js"; | ||
import "../chunk-GWZQLAGK.js"; | ||
import "../chunk-SZY7NM6F.js"; | ||
import "../chunk-DWRM7PIK.js"; | ||
export { | ||
@@ -41,2 +41,1 @@ DynamicValue, | ||
*/ | ||
//# sourceMappingURL=migrations.js.map |
@@ -6,12 +6,22 @@ | ||
import { | ||
GLOBAL_DEFS_FOR_TERSER, | ||
GLOBAL_DEFS_FOR_TERSER_WITH_AOT, | ||
constructorParametersDownlevelTransform | ||
} from "../chunk-2FHBFXPC.js"; | ||
import "../chunk-5TMRGUHP.js"; | ||
import "../chunk-UZOSFHTN.js"; | ||
import "../chunk-6ECVYRSU.js"; | ||
import "../chunk-TPEB2IXF.js"; | ||
import "../chunk-5JF7HF3W.js"; | ||
import "../chunk-KPQ72R34.js"; | ||
angularJitApplicationTransform | ||
} from "../chunk-NA3RDKZL.js"; | ||
import "../chunk-GXMJGI7A.js"; | ||
import "../chunk-I2BHWRAU.js"; | ||
import "../chunk-GWZQLAGK.js"; | ||
import "../chunk-SZY7NM6F.js"; | ||
import "../chunk-DWRM7PIK.js"; | ||
// packages/compiler-cli/private/tooling.ts | ||
var GLOBAL_DEFS_FOR_TERSER = { | ||
ngDevMode: false, | ||
ngI18nClosureMode: false | ||
}; | ||
var GLOBAL_DEFS_FOR_TERSER_WITH_AOT = { | ||
...GLOBAL_DEFS_FOR_TERSER, | ||
ngJitMode: false | ||
}; | ||
var constructorParametersDownlevelTransform = (program, isCore = false) => { | ||
return angularJitApplicationTransform(program, isCore); | ||
}; | ||
export { | ||
@@ -22,2 +32,8 @@ GLOBAL_DEFS_FOR_TERSER, | ||
}; | ||
//# sourceMappingURL=tooling.js.map | ||
/** | ||
* @license | ||
* Copyright Google LLC All Rights Reserved. | ||
* | ||
* Use of this source code is governed by an MIT-style license that can be | ||
* found in the LICENSE file at https://angular.dev/license | ||
*/ |
@@ -9,21 +9,21 @@ #!/usr/bin/env node | ||
readCommandLineAndConfiguration | ||
} from "../../chunk-JXYBFWGA.js"; | ||
} from "../../chunk-JWGODKML.js"; | ||
import { | ||
EmitFlags | ||
} from "../../chunk-YNE6T2TY.js"; | ||
import "../../chunk-5TMRGUHP.js"; | ||
import "../../chunk-UZOSFHTN.js"; | ||
import "../../chunk-6ECVYRSU.js"; | ||
} from "../../chunk-WX5V4QZA.js"; | ||
import "../../chunk-NA3RDKZL.js"; | ||
import "../../chunk-GXMJGI7A.js"; | ||
import "../../chunk-I2BHWRAU.js"; | ||
import { | ||
setFileSystem | ||
} from "../../chunk-TPEB2IXF.js"; | ||
} from "../../chunk-GWZQLAGK.js"; | ||
import { | ||
NodeJSFileSystem | ||
} from "../../chunk-5JF7HF3W.js"; | ||
import "../../chunk-KPQ72R34.js"; | ||
} from "../../chunk-SZY7NM6F.js"; | ||
import "../../chunk-DWRM7PIK.js"; | ||
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/bin/ng_xi18n.js | ||
// packages/compiler-cli/src/bin/ng_xi18n.ts | ||
import "reflect-metadata"; | ||
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/extract_i18n.js | ||
// packages/compiler-cli/src/extract_i18n.js | ||
import yargs from "yargs"; | ||
@@ -51,3 +51,3 @@ function mainXi18n(args2, consoleError = console.error) { | ||
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/bin/ng_xi18n.js | ||
// packages/compiler-cli/src/bin/ng_xi18n.ts | ||
process.title = "Angular i18n Message Extractor (ng-xi18n)"; | ||
@@ -64,2 +64,1 @@ var args = process.argv.slice(2); | ||
*/ | ||
//# sourceMappingURL=ng_xi18n.js.map |
@@ -8,16 +8,16 @@ #!/usr/bin/env node | ||
main | ||
} from "../../chunk-JXYBFWGA.js"; | ||
import "../../chunk-YNE6T2TY.js"; | ||
import "../../chunk-5TMRGUHP.js"; | ||
import "../../chunk-UZOSFHTN.js"; | ||
import "../../chunk-6ECVYRSU.js"; | ||
} from "../../chunk-JWGODKML.js"; | ||
import "../../chunk-WX5V4QZA.js"; | ||
import "../../chunk-NA3RDKZL.js"; | ||
import "../../chunk-GXMJGI7A.js"; | ||
import "../../chunk-I2BHWRAU.js"; | ||
import { | ||
setFileSystem | ||
} from "../../chunk-TPEB2IXF.js"; | ||
} from "../../chunk-GWZQLAGK.js"; | ||
import { | ||
NodeJSFileSystem | ||
} from "../../chunk-5JF7HF3W.js"; | ||
import "../../chunk-KPQ72R34.js"; | ||
} from "../../chunk-SZY7NM6F.js"; | ||
import "../../chunk-DWRM7PIK.js"; | ||
// bazel-out/k8-fastbuild/bin/packages/compiler-cli/src/bin/ngc.js | ||
// packages/compiler-cli/src/bin/ngc.ts | ||
import "reflect-metadata"; | ||
@@ -41,2 +41,1 @@ async function runNgcComamnd() { | ||
*/ | ||
//# sourceMappingURL=ngc.js.map |
@@ -10,3 +10,3 @@ /** | ||
import { AstObject, AstValue } from '../../ast/ast_value'; | ||
export declare const PLACEHOLDER_VERSION = "20.1.0"; | ||
export declare const PLACEHOLDER_VERSION = "20.1.1"; | ||
export declare function wrapReference<TExpression>(wrapped: o.WrappedNodeExpr<TExpression>): R3Reference; | ||
@@ -13,0 +13,0 @@ /** |
{ | ||
"name": "@angular/compiler-cli", | ||
"version": "20.1.0", | ||
"version": "20.1.1", | ||
"description": "Angular - the compiler CLI for Node.js", | ||
@@ -51,3 +51,3 @@ "typings": "index.d.ts", | ||
"peerDependencies": { | ||
"@angular/compiler": "20.1.0", | ||
"@angular/compiler": "20.1.1", | ||
"typescript": ">=5.8 <5.9" | ||
@@ -54,0 +54,0 @@ }, |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
48524
5.02%25
-3.85%2002587
-22.01%352
-5.63%