League Connect Versions Save

:electric_plug: Node.js HTTP/1.1, HTTP/2.0 and WebSocket interface to the League of Legends Client APIs

5.3.1

2 years ago

Query for the LeagueClientUx/RiotClient process is now done through Get-CimInstance instead of the deprecated WMIC.

Thanks @Nerdsie (from #54)

5.3.0

2 years ago

Authentication is now possible through the RiotClient process. Available with an optional name field in the authenticate options.

Thanks @andrewchae (from #51)

5.2.0

3 years ago

The league-connect authentication workflow will now use the official self-signed certificate provided by Riot. The certificates can be controlled through various options as outlined in the documentation.

Thanks to @themaxdavitt for this feature in #44

5.1.0

3 years ago

The package didn't re-export the type definitions from its dependencies which meant that TypeScript users had to install @types/ws and @types/node-fetch themselves.

5.0.2

3 years ago

After detecting a client re-connect we didn't queue the listener again which meant the listener would stop working.

Thanks to @zhaoyeming for finding this bug!

5.0.1

3 years ago

The ternary operator for inserting the body into the request was inverted so it was always undefined (lol) this has been fixed.

5.0.0

3 years ago

This is the finished release for 5.0.0. It features authentication polling, typed json requests and a brand new League Client lifecycle listener.

Documentation for the new release has been published. The GitHub Wiki has been removed because the documentation is no longer hosted there.

Added

  • request<T> will now properly return a Response<T> whose .json() method will return a T (typescript)
  • authenticate now has options to awaitConnection, searching until a LeagueClientUx process has been found.
  • Running the library on a platform the game doesn't support will now throw an InvalidPlatformError upon calls to authenticate
  • LeagueClient is a new LeagueClientUx process lifecycle listener, detecting client shutdowns and startups

Fixes

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

Breaking Changes

These changes are not major, but it will end up breaking edge case usage.

  • Credentials, the type returned from authenticate no longer returns the HTTP protocol used or the process name. These can always be assumed to be "https" and "LeagueClientUx".
  • LeagueWebSocket no longer has a getListeners() method, instead, the subscriptions property is now public.
    • The property is no longer an object, the implementation now uses a Map.

5.0.0-beta3

3 years ago

This pre-release adds a LeagueClient class which listens for LeagueClientUx processes.

Added

  • LeagueClient implementation for listening for client shutdown/startup
  • authenticate will now return the PID of the LeagueClientUx process

5.0.0-beta2

3 years ago

Previously, the compiled typescript code wouldn't be pushed to npm. This has been fixed.

v5.0.0-beta1

3 years ago

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