@angular/compiler 21.0.0-next.1 → 21.0.0-next.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 +12 -12
- package/fesm2022/compiler.mjs.map +1 -1
- package/index.d.ts +1 -1
- package/package.json +1 -1
package/fesm2022/compiler.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v21.0.0-next.
|
|
2
|
+
* @license Angular v21.0.0-next.2
|
|
3
3
|
* (c) 2010-2025 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -28092,7 +28092,7 @@ class BindingParser {
|
|
|
28092
28092
|
if (isLegacyAnimationProp) {
|
|
28093
28093
|
this._parseLegacyAnimation(name, expression, sourceSpan, absoluteOffset, keySpan, valueSpan, targetMatchableAttrs, targetProps);
|
|
28094
28094
|
}
|
|
28095
|
-
else if (name.startsWith(ANIMATE_PREFIX)) {
|
|
28095
|
+
else if (name.startsWith(`${ANIMATE_PREFIX}${PROPERTY_PARTS_SEPARATOR}`)) {
|
|
28096
28096
|
this._parseAnimation(name, this.parseBinding(expression, isHost, valueSpan || sourceSpan, absoluteOffset), sourceSpan, keySpan, valueSpan, targetMatchableAttrs, targetProps);
|
|
28097
28097
|
}
|
|
28098
28098
|
else {
|
|
@@ -28255,7 +28255,7 @@ class BindingParser {
|
|
|
28255
28255
|
if (isAssignmentEvent) {
|
|
28256
28256
|
eventType = ParsedEventType.TwoWay;
|
|
28257
28257
|
}
|
|
28258
|
-
if (name.startsWith(ANIMATE_PREFIX)) {
|
|
28258
|
+
if (name.startsWith(`${ANIMATE_PREFIX}${PROPERTY_PARTS_SEPARATOR}`)) {
|
|
28259
28259
|
eventType = ParsedEventType.Animation;
|
|
28260
28260
|
}
|
|
28261
28261
|
targetEvents.push(new ParsedEvent(eventName, target, eventType, ast, sourceSpan, handlerSpan, keySpan));
|
|
@@ -34325,7 +34325,7 @@ const MINIMUM_PARTIAL_LINKER_DEFER_SUPPORT_VERSION = '18.0.0';
|
|
|
34325
34325
|
function compileDeclareClassMetadata(metadata) {
|
|
34326
34326
|
const definitionMap = new DefinitionMap();
|
|
34327
34327
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$5));
|
|
34328
|
-
definitionMap.set('version', literal('21.0.0-next.
|
|
34328
|
+
definitionMap.set('version', literal('21.0.0-next.2'));
|
|
34329
34329
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
34330
34330
|
definitionMap.set('type', metadata.type);
|
|
34331
34331
|
definitionMap.set('decorators', metadata.decorators);
|
|
@@ -34343,7 +34343,7 @@ function compileComponentDeclareClassMetadata(metadata, dependencies) {
|
|
|
34343
34343
|
callbackReturnDefinitionMap.set('ctorParameters', metadata.ctorParameters ?? literal(null));
|
|
34344
34344
|
callbackReturnDefinitionMap.set('propDecorators', metadata.propDecorators ?? literal(null));
|
|
34345
34345
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_DEFER_SUPPORT_VERSION));
|
|
34346
|
-
definitionMap.set('version', literal('21.0.0-next.
|
|
34346
|
+
definitionMap.set('version', literal('21.0.0-next.2'));
|
|
34347
34347
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
34348
34348
|
definitionMap.set('type', metadata.type);
|
|
34349
34349
|
definitionMap.set('resolveDeferredDeps', compileComponentMetadataAsyncResolver(dependencies));
|
|
@@ -34438,7 +34438,7 @@ function createDirectiveDefinitionMap(meta) {
|
|
|
34438
34438
|
const definitionMap = new DefinitionMap();
|
|
34439
34439
|
const minVersion = getMinimumVersionForPartialOutput(meta);
|
|
34440
34440
|
definitionMap.set('minVersion', literal(minVersion));
|
|
34441
|
-
definitionMap.set('version', literal('21.0.0-next.
|
|
34441
|
+
definitionMap.set('version', literal('21.0.0-next.2'));
|
|
34442
34442
|
// e.g. `type: MyDirective`
|
|
34443
34443
|
definitionMap.set('type', meta.type.value);
|
|
34444
34444
|
if (meta.isStandalone !== undefined) {
|
|
@@ -34854,7 +34854,7 @@ const MINIMUM_PARTIAL_LINKER_VERSION$4 = '12.0.0';
|
|
|
34854
34854
|
function compileDeclareFactoryFunction(meta) {
|
|
34855
34855
|
const definitionMap = new DefinitionMap();
|
|
34856
34856
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$4));
|
|
34857
|
-
definitionMap.set('version', literal('21.0.0-next.
|
|
34857
|
+
definitionMap.set('version', literal('21.0.0-next.2'));
|
|
34858
34858
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
34859
34859
|
definitionMap.set('type', meta.type.value);
|
|
34860
34860
|
definitionMap.set('deps', compileDependencies(meta.deps));
|
|
@@ -34889,7 +34889,7 @@ function compileDeclareInjectableFromMetadata(meta) {
|
|
|
34889
34889
|
function createInjectableDefinitionMap(meta) {
|
|
34890
34890
|
const definitionMap = new DefinitionMap();
|
|
34891
34891
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$3));
|
|
34892
|
-
definitionMap.set('version', literal('21.0.0-next.
|
|
34892
|
+
definitionMap.set('version', literal('21.0.0-next.2'));
|
|
34893
34893
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
34894
34894
|
definitionMap.set('type', meta.type.value);
|
|
34895
34895
|
// Only generate providedIn property if it has a non-null value
|
|
@@ -34940,7 +34940,7 @@ function compileDeclareInjectorFromMetadata(meta) {
|
|
|
34940
34940
|
function createInjectorDefinitionMap(meta) {
|
|
34941
34941
|
const definitionMap = new DefinitionMap();
|
|
34942
34942
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$2));
|
|
34943
|
-
definitionMap.set('version', literal('21.0.0-next.
|
|
34943
|
+
definitionMap.set('version', literal('21.0.0-next.2'));
|
|
34944
34944
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
34945
34945
|
definitionMap.set('type', meta.type.value);
|
|
34946
34946
|
definitionMap.set('providers', meta.providers);
|
|
@@ -34973,7 +34973,7 @@ function createNgModuleDefinitionMap(meta) {
|
|
|
34973
34973
|
throw new Error('Invalid path! Local compilation mode should not get into the partial compilation path');
|
|
34974
34974
|
}
|
|
34975
34975
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$1));
|
|
34976
|
-
definitionMap.set('version', literal('21.0.0-next.
|
|
34976
|
+
definitionMap.set('version', literal('21.0.0-next.2'));
|
|
34977
34977
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
34978
34978
|
definitionMap.set('type', meta.type.value);
|
|
34979
34979
|
// We only generate the keys in the metadata if the arrays contain values.
|
|
@@ -35024,7 +35024,7 @@ function compileDeclarePipeFromMetadata(meta) {
|
|
|
35024
35024
|
function createPipeDefinitionMap(meta) {
|
|
35025
35025
|
const definitionMap = new DefinitionMap();
|
|
35026
35026
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION));
|
|
35027
|
-
definitionMap.set('version', literal('21.0.0-next.
|
|
35027
|
+
definitionMap.set('version', literal('21.0.0-next.2'));
|
|
35028
35028
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
35029
35029
|
// e.g. `type: MyPipe`
|
|
35030
35030
|
definitionMap.set('type', meta.type.value);
|
|
@@ -35180,7 +35180,7 @@ function compileHmrUpdateCallback(definitions, constantStatements, meta) {
|
|
|
35180
35180
|
* @description
|
|
35181
35181
|
* Entry point for all public APIs of the compiler package.
|
|
35182
35182
|
*/
|
|
35183
|
-
const VERSION = new Version('21.0.0-next.
|
|
35183
|
+
const VERSION = new Version('21.0.0-next.2');
|
|
35184
35184
|
|
|
35185
35185
|
//////////////////////////////////////
|
|
35186
35186
|
// THIS FILE HAS GLOBAL SIDE EFFECT //
|