@angular/compiler 19.2.5 → 19.2.6
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/fesm2022/compiler.mjs +14 -15
- package/fesm2022/compiler.mjs.map +1 -1
- package/index.d.ts +3 -3
- package/package.json +1 -1
package/fesm2022/compiler.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v19.2.
|
|
2
|
+
* @license Angular v19.2.6
|
|
3
3
|
* (c) 2010-2025 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -1297,14 +1297,13 @@ class TemplateLiteralElementExpr extends Expression {
|
|
|
1297
1297
|
constructor(text, sourceSpan, rawText) {
|
|
1298
1298
|
super(STRING_TYPE, sourceSpan);
|
|
1299
1299
|
this.text = text;
|
|
1300
|
-
// If `rawText` is not provided,
|
|
1301
|
-
// associated `sourceSpan`. If that is also not available, "fake" the raw
|
|
1302
|
-
// string instead by escaping the following control sequences:
|
|
1300
|
+
// If `rawText` is not provided, "fake" the raw string by escaping the following sequences:
|
|
1303
1301
|
// - "\" would otherwise indicate that the next character is a control character.
|
|
1304
1302
|
// - "`" and "${" are template string control sequences that would otherwise prematurely
|
|
1305
1303
|
// indicate the end of the template literal element.
|
|
1306
|
-
|
|
1307
|
-
|
|
1304
|
+
// Note that we can't rely on the `sourceSpan` here, because it may be incorrect (see
|
|
1305
|
+
// https://github.com/angular/angular/pull/60267#discussion_r1986402524).
|
|
1306
|
+
this.rawText = rawText ?? escapeForTemplateLiteral(escapeSlashes(text));
|
|
1308
1307
|
}
|
|
1309
1308
|
visitExpression(visitor, context) {
|
|
1310
1309
|
return visitor.visitTemplateLiteralElementExpr(this, context);
|
|
@@ -30923,7 +30922,7 @@ function publishFacade(global) {
|
|
|
30923
30922
|
* @description
|
|
30924
30923
|
* Entry point for all public APIs of the compiler package.
|
|
30925
30924
|
*/
|
|
30926
|
-
const VERSION = new Version('19.2.
|
|
30925
|
+
const VERSION = new Version('19.2.6');
|
|
30927
30926
|
|
|
30928
30927
|
class CompilerConfig {
|
|
30929
30928
|
defaultEncapsulation;
|
|
@@ -32791,7 +32790,7 @@ const MINIMUM_PARTIAL_LINKER_DEFER_SUPPORT_VERSION = '18.0.0';
|
|
|
32791
32790
|
function compileDeclareClassMetadata(metadata) {
|
|
32792
32791
|
const definitionMap = new DefinitionMap();
|
|
32793
32792
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$5));
|
|
32794
|
-
definitionMap.set('version', literal('19.2.
|
|
32793
|
+
definitionMap.set('version', literal('19.2.6'));
|
|
32795
32794
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
32796
32795
|
definitionMap.set('type', metadata.type);
|
|
32797
32796
|
definitionMap.set('decorators', metadata.decorators);
|
|
@@ -32809,7 +32808,7 @@ function compileComponentDeclareClassMetadata(metadata, dependencies) {
|
|
|
32809
32808
|
callbackReturnDefinitionMap.set('ctorParameters', metadata.ctorParameters ?? literal(null));
|
|
32810
32809
|
callbackReturnDefinitionMap.set('propDecorators', metadata.propDecorators ?? literal(null));
|
|
32811
32810
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_DEFER_SUPPORT_VERSION));
|
|
32812
|
-
definitionMap.set('version', literal('19.2.
|
|
32811
|
+
definitionMap.set('version', literal('19.2.6'));
|
|
32813
32812
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
32814
32813
|
definitionMap.set('type', metadata.type);
|
|
32815
32814
|
definitionMap.set('resolveDeferredDeps', compileComponentMetadataAsyncResolver(dependencies));
|
|
@@ -32904,7 +32903,7 @@ function createDirectiveDefinitionMap(meta) {
|
|
|
32904
32903
|
const definitionMap = new DefinitionMap();
|
|
32905
32904
|
const minVersion = getMinimumVersionForPartialOutput(meta);
|
|
32906
32905
|
definitionMap.set('minVersion', literal(minVersion));
|
|
32907
|
-
definitionMap.set('version', literal('19.2.
|
|
32906
|
+
definitionMap.set('version', literal('19.2.6'));
|
|
32908
32907
|
// e.g. `type: MyDirective`
|
|
32909
32908
|
definitionMap.set('type', meta.type.value);
|
|
32910
32909
|
if (meta.isStandalone !== undefined) {
|
|
@@ -33320,7 +33319,7 @@ const MINIMUM_PARTIAL_LINKER_VERSION$4 = '12.0.0';
|
|
|
33320
33319
|
function compileDeclareFactoryFunction(meta) {
|
|
33321
33320
|
const definitionMap = new DefinitionMap();
|
|
33322
33321
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$4));
|
|
33323
|
-
definitionMap.set('version', literal('19.2.
|
|
33322
|
+
definitionMap.set('version', literal('19.2.6'));
|
|
33324
33323
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
33325
33324
|
definitionMap.set('type', meta.type.value);
|
|
33326
33325
|
definitionMap.set('deps', compileDependencies(meta.deps));
|
|
@@ -33355,7 +33354,7 @@ function compileDeclareInjectableFromMetadata(meta) {
|
|
|
33355
33354
|
function createInjectableDefinitionMap(meta) {
|
|
33356
33355
|
const definitionMap = new DefinitionMap();
|
|
33357
33356
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$3));
|
|
33358
|
-
definitionMap.set('version', literal('19.2.
|
|
33357
|
+
definitionMap.set('version', literal('19.2.6'));
|
|
33359
33358
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
33360
33359
|
definitionMap.set('type', meta.type.value);
|
|
33361
33360
|
// Only generate providedIn property if it has a non-null value
|
|
@@ -33406,7 +33405,7 @@ function compileDeclareInjectorFromMetadata(meta) {
|
|
|
33406
33405
|
function createInjectorDefinitionMap(meta) {
|
|
33407
33406
|
const definitionMap = new DefinitionMap();
|
|
33408
33407
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$2));
|
|
33409
|
-
definitionMap.set('version', literal('19.2.
|
|
33408
|
+
definitionMap.set('version', literal('19.2.6'));
|
|
33410
33409
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
33411
33410
|
definitionMap.set('type', meta.type.value);
|
|
33412
33411
|
definitionMap.set('providers', meta.providers);
|
|
@@ -33439,7 +33438,7 @@ function createNgModuleDefinitionMap(meta) {
|
|
|
33439
33438
|
throw new Error('Invalid path! Local compilation mode should not get into the partial compilation path');
|
|
33440
33439
|
}
|
|
33441
33440
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$1));
|
|
33442
|
-
definitionMap.set('version', literal('19.2.
|
|
33441
|
+
definitionMap.set('version', literal('19.2.6'));
|
|
33443
33442
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
33444
33443
|
definitionMap.set('type', meta.type.value);
|
|
33445
33444
|
// We only generate the keys in the metadata if the arrays contain values.
|
|
@@ -33490,7 +33489,7 @@ function compileDeclarePipeFromMetadata(meta) {
|
|
|
33490
33489
|
function createPipeDefinitionMap(meta) {
|
|
33491
33490
|
const definitionMap = new DefinitionMap();
|
|
33492
33491
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION));
|
|
33493
|
-
definitionMap.set('version', literal('19.2.
|
|
33492
|
+
definitionMap.set('version', literal('19.2.6'));
|
|
33494
33493
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
33495
33494
|
// e.g. `type: MyPipe`
|
|
33496
33495
|
definitionMap.set('type', meta.type.value);
|