Skip to content

Commit e1f426f

Browse files
committed
chore: update rescript and deprecate Buffer.slice methods
- Upgrade rescript to v11.1.0 - Add rescript.json configuration file - Mark Buffer.slice methods as deprecated in favor of subarray methods - Update Cluster module classification logic
1 parent 4ac6926 commit e1f426f

File tree

5 files changed

+10
-17
lines changed

5 files changed

+10
-17
lines changed

lib/js/src/Cluster.bs.js

Lines changed: 0 additions & 9 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
@@ -19,7 +19,7 @@
1919
"changie": "^1.18.0",
2020
"onchange": "^7.1.0",
2121
"pta": "^1.2.0",
22-
"rescript": "^11.0.1",
22+
"rescript": "^11.1.0",
2323
"zora": "^5.2.0"
2424
},
2525
"files": [
File renamed without changes.

src/Buffer.res

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,8 +284,10 @@ external readBigUint64BE: (t, ~offset: int) => bigint = "readBigUInt64BE"
284284
@send
285285
external readBigUint64LE: (t, ~offset: int) => bigint = "readBigUInt64LE"
286286

287-
@send external slice: (t, ~start: int, ~end_: int) => t = "slice"
288-
@send external sliceToEnd: (t, ~start: int) => t = "slice"
287+
@deprecated("Use `subarray` instead") @send
288+
external slice: (t, ~start: int, ~end_: int) => t = "slice"
289+
@deprecated("Use `subarrayToEnd` instead") @send
290+
external sliceToEnd: (t, ~start: int) => t = "slice"
289291

290292
@send external subarray: (t, ~start: int, ~end_: int) => t = "subarray"
291293
@send external subarrayToEnd: (t, ~start: int) => t = "subarray"

yarn.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -971,19 +971,19 @@ __metadata:
971971
changie: "npm:^1.18.0"
972972
onchange: "npm:^7.1.0"
973973
pta: "npm:^1.2.0"
974-
rescript: "npm:^11.0.1"
974+
rescript: "npm:^11.1.0"
975975
zora: "npm:^5.2.0"
976976
languageName: unknown
977977
linkType: soft
978978

979-
"rescript@npm:^11.0.1":
980-
version: 11.0.1
981-
resolution: "rescript@npm:11.0.1"
979+
"rescript@npm:^11.1.0":
980+
version: 11.1.4
981+
resolution: "rescript@npm:11.1.4"
982982
bin:
983983
bsc: bsc
984984
bstracing: lib/bstracing
985985
rescript: rescript
986-
checksum: a37dc757a14c57a15fe75a12df52f3d564cc6ef5cacc8356fe70a7d4ab9692736c0fbb56456dff090d8b5b18935a09aed066c623e6764f4c76bed61187e611b7
986+
checksum: 7f12186a84209f586457a60e65755fcdfbcbb503ac805c60ab5132ce4c927bc264c3b851419ed5498ba7dc4066723377bb7453f893f482a0ccd424986d02beba
987987
languageName: node
988988
linkType: hard
989989

0 commit comments

Comments
 (0)