Skip to content

Releases: junlarsen/league-connect

Initial Release

15 Jun 22:47
Compare
Choose a tag to compare

The initial release of the connector. Accidentally pushed wrong readmes to NPM which is why there's a version jump.

Authentication Polling and Typed Requests

16 Nov 10:26
Compare
Choose a tag to compare

This is a pre-release for 5.x.x which features properly typed http requests for TypeScript and an option for polling the authentication function until a LeagueClientUx process has been found.

Added

  • request<T> will now properly return a Response<T> whose .json() method will return a T.
  • authenticate now has options to awaitConnection, searching until a LeagueClientUx has been found.
  • Running the library in an environment which the LeagueClient cannot run on will now throw a InvalidPlatformError upon calls to authenticate.

Fixes

  • Fixed a bug where LeagueWebSocket's subscriptions would attach twice upon registration
  • Removed unnecessary fs-extra dependency

Breaking Changes

WebSocket rewrite + improvements

18 Jan 18:20
Compare
Choose a tag to compare

Rewrites and improves the entire WebSocket connection.

Breaking Changes

  • connect() renamed to auth()
  • getWebSocket renamed to connect()
  • sendRequest renamed to request

New Features

  • Subscription to events via custom WebSocket
  • LeagueWebSocket.subscribe
  • LeagueWebSocket.unsubscribe

1.1.0 - Translate to TypeScript

14 Nov 20:49
Compare
Choose a tag to compare

Rewritten entire library in typescript