Skip to content

Commit 98b4563

Browse files
committed
Use node 22 for dev
1 parent 229538d commit 98b4563

File tree

5 files changed

+9
-16
lines changed

5 files changed

+9
-16
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,7 @@ jobs:
478478
- name: Use Node.js
479479
uses: actions/setup-node@v4
480480
with:
481-
node-version-file: .nvmrc
481+
node-version: 20
482482

483483
- name: Make test directory
484484
id: tmp-dir

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
20
1+
22

tests/analysis_tests/tests/src/expected/Completion.res.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -332,8 +332,8 @@ Path Array.
332332
"label": "entries",
333333
"kind": 12,
334334
"tags": [],
335-
"detail": "array<'a> => Iterator.t<'a>",
336-
"documentation": {"kind": "markdown", "value": "\n`entries(array)` returns a new array iterator object that contains the key/value pairs for each index in the array.\n\nSee [Array.prototype.entries](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/entries) on MDN.\n\n## Examples\n\n```rescript\nlet array = [5, 6, 7]\nlet iterator : Iterator.t<int> = array->Array.entries\nConsole.log(iterator->Iterator.next) // {done: false, value: [0,5]}\nConsole.log(iterator->Iterator.next) // {done: false, value: [1,6]}\n```\n"}
335+
"detail": "array<'a> => Iterator.t<(int, 'a)>",
336+
"documentation": {"kind": "markdown", "value": "\n`entries(array)` returns a new array iterator object that contains the key/value pairs for each index in the array.\n\nSee [Array.prototype.entries](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/entries) on MDN.\n\n## Examples\n\n```rescript\nlet array = [5, 6, 7]\nlet iterator : Iterator.t<(int, int)> = array->Array.entries\niterator->Iterator.next->assertEqual({done: false, value: Some((0, 5))})\niterator->Iterator.next->assertEqual({done: false, value: Some((1, 6))})\n```\n"}
337337
}, {
338338
"label": "unshiftMany",
339339
"kind": 12,
@@ -387,7 +387,7 @@ Path Array.
387387
"kind": 12,
388388
"tags": [],
389389
"detail": "array<'a> => Iterator.t<'a>",
390-
"documentation": {"kind": "markdown", "value": "\n`values(array)` returns a new array iterator object that contains the values for each index in the array.\n\nSee [Array.prototype.values](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/values) on MDN.\n\n## Examples\n\n```rescript\nlet array = [5, 6, 7]\nlet iterator : Iterator.t<int> = array->Array.values\nConsole.log(iterator->Iterator.next) // {done: false, value: 5}\nConsole.log(iterator->Iterator.next) // {done: false, value: 6}\n```\n "}
390+
"documentation": {"kind": "markdown", "value": "\n`values(array)` returns a new array iterator object that contains the values for each index in the array.\n\nSee [Array.prototype.values](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/values) on MDN.\n\n## Examples\n\n```rescript\nlet array = [5, 6, 7]\nlet iterator : Iterator.t<int> = array->Array.values\niterator->Iterator.next->assertEqual({done: false, value: Some(5)})\niterator->Iterator.next->assertEqual({done: false, value: Some(6)})\n```\n "}
391391
}, {
392392
"label": "indexOfOpt",
393393
"kind": 12,

tests/tests/src/core/Core_IteratorTests.mjs

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@ import * as Test from "./Test.mjs";
44
import * as Primitive_object from "rescript/lib/es6/Primitive_object.js";
55
import * as Stdlib_AsyncIterator from "rescript/lib/es6/Stdlib_AsyncIterator.js";
66

7-
import 'es-iterator-helpers/auto';
8-
;
9-
107
let eq = Primitive_object.equal;
118

129
let iterator = ((() => {
@@ -30,7 +27,7 @@ iterator.forEach(v => {
3027
Test.run([
3128
[
3229
"Core_IteratorTests.res",
33-
23,
30+
19,
3431
20,
3532
34
3633
],
@@ -62,7 +59,7 @@ await Stdlib_AsyncIterator.forEach(asyncIterator, v => {
6259
Test.run([
6360
[
6461
"Core_IteratorTests.res",
65-
46,
62+
42,
6663
20,
6764
35
6865
],
@@ -98,7 +95,7 @@ await Stdlib_AsyncIterator.forEach(asyncIterator$1, v => {
9895
Test.run([
9996
[
10097
"Core_IteratorTests.res",
101-
71,
98+
67,
10299
20,
103100
54
104101
],
@@ -112,4 +109,4 @@ export {
112109
asyncResult,
113110
asyncIterator$1 as asyncIterator,
114111
}
115-
/* Not a pure module */
112+
/* iterator Not a pure module */

tests/tests/src/core/Core_IteratorTests.res

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
1-
%%raw(`
2-
import 'es-iterator-helpers/auto';
3-
`)
4-
51
let eq = (a, b) => a == b
62

73
let iterator: Iterator.t<string> = %raw(`

0 commit comments

Comments
 (0)