Skip to content

Commit

Permalink
Fix re-export of io module
Browse files Browse the repository at this point in the history
The previous (CJS module) export semantics were of a *namespace*-style
export, while the semantics introduced in c76d367 are of a single value
exported as the default value instead. This broke downstream consumers
who were using the namespace-style export, as documented at
[socketio/socket.io#4121][4121]. While the single default export should
work fine (and might be preferable!), it's a breaking change, and
appears to be an *accidental* breaking change, so this reverts to the
previous semantics.
  • Loading branch information
chriskrycho committed Oct 14, 2021
1 parent c76d367 commit 615e062
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/browser-entrypoint.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
import { io } from "./index.js";

export default io;
export * as io from "./index.js";

0 comments on commit 615e062

Please sign in to comment.