Skip to content

Commit 38c3033

Browse files
committed
Update @angular/compiler to v21.1
1 parent d70aecd commit 38c3033

File tree

3 files changed

+8
-18
lines changed

3 files changed

+8
-18
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"release": "release-it"
3333
},
3434
"devDependencies": {
35-
"@angular/compiler": "21.1.0-rc.0",
35+
"@angular/compiler": "21.1.0",
3636
"@babel/code-frame": "8.0.0-beta.3",
3737
"@babel/parser": "8.0.0-beta.3",
3838
"@babel/types": "8.0.0-beta.3",

src/ast-transform/transforms/transform-binary-expression.ts

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,6 @@ import type * as babel from '@babel/types';
33

44
import { type NodeTransformer } from '../node-transformer.ts';
55

6-
const isAssignmentOperator = (
7-
operator: Binary['operation'],
8-
): operator is babel.AssignmentExpression['operator'] =>
9-
Binary.isAssignmentOperation(operator);
10-
116
const isLogicalOperator = (
127
operator: Binary['operation'],
138
): operator is babel.LogicalExpression['operator'] =>
@@ -30,7 +25,7 @@ export const visitBinary = (
3025
return { type: 'LogicalExpression', operator, left, right };
3126
}
3227

33-
if (isAssignmentOperator(operator)) {
28+
if (Binary.isAssignmentOperation(operator)) {
3429
return {
3530
type: 'AssignmentExpression',
3631
left: left as babel.AssignmentExpression['left'],
@@ -39,10 +34,5 @@ export const visitBinary = (
3934
};
4035
}
4136

42-
return {
43-
left,
44-
right,
45-
type: 'BinaryExpression',
46-
operator: operator as babel.BinaryExpression['operator'],
47-
};
37+
return { left, right, type: 'BinaryExpression', operator: operator };
4838
};

yarn.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@ __metadata:
55
version: 8
66
cacheKey: 10
77

8-
"@angular/compiler@npm:21.1.0-rc.0":
9-
version: 21.1.0-rc.0
10-
resolution: "@angular/compiler@npm:21.1.0-rc.0"
8+
"@angular/compiler@npm:21.1.0":
9+
version: 21.1.0
10+
resolution: "@angular/compiler@npm:21.1.0"
1111
dependencies:
1212
tslib: "npm:^2.3.0"
13-
checksum: 10/a4721142e932fe62b27a5e383b540ccb83cd2ca456e8ff3bdd62be1022f46b46d224213108b1186978de5f0d6e6916e7c074fb4270b16818f66b155f53531ac5
13+
checksum: 10/1f409c20eb36079719e004f9e683a41d9d9fd975d814132faa28f941a0d491ba392c7cca92061f8dbe540bd922cac905f76ccab48a87c82c764b3b7cdb6b28dd
1414
languageName: node
1515
linkType: hard
1616

@@ -1565,7 +1565,7 @@ __metadata:
15651565
version: 0.0.0-use.local
15661566
resolution: "angular-estree-parser@workspace:."
15671567
dependencies:
1568-
"@angular/compiler": "npm:21.1.0-rc.0"
1568+
"@angular/compiler": "npm:21.1.0"
15691569
"@babel/code-frame": "npm:8.0.0-beta.3"
15701570
"@babel/parser": "npm:8.0.0-beta.3"
15711571
"@babel/types": "npm:8.0.0-beta.3"

0 commit comments

Comments
 (0)