@angular/compiler 21.0.0-rc.2 → 21.0.0-rc.3
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 +15 -19
- package/fesm2022/compiler.mjs.map +1 -1
- package/package.json +1 -1
- package/types/compiler.d.ts +1 -5
package/fesm2022/compiler.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v21.0.0-rc.
|
|
2
|
+
* @license Angular v21.0.0-rc.3
|
|
3
3
|
* (c) 2010-2025 Google LLC. https://angular.dev/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -3079,10 +3079,6 @@ class Identifiers {
|
|
|
3079
3079
|
name: 'ɵUnwrapDirectiveSignalInputs',
|
|
3080
3080
|
moduleName: CORE
|
|
3081
3081
|
};
|
|
3082
|
-
static ExtractFormControlValue = {
|
|
3083
|
-
name: 'ɵExtractFormControlValue',
|
|
3084
|
-
moduleName: CORE
|
|
3085
|
-
};
|
|
3086
3082
|
static unwrapWritableSignal = {
|
|
3087
3083
|
name: 'ɵunwrapWritableSignal',
|
|
3088
3084
|
moduleName: CORE
|
|
@@ -6855,7 +6851,7 @@ class ShadowCss {
|
|
|
6855
6851
|
return cssText.replace(_cssColonHostRe, (_, hostSelectors, otherSelectors) => {
|
|
6856
6852
|
if (hostSelectors) {
|
|
6857
6853
|
const convertedSelectors = [];
|
|
6858
|
-
for (const hostSelector of this._splitOnTopLevelCommas(hostSelectors)) {
|
|
6854
|
+
for (const hostSelector of this._splitOnTopLevelCommas(hostSelectors, true)) {
|
|
6859
6855
|
const trimmedHostSelector = hostSelector.trim();
|
|
6860
6856
|
if (!trimmedHostSelector) break;
|
|
6861
6857
|
const convertedSelector = _polyfillHostNoCombinator + trimmedHostSelector.replace(_polyfillHost, '') + otherSelectors;
|
|
@@ -6867,7 +6863,7 @@ class ShadowCss {
|
|
|
6867
6863
|
}
|
|
6868
6864
|
});
|
|
6869
6865
|
}
|
|
6870
|
-
*_splitOnTopLevelCommas(text) {
|
|
6866
|
+
*_splitOnTopLevelCommas(text, returnOnClosingParen) {
|
|
6871
6867
|
const length = text.length;
|
|
6872
6868
|
let parens = 0;
|
|
6873
6869
|
let prev = 0;
|
|
@@ -6877,7 +6873,7 @@ class ShadowCss {
|
|
|
6877
6873
|
parens++;
|
|
6878
6874
|
} else if (charCode === $RPAREN) {
|
|
6879
6875
|
parens--;
|
|
6880
|
-
if (parens < 0) {
|
|
6876
|
+
if (parens < 0 && returnOnClosingParen) {
|
|
6881
6877
|
yield text.slice(prev, i);
|
|
6882
6878
|
return;
|
|
6883
6879
|
}
|
|
@@ -6890,7 +6886,7 @@ class ShadowCss {
|
|
|
6890
6886
|
}
|
|
6891
6887
|
_convertColonHostContext(cssText) {
|
|
6892
6888
|
const results = [];
|
|
6893
|
-
for (const part of this._splitOnTopLevelCommas(cssText)) {
|
|
6889
|
+
for (const part of this._splitOnTopLevelCommas(cssText, false)) {
|
|
6894
6890
|
results.push(this._convertColonHostContextInSelectorPart(part));
|
|
6895
6891
|
}
|
|
6896
6892
|
return results.join(',');
|
|
@@ -6908,7 +6904,7 @@ class ShadowCss {
|
|
|
6908
6904
|
}
|
|
6909
6905
|
const newContextSelectors = [];
|
|
6910
6906
|
let endIndex = 0;
|
|
6911
|
-
for (const selector of this._splitOnTopLevelCommas(afterPrefix.substring(1))) {
|
|
6907
|
+
for (const selector of this._splitOnTopLevelCommas(afterPrefix.substring(1), true)) {
|
|
6912
6908
|
endIndex = endIndex + selector.length + 1;
|
|
6913
6909
|
const trimmed = selector.trim();
|
|
6914
6910
|
if (trimmed) {
|
|
@@ -28085,7 +28081,7 @@ const MINIMUM_PARTIAL_LINKER_DEFER_SUPPORT_VERSION = '18.0.0';
|
|
|
28085
28081
|
function compileDeclareClassMetadata(metadata) {
|
|
28086
28082
|
const definitionMap = new DefinitionMap();
|
|
28087
28083
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$5));
|
|
28088
|
-
definitionMap.set('version', literal('21.0.0-rc.
|
|
28084
|
+
definitionMap.set('version', literal('21.0.0-rc.3'));
|
|
28089
28085
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
28090
28086
|
definitionMap.set('type', metadata.type);
|
|
28091
28087
|
definitionMap.set('decorators', metadata.decorators);
|
|
@@ -28103,7 +28099,7 @@ function compileComponentDeclareClassMetadata(metadata, dependencies) {
|
|
|
28103
28099
|
callbackReturnDefinitionMap.set('ctorParameters', metadata.ctorParameters ?? literal(null));
|
|
28104
28100
|
callbackReturnDefinitionMap.set('propDecorators', metadata.propDecorators ?? literal(null));
|
|
28105
28101
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_DEFER_SUPPORT_VERSION));
|
|
28106
|
-
definitionMap.set('version', literal('21.0.0-rc.
|
|
28102
|
+
definitionMap.set('version', literal('21.0.0-rc.3'));
|
|
28107
28103
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
28108
28104
|
definitionMap.set('type', metadata.type);
|
|
28109
28105
|
definitionMap.set('resolveDeferredDeps', compileComponentMetadataAsyncResolver(dependencies));
|
|
@@ -28176,7 +28172,7 @@ function createDirectiveDefinitionMap(meta) {
|
|
|
28176
28172
|
const definitionMap = new DefinitionMap();
|
|
28177
28173
|
const minVersion = getMinimumVersionForPartialOutput(meta);
|
|
28178
28174
|
definitionMap.set('minVersion', literal(minVersion));
|
|
28179
|
-
definitionMap.set('version', literal('21.0.0-rc.
|
|
28175
|
+
definitionMap.set('version', literal('21.0.0-rc.3'));
|
|
28180
28176
|
definitionMap.set('type', meta.type.value);
|
|
28181
28177
|
if (meta.isStandalone !== undefined) {
|
|
28182
28178
|
definitionMap.set('isStandalone', literal(meta.isStandalone));
|
|
@@ -28508,7 +28504,7 @@ const MINIMUM_PARTIAL_LINKER_VERSION$4 = '12.0.0';
|
|
|
28508
28504
|
function compileDeclareFactoryFunction(meta) {
|
|
28509
28505
|
const definitionMap = new DefinitionMap();
|
|
28510
28506
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$4));
|
|
28511
|
-
definitionMap.set('version', literal('21.0.0-rc.
|
|
28507
|
+
definitionMap.set('version', literal('21.0.0-rc.3'));
|
|
28512
28508
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
28513
28509
|
definitionMap.set('type', meta.type.value);
|
|
28514
28510
|
definitionMap.set('deps', compileDependencies(meta.deps));
|
|
@@ -28534,7 +28530,7 @@ function compileDeclareInjectableFromMetadata(meta) {
|
|
|
28534
28530
|
function createInjectableDefinitionMap(meta) {
|
|
28535
28531
|
const definitionMap = new DefinitionMap();
|
|
28536
28532
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$3));
|
|
28537
|
-
definitionMap.set('version', literal('21.0.0-rc.
|
|
28533
|
+
definitionMap.set('version', literal('21.0.0-rc.3'));
|
|
28538
28534
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
28539
28535
|
definitionMap.set('type', meta.type.value);
|
|
28540
28536
|
if (meta.providedIn !== undefined) {
|
|
@@ -28575,7 +28571,7 @@ function compileDeclareInjectorFromMetadata(meta) {
|
|
|
28575
28571
|
function createInjectorDefinitionMap(meta) {
|
|
28576
28572
|
const definitionMap = new DefinitionMap();
|
|
28577
28573
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$2));
|
|
28578
|
-
definitionMap.set('version', literal('21.0.0-rc.
|
|
28574
|
+
definitionMap.set('version', literal('21.0.0-rc.3'));
|
|
28579
28575
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
28580
28576
|
definitionMap.set('type', meta.type.value);
|
|
28581
28577
|
definitionMap.set('providers', meta.providers);
|
|
@@ -28602,7 +28598,7 @@ function createNgModuleDefinitionMap(meta) {
|
|
|
28602
28598
|
throw new Error('Invalid path! Local compilation mode should not get into the partial compilation path');
|
|
28603
28599
|
}
|
|
28604
28600
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$1));
|
|
28605
|
-
definitionMap.set('version', literal('21.0.0-rc.
|
|
28601
|
+
definitionMap.set('version', literal('21.0.0-rc.3'));
|
|
28606
28602
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
28607
28603
|
definitionMap.set('type', meta.type.value);
|
|
28608
28604
|
if (meta.bootstrap.length > 0) {
|
|
@@ -28640,7 +28636,7 @@ function compileDeclarePipeFromMetadata(meta) {
|
|
|
28640
28636
|
function createPipeDefinitionMap(meta) {
|
|
28641
28637
|
const definitionMap = new DefinitionMap();
|
|
28642
28638
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION));
|
|
28643
|
-
definitionMap.set('version', literal('21.0.0-rc.
|
|
28639
|
+
definitionMap.set('version', literal('21.0.0-rc.3'));
|
|
28644
28640
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
28645
28641
|
definitionMap.set('type', meta.type.value);
|
|
28646
28642
|
if (meta.isStandalone !== undefined) {
|
|
@@ -28714,7 +28710,7 @@ function compileHmrUpdateCallback(definitions, constantStatements, meta) {
|
|
|
28714
28710
|
return new DeclareFunctionStmt(`${meta.className}_UpdateMetadata`, params, body, null, StmtModifier.Final);
|
|
28715
28711
|
}
|
|
28716
28712
|
|
|
28717
|
-
const VERSION = new Version('21.0.0-rc.
|
|
28713
|
+
const VERSION = new Version('21.0.0-rc.3');
|
|
28718
28714
|
|
|
28719
28715
|
publishFacade(_global);
|
|
28720
28716
|
|