Skip to content

Authentication Polling and Typed Requests

Pre-release
Pre-release
Compare
Choose a tag to compare
@junlarsen junlarsen released this 16 Nov 10:26
· 67 commits to master since this release

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