Sourced from websocket-ts's releases.
v2.3.0
websocket-ts v2.3.0
New Features
- UrlProvider —
WebsocketandWebsocketBuildernow accept aUrlProvider: a string or() => stringfunction called on each connection attempt. Enables dynamic URL resolution for load balancing, auth token rotation, and failover. (jjxxs/websocket-ts#31)- WebsocketEvent as const object — Replaced the TypeScript
enumwith aconstobject and type union, allowing plain string literals like"open"alongsideWebsocketEvent.open. Fully backwards compatible. (jjxxs/websocket-ts#32)Improvements
- npm publish with
--provenancefor supply chain transparency- CI workflows updated to latest action versions with npm caching and
npm ci- Coverage uploads switched from
coverallspackage tocoverallsapp/github-action- All devDependencies updated to latest semver-compatible versions
package-lock.jsonadded for reproducible builds- README refreshed with new badges and improved documentation
2ed2b20
Upgrade npm for OIDC trusted publishing support1abf7a0
Upgrade npm for OIDC trusted publishing supportf667fbb
Set registry via npm config instead of setup-node for trusted
publishingdd1c731
Restore registry-url for npm trusted publishing8879dc6
Remove registry-url from setup-node to fix trusted publishing92f01da
Use trusted publishing for npm, remove NPM_TOKEN secretdd3dd8c
Merge pull request #40
from jjxxs/release/websocket-ts-2-3-0cf13fb0
Update devDependencies to latest semver-compatible versionsb4a0f39
Added documentation for UrlProviderd04039d
Add UrlProvider support to accept string or function for WebSocket
URLThis version was pushed to npm by GitHub Actions, a new releaser for websocket-ts since your current version.