@angular/compiler 19.1.0-next.4 → 19.1.0-rc.0
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/LICENSE +1 -1
- package/fesm2022/compiler.mjs +20 -12
- package/fesm2022/compiler.mjs.map +1 -1
- package/index.d.ts +1 -1
- package/package.json +2 -2
package/LICENSE
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
The MIT License
|
|
2
2
|
|
|
3
|
-
Copyright (c) 2010-
|
|
3
|
+
Copyright (c) 2010-2025 Google LLC. https://angular.dev/license
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
package/fesm2022/compiler.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v19.1.0-
|
|
2
|
+
* @license Angular v19.1.0-rc.0
|
|
3
3
|
* (c) 2010-2024 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -27120,6 +27120,14 @@ class BindingParser {
|
|
|
27120
27120
|
if (ast instanceof NonNullAssert) {
|
|
27121
27121
|
return this._isAllowedAssignmentEvent(ast.expression);
|
|
27122
27122
|
}
|
|
27123
|
+
if (ast instanceof Call &&
|
|
27124
|
+
ast.args.length === 1 &&
|
|
27125
|
+
ast.receiver instanceof PropertyRead &&
|
|
27126
|
+
ast.receiver.name === '$any' &&
|
|
27127
|
+
ast.receiver.receiver instanceof ImplicitReceiver &&
|
|
27128
|
+
!(ast.receiver.receiver instanceof ThisReceiver)) {
|
|
27129
|
+
return this._isAllowedAssignmentEvent(ast.args[0]);
|
|
27130
|
+
}
|
|
27123
27131
|
if (ast instanceof PropertyRead || ast instanceof KeyedRead) {
|
|
27124
27132
|
return true;
|
|
27125
27133
|
}
|
|
@@ -27455,7 +27463,7 @@ function parseForLoopParameters(block, errors, bindingParser) {
|
|
|
27455
27463
|
}
|
|
27456
27464
|
continue;
|
|
27457
27465
|
}
|
|
27458
|
-
errors.push(new ParseError(param.sourceSpan, `Unrecognized @for loop
|
|
27466
|
+
errors.push(new ParseError(param.sourceSpan, `Unrecognized @for loop parameter "${param.expression}"`));
|
|
27459
27467
|
}
|
|
27460
27468
|
return result;
|
|
27461
27469
|
}
|
|
@@ -27602,7 +27610,7 @@ function parseConditionalBlockParameters(block, errors, bindingParser) {
|
|
|
27602
27610
|
// For now conditionals can only have an `as` parameter.
|
|
27603
27611
|
// We may want to rework this later if we add more.
|
|
27604
27612
|
if (aliasMatch === null) {
|
|
27605
|
-
errors.push(new ParseError(param.sourceSpan, `Unrecognized conditional
|
|
27613
|
+
errors.push(new ParseError(param.sourceSpan, `Unrecognized conditional parameter "${param.expression}"`));
|
|
27606
27614
|
}
|
|
27607
27615
|
else if (block.name !== 'if') {
|
|
27608
27616
|
errors.push(new ParseError(param.sourceSpan, '"as" expression is only allowed on the primary @if block'));
|
|
@@ -30978,7 +30986,7 @@ function publishFacade(global) {
|
|
|
30978
30986
|
* @description
|
|
30979
30987
|
* Entry point for all public APIs of the compiler package.
|
|
30980
30988
|
*/
|
|
30981
|
-
const VERSION = new Version('19.1.0-
|
|
30989
|
+
const VERSION = new Version('19.1.0-rc.0');
|
|
30982
30990
|
|
|
30983
30991
|
class CompilerConfig {
|
|
30984
30992
|
defaultEncapsulation;
|
|
@@ -32830,7 +32838,7 @@ const MINIMUM_PARTIAL_LINKER_DEFER_SUPPORT_VERSION = '18.0.0';
|
|
|
32830
32838
|
function compileDeclareClassMetadata(metadata) {
|
|
32831
32839
|
const definitionMap = new DefinitionMap();
|
|
32832
32840
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$5));
|
|
32833
|
-
definitionMap.set('version', literal('19.1.0-
|
|
32841
|
+
definitionMap.set('version', literal('19.1.0-rc.0'));
|
|
32834
32842
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
32835
32843
|
definitionMap.set('type', metadata.type);
|
|
32836
32844
|
definitionMap.set('decorators', metadata.decorators);
|
|
@@ -32848,7 +32856,7 @@ function compileComponentDeclareClassMetadata(metadata, dependencies) {
|
|
|
32848
32856
|
callbackReturnDefinitionMap.set('ctorParameters', metadata.ctorParameters ?? literal(null));
|
|
32849
32857
|
callbackReturnDefinitionMap.set('propDecorators', metadata.propDecorators ?? literal(null));
|
|
32850
32858
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_DEFER_SUPPORT_VERSION));
|
|
32851
|
-
definitionMap.set('version', literal('19.1.0-
|
|
32859
|
+
definitionMap.set('version', literal('19.1.0-rc.0'));
|
|
32852
32860
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
32853
32861
|
definitionMap.set('type', metadata.type);
|
|
32854
32862
|
definitionMap.set('resolveDeferredDeps', compileComponentMetadataAsyncResolver(dependencies));
|
|
@@ -32943,7 +32951,7 @@ function createDirectiveDefinitionMap(meta) {
|
|
|
32943
32951
|
const definitionMap = new DefinitionMap();
|
|
32944
32952
|
const minVersion = getMinimumVersionForPartialOutput(meta);
|
|
32945
32953
|
definitionMap.set('minVersion', literal(minVersion));
|
|
32946
|
-
definitionMap.set('version', literal('19.1.0-
|
|
32954
|
+
definitionMap.set('version', literal('19.1.0-rc.0'));
|
|
32947
32955
|
// e.g. `type: MyDirective`
|
|
32948
32956
|
definitionMap.set('type', meta.type.value);
|
|
32949
32957
|
if (meta.isStandalone !== undefined) {
|
|
@@ -33362,7 +33370,7 @@ const MINIMUM_PARTIAL_LINKER_VERSION$4 = '12.0.0';
|
|
|
33362
33370
|
function compileDeclareFactoryFunction(meta) {
|
|
33363
33371
|
const definitionMap = new DefinitionMap();
|
|
33364
33372
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$4));
|
|
33365
|
-
definitionMap.set('version', literal('19.1.0-
|
|
33373
|
+
definitionMap.set('version', literal('19.1.0-rc.0'));
|
|
33366
33374
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
33367
33375
|
definitionMap.set('type', meta.type.value);
|
|
33368
33376
|
definitionMap.set('deps', compileDependencies(meta.deps));
|
|
@@ -33397,7 +33405,7 @@ function compileDeclareInjectableFromMetadata(meta) {
|
|
|
33397
33405
|
function createInjectableDefinitionMap(meta) {
|
|
33398
33406
|
const definitionMap = new DefinitionMap();
|
|
33399
33407
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$3));
|
|
33400
|
-
definitionMap.set('version', literal('19.1.0-
|
|
33408
|
+
definitionMap.set('version', literal('19.1.0-rc.0'));
|
|
33401
33409
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
33402
33410
|
definitionMap.set('type', meta.type.value);
|
|
33403
33411
|
// Only generate providedIn property if it has a non-null value
|
|
@@ -33448,7 +33456,7 @@ function compileDeclareInjectorFromMetadata(meta) {
|
|
|
33448
33456
|
function createInjectorDefinitionMap(meta) {
|
|
33449
33457
|
const definitionMap = new DefinitionMap();
|
|
33450
33458
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$2));
|
|
33451
|
-
definitionMap.set('version', literal('19.1.0-
|
|
33459
|
+
definitionMap.set('version', literal('19.1.0-rc.0'));
|
|
33452
33460
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
33453
33461
|
definitionMap.set('type', meta.type.value);
|
|
33454
33462
|
definitionMap.set('providers', meta.providers);
|
|
@@ -33481,7 +33489,7 @@ function createNgModuleDefinitionMap(meta) {
|
|
|
33481
33489
|
throw new Error('Invalid path! Local compilation mode should not get into the partial compilation path');
|
|
33482
33490
|
}
|
|
33483
33491
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$1));
|
|
33484
|
-
definitionMap.set('version', literal('19.1.0-
|
|
33492
|
+
definitionMap.set('version', literal('19.1.0-rc.0'));
|
|
33485
33493
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
33486
33494
|
definitionMap.set('type', meta.type.value);
|
|
33487
33495
|
// We only generate the keys in the metadata if the arrays contain values.
|
|
@@ -33532,7 +33540,7 @@ function compileDeclarePipeFromMetadata(meta) {
|
|
|
33532
33540
|
function createPipeDefinitionMap(meta) {
|
|
33533
33541
|
const definitionMap = new DefinitionMap();
|
|
33534
33542
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION));
|
|
33535
|
-
definitionMap.set('version', literal('19.1.0-
|
|
33543
|
+
definitionMap.set('version', literal('19.1.0-rc.0'));
|
|
33536
33544
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
33537
33545
|
// e.g. `type: MyPipe`
|
|
33538
33546
|
definitionMap.set('type', meta.type.value);
|