Skip to content

Commit 3c29dcd

Browse files
committed
Get rid of dependency on Node module
1 parent 66a5580 commit 3c29dcd

File tree

10 files changed

+36
-22
lines changed

10 files changed

+36
-22
lines changed

bsconfig.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,6 @@
3232
"warnings": {
3333
"number": "A-4-40-41-42-43-44+101-102-103",
3434
"error": "false"
35-
}
36-
}
35+
},
36+
"uncurried": false
37+
}

lib/js/examples/ReadFileByLine.bs.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/js/test/atomic/BigInt.test.bs.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/js/test/atomic/BinaryLike.test.bs.js

Lines changed: 7 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"@dusty-phillips/rescript-zora": "^3.0.0",
3030
"onchange": "^7.1.0",
3131
"pta": "^1.0.0",
32-
"rescript": "^10.0.1",
32+
"rescript": "^11.0.0-beta.3",
3333
"zora": "^5.0.0"
3434
}
3535
}

src/Buffer.res

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
type t = Node.buffer
1+
type t
22
open Js.TypedArray2
33

44
module Constants = {

src/Exports.res

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
type t

src/Module.res

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,13 @@
1-
include Node_module
1+
type rec t = {
2+
id: string,
3+
exports: Exports.t,
4+
// in REPL V4 it is `undefined` in CLI it can be `null`
5+
parrent: Js.Nullable.t<t>,
6+
filename: string,
7+
loaded: bool,
8+
children: array<t>,
9+
paths: array<string>,
10+
}
11+
12+
@val
13+
external module_: {"__cache": Js.Dict.t<t>} = "module"

test/atomic/Stream.test.res

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
open Zora
22
open StreamTestLib
3-
ti
3+
44
zoraBlock("Stream.Readable", t => {
55
t->block("'Stream.Readable.make' should return a defined value", t => {
66
let readable = makeReadableEmpty()
@@ -29,7 +29,7 @@ zoraBlock("Stream.Readable", t => {
2929

3030
// oh these bindings are wonderful aren't they
3131
let a = ()
32-
resolve(. a)
32+
resolve(a)
3333
},
3434
)
3535

@@ -93,7 +93,7 @@ zoraBlock("Stream.Writable", t => {
9393

9494
// oh these bindings are wonderful aren't they
9595
let a = ()
96-
resolve(. a)
96+
resolve(a)
9797
},
9898
(),
9999
)->ignore

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -273,10 +273,10 @@ readdirp@~3.6.0:
273273
dependencies:
274274
picomatch "^2.2.1"
275275

276-
rescript@^10.0.1:
277-
version "10.0.1"
278-
resolved "https://registry.yarnpkg.com/rescript/-/rescript-10.0.1.tgz#5b2da8a8bcfb994bed1eb24820bf10cfb9d8c440"
279-
integrity sha512-XwO1GPDtoEU4H03xQE5bp0/qtSVR6YLaJRPxWKrfFgKc+LI36ODOCie7o9UJfgzQdoMYkkZyiTGZ4N9OQEaiUw==
276+
rescript@^11.0.0-beta.3:
277+
version "11.0.0-beta.3"
278+
resolved "https://registry.yarnpkg.com/rescript/-/rescript-11.0.0-beta.3.tgz#f883a19aa8cb2ab162fd2c9f3d46d2c05cc5710b"
279+
integrity sha512-j3YT3VdWMoHgwL4RydKJm9O/VIpN3NTI6keP18rZVJ8ansRKgkHYGLaIwoG6iVqSYYwBjb6d8l8oZ1Jz0fmTeQ==
280280

281281
reusify@^1.0.4:
282282
version "1.0.4"

0 commit comments

Comments
 (0)