Skip to content

Releases: junlarsen/league-connect

Query Windows machines with Get-CimInstance

22 Nov 20:00
Compare
Choose a tag to compare

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

Thanks @Nerdsie (from #54)

Ability to authenticate with RiotClientUx

03 Aug 23:19
Compare
Choose a tag to compare

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

Thanks @andrewchae (from #51)

Use self-signed certificate

10 Mar 21:06
Compare
Choose a tag to compare

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

Re-export type definitions from ws and node-fetch

14 Feb 15:11
Compare
Choose a tag to compare

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.

Fix client failing to detect multiple client disconnections

14 Jan 12:00
Compare
Choose a tag to compare

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!

Fix body not sending for PUT/POST/PATCH requests

05 Dec 00:07
Compare
Choose a tag to compare

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

Authentication Polling, Typed Requests and Client Lifecycle listener

21 Nov 02:16
Compare
Choose a tag to compare

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.

Add Client shutdown/startup listener

17 Nov 14:16
Compare
Choose a tag to compare
Pre-release

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

Publish compiled code

17 Nov 11:31
Compare
Choose a tag to compare
Publish compiled code Pre-release
Pre-release

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

Fix type declarations

06 Aug 18:22
Compare
Choose a tag to compare

This release makes some internal code quality improvements as well as adding basic unit tests.