@angular/compiler 18.2.6 → 18.2.7
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 +21 -0
- 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/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2010-2024 Google LLC. https://angular.dev/license
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
|
13
|
+
all copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
21
|
+
THE SOFTWARE.
|
|
@@ -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.7'));
|
|
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.7'));
|
|
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.7'));
|
|
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.7'));
|
|
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.7'));
|
|
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.7'));
|
|
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.7'));
|
|
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.7'));
|
|
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.7');
|
|
15
15
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidmVyc2lvbi5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL2NvbXBpbGVyL3NyYy92ZXJzaW9uLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOzs7Ozs7R0FNRztBQUVIOzs7O0dBSUc7QUFFSCxPQUFPLEVBQUMsT0FBTyxFQUFDLE1BQU0sUUFBUSxDQUFDO0FBRS9CLE1BQU0sQ0FBQyxNQUFNLE9BQU8sR0FBRyxJQUFJLE9BQU8sQ0FBQyxtQkFBbUIsQ0FBQyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBAbGljZW5zZVxuICogQ29weXJpZ2h0IEdvb2dsZSBMTEMgQWxsIFJpZ2h0cyBSZXNlcnZlZC5cbiAqXG4gKiBVc2Ugb2YgdGhpcyBzb3VyY2UgY29kZSBpcyBnb3Zlcm5lZCBieSBhbiBNSVQtc3R5bGUgbGljZW5zZSB0aGF0IGNhbiBiZVxuICogZm91bmQgaW4gdGhlIExJQ0VOU0UgZmlsZSBhdCBodHRwczovL2FuZ3VsYXIuZGV2L2xpY2Vuc2VcbiAqL1xuXG4vKipcbiAqIEBtb2R1bGVcbiAqIEBkZXNjcmlwdGlvblxuICogRW50cnkgcG9pbnQgZm9yIGFsbCBwdWJsaWMgQVBJcyBvZiB0aGUgY29tcGlsZXIgcGFja2FnZS5cbiAqL1xuXG5pbXBvcnQge1ZlcnNpb259IGZyb20gJy4vdXRpbCc7XG5cbmV4cG9ydCBjb25zdCBWRVJTSU9OID0gbmV3IFZlcnNpb24oJzAuMC4wLVBMQUNFSE9MREVSJyk7XG4iXX0=
|
package/fesm2022/compiler.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v18.2.
|
|
2
|
+
* @license Angular v18.2.7
|
|
3
3
|
* (c) 2010-2024 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -29805,7 +29805,7 @@ function publishFacade(global) {
|
|
|
29805
29805
|
* @description
|
|
29806
29806
|
* Entry point for all public APIs of the compiler package.
|
|
29807
29807
|
*/
|
|
29808
|
-
const VERSION = new Version('18.2.
|
|
29808
|
+
const VERSION = new Version('18.2.7');
|
|
29809
29809
|
|
|
29810
29810
|
class CompilerConfig {
|
|
29811
29811
|
constructor({ defaultEncapsulation = ViewEncapsulation.Emulated, preserveWhitespaces, strictInjectionParameters, } = {}) {
|
|
@@ -31456,7 +31456,7 @@ const MINIMUM_PARTIAL_LINKER_DEFER_SUPPORT_VERSION = '18.0.0';
|
|
|
31456
31456
|
function compileDeclareClassMetadata(metadata) {
|
|
31457
31457
|
const definitionMap = new DefinitionMap();
|
|
31458
31458
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$5));
|
|
31459
|
-
definitionMap.set('version', literal('18.2.
|
|
31459
|
+
definitionMap.set('version', literal('18.2.7'));
|
|
31460
31460
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
31461
31461
|
definitionMap.set('type', metadata.type);
|
|
31462
31462
|
definitionMap.set('decorators', metadata.decorators);
|
|
@@ -31474,7 +31474,7 @@ function compileComponentDeclareClassMetadata(metadata, dependencies) {
|
|
|
31474
31474
|
callbackReturnDefinitionMap.set('ctorParameters', metadata.ctorParameters ?? literal(null));
|
|
31475
31475
|
callbackReturnDefinitionMap.set('propDecorators', metadata.propDecorators ?? literal(null));
|
|
31476
31476
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_DEFER_SUPPORT_VERSION));
|
|
31477
|
-
definitionMap.set('version', literal('18.2.
|
|
31477
|
+
definitionMap.set('version', literal('18.2.7'));
|
|
31478
31478
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
31479
31479
|
definitionMap.set('type', metadata.type);
|
|
31480
31480
|
definitionMap.set('resolveDeferredDeps', compileComponentMetadataAsyncResolver(dependencies));
|
|
@@ -31569,7 +31569,7 @@ function createDirectiveDefinitionMap(meta) {
|
|
|
31569
31569
|
const definitionMap = new DefinitionMap();
|
|
31570
31570
|
const minVersion = getMinimumVersionForPartialOutput(meta);
|
|
31571
31571
|
definitionMap.set('minVersion', literal(minVersion));
|
|
31572
|
-
definitionMap.set('version', literal('18.2.
|
|
31572
|
+
definitionMap.set('version', literal('18.2.7'));
|
|
31573
31573
|
// e.g. `type: MyDirective`
|
|
31574
31574
|
definitionMap.set('type', meta.type.value);
|
|
31575
31575
|
if (meta.isStandalone) {
|
|
@@ -31991,7 +31991,7 @@ const MINIMUM_PARTIAL_LINKER_VERSION$4 = '12.0.0';
|
|
|
31991
31991
|
function compileDeclareFactoryFunction(meta) {
|
|
31992
31992
|
const definitionMap = new DefinitionMap();
|
|
31993
31993
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$4));
|
|
31994
|
-
definitionMap.set('version', literal('18.2.
|
|
31994
|
+
definitionMap.set('version', literal('18.2.7'));
|
|
31995
31995
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
31996
31996
|
definitionMap.set('type', meta.type.value);
|
|
31997
31997
|
definitionMap.set('deps', compileDependencies(meta.deps));
|
|
@@ -32026,7 +32026,7 @@ function compileDeclareInjectableFromMetadata(meta) {
|
|
|
32026
32026
|
function createInjectableDefinitionMap(meta) {
|
|
32027
32027
|
const definitionMap = new DefinitionMap();
|
|
32028
32028
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$3));
|
|
32029
|
-
definitionMap.set('version', literal('18.2.
|
|
32029
|
+
definitionMap.set('version', literal('18.2.7'));
|
|
32030
32030
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
32031
32031
|
definitionMap.set('type', meta.type.value);
|
|
32032
32032
|
// Only generate providedIn property if it has a non-null value
|
|
@@ -32077,7 +32077,7 @@ function compileDeclareInjectorFromMetadata(meta) {
|
|
|
32077
32077
|
function createInjectorDefinitionMap(meta) {
|
|
32078
32078
|
const definitionMap = new DefinitionMap();
|
|
32079
32079
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$2));
|
|
32080
|
-
definitionMap.set('version', literal('18.2.
|
|
32080
|
+
definitionMap.set('version', literal('18.2.7'));
|
|
32081
32081
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
32082
32082
|
definitionMap.set('type', meta.type.value);
|
|
32083
32083
|
definitionMap.set('providers', meta.providers);
|
|
@@ -32110,7 +32110,7 @@ function createNgModuleDefinitionMap(meta) {
|
|
|
32110
32110
|
throw new Error('Invalid path! Local compilation mode should not get into the partial compilation path');
|
|
32111
32111
|
}
|
|
32112
32112
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION$1));
|
|
32113
|
-
definitionMap.set('version', literal('18.2.
|
|
32113
|
+
definitionMap.set('version', literal('18.2.7'));
|
|
32114
32114
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
32115
32115
|
definitionMap.set('type', meta.type.value);
|
|
32116
32116
|
// We only generate the keys in the metadata if the arrays contain values.
|
|
@@ -32161,7 +32161,7 @@ function compileDeclarePipeFromMetadata(meta) {
|
|
|
32161
32161
|
function createPipeDefinitionMap(meta) {
|
|
32162
32162
|
const definitionMap = new DefinitionMap();
|
|
32163
32163
|
definitionMap.set('minVersion', literal(MINIMUM_PARTIAL_LINKER_VERSION));
|
|
32164
|
-
definitionMap.set('version', literal('18.2.
|
|
32164
|
+
definitionMap.set('version', literal('18.2.7'));
|
|
32165
32165
|
definitionMap.set('ngImport', importExpr(Identifiers.core));
|
|
32166
32166
|
// e.g. `type: MyPipe`
|
|
32167
32167
|
definitionMap.set('type', meta.type.value);
|