File tree Expand file tree Collapse file tree 3 files changed +7
-4
lines changed Expand file tree Collapse file tree 3 files changed +7
-4
lines changed Original file line number Diff line number Diff line change
1
+ ## 0.16.1
2
+
3
+ - Fix for Node.js not treating subarrays of buffers as expected
4
+
1
5
## 0.16.0
2
6
3
7
** Breaking change, databases created using earlier versions is not compatible
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @cross/kv" ,
3
- "version" : " 0.16.0 " ,
3
+ "version" : " 0.16.1 " ,
4
4
"exports" : {
5
5
"." : " ./mod.ts" ,
6
6
"./cli" : " ./src/cli/mod.ts"
Original file line number Diff line number Diff line change @@ -73,10 +73,9 @@ export async function readAtPosition(
73
73
0 ,
74
74
length ,
75
75
position ,
76
- // deno-lint-ignore no-explicit-any
77
- ) as FileReadResult < any > ;
76
+ ) as FileReadResult < Uint8Array > ;
78
77
const bytesRead = readResult . bytesRead as number ;
79
- return buffer . subarray ( 0 , bytesRead ) ;
78
+ return new Uint8Array ( buffer . buffer , 0 , bytesRead ) ;
80
79
}
81
80
}
82
81
You can’t perform that action at this time.
0 commit comments