Skip to content

Commit

Permalink
upgrade versions
Browse files Browse the repository at this point in the history
  • Loading branch information
zth committed Jun 5, 2024
1 parent 1c9770e commit 5635831
Show file tree
Hide file tree
Showing 9 changed files with 35 additions and 42 deletions.
6 changes: 4 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
# main

- Add bindings for `Response.json()`. https://github.com/zth/rescript-bun/pull/5
- Return JSON data with `Response.makeWithJson`
- Return any data type with `Response.makeWithJsonUnsafe`
- Return JSON data with `Response.makeWithJson`
- Return any data type with `Response.makeWithJsonUnsafe`
- Upgrade to ReScript `>=11.1.0` and Core `>=1.3.0`.
- Fix issue with bigint type.

# 0.4.1

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Use [Bun](https://bun.sh) with ReScript.

**Template repo to get up and running quickly: https://github.com/zth/rescript-bun-starter**

You need to be on at least a recent RC of ReScript v11. This is designed for uncurried mode so you should use that as well (`"uncurried": true` in your bsconfig/`rescript.json`).
You need to be on ReScript v11 `>=11.1.0` and Core `>=1.3.0`. This is designed for uncurried mode so you should use that as well (`"uncurried": true` in your bsconfig/`rescript.json`).

Install `rescript-bun` and `@rescript/core`:

Expand Down
22 changes: 11 additions & 11 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@
"author": "Gabriel Nordeborn",
"license": "MIT",
"devDependencies": {
"@rescript/core": "1.0.0",
"rescript": "11.1.0-rc.2"
"@rescript/core": "1.3.0",
"rescript": "11.1.1"
},
"peerDependencies": {
"rescript": ">=11.0.0 || ^11.1.0-rc.2",
"@rescript/core": ">=1.0.0"
"rescript": ">=11.1.0",
"@rescript/core": ">=1.3.0"
}
}
2 changes: 1 addition & 1 deletion rescript.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
}
],
"package-specs": {
"module": "es6",
"module": "esmodule",
"in-source": true
},
"suffix": ".js",
Expand Down
24 changes: 12 additions & 12 deletions src/Bun.res
Original file line number Diff line number Diff line change
Expand Up @@ -1189,11 +1189,11 @@ module Hash = {

module Algorithms = {
module WyHash = {
external hashString: (string, ~seed: BigInt.t=?) => BigInt.t = "Bun.hash.wyhash"
external hashArrayBufferView: (ArrayBufferView.t, ~seed: BigInt.t=?) => BigInt.t =
external hashString: (string, ~seed: bigint=?) => bigint = "Bun.hash.wyhash"
external hashArrayBufferView: (ArrayBufferView.t, ~seed: bigint=?) => bigint =
"Bun.hash.wyhash"
external hashArrayBuffer: (ArrayBuffer.t, ~seed: BigInt.t=?) => BigInt.t = "Bun.hash.wyhash"
external hashSharedArrayBuffer: (SharedArrayBuffer.t, ~seed: BigInt.t=?) => BigInt.t =
external hashArrayBuffer: (ArrayBuffer.t, ~seed: bigint=?) => bigint = "Bun.hash.wyhash"
external hashSharedArrayBuffer: (SharedArrayBuffer.t, ~seed: bigint=?) => bigint =
"Bun.hash.wyhash"
}

Expand Down Expand Up @@ -1224,12 +1224,12 @@ module Hash = {
}

module CityHash64 = {
external hashString: (string, ~seed: BigInt.t=?) => BigInt.t = "Bun.hash.cityHash64"
external hashArrayBufferView: (ArrayBufferView.t, ~seed: BigInt.t=?) => BigInt.t =
external hashString: (string, ~seed: bigint=?) => bigint = "Bun.hash.cityHash64"
external hashArrayBufferView: (ArrayBufferView.t, ~seed: bigint=?) => bigint =
"Bun.hash.cityHash64"
external hashArrayBuffer: (ArrayBuffer.t, ~seed: BigInt.t=?) => BigInt.t =
external hashArrayBuffer: (ArrayBuffer.t, ~seed: bigint=?) => bigint =
"Bun.hash.cityHash64"
external hashSharedArrayBuffer: (SharedArrayBuffer.t, ~seed: BigInt.t=?) => BigInt.t =
external hashSharedArrayBuffer: (SharedArrayBuffer.t, ~seed: bigint=?) => bigint =
"Bun.hash.cityHash64"
}

Expand All @@ -1252,12 +1252,12 @@ module Hash = {
}

module Murmur64v2 = {
external hashString: (string, ~seed: BigInt.t=?) => BigInt.t = "Bun.hash.murmur64v2"
external hashArrayBufferView: (ArrayBufferView.t, ~seed: BigInt.t=?) => BigInt.t =
external hashString: (string, ~seed: bigint=?) => bigint = "Bun.hash.murmur64v2"
external hashArrayBufferView: (ArrayBufferView.t, ~seed: bigint=?) => bigint =
"Bun.hash.murmur64v2"
external hashArrayBuffer: (ArrayBuffer.t, ~seed: BigInt.t=?) => BigInt.t =
external hashArrayBuffer: (ArrayBuffer.t, ~seed: bigint=?) => bigint =
"Bun.hash.murmur64v2"
external hashSharedArrayBuffer: (SharedArrayBuffer.t, ~seed: BigInt.t=?) => BigInt.t =
external hashSharedArrayBuffer: (SharedArrayBuffer.t, ~seed: bigint=?) => bigint =
"Bun.hash.murmur64v2"
}
}
Expand Down
9 changes: 0 additions & 9 deletions src/Cluster.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/Process.res
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ external nextTickApply5: (t, @uncurry ('a, 'b, 'c, 'd, 'e) => unit, 'a, 'b, 'c,
"nextTick"
@send external hrtime: t => (int, int) = "hrtime"
@send @scope("hrtime")
external hrtimeBigInt: t => BigInt.t = "bigint"
external hrtimeBigInt: t => bigint = "bigint"
@get external stderr: t => Stream.Writable.t<Buffer.t> = "stderr"
@get external stdin: t => Stream.Readable.t<Buffer.t> = "stdin"
@get external stdout: t => Stream.Writable.t<Buffer.t> = "stdout"
Expand Down
2 changes: 1 addition & 1 deletion test/Shell.test.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5635831

Please sign in to comment.