Skip to content

Commit 0695bb5

Browse files
authored
fix: upgrade coffee-lex and update tests (#241)
This also required upgrading typescript to support string enums. Also upgrade to latest decaffeinate-coffeescript. BREAKING CHANGE: The token format included within chained comparison operators now uses string enums.
1 parent da5d261 commit 0695bb5

File tree

17 files changed

+97
-60
lines changed

17 files changed

+97
-60
lines changed

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
"@types/babylon": "^6.16.1",
2626
"@types/json-stable-stringify": "^1.0.31",
2727
"babylon": "^6.14.1",
28-
"coffee-lex": "^7.0.0",
29-
"decaffeinate-coffeescript": "1.10.0-patch25",
28+
"coffee-lex": "^8.0.0",
29+
"decaffeinate-coffeescript": "1.10.0-patch26",
3030
"json-stable-stringify": "^1.0.1",
3131
"lines-and-columns": "^1.1.6"
3232
},
@@ -48,9 +48,9 @@
4848
"mocha": "^3.0.0",
4949
"semantic-release": "^6.3.2",
5050
"string-repeat": "^1.1.1",
51-
"ts-node": "^3.0.6",
52-
"tslint": "^5.0.0",
53-
"typescript": "^2.2.1"
51+
"ts-node": "^3.2.0",
52+
"tslint": "^5.5.0",
53+
"typescript": "^2.4.1"
5454
},
5555
"publishConfig": {
5656
"registry": "https://registry.npmjs.org/"

test/examples/block-comment-in-function/output.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,4 @@
4545
],
4646
"raw": "->\n ###\n a\n ###\n",
4747
"type": "Program"
48-
}
48+
}

test/examples/chained-comparison-equals/output.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,15 @@
5353
"token": {
5454
"end": 4,
5555
"start": 2,
56-
"type": 39
56+
"type": "OPERATOR"
5757
}
5858
},
5959
{
6060
"operator": "==",
6161
"token": {
6262
"end": 9,
6363
"start": 7,
64-
"type": 39
64+
"type": "OPERATOR"
6565
}
6666
}
6767
],

test/examples/chained-comparison-extended/output.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,31 +75,31 @@
7575
"token": {
7676
"end": 3,
7777
"start": 2,
78-
"type": 39
78+
"type": "OPERATOR"
7979
}
8080
},
8181
{
8282
"operator": "<",
8383
"token": {
8484
"end": 7,
8585
"start": 6,
86-
"type": 39
86+
"type": "OPERATOR"
8787
}
8888
},
8989
{
9090
"operator": "<",
9191
"token": {
9292
"end": 11,
9393
"start": 10,
94-
"type": 39
94+
"type": "OPERATOR"
9595
}
9696
},
9797
{
9898
"operator": "<",
9999
"token": {
100100
"end": 15,
101101
"start": 14,
102-
"type": 39
102+
"type": "OPERATOR"
103103
}
104104
}
105105
],

test/examples/chained-comparison-greater-than/output.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,15 @@
5353
"token": {
5454
"end": 3,
5555
"start": 2,
56-
"type": 39
56+
"type": "OPERATOR"
5757
}
5858
},
5959
{
6060
"operator": ">",
6161
"token": {
6262
"end": 7,
6363
"start": 6,
64-
"type": 39
64+
"type": "OPERATOR"
6565
}
6666
}
6767
],

test/examples/chained-comparison-less-than/output.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,15 @@
5353
"token": {
5454
"end": 3,
5555
"start": 2,
56-
"type": 39
56+
"type": "OPERATOR"
5757
}
5858
},
5959
{
6060
"operator": "<",
6161
"token": {
6262
"end": 7,
6363
"start": 6,
64-
"type": 39
64+
"type": "OPERATOR"
6565
}
6666
}
6767
],

test/examples/chained-comparison-mixed/output.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,15 @@
5353
"token": {
5454
"end": 3,
5555
"start": 2,
56-
"type": 39
56+
"type": "OPERATOR"
5757
}
5858
},
5959
{
6060
"operator": ">",
6161
"token": {
6262
"end": 7,
6363
"start": 6,
64-
"type": 39
64+
"type": "OPERATOR"
6565
}
6666
}
6767
],

test/examples/chained-comparison-nested/output.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,15 +57,15 @@
5757
"token": {
5858
"end": 5,
5959
"start": 3,
60-
"type": 39
60+
"type": "OPERATOR"
6161
}
6262
},
6363
{
6464
"operator": "==",
6565
"token": {
6666
"end": 10,
6767
"start": 8,
68-
"type": 39
68+
"type": "OPERATOR"
6969
}
7070
}
7171
],
@@ -105,15 +105,15 @@
105105
"token": {
106106
"end": 16,
107107
"start": 14,
108-
"type": 39
108+
"type": "OPERATOR"
109109
}
110110
},
111111
{
112112
"operator": "==",
113113
"token": {
114114
"end": 21,
115115
"start": 19,
116-
"type": 39
116+
"type": "OPERATOR"
117117
}
118118
}
119119
],

test/examples/chained-comparison-not-equal/output.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,15 @@
5353
"token": {
5454
"end": 4,
5555
"start": 2,
56-
"type": 39
56+
"type": "OPERATOR"
5757
}
5858
},
5959
{
6060
"operator": "!=",
6161
"token": {
6262
"end": 9,
6363
"start": 7,
64-
"type": 39
64+
"type": "OPERATOR"
6565
}
6666
}
6767
],

test/examples/chained-comparison-three/output.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,23 +64,23 @@
6464
"token": {
6565
"end": 4,
6666
"start": 2,
67-
"type": 39
67+
"type": "OPERATOR"
6868
}
6969
},
7070
{
7171
"operator": "==",
7272
"token": {
7373
"end": 9,
7474
"start": 7,
75-
"type": 39
75+
"type": "OPERATOR"
7676
}
7777
},
7878
{
7979
"operator": "==",
8080
"token": {
8181
"end": 14,
8282
"start": 12,
83-
"type": 39
83+
"type": "OPERATOR"
8484
}
8585
}
8686
],

0 commit comments

Comments
 (0)