diff options
author | 2023-01-29 22:33:37 -0800 | |
---|---|---|
committer | 2023-01-29 22:33:37 -0800 | |
commit | 703bee976b9961a3cccc96c371c833546f3505d9 (patch) | |
tree | ce531762755f626837c593310e4264be1b1f9325 /test/bun.js/socket/node-net.test.ts | |
parent | eb5105aa09767da7d015299f956ed0fdfdffb386 (diff) | |
download | bun-703bee976b9961a3cccc96c371c833546f3505d9.tar.gz bun-703bee976b9961a3cccc96c371c833546f3505d9.tar.zst bun-703bee976b9961a3cccc96c371c833546f3505d9.zip |
[breaking] Add `binaryType` option to Bun.connect & Bun.listen
This is a breaking change because the default is `Buffer`, but previously the default was `Uint8Array`. While `Buffer` is a subclass of `Uint8Array`, it still technically is a breaking change because `slice` in `Uint8Array` is not semantically identical to `slice` in `Buffer`
cc @colinhacks, the .d.ts changes I made here aren't great.
Diffstat (limited to 'test/bun.js/socket/node-net.test.ts')
0 files changed, 0 insertions, 0 deletions