@angular/compiler-cli 18.1.4 → 18.1.5

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.
@@ -7,7 +7,7 @@
7
7
  */
8
8
  import { MaybeForwardRefExpression, outputAst as o, R3DeclareDependencyMetadata, R3DependencyMetadata, R3Reference } from '@angular/compiler';
9
9
  import { AstObject, AstValue } from '../../ast/ast_value';
10
- export declare const PLACEHOLDER_VERSION = "18.1.4";
10
+ export declare const PLACEHOLDER_VERSION = "18.1.5";
11
11
  export declare function wrapReference<TExpression>(wrapped: o.WrappedNodeExpr<TExpression>): R3Reference;
12
12
  /**
13
13
  * Parses the value of an enum from the AST value's symbol name.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/compiler-cli",
3
- "version": "18.1.4",
3
+ "version": "18.1.5",
4
4
  "description": "Angular - the compiler CLI for Node.js",
5
5
  "typings": "index.d.ts",
6
6
  "bin": {
@@ -43,7 +43,7 @@
43
43
  }
44
44
  },
45
45
  "dependencies": {
46
- "@babel/core": "7.24.9",
46
+ "@babel/core": "7.25.2",
47
47
  "@jridgewell/sourcemap-codec": "^1.4.14",
48
48
  "reflect-metadata": "^0.2.0",
49
49
  "chokidar": "^3.0.0",
@@ -53,7 +53,7 @@
53
53
  "yargs": "^17.2.1"
54
54
  },
55
55
  "peerDependencies": {
56
- "@angular/compiler": "18.1.4",
56
+ "@angular/compiler": "18.1.5",
57
57
  "typescript": ">=5.4 <5.6"
58
58
  },
59
59
  "repository": {
@@ -8,7 +8,18 @@
8
8
  import { AST } from '@angular/compiler';
9
9
  import ts from 'typescript';
10
10
  import { TypeCheckingConfig } from '../api';
11
- export declare const NULL_AS_ANY: ts.AsExpression;
11
+ /**
12
+ * Expression that is cast to any. Currently represented as `0 as any`.
13
+ *
14
+ * Historically this expression was using `null as any`, but a newly-added check in TypeScript 5.6
15
+ * (https://devblogs.microsoft.com/typescript/announcing-typescript-5-6-beta/#disallowed-nullish-and-truthy-checks)
16
+ * started flagging it as always being nullish. Other options that were considered:
17
+ * - `NaN as any` or `Infinity as any` - not used, because they don't work if the `noLib` compiler
18
+ * option is enabled. Also they require more characters.
19
+ * - Some flavor of function call, like `isNan(0) as any` - requires even more characters than the
20
+ * NaN option and has the same issue with `noLib`.
21
+ */
22
+ export declare const ANY_EXPRESSION: ts.AsExpression;
12
23
  /**
13
24
  * Convert an `AST` to TypeScript code directly, without going through an intermediate `Expression`
14
25
  * AST.