diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..855645f --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,23 @@ +name: CI + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + test: + name: Test + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: pnpm/action-setup@v2 + - uses: actions/setup-node@v3 + with: + node-version: 18 + cache: yarn + - run: yarn install + - run: yarn test diff --git a/bsconfig.json b/bsconfig.json index 8e601ea..6608038 100644 --- a/bsconfig.json +++ b/bsconfig.json @@ -25,12 +25,10 @@ ], "suffix": ".bs.js", "bs-dependencies": [], - "bs-dev-dependencies": [ - "@dusty-phillips/rescript-zora", - "@ryyppy/rescript-promise" - ], + "bs-dev-dependencies": ["@dusty-phillips/rescript-zora"], "warnings": { "number": "A-4-40-41-42-43-44+101-102-103", "error": "false" - } -} \ No newline at end of file + }, + "uncurried": false +} diff --git a/lib/js/examples/ReadFileByLine.bs.js b/lib/js/examples/ReadFileByLine.bs.js index 4794bb7..d2ebb53 100644 --- a/lib/js/examples/ReadFileByLine.bs.js +++ b/lib/js/examples/ReadFileByLine.bs.js @@ -11,7 +11,7 @@ var rl = Readline.createInterface({ }); rl.on("line", (function (line) { - console.log("Received: " + line + ""); + console.log("Received: " + line); })); exports.rl = rl; diff --git a/lib/js/test/atomic/BigInt.test.bs.js b/lib/js/test/atomic/BigInt.test.bs.js index 2eb8ec1..0dffafd 100644 --- a/lib/js/test/atomic/BigInt.test.bs.js +++ b/lib/js/test/atomic/BigInt.test.bs.js @@ -73,12 +73,12 @@ Zora.test("BigInt", (function (t) { t.test("BigInt.negate", (function (t) { var a = Random.$$int(400); var b = -a | 0; - t.equal(-BigInt(a), BigInt(b), ""); + t.equal(- BigInt(a), BigInt(b), ""); })); t.test("BigInt.(~-)", (function (t) { var a = Random.$$int(400); var b = -a | 0; - t.equal(-BigInt(a), BigInt(b), ""); + t.equal(- BigInt(a), BigInt(b), ""); })); t.test("BigInt.modulo", (function (t) { var a = Random.$$int(400); diff --git a/lib/js/test/atomic/BinaryLike.test.bs.js b/lib/js/test/atomic/BinaryLike.test.bs.js index eed2186..2375dd2 100644 --- a/lib/js/test/atomic/BinaryLike.test.bs.js +++ b/lib/js/test/atomic/BinaryLike.test.bs.js @@ -51,43 +51,43 @@ Zora.test("BinaryLike", (function (t) { t.test("BinaryLike.classify(string) should return a 'String' variant", (function (t) { var match = BinaryLike$NodeJs.classify(binaryLikeString); var tmp; - tmp = match.TAG === /* String */0 ? true : false; + tmp = match.TAG === "String" ? true : false; t.ok(tmp, ""); })); t.test("BinaryLike.classify(buffer) should return a 'Buffer' variant", (function (t) { var match = BinaryLike$NodeJs.classify(binaryLikeBuffer); var tmp; - tmp = match.TAG === /* Buffer */1 ? true : false; + tmp = match.TAG === "Buffer" ? true : false; t.ok(tmp, ""); })); t.test("BinaryLike.classify(uInt8Array) should return a 'Uint8Array' variant", (function (t) { var match = BinaryLike$NodeJs.classify(binaryLikeUint8Array); var tmp; - tmp = match.TAG === /* Uint8Array */2 ? true : false; + tmp = match.TAG === "Uint8Array" ? true : false; t.ok(tmp, ""); })); t.test("BinaryLike.classify(int8Array) should return a 'Int8Array' variant", (function (t) { var match = BinaryLike$NodeJs.classify(binaryLikeInt8Array); var tmp; - tmp = match.TAG === /* Int8Array */3 ? true : false; + tmp = match.TAG === "Int8Array" ? true : false; t.ok(tmp, ""); })); t.test("BinaryLike.classify(uInt8ClampedArray) should return a 'Uint8ClampedArray' variant", (function (t) { var match = BinaryLike$NodeJs.classify(binaryLikeUint8ClampedArray); var tmp; - tmp = match.TAG === /* Uint8ClampedArray */4 ? true : false; + tmp = match.TAG === "Uint8ClampedArray" ? true : false; t.ok(tmp, ""); })); t.test("BinaryLike.classify(uInt16Array) should return a 'Uint16Array' variant", (function (t) { var match = BinaryLike$NodeJs.classify(binaryLikeUint16Array); var tmp; - tmp = match.TAG === /* Uint16Array */5 ? true : false; + tmp = match.TAG === "Uint16Array" ? true : false; t.ok(tmp, ""); })); t.test("BinaryLike.classify(int16Array) should return a 'Int16Array' variant", (function (t) { var match = BinaryLike$NodeJs.classify(binaryLikeInt16Array); var tmp; - tmp = match.TAG === /* Int16Array */6 ? true : false; + tmp = match.TAG === "Int16Array" ? true : false; t.ok(tmp, ""); })); })); diff --git a/lib/js/test/atomic/Fs.test.bs.js b/lib/js/test/atomic/Fs.test.bs.js index c49598f..e3f13ad 100644 --- a/lib/js/test/atomic/Fs.test.bs.js +++ b/lib/js/test/atomic/Fs.test.bs.js @@ -2,38 +2,24 @@ 'use strict'; var Fs = require("fs"); -var Zora = require("@dusty-phillips/rescript-zora/lib/js/src/Zora.bs.js"); -var Zora$1 = require("zora"); +var Zora = require("zora"); var Js_string = require("rescript/lib/js/js_string.js"); -Zora$1.test("Fs", (function (t) { - t.test("readFile should read entire file", (function (t) { - return Zora.then(Zora.then(Fs.promises.open(__filename, "r"), (function (fh) { - return Zora.then(fh.readFile(), (function (buffer) { - return Zora.then(fh.close(), (function (param) { - return Zora.done(buffer); - })); - })); - })), (function (buffer) { - t.ok(buffer.indexOf("Random string: Gh2e71pdHhPxU") > 1, "buffer index was not greater than zero"); - return Zora.done(undefined); - })); +Zora.test("Fs", (async function (t) { + t.test("readFile should read entire file", (async function (t) { + var fh = await Fs.promises.open(__filename, "r"); + var buffer = await fh.readFile(); + await fh.close(); + t.ok(buffer.indexOf("Random string: Gh2e71pdHhPxU") > 1, "buffer index was not greater than zero"); })); - t.test("readFileWith should read entire file as a string", (function (t) { - return Zora.then(Zora.then(Fs.promises.open(__filename, "r"), (function (fh) { - return Zora.then(fh.readFile({ - encoding: "UTF-8" - }), (function (buffer) { - return Zora.then(fh.close(), (function (param) { - return Zora.done(buffer); - })); - })); - })), (function (content) { - t.ok(Js_string.indexOf("Random string: uCF6c5f3Arrq", content) > 0, "buffer string indexOf was not greater than zero"); - return Zora.done(undefined); - })); + t.test("readFileWith should read entire file as a string", (async function (t) { + var fh = await Fs.promises.open(__filename, "r"); + var buffer = await fh.readFile({ + encoding: "UTF-8" + }); + await fh.close(); + t.ok(Js_string.indexOf("Random string: uCF6c5f3Arrq", buffer) > 0, "buffer string indexOf was not greater than zero"); })); - return Zora.done(undefined); })); /* Not a pure module */ diff --git a/lib/js/test/atomic/Stream.test.bs.js b/lib/js/test/atomic/Stream.test.bs.js index 9987571..adcd9be 100644 --- a/lib/js/test/atomic/Stream.test.bs.js +++ b/lib/js/test/atomic/Stream.test.bs.js @@ -22,7 +22,7 @@ Zora.test("Stream.Readable", (function (t) { })); t.test("'Stream.Readable.destroyWithError' should emit 'error' event", (function (t) { var dummyError = new Error("Expected error: Stream destroyed"); - return new Promise((function (resolve, _reject) { + return new Promise((function (resolve, param) { var stream = StreamTestLib$NodeJs.makeReadableEmpty(undefined).on("error", (function (err) { t.equal(err, dummyError, ""); resolve(undefined); @@ -64,7 +64,7 @@ Zora.test("Stream.Writable", (function (t) { Curry._1(callback, undefined); }) }; - return new Promise((function (resolve, _reject) { + return new Promise((function (resolve, param) { var writeStream = new Stream.Writable(options); writeStream.write(42, (function (param) { var match = args.contents; diff --git a/package.json b/package.json index fdfeb0b..ebaeb73 100644 --- a/package.json +++ b/package.json @@ -26,10 +26,10 @@ "description": "Node bindings for ReScript", "license": "MIT", "devDependencies": { - "@dusty-phillips/rescript-zora": "^3.0.0", + "@dusty-phillips/rescript-zora": "^4.0.0", "onchange": "^7.1.0", - "pta": "^1.0.0", - "rescript": "^10.0.1", - "zora": "^5.0.0" + "pta": "^1.2.0", + "rescript": "^11.0.0-beta.3", + "zora": "^5.2.0" } } diff --git a/src/Buffer.res b/src/Buffer.res index 54818f5..58c2236 100644 --- a/src/Buffer.res +++ b/src/Buffer.res @@ -1,4 +1,4 @@ -type t = Node.buffer +type t open Js.TypedArray2 module Constants = { diff --git a/src/Exports.res b/src/Exports.res new file mode 100644 index 0000000..63c57c4 --- /dev/null +++ b/src/Exports.res @@ -0,0 +1 @@ +type t diff --git a/src/Module.res b/src/Module.res index acfa861..0c894af 100644 --- a/src/Module.res +++ b/src/Module.res @@ -1 +1,13 @@ -include Node_module +type rec t = { + id: string, + exports: Exports.t, + // in REPL V4 it is `undefined` in CLI it can be `null` + parrent: Js.Nullable.t, + filename: string, + loaded: bool, + children: array, + paths: array, +} + +@val +external module_: {"__cache": Js.Dict.t} = "module" diff --git a/test/atomic/Fs.test.res b/test/atomic/Fs.test.res index 879d01d..240a4e9 100644 --- a/test/atomic/Fs.test.res +++ b/test/atomic/Fs.test.res @@ -1,35 +1,22 @@ open Fs open Zora -zora("Fs", t => { - t->test("readFile should read entire file", t => { - open_(Global.filename, Flag.read) - ->then(fh => - FileHandle.readFile(fh)->then(buffer => FileHandle.close(fh)->then(_ => done(buffer))) - ) - ->then(buffer => { - let needle = "Random string: Gh2e71pdHhPxU" - t->ok(buffer->Buffer.indexOfString(needle) > 1, "buffer index was not greater than zero") - done() - }) +zora("Fs", async t => { + t->test("readFile should read entire file", async t => { + let fh = await open_(Global.filename, Flag.read) + let buffer = await FileHandle.readFile(fh) + let _ = await FileHandle.close(fh) + + let needle = "Random string: Gh2e71pdHhPxU" + t->ok(buffer->Buffer.indexOfString(needle) > 1, "buffer index was not greater than zero") }) - t->test("readFileWith should read entire file as a string", t => { - open_(Global.filename, Flag.read) - ->then(fh => - FileHandle.readFileWith(fh, readFileOptions(~encoding="UTF-8", ()))->then(buffer => - FileHandle.close(fh)->then(_ => done(buffer)) - ) - ) - ->then(content => { - let needle = "Random string: uCF6c5f3Arrq" + t->test("readFileWith should read entire file as a string", async t => { + let fh = await open_(Global.filename, Flag.read) + let buffer = await FileHandle.readFileWith(fh, readFileOptions(~encoding="UTF-8", ())) + let _ = await FileHandle.close(fh) + let needle = "Random string: uCF6c5f3Arrq" - t->ok( - Js.String.indexOf(needle, content) > 0, - "buffer string indexOf was not greater than zero", - ) - done() - }) + t->ok(Js.String.indexOf(needle, buffer) > 0, "buffer string indexOf was not greater than zero") }) - done() }) diff --git a/test/atomic/Stream.test.res b/test/atomic/Stream.test.res index 0bed65e..0a21f79 100644 --- a/test/atomic/Stream.test.res +++ b/test/atomic/Stream.test.res @@ -1,6 +1,6 @@ open Zora open StreamTestLib -ti + zoraBlock("Stream.Readable", t => { t->block("'Stream.Readable.make' should return a defined value", t => { let readable = makeReadableEmpty() @@ -21,15 +21,15 @@ zoraBlock("Stream.Readable", t => { t->test("'Stream.Readable.destroyWithError' should emit 'error' event", t => { open! Errors let dummyError = Error.make("Expected error: Stream destroyed")->Error.toJsExn - Promise.make( - (resolve, _reject) => { + Js.Promise2.make( + (~resolve, ~reject as _) => { let stream = StreamTestLib.makeReadableEmpty()->Stream.onError( err => { t->equal(err, dummyError, "") // oh these bindings are wonderful aren't they let a = () - resolve(. a) + resolve(a) }, ) @@ -71,8 +71,8 @@ zoraBlock("Stream.Writable", t => { (), ) - Promise.make( - (resolve, _reject) => { + Js.Promise2.make( + (~resolve, ~reject as _) => { let writeStream = Writable.makeObjMode(options) Writable.writeWith( @@ -93,7 +93,7 @@ zoraBlock("Stream.Writable", t => { // oh these bindings are wonderful aren't they let a = () - resolve(. a) + resolve(a) }, (), )->ignore diff --git a/yarn.lock b/yarn.lock index d79d8ba..20d431a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -12,14 +12,13 @@ resolved "https://registry.yarnpkg.com/@blakeembrey/template/-/template-1.0.0.tgz#bf8828bc3ae8004d97904d78f64e3cc2cd216438" integrity sha512-J6WGZqCLdRMHUkyRG6fBSIFJ0rL60/nsQNh5rQvsYZ5u0PsKw6XQcJcA3DWvd9cN3j/IQx5yB1fexhCafwwUUw== -"@dusty-phillips/rescript-zora@^3.0.0": - version "3.0.0" - resolved "https://registry.yarnpkg.com/@dusty-phillips/rescript-zora/-/rescript-zora-3.0.0.tgz#f5f2d626c7f4d6d4eb65a4c3c47e4702e7a8657a" - integrity sha512-I3KQwmPB5Ezw9nVn0QxIyoOUY95/0SHfKmBA4OlzKwmTjRE1sNiziUeEuwuldULJo6/qX5xcDkTRYb2AtcM2RQ== +"@dusty-phillips/rescript-zora@^4.0.0": + version "4.0.0" + resolved "https://registry.yarnpkg.com/@dusty-phillips/rescript-zora/-/rescript-zora-4.0.0.tgz#cf2c9c9240afa0cb74df2547f46ca5760664fd56" + integrity sha512-Gs2rlIwmgMOQe2/nAbN6VREGA2mT/H0jsyvcvrBPcCuoATfZgL5yAjm9FZp3Obh3YKvY8PqJYy7tvD67ntp8qg== dependencies: - "@ryyppy/rescript-promise" "^2.1.0" - pta "^1.0.0" - zora "^5.0.0" + pta "^1.2.0" + zora "^5.2.0" "@nodelib/fs.scandir@2.1.5": version "2.1.5" @@ -42,11 +41,6 @@ "@nodelib/fs.scandir" "2.1.5" fastq "^1.6.0" -"@ryyppy/rescript-promise@^2.1.0": - version "2.1.0" - resolved "https://registry.yarnpkg.com/@ryyppy/rescript-promise/-/rescript-promise-2.1.0.tgz#a33861274c41360cfbe872cf489f3dcb8dd526e6" - integrity sha512-+dW6msBrj2Lr2hbEMX+HoWCvN89qVjl94RwbYWJgHQuj8jm/izdPC0YzxgpGoEFdeAEW2sOozoLcYHxT6o5WXQ== - anymatch@~3.1.2: version "3.1.2" resolved "https://registry.yarnpkg.com/anymatch/-/anymatch-3.1.2.tgz#c0557c096af32f106198f4f4e2a383537e378716" @@ -60,15 +54,10 @@ arg@^4.1.3: resolved "https://registry.yarnpkg.com/arg/-/arg-4.1.3.tgz#269fc7ad5b8e42cb63c896d5666017261c144089" integrity sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA== -arg@~5.0.0: - version "5.0.1" - resolved "https://registry.yarnpkg.com/arg/-/arg-5.0.1.tgz#eb0c9a8f77786cad2af8ff2b862899842d7b6adb" - integrity sha512-e0hDa9H2Z9AwFkk2qDlwhoMYE4eToKarchkQHovNdLTCYMHZHeRjI71crOh+dio4K6u1IcwubQqo79Ga4CyAQA== - -array-union@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/array-union/-/array-union-2.1.0.tgz#b798420adbeb1de828d84acd8a2e23d3efe85e8d" - integrity sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw== +arg@~5.0.2: + version "5.0.2" + resolved "https://registry.yarnpkg.com/arg/-/arg-5.0.2.tgz#c81433cc427c92c4dcf4865142dbca6f15acd59c" + integrity sha512-PYjyFOLKQ9y57JvQ6QLo8dAgNqswh8M1RMJYdQduT6xbWSgK36P/Z/v+p888pM69jMMfS8Xd8F6I1kQ/I9HUGg== binary-extensions@^2.0.0: version "2.2.0" @@ -97,10 +86,10 @@ chokidar@^3.3.1: optionalDependencies: fsevents "~2.3.2" -colorette@~1.2.2: - version "1.2.2" - resolved "https://registry.yarnpkg.com/colorette/-/colorette-1.2.2.tgz#cbcc79d5e99caea2dbf10eb3a26fd8b3e6acfa94" - integrity sha512-MKGMzyfeuutC/ZJ1cba9NqcNpfeqMUcYmyF1ZFY6/Cn7CNSAKx6a+s48sqLqyAiZuaP2TcqMhoo+dlwFnVxT9w== +colorette@2.0.17: + version "2.0.17" + resolved "https://registry.yarnpkg.com/colorette/-/colorette-2.0.17.tgz#5dd4c0d15e2984b7433cb4a9f2ead45063b80c47" + integrity sha512-hJo+3Bkn0NCHybn9Tu35fIeoOKGOk5OCC32y4Hz2It+qlCO2Q3DeQ1hRn/tDDMQKRYUEzqsl7jbF6dYKjlE60g== cross-spawn@^7.0.1: version "7.0.3" @@ -111,10 +100,10 @@ cross-spawn@^7.0.1: shebang-command "^2.0.0" which "^2.0.1" -diff@~5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/diff/-/diff-5.0.0.tgz#7ed6ad76d859d030787ec35855f5b1daf31d852b" - integrity sha512-/VTCrvm5Z0JGty/BWHljh+BAiw3IK+2j87NGMu8Nwc/f48WoDAC395uomO9ZD117ZOBaHmkX1oyLvkVM/aIT3w== +diff@~5.1.0: + version "5.1.0" + resolved "https://registry.yarnpkg.com/diff/-/diff-5.1.0.tgz#bc52d298c5ea8df9194800224445ed43ffc87e40" + integrity sha512-D+mk+qE8VC/PAUrlAU34N+VfXev0ghe5ywmpqrawphmVZc1bEfn56uo9qpyGp1p4xpzOHkSW4ztBd6L7Xx4ACw== dir-glob@^3.0.1: version "3.0.1" @@ -123,10 +112,10 @@ dir-glob@^3.0.1: dependencies: path-type "^4.0.0" -fast-glob@^3.1.1: - version "3.2.7" - resolved "https://registry.yarnpkg.com/fast-glob/-/fast-glob-3.2.7.tgz#fd6cb7a2d7e9aa7a7846111e85a196d6b2f766a1" - integrity sha512-rYGMRwip6lUMvYD3BTScMwT1HtAs2d71SMv66Vrxs0IekGZEjhM0pcMfjQPnknBt2zeCwQMEupiN02ZP4DiT1Q== +fast-glob@^3.2.11: + version "3.3.0" + resolved "https://registry.yarnpkg.com/fast-glob/-/fast-glob-3.3.0.tgz#7c40cb491e1e2ed5664749e87bfb516dbe8727c0" + integrity sha512-ChDuvbOypPuNjO8yIDf36x7BlZX1smcUMTTcyoIjycexOxd6DFsKsg21qVBzEmr3G7fUKIRy2/psii+CIUt7FA== dependencies: "@nodelib/fs.stat" "^2.0.2" "@nodelib/fs.walk" "^1.2.3" @@ -160,23 +149,27 @@ glob-parent@^5.1.2, glob-parent@~5.1.2: dependencies: is-glob "^4.0.1" -globby@~11.0.4: - version "11.0.4" - resolved "https://registry.yarnpkg.com/globby/-/globby-11.0.4.tgz#2cbaff77c2f2a62e71e9b2813a67b97a3a3001a5" - integrity sha512-9O4MVG9ioZJ08ffbcyVYyLOJLk5JQ688pJ4eMGLpdWLHq/Wr1D9BlriLQyL0E+jbkuePVZXYFj47QM/v093wHg== +globby@~13.1.1: + version "13.1.4" + resolved "https://registry.yarnpkg.com/globby/-/globby-13.1.4.tgz#2f91c116066bcec152465ba36e5caa4a13c01317" + integrity sha512-iui/IiiW+QrJ1X1hKH5qwlMQyv34wJAYwH1vrf8b9kBA4sNiif3gKsMHa+BrdnOpEudWjpotfa7LrTzB1ERS/g== dependencies: - array-union "^2.1.0" dir-glob "^3.0.1" - fast-glob "^3.1.1" - ignore "^5.1.4" - merge2 "^1.3.0" - slash "^3.0.0" + fast-glob "^3.2.11" + ignore "^5.2.0" + merge2 "^1.4.1" + slash "^4.0.0" ignore@^5.1.4: version "5.1.8" resolved "https://registry.yarnpkg.com/ignore/-/ignore-5.1.8.tgz#f150a8b50a34289b33e22f5889abd4d8016f0e57" integrity sha512-BMpfD7PpiETpBl/A6S498BaIJ6Y/ABT93ETbby2fP00v4EbvPBXWEoaR1UBPKs3iR53pJY7EtZk5KACI57i1Uw== +ignore@^5.2.0: + version "5.2.4" + resolved "https://registry.yarnpkg.com/ignore/-/ignore-5.2.4.tgz#a291c0c6178ff1b960befe47fcdec301674a6324" + integrity sha512-MAb38BcSbH0eHNBxn7ql2NH/kX33OkB3lZ1BNdh7ENeRChHTYsTvWrMubiIAMNS2llXEEgZ1MUOBtXChP3kaFQ== + is-binary-path@~2.1.0: version "2.1.0" resolved "https://registry.yarnpkg.com/is-binary-path/-/is-binary-path-2.1.0.tgz#ea1f7f3b80f064236e83470f86c09c254fb45b09" @@ -206,7 +199,7 @@ isexe@^2.0.0: resolved "https://registry.yarnpkg.com/isexe/-/isexe-2.0.0.tgz#e8fbf374dc556ff8947a10dcb0572d633f2cfa10" integrity sha1-6PvzdNxVb/iUehDcsFctYz8s+hA= -merge2@^1.3.0: +merge2@^1.3.0, merge2@^1.4.1: version "1.4.1" resolved "https://registry.yarnpkg.com/merge2/-/merge2-1.4.1.tgz#4368892f885e907455a6fd7dc55c0c9d404990ae" integrity sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg== @@ -252,14 +245,14 @@ picomatch@^2.0.4, picomatch@^2.2.1, picomatch@^2.2.3: resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.3.0.tgz#f1f061de8f6a4bf022892e2d128234fb98302972" integrity sha512-lY1Q/PiJGC2zOv/z391WOTD+Z02bCgsFfvxoXXf6h7kv9o+WmsmzYqrAwY63sNgOxE4xEdq0WyUnXfKeBrSvYw== -pta@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/pta/-/pta-1.0.0.tgz#8d17f72afb31a40243112f5c369fc0f280cd12da" - integrity sha512-II8/5qNiBrFkEfOGDLGMWZygVIUIPk9roB321JX6YJqQta6aJXJOlqovPVCn/h/NiCwSIAhpg1BCyfJKXusQLw== +pta@^1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/pta/-/pta-1.2.0.tgz#52ce9e2140e2191ca1dbe2f7ef6d9507dd1ee31b" + integrity sha512-vk2QidTwxQgkh5yz1MbBx99w8EGOOqO0lSI5ApR4ndYEos/AJfKNBXMt7vaU4l3u6f69NLXaZkcRDH4iMx1sxw== dependencies: - arg "~5.0.0" - globby "~11.0.4" - zora-reporters "~1.0.0" + arg "~5.0.2" + globby "~13.1.1" + zora-reporters "*" queue-microtask@^1.2.2: version "1.2.3" @@ -273,10 +266,10 @@ readdirp@~3.6.0: dependencies: picomatch "^2.2.1" -rescript@^10.0.1: - version "10.0.1" - resolved "https://registry.yarnpkg.com/rescript/-/rescript-10.0.1.tgz#5b2da8a8bcfb994bed1eb24820bf10cfb9d8c440" - integrity sha512-XwO1GPDtoEU4H03xQE5bp0/qtSVR6YLaJRPxWKrfFgKc+LI36ODOCie7o9UJfgzQdoMYkkZyiTGZ4N9OQEaiUw== +rescript@^11.0.0-beta.3: + version "11.0.0-beta.3" + resolved "https://registry.yarnpkg.com/rescript/-/rescript-11.0.0-beta.3.tgz#f883a19aa8cb2ab162fd2c9f3d46d2c05cc5710b" + integrity sha512-j3YT3VdWMoHgwL4RydKJm9O/VIpN3NTI6keP18rZVJ8ansRKgkHYGLaIwoG6iVqSYYwBjb6d8l8oZ1Jz0fmTeQ== reusify@^1.0.4: version "1.0.4" @@ -302,10 +295,10 @@ shebang-regex@^3.0.0: resolved "https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-3.0.0.tgz#ae16f1644d873ecad843b0307b143362d4c42172" integrity sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A== -slash@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/slash/-/slash-3.0.0.tgz#6539be870c165adbd5240220dbe361f1bc4d4634" - integrity sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q== +slash@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/slash/-/slash-4.0.0.tgz#2422372176c4c6c5addb5e2ada885af984b396a7" + integrity sha512-3dOsAHXXUkQTpOYcoAxLIorMTp4gIQr5IW3iVb7A7lFIp0VHhnynm9izx6TssdrIcVIESAlVjtnO2K8bg+Coew== to-regex-range@^5.0.1: version "5.0.1" @@ -326,16 +319,16 @@ which@^2.0.1: dependencies: isexe "^2.0.0" -zora-reporters@~1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/zora-reporters/-/zora-reporters-1.0.0.tgz#c5c83b7dc4df8e8d28a1a19a12e4de38527c894d" - integrity sha512-r4leuN/tvUDvigrIyIBvNXxBTiG96khJzcHpNlcZoOsuI2XrkJwsONjoHPuSR7ojSpdn8U5m4950x7YVhlcmXw== +zora-reporters@*: + version "1.4.0" + resolved "https://registry.yarnpkg.com/zora-reporters/-/zora-reporters-1.4.0.tgz#dd53b27e9c3e4034c18874b50866ab254da7c255" + integrity sha512-RZy2zb/aT8YKUztELGjFWMb39LduCEB4SHoAH4w2HBWKE53V0lU385AAK2q097P7D5cdMLGJIYXpykxUdoyyig== dependencies: - arg "~5.0.0" - colorette "~1.2.2" - diff "~5.0.0" - -zora@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/zora/-/zora-5.0.0.tgz#9f4a1e635524be1d8eac87f818ddcc1a75016bd5" - integrity sha512-fA6RdNLtzcCxy4m+HsWYVBnme7Jt1Ez4OgEMo62i6LanJCHawAhZ0n57hetWO35M/057eLVFRbtq7JTBpFNybg== + arg "~5.0.2" + colorette "2.0.17" + diff "~5.1.0" + +zora@^5.2.0: + version "5.2.0" + resolved "https://registry.yarnpkg.com/zora/-/zora-5.2.0.tgz#50dac3f328b86ac9c1d7ba3a9c0666d038a046f8" + integrity sha512-FSZOvfJVfMWhk/poictNsDBCXq/Z+2Zu2peWs6d8OhWWb9nY++czw95D47hdw06L/kfjasLevwrbUtnXyWLAJw==