Replace Node.js's Buffer with native Typed Arrays on the client-side

Vite does not natively ship a Buffer polyfill and most of the
functionality that is required here, can be implemented natively (except
for the byte-wise compare, for that I had to write my own function).
This commit is contained in:
ZauberNerd
2023-07-07 15:21:20 +02:00
parent 4b91a1972b
commit ff9f3517ec
3 changed files with 37 additions and 10 deletions

View File

@@ -13,7 +13,6 @@
"@msgpack/msgpack": "^3.0.0-beta2",
"@reduxjs/toolkit": "^1.9.3",
"broadcast-channel": "^4.20.2",
"buffer": "^6.0.3",
"comlink": "^4.4.1",
"events": "^3.3.0",
"idb-keyval": "^6.2.0",