From ca9e994815aa2e31e0342e37ccdc2e9e8c5fd13c Mon Sep 17 00:00:00 2001 From: Damien Arrachequesne Date: Tue, 22 Oct 2024 11:41:08 +0200 Subject: [PATCH] fix(sio-client): do not mangle the "_placeholder" attribute The "_placeholder" attribute is used when sending binary data, and was incorrectly mangled (converted to a random short property, like "it", to reduce the bundle size). This bug was introduced in [1], included in `socket.io-client@4.8.0`. [1]: https://github.com/socketio/socket.io/commit/7085f0e3e46cd1fd41d952450b8d01b04de83daf Related: https://github.com/socketio/socket.io/issues/5215 --- packages/socket.io-client/support/rollup.config.umd.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/socket.io-client/support/rollup.config.umd.js b/packages/socket.io-client/support/rollup.config.umd.js index 0d83056d77..44de2008f5 100644 --- a/packages/socket.io-client/support/rollup.config.umd.js +++ b/packages/socket.io-client/support/rollup.config.umd.js @@ -52,6 +52,7 @@ const prodBundle = { mangle: { properties: { regex: /^_/, + reserved: ["_placeholder"], }, }, }),