Investigate remaining ByteBuffer dependency in the legacy serializer
Context
While integrating @beblurt/dblurt into a modern Angular 22 SSR application (blurt-blockchain-join), Node.js reports the following deprecation warning:
(node:27158) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues.
Please use Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.Using --trace-deprecation points to the remaining bytebuffer dependency used by the legacy serializer:
node_modules/bytebuffer/dist/bytebuffer-node.js
↓
@beblurt/dblurt/lib/chain/serializer.js
↓
@beblurt/dblurt/lib/helpers/tools.jsNotes
This is not caused by @beblurt/dblurt directly using Buffer(). The warning originates from the bytebuffer package itself.
Investigation
Determine whether:
- upgrading
bytebufferremoves the warning; - the dependency can be eliminated entirely;
- or the serializer should be modernized to remove the remaining dependency.
The goal is to remove the runtime deprecation warning while preserving serializer compatibility.