aboutsummaryrefslogtreecommitdiff
path: root/src/bun.js/builtins/cpp/BundlerPluginBuiltins.cpp
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2023-05-22 11:46:28 -0700
committerGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2023-05-22 11:46:39 -0700
commita5acf7bfa0333fc5cb298df2b3ea09eaa56075ac (patch)
tree94277814b5229d03f10a1e2dd7d2541265482b58 /src/bun.js/builtins/cpp/BundlerPluginBuiltins.cpp
parent3de350b24dbae7512b5afd71c1e566137390bf08 (diff)
downloadbun-a5acf7bfa0333fc5cb298df2b3ea09eaa56075ac.tar.gz
bun-a5acf7bfa0333fc5cb298df2b3ea09eaa56075ac.tar.zst
bun-a5acf7bfa0333fc5cb298df2b3ea09eaa56075ac.zip
[ServerWebSocket] `binaryType` now defaults to `"nodebuffer"`
Previously, this defaulted to "uint8array", so this shouldn't be a breaking change unless you make use of `.slice()` in which case it will now be a reference to the same ArrayBuffer rather than a clone. The rationale for this change is most usages of Uint8Array on the server need a little more than just the bytes. Many npm packages expect Buffer rather than Uint8Array. Directly returning it for binary websocket messages is faster than creating another one.
Diffstat (limited to 'src/bun.js/builtins/cpp/BundlerPluginBuiltins.cpp')
0 files changed, 0 insertions, 0 deletions