@angular/compiler 21.1.0 → 21.1.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/fesm2022/compiler.mjs +10 -13
- package/fesm2022/compiler.mjs.map +1 -1
- package/package.json +1 -1
- package/types/compiler.d.ts +1 -4
package/fesm2022/compiler.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v21.1.
|
|
2
|
+
* @license Angular v21.1.2
|
|
3
3
|
* (c) 2010-2026 Google LLC. https://angular.dev/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -2268,9 +2268,6 @@ function isLongStringLiteral(expr) {
|
|
|
2268
2268
|
|
|
2269
2269
|
const CORE = '@angular/core';
|
|
2270
2270
|
class Identifiers {
|
|
2271
|
-
static NEW_METHOD = 'factory';
|
|
2272
|
-
static TRANSFORM_METHOD = 'transform';
|
|
2273
|
-
static PATCH_DEPS = 'patchedDeps';
|
|
2274
2271
|
static core = {
|
|
2275
2272
|
name: null,
|
|
2276
2273
|
moduleName: CORE
|
|
@@ -28205,7 +28202,7 @@ const MINIMUM_PARTIAL_LINKER_DEFER_SUPPORT_VERSION = '18.0.0';
|
|
|
28205
28202
|
function compileDeclareClassMetadata(metadata) {
|
|
28206
28203
|
const definitionMap = new DefinitionMap();
|
|
28207
28204
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$5));
|
|
28208
|
-
definitionMap.set('version', literal('21.1.
|
|
28205
|
+
definitionMap.set('version', literal('21.1.2'));
|
|
28209
28206
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
28210
28207
|
definitionMap.set('type', metadata.type);
|
|
28211
28208
|
definitionMap.set('decorators', metadata.decorators);
|
|
@@ -28223,7 +28220,7 @@ function compileComponentDeclareClassMetadata(metadata, dependencies) {
|
|
|
28223
28220
|
callbackReturnDefinitionMap.set('ctorParameters', metadata.ctorParameters ?? literal(null));
|
|
28224
28221
|
callbackReturnDefinitionMap.set('propDecorators', metadata.propDecorators ?? literal(null));
|
|
28225
28222
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_DEFER_SUPPORT_VERSION));
|
|
28226
|
-
definitionMap.set('version', literal('21.1.
|
|
28223
|
+
definitionMap.set('version', literal('21.1.2'));
|
|
28227
28224
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
28228
28225
|
definitionMap.set('type', metadata.type);
|
|
28229
28226
|
definitionMap.set('resolveDeferredDeps', compileComponentMetadataAsyncResolver(dependencies));
|
|
@@ -28296,7 +28293,7 @@ function createDirectiveDefinitionMap(meta) {
|
|
|
28296
28293
|
const definitionMap = new DefinitionMap();
|
|
28297
28294
|
const minVersion = getMinimumVersionForPartialOutput(meta);
|
|
28298
28295
|
definitionMap.set('minVersion', literal(minVersion));
|
|
28299
|
-
definitionMap.set('version', literal('21.1.
|
|
28296
|
+
definitionMap.set('version', literal('21.1.2'));
|
|
28300
28297
|
definitionMap.set('type', meta.type.value);
|
|
28301
28298
|
if (meta.isStandalone !== undefined) {
|
|
28302
28299
|
definitionMap.set('isStandalone', literal(meta.isStandalone));
|
|
@@ -28631,7 +28628,7 @@ const MINIMUM_PARTIAL_LINKER_VERSION$4 = '12.0.0';
|
|
|
28631
28628
|
function compileDeclareFactoryFunction(meta) {
|
|
28632
28629
|
const definitionMap = new DefinitionMap();
|
|
28633
28630
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$4));
|
|
28634
|
-
definitionMap.set('version', literal('21.1.
|
|
28631
|
+
definitionMap.set('version', literal('21.1.2'));
|
|
28635
28632
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
28636
28633
|
definitionMap.set('type', meta.type.value);
|
|
28637
28634
|
definitionMap.set('deps', compileDependencies(meta.deps));
|
|
@@ -28657,7 +28654,7 @@ function compileDeclareInjectableFromMetadata(meta) {
|
|
|
28657
28654
|
function createInjectableDefinitionMap(meta) {
|
|
28658
28655
|
const definitionMap = new DefinitionMap();
|
|
28659
28656
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$3));
|
|
28660
|
-
definitionMap.set('version', literal('21.1.
|
|
28657
|
+
definitionMap.set('version', literal('21.1.2'));
|
|
28661
28658
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
28662
28659
|
definitionMap.set('type', meta.type.value);
|
|
28663
28660
|
if (meta.providedIn !== undefined) {
|
|
@@ -28698,7 +28695,7 @@ function compileDeclareInjectorFromMetadata(meta) {
|
|
|
28698
28695
|
function createInjectorDefinitionMap(meta) {
|
|
28699
28696
|
const definitionMap = new DefinitionMap();
|
|
28700
28697
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$2));
|
|
28701
|
-
definitionMap.set('version', literal('21.1.
|
|
28698
|
+
definitionMap.set('version', literal('21.1.2'));
|
|
28702
28699
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
28703
28700
|
definitionMap.set('type', meta.type.value);
|
|
28704
28701
|
definitionMap.set('providers', meta.providers);
|
|
@@ -28725,7 +28722,7 @@ function createNgModuleDefinitionMap(meta) {
|
|
|
28725
28722
|
throw new Error('Invalid path! Local compilation mode should not get into the partial compilation path');
|
|
28726
28723
|
}
|
|
28727
28724
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$1));
|
|
28728
|
-
definitionMap.set('version', literal('21.1.
|
|
28725
|
+
definitionMap.set('version', literal('21.1.2'));
|
|
28729
28726
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
28730
28727
|
definitionMap.set('type', meta.type.value);
|
|
28731
28728
|
if (meta.bootstrap.length > 0) {
|
|
@@ -28763,7 +28760,7 @@ function compileDeclarePipeFromMetadata(meta) {
|
|
|
28763
28760
|
function createPipeDefinitionMap(meta) {
|
|
28764
28761
|
const definitionMap = new DefinitionMap();
|
|
28765
28762
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION));
|
|
28766
|
-
definitionMap.set('version', literal('21.1.
|
|
28763
|
+
definitionMap.set('version', literal('21.1.2'));
|
|
28767
28764
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
28768
28765
|
definitionMap.set('type', meta.type.value);
|
|
28769
28766
|
if (meta.isStandalone !== undefined) {
|
|
@@ -28837,7 +28834,7 @@ function compileHmrUpdateCallback(definitions, constantStatements, meta) {
|
|
|
28837
28834
|
return new DeclareFunctionStmt(`${meta.className}_UpdateMetadata`, params, body, null, StmtModifier.Final);
|
|
28838
28835
|
}
|
|
28839
28836
|
|
|
28840
|
-
const VERSION = new Version('21.1.
|
|
28837
|
+
const VERSION = new Version('21.1.2');
|
|
28841
28838
|
|
|
28842
28839
|
publishFacade(_global);
|
|
28843
28840
|
|