Skip to content

v2.3.0

Latest

Choose a tag to compare

@jjxxs jjxxs released this 29 Mar 12:36
· 5 commits to master since this release
v2.3.0

websocket-ts v2.3.0

New Features

  • UrlProviderWebsocket and WebsocketBuilder now accept a UrlProvider: a string or () => string function called on each connection attempt. Enables dynamic URL resolution for load balancing, auth token rotation, and failover. (#31)
  • WebsocketEvent as const object — Replaced the TypeScript enum with a const object and type union, allowing plain string literals like "open" alongside WebsocketEvent.open. Fully backwards compatible. (#32)

Improvements

  • npm publish with --provenance for supply chain transparency
  • CI workflows updated to latest action versions with npm caching and npm ci
  • Coverage uploads switched from coveralls package to coverallsapp/github-action
  • All devDependencies updated to latest semver-compatible versions
  • package-lock.json added for reproducible builds
  • README refreshed with new badges and improved documentation