@angular/compiler 18.2.0-rc.0 → 18.2.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/README.md +1 -1
- package/esm2022/src/render3/partial/class_metadata.mjs +2 -2
- package/esm2022/src/render3/partial/directive.mjs +1 -1
- package/esm2022/src/render3/partial/factory.mjs +1 -1
- package/esm2022/src/render3/partial/injectable.mjs +1 -1
- package/esm2022/src/render3/partial/injector.mjs +1 -1
- package/esm2022/src/render3/partial/ng_module.mjs +1 -1
- package/esm2022/src/render3/partial/pipe.mjs +1 -1
- package/esm2022/src/version.mjs +1 -1
- package/fesm2022/compiler.mjs +10 -10
- package/fesm2022/compiler.mjs.map +1 -1
- package/index.d.ts +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -3,6 +3,6 @@ Angular
|
|
|
3
3
|
|
|
4
4
|
The sources for this package are in the main [Angular](https://github.com/angular/angular) repo. Please file issues and pull requests against that repo.
|
|
5
5
|
|
|
6
|
-
Usage information and reference details can be found in [Angular documentation](https://angular.
|
|
6
|
+
Usage information and reference details can be found in [Angular documentation](https://angular.dev/overview).
|
|
7
7
|
|
|
8
8
|
License: MIT
|
|
@@ -24,7 +24,7 @@ const MINIMUM_PARTIAL_LINKER_DEFER_SUPPORT_VERSION = '18.0.0';
|
|
|
24
24
|
export function compileDeclareClassMetadata(metadata) {
|
|
25
25
|
const definitionMap = new DefinitionMap();
|
|
26
26
|
definitionMap.set('minVersion', o.literal(MINIMUM_PARTIAL_LINKER_VERSION));
|
|
27
|
-
definitionMap.set('version', o.literal('18.2.
|
|
27
|
+
definitionMap.set('version', o.literal('18.2.1'));
|
|
28
28
|
definitionMap.set('ngImport', o.importExpr(R3.core));
|
|
29
29
|
definitionMap.set('type', metadata.type);
|
|
30
30
|
definitionMap.set('decorators', metadata.decorators);
|
|
@@ -42,7 +42,7 @@ export function compileComponentDeclareClassMetadata(metadata, dependencies) {
|
|
|
42
42
|
callbackReturnDefinitionMap.set('ctorParameters', metadata.ctorParameters ?? o.literal(null));
|
|
43
43
|
callbackReturnDefinitionMap.set('propDecorators', metadata.propDecorators ?? o.literal(null));
|
|
44
44
|
definitionMap.set('minVersion', o.literal(MINIMUM_PARTIAL_LINKER_DEFER_SUPPORT_VERSION));
|
|
45
|
-
definitionMap.set('version', o.literal('18.2.
|
|
45
|
+
definitionMap.set('version', o.literal('18.2.1'));
|
|
46
46
|
definitionMap.set('ngImport', o.importExpr(R3.core));
|
|
47
47
|
definitionMap.set('type', metadata.type);
|
|
48
48
|
definitionMap.set('resolveDeferredDeps', compileComponentMetadataAsyncResolver(dependencies));
|
|
@@ -28,7 +28,7 @@ export function createDirectiveDefinitionMap(meta) {
|
|
|
28
28
|
const definitionMap = new DefinitionMap();
|
|
29
29
|
const minVersion = getMinimumVersionForPartialOutput(meta);
|
|
30
30
|
definitionMap.set('minVersion', o.literal(minVersion));
|
|
31
|
-
definitionMap.set('version', o.literal('18.2.
|
|
31
|
+
definitionMap.set('version', o.literal('18.2.1'));
|
|
32
32
|
// e.g. `type: MyDirective`
|
|
33
33
|
definitionMap.set('type', meta.type.value);
|
|
34
34
|
if (meta.isStandalone) {
|
|
@@ -21,7 +21,7 @@ const MINIMUM_PARTIAL_LINKER_VERSION = '12.0.0';
|
|
|
21
21
|
export function compileDeclareFactoryFunction(meta) {
|
|
22
22
|
const definitionMap = new DefinitionMap();
|
|
23
23
|
definitionMap.set('minVersion', o.literal(MINIMUM_PARTIAL_LINKER_VERSION));
|
|
24
|
-
definitionMap.set('version', o.literal('18.2.
|
|
24
|
+
definitionMap.set('version', o.literal('18.2.1'));
|
|
25
25
|
definitionMap.set('ngImport', o.importExpr(R3.core));
|
|
26
26
|
definitionMap.set('type', meta.type.value);
|
|
27
27
|
definitionMap.set('deps', compileDependencies(meta.deps));
|
|
@@ -34,7 +34,7 @@ export function compileDeclareInjectableFromMetadata(meta) {
|
|
|
34
34
|
export function createInjectableDefinitionMap(meta) {
|
|
35
35
|
const definitionMap = new DefinitionMap();
|
|
36
36
|
definitionMap.set('minVersion', o.literal(MINIMUM_PARTIAL_LINKER_VERSION));
|
|
37
|
-
definitionMap.set('version', o.literal('18.2.
|
|
37
|
+
definitionMap.set('version', o.literal('18.2.1'));
|
|
38
38
|
definitionMap.set('ngImport', o.importExpr(R3.core));
|
|
39
39
|
definitionMap.set('type', meta.type.value);
|
|
40
40
|
// Only generate providedIn property if it has a non-null value
|
|
@@ -29,7 +29,7 @@ export function compileDeclareInjectorFromMetadata(meta) {
|
|
|
29
29
|
function createInjectorDefinitionMap(meta) {
|
|
30
30
|
const definitionMap = new DefinitionMap();
|
|
31
31
|
definitionMap.set('minVersion', o.literal(MINIMUM_PARTIAL_LINKER_VERSION));
|
|
32
|
-
definitionMap.set('version', o.literal('18.2.
|
|
32
|
+
definitionMap.set('version', o.literal('18.2.1'));
|
|
33
33
|
definitionMap.set('ngImport', o.importExpr(R3.core));
|
|
34
34
|
definitionMap.set('type', meta.type.value);
|
|
35
35
|
definitionMap.set('providers', meta.providers);
|
|
@@ -33,7 +33,7 @@ function createNgModuleDefinitionMap(meta) {
|
|
|
33
33
|
throw new Error('Invalid path! Local compilation mode should not get into the partial compilation path');
|
|
34
34
|
}
|
|
35
35
|
definitionMap.set('minVersion', o.literal(MINIMUM_PARTIAL_LINKER_VERSION));
|
|
36
|
-
definitionMap.set('version', o.literal('18.2.
|
|
36
|
+
definitionMap.set('version', o.literal('18.2.1'));
|
|
37
37
|
definitionMap.set('ngImport', o.importExpr(R3.core));
|
|
38
38
|
definitionMap.set('type', meta.type.value);
|
|
39
39
|
// We only generate the keys in the metadata if the arrays contain values.
|
|
@@ -32,7 +32,7 @@ export function compileDeclarePipeFromMetadata(meta) {
|
|
|
32
32
|
export function createPipeDefinitionMap(meta) {
|
|
33
33
|
const definitionMap = new DefinitionMap();
|
|
34
34
|
definitionMap.set('minVersion', o.literal(MINIMUM_PARTIAL_LINKER_VERSION));
|
|
35
|
-
definitionMap.set('version', o.literal('18.2.
|
|
35
|
+
definitionMap.set('version', o.literal('18.2.1'));
|
|
36
36
|
definitionMap.set('ngImport', o.importExpr(R3.core));
|
|
37
37
|
// e.g. `type: MyPipe`
|
|
38
38
|
definitionMap.set('type', meta.type.value);
|
package/esm2022/src/version.mjs
CHANGED
|
@@ -11,5 +11,5 @@
|
|
|
11
11
|
* Entry point for all public APIs of the compiler package.
|
|
12
12
|
*/
|
|
13
13
|
import { Version } from './util';
|
|
14
|
-
export const VERSION = new Version('18.2.
|
|
14
|
+
export const VERSION = new Version('18.2.1');
|
|
15
15
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmVyc2lvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL2NvbXBpbGVyL3NyYy92ZXJzaW9uLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOzs7Ozs7R0FNRztBQUVIOzs7O0dBSUc7QUFFSCxPQUFPLEVBQUMsT0FBTyxFQUFDLE1BQU0sUUFBUSxDQUFDO0FBRS9CLE1BQU0sQ0FBQyxNQUFNLE9BQU8sR0FBRyxJQUFJLE9BQU8sQ0FBQyxtQkFBbUIsQ0FBQyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBAbGljZW5zZVxuICogQ29weXJpZ2h0IEdvb2dsZSBMTEMgQWxsIFJpZ2h0cyBSZXNlcnZlZC5cbiAqXG4gKiBVc2Ugb2YgdGhpcyBzb3VyY2UgY29kZSBpcyBnb3Zlcm5lZCBieSBhbiBNSVQtc3R5bGUgbGljZW5zZSB0aGF0IGNhbiBiZVxuICogZm91bmQgaW4gdGhlIExJQ0VOU0UgZmlsZSBhdCBodHRwczovL2FuZ3VsYXIuaW8vbGljZW5zZVxuICovXG5cbi8qKlxuICogQG1vZHVsZVxuICogQGRlc2NyaXB0aW9uXG4gKiBFbnRyeSBwb2ludCBmb3IgYWxsIHB1YmxpYyBBUElzIG9mIHRoZSBjb21waWxlciBwYWNrYWdlLlxuICovXG5cbmltcG9ydCB7VmVyc2lvbn0gZnJvbSAnLi91dGlsJztcblxuZXhwb3J0IGNvbnN0IFZFUlNJT04gPSBuZXcgVmVyc2lvbignMC4wLjAtUExBQ0VIT0xERVInKTtcbiJdfQ==
|
package/fesm2022/compiler.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v18.2.
|
|
2
|
+
* @license Angular v18.2.1
|
|
3
3
|
* (c) 2010-2024 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -29549,7 +29549,7 @@ function publishFacade(global) {
|
|
|
29549
29549
|
* @description
|
|
29550
29550
|
* Entry point for all public APIs of the compiler package.
|
|
29551
29551
|
*/
|
|
29552
|
-
const VERSION = new Version('18.2.
|
|
29552
|
+
const VERSION = new Version('18.2.1');
|
|
29553
29553
|
|
|
29554
29554
|
class CompilerConfig {
|
|
29555
29555
|
constructor({ defaultEncapsulation = ViewEncapsulation.Emulated, preserveWhitespaces, strictInjectionParameters, } = {}) {
|
|
@@ -31187,7 +31187,7 @@ const MINIMUM_PARTIAL_LINKER_DEFER_SUPPORT_VERSION = '18.0.0';
|
|
|
31187
31187
|
function compileDeclareClassMetadata(metadata) {
|
|
31188
31188
|
const definitionMap = new DefinitionMap();
|
|
31189
31189
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$5));
|
|
31190
|
-
definitionMap.set('version', literal('18.2.
|
|
31190
|
+
definitionMap.set('version', literal('18.2.1'));
|
|
31191
31191
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
31192
31192
|
definitionMap.set('type', metadata.type);
|
|
31193
31193
|
definitionMap.set('decorators', metadata.decorators);
|
|
@@ -31205,7 +31205,7 @@ function compileComponentDeclareClassMetadata(metadata, dependencies) {
|
|
|
31205
31205
|
callbackReturnDefinitionMap.set('ctorParameters', metadata.ctorParameters ?? literal(null));
|
|
31206
31206
|
callbackReturnDefinitionMap.set('propDecorators', metadata.propDecorators ?? literal(null));
|
|
31207
31207
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_DEFER_SUPPORT_VERSION));
|
|
31208
|
-
definitionMap.set('version', literal('18.2.
|
|
31208
|
+
definitionMap.set('version', literal('18.2.1'));
|
|
31209
31209
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
31210
31210
|
definitionMap.set('type', metadata.type);
|
|
31211
31211
|
definitionMap.set('resolveDeferredDeps', compileComponentMetadataAsyncResolver(dependencies));
|
|
@@ -31300,7 +31300,7 @@ function createDirectiveDefinitionMap(meta) {
|
|
|
31300
31300
|
const definitionMap = new DefinitionMap();
|
|
31301
31301
|
const minVersion = getMinimumVersionForPartialOutput(meta);
|
|
31302
31302
|
definitionMap.set('minVersion', literal(minVersion));
|
|
31303
|
-
definitionMap.set('version', literal('18.2.
|
|
31303
|
+
definitionMap.set('version', literal('18.2.1'));
|
|
31304
31304
|
// e.g. `type: MyDirective`
|
|
31305
31305
|
definitionMap.set('type', meta.type.value);
|
|
31306
31306
|
if (meta.isStandalone) {
|
|
@@ -31722,7 +31722,7 @@ const MINIMUM_PARTIAL_LINKER_VERSION$4 = '12.0.0';
|
|
|
31722
31722
|
function compileDeclareFactoryFunction(meta) {
|
|
31723
31723
|
const definitionMap = new DefinitionMap();
|
|
31724
31724
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$4));
|
|
31725
|
-
definitionMap.set('version', literal('18.2.
|
|
31725
|
+
definitionMap.set('version', literal('18.2.1'));
|
|
31726
31726
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
31727
31727
|
definitionMap.set('type', meta.type.value);
|
|
31728
31728
|
definitionMap.set('deps', compileDependencies(meta.deps));
|
|
@@ -31757,7 +31757,7 @@ function compileDeclareInjectableFromMetadata(meta) {
|
|
|
31757
31757
|
function createInjectableDefinitionMap(meta) {
|
|
31758
31758
|
const definitionMap = new DefinitionMap();
|
|
31759
31759
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$3));
|
|
31760
|
-
definitionMap.set('version', literal('18.2.
|
|
31760
|
+
definitionMap.set('version', literal('18.2.1'));
|
|
31761
31761
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
31762
31762
|
definitionMap.set('type', meta.type.value);
|
|
31763
31763
|
// Only generate providedIn property if it has a non-null value
|
|
@@ -31808,7 +31808,7 @@ function compileDeclareInjectorFromMetadata(meta) {
|
|
|
31808
31808
|
function createInjectorDefinitionMap(meta) {
|
|
31809
31809
|
const definitionMap = new DefinitionMap();
|
|
31810
31810
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$2));
|
|
31811
|
-
definitionMap.set('version', literal('18.2.
|
|
31811
|
+
definitionMap.set('version', literal('18.2.1'));
|
|
31812
31812
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
31813
31813
|
definitionMap.set('type', meta.type.value);
|
|
31814
31814
|
definitionMap.set('providers', meta.providers);
|
|
@@ -31841,7 +31841,7 @@ function createNgModuleDefinitionMap(meta) {
|
|
|
31841
31841
|
throw new Error('Invalid path! Local compilation mode should not get into the partial compilation path');
|
|
31842
31842
|
}
|
|
31843
31843
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$1));
|
|
31844
|
-
definitionMap.set('version', literal('18.2.
|
|
31844
|
+
definitionMap.set('version', literal('18.2.1'));
|
|
31845
31845
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
31846
31846
|
definitionMap.set('type', meta.type.value);
|
|
31847
31847
|
// We only generate the keys in the metadata if the arrays contain values.
|
|
@@ -31892,7 +31892,7 @@ function compileDeclarePipeFromMetadata(meta) {
|
|
|
31892
31892
|
function createPipeDefinitionMap(meta) {
|
|
31893
31893
|
const definitionMap = new DefinitionMap();
|
|
31894
31894
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION));
|
|
31895
|
-
definitionMap.set('version', literal('18.2.
|
|
31895
|
+
definitionMap.set('version', literal('18.2.1'));
|
|
31896
31896
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
31897
31897
|
// e.g. `type: MyPipe`
|
|
31898
31898
|
definitionMap.set('type', meta.type.value);
|