SHARDWIRE
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, and useShardwireEvent with useShardwireConnection (discriminated status + capabilities on ready), optional ShardwireProvider / useShardwire, and useShardwireListener (object argument; stable filter fingerprint).
  • DX: Connection reconnect key now covers reconnect, requestTimeoutMs, and metrics shape (not function identity). logger changes still require remount or parent key if you need a fresh bridge instance.
  • Types: Curated type re-exports from @shardwire/react for common app-bridge types.

0.2.0

  • Breaking: engines.node >=22.0.0 (matches shardwire 2.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

  • shardwire is now a runtime dependency (^1.9.3) so npm install @shardwire/react react is enough for hook-only apps. react remains the only peer dependency.

0.1.2

  • Peer dependency: shardwire >= 1.9.2 (native WebSocket in browser app bridges; see shardwire 1.9.2 changelog).

0.1.1

  • Hooks now import shardwire/client so Vite/browser builds avoid discord.js / zlib-sync resolution errors.
  • Peer dependency: shardwire >= 1.9.1 (required for the shardwire/client export).

0.1.0

Initial public release of optional React hooks for app-side bridges.

  • useShardwireBridge, useShardwireCapabilities, and useShardwireEvent — thin hooks around connectBotBridge for dashboards and controllers.
  • Peer dependencies: react >= 18, shardwire >= 1.9.0 (neither is bundled).
  • Published from packages/react with ESM + CJS builds and TypeScript declarations.

On this page