@angular/compiler 20.2.0-rc.0 → 20.2.0-rc.1
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 -14
- package/fesm2022/compiler.mjs.map +1 -1
- package/index.d.ts +3 -5
- package/package.json +1 -1
package/fesm2022/compiler.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v20.2.0-rc.
|
|
2
|
+
* @license Angular v20.2.0-rc.1
|
|
3
3
|
* (c) 2010-2025 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -421,7 +421,6 @@ var ViewEncapsulation$1;
|
|
|
421
421
|
// Historically the 1 value was for `Native` encapsulation which has been removed as of v11.
|
|
422
422
|
ViewEncapsulation[ViewEncapsulation["None"] = 2] = "None";
|
|
423
423
|
ViewEncapsulation[ViewEncapsulation["ShadowDom"] = 3] = "ShadowDom";
|
|
424
|
-
ViewEncapsulation[ViewEncapsulation["IsolatedShadowDom"] = 4] = "IsolatedShadowDom";
|
|
425
424
|
})(ViewEncapsulation$1 || (ViewEncapsulation$1 = {}));
|
|
426
425
|
var ChangeDetectionStrategy;
|
|
427
426
|
(function (ChangeDetectionStrategy) {
|
|
@@ -530,7 +529,6 @@ var ViewEncapsulation;
|
|
|
530
529
|
// Historically the 1 value was for `Native` encapsulation which has been removed as of v11.
|
|
531
530
|
ViewEncapsulation[ViewEncapsulation["None"] = 2] = "None";
|
|
532
531
|
ViewEncapsulation[ViewEncapsulation["ShadowDom"] = 3] = "ShadowDom";
|
|
533
|
-
ViewEncapsulation[ViewEncapsulation["IsolatedShadowDom"] = 4] = "IsolatedShadowDom";
|
|
534
532
|
})(ViewEncapsulation || (ViewEncapsulation = {}));
|
|
535
533
|
|
|
536
534
|
/**
|
|
@@ -29756,8 +29754,8 @@ class HtmlAstToIvyAst {
|
|
|
29756
29754
|
const value = attribute.value;
|
|
29757
29755
|
const srcSpan = attribute.sourceSpan;
|
|
29758
29756
|
const absoluteOffset = attribute.valueSpan
|
|
29759
|
-
? attribute.valueSpan.
|
|
29760
|
-
: srcSpan.
|
|
29757
|
+
? attribute.valueSpan.fullStart.offset
|
|
29758
|
+
: srcSpan.fullStart.offset;
|
|
29761
29759
|
function createKeySpan(srcSpan, prefix, identifier) {
|
|
29762
29760
|
// We need to adjust the start location for the keySpan to account for the removed 'data-'
|
|
29763
29761
|
// prefix from `normalizeAttributeName`.
|
|
@@ -34276,7 +34274,7 @@ const MINIMUM_PARTIAL_LINKER_DEFER_SUPPORT_VERSION = '18.0.0';
|
|
|
34276
34274
|
function compileDeclareClassMetadata(metadata) {
|
|
34277
34275
|
const definitionMap = new DefinitionMap();
|
|
34278
34276
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$5));
|
|
34279
|
-
definitionMap.set('version', literal('20.2.0-rc.
|
|
34277
|
+
definitionMap.set('version', literal('20.2.0-rc.1'));
|
|
34280
34278
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
34281
34279
|
definitionMap.set('type', metadata.type);
|
|
34282
34280
|
definitionMap.set('decorators', metadata.decorators);
|
|
@@ -34294,7 +34292,7 @@ function compileComponentDeclareClassMetadata(metadata, dependencies) {
|
|
|
34294
34292
|
callbackReturnDefinitionMap.set('ctorParameters', metadata.ctorParameters ?? literal(null));
|
|
34295
34293
|
callbackReturnDefinitionMap.set('propDecorators', metadata.propDecorators ?? literal(null));
|
|
34296
34294
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_DEFER_SUPPORT_VERSION));
|
|
34297
|
-
definitionMap.set('version', literal('20.2.0-rc.
|
|
34295
|
+
definitionMap.set('version', literal('20.2.0-rc.1'));
|
|
34298
34296
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
34299
34297
|
definitionMap.set('type', metadata.type);
|
|
34300
34298
|
definitionMap.set('resolveDeferredDeps', compileComponentMetadataAsyncResolver(dependencies));
|
|
@@ -34389,7 +34387,7 @@ function createDirectiveDefinitionMap(meta) {
|
|
|
34389
34387
|
const definitionMap = new DefinitionMap();
|
|
34390
34388
|
const minVersion = getMinimumVersionForPartialOutput(meta);
|
|
34391
34389
|
definitionMap.set('minVersion', literal(minVersion));
|
|
34392
|
-
definitionMap.set('version', literal('20.2.0-rc.
|
|
34390
|
+
definitionMap.set('version', literal('20.2.0-rc.1'));
|
|
34393
34391
|
// e.g. `type: MyDirective`
|
|
34394
34392
|
definitionMap.set('type', meta.type.value);
|
|
34395
34393
|
if (meta.isStandalone !== undefined) {
|
|
@@ -34805,7 +34803,7 @@ const MINIMUM_PARTIAL_LINKER_VERSION$4 = '12.0.0';
|
|
|
34805
34803
|
function compileDeclareFactoryFunction(meta) {
|
|
34806
34804
|
const definitionMap = new DefinitionMap();
|
|
34807
34805
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$4));
|
|
34808
|
-
definitionMap.set('version', literal('20.2.0-rc.
|
|
34806
|
+
definitionMap.set('version', literal('20.2.0-rc.1'));
|
|
34809
34807
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
34810
34808
|
definitionMap.set('type', meta.type.value);
|
|
34811
34809
|
definitionMap.set('deps', compileDependencies(meta.deps));
|
|
@@ -34840,7 +34838,7 @@ function compileDeclareInjectableFromMetadata(meta) {
|
|
|
34840
34838
|
function createInjectableDefinitionMap(meta) {
|
|
34841
34839
|
const definitionMap = new DefinitionMap();
|
|
34842
34840
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$3));
|
|
34843
|
-
definitionMap.set('version', literal('20.2.0-rc.
|
|
34841
|
+
definitionMap.set('version', literal('20.2.0-rc.1'));
|
|
34844
34842
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
34845
34843
|
definitionMap.set('type', meta.type.value);
|
|
34846
34844
|
// Only generate providedIn property if it has a non-null value
|
|
@@ -34891,7 +34889,7 @@ function compileDeclareInjectorFromMetadata(meta) {
|
|
|
34891
34889
|
function createInjectorDefinitionMap(meta) {
|
|
34892
34890
|
const definitionMap = new DefinitionMap();
|
|
34893
34891
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$2));
|
|
34894
|
-
definitionMap.set('version', literal('20.2.0-rc.
|
|
34892
|
+
definitionMap.set('version', literal('20.2.0-rc.1'));
|
|
34895
34893
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
34896
34894
|
definitionMap.set('type', meta.type.value);
|
|
34897
34895
|
definitionMap.set('providers', meta.providers);
|
|
@@ -34924,7 +34922,7 @@ function createNgModuleDefinitionMap(meta) {
|
|
|
34924
34922
|
throw new Error('Invalid path! Local compilation mode should not get into the partial compilation path');
|
|
34925
34923
|
}
|
|
34926
34924
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$1));
|
|
34927
|
-
definitionMap.set('version', literal('20.2.0-rc.
|
|
34925
|
+
definitionMap.set('version', literal('20.2.0-rc.1'));
|
|
34928
34926
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
34929
34927
|
definitionMap.set('type', meta.type.value);
|
|
34930
34928
|
// We only generate the keys in the metadata if the arrays contain values.
|
|
@@ -34975,7 +34973,7 @@ function compileDeclarePipeFromMetadata(meta) {
|
|
|
34975
34973
|
function createPipeDefinitionMap(meta) {
|
|
34976
34974
|
const definitionMap = new DefinitionMap();
|
|
34977
34975
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION));
|
|
34978
|
-
definitionMap.set('version', literal('20.2.0-rc.
|
|
34976
|
+
definitionMap.set('version', literal('20.2.0-rc.1'));
|
|
34979
34977
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
34980
34978
|
// e.g. `type: MyPipe`
|
|
34981
34979
|
definitionMap.set('type', meta.type.value);
|
|
@@ -35131,7 +35129,7 @@ function compileHmrUpdateCallback(definitions, constantStatements, meta) {
|
|
|
35131
35129
|
* @description
|
|
35132
35130
|
* Entry point for all public APIs of the compiler package.
|
|
35133
35131
|
*/
|
|
35134
|
-
const VERSION = new Version('20.2.0-rc.
|
|
35132
|
+
const VERSION = new Version('20.2.0-rc.1');
|
|
35135
35133
|
|
|
35136
35134
|
//////////////////////////////////////
|
|
35137
35135
|
// THIS FILE HAS GLOBAL SIDE EFFECT //
|