Skip to content

Commit 9948221

Browse files
committed
chore(deps): upgrade rescript to v11.1.1
feat(buffer): deprecate slice methods in favor of subarray - Mark `slice` and `sliceToEnd` as deprecated - Recommend using `subarray` and `subarrayToEnd` instead
1 parent de1c6b8 commit 9948221

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

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.1",
2323
"zora": "^5.2.0"
2424
},
2525
"files": [

src/Buffer.res

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

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

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

0 commit comments

Comments
 (0)