Changelog
@shardwire/react
Release history for the @shardwire/react npm package.
This page lists releases for @shardwire/react. It versions independently from shardwire; check dependencies / peerDependencies in package.json on each release for the shardwire range and react peer.
npm: @shardwire/react · Core library history: shardwire.
0.3.0
- Breaking: Replaced
useShardwireBridge,useShardwireCapabilities, anduseShardwireEventwithuseShardwireConnection(discriminated status + capabilities onready), optionalShardwireProvider/useShardwire, anduseShardwireListener(object argument; stable filter fingerprint). - DX: Connection reconnect key now covers
reconnect,requestTimeoutMs, andmetricsshape (not function identity).loggerchanges still require remount or parentkeyif you need a fresh bridge instance. - Types: Curated type re-exports from
@shardwire/reactfor common app-bridge types.
0.2.0
- Breaking:
engines.node>=22.0.0(matchesshardwire2.x). - Dependency:
shardwire^2.0.0(see shardwire 2.0.0 changelog).
0.1.4
- Dependency:
shardwire^1.9.3(browser-safe request IDs; see shardwire 1.9.3 changelog).
0.1.3
shardwireis now a runtimedependency(^1.9.3) sonpm install @shardwire/react reactis enough for hook-only apps.reactremains the only peer dependency.
0.1.2
- Peer dependency:
shardwire>= 1.9.2(nativeWebSocketin browser app bridges; see shardwire 1.9.2 changelog).
0.1.1
- Hooks now import
shardwire/clientso Vite/browser builds avoiddiscord.js/zlib-syncresolution errors. - Peer dependency:
shardwire>= 1.9.1(required for theshardwire/clientexport).
0.1.0
Initial public release of optional React hooks for app-side bridges.
useShardwireBridge,useShardwireCapabilities, anduseShardwireEvent— thin hooks aroundconnectBotBridgefor dashboards and controllers.- Peer dependencies:
react>= 18,shardwire>= 1.9.0(neither is bundled). - Published from
packages/reactwith ESM + CJS builds and TypeScript declarations.