Releases: junlarsen/league-connect
Query Windows machines with Get-CimInstance
Ability to authenticate with RiotClientUx
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
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
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
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
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
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 aResponse<T>
whose .json() method will return aT
(typescript)authenticate
now has options toawaitConnection
, 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 toauthenticate
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 fromauthenticate
no longer returns the HTTP protocol used or the process name. These can always be assumed to be"https"
and"LeagueClientUx"
.- This is because the new implementation uses the process command line arguments to retrieve password/port instead of the lockfile process. (see https://www.hextechdocs.dev/lol/lcuapi/6.getting-started-with-the-lcu-api#getting-the-port-number-and-the-password)
- LeagueWebSocket no longer has a
getListeners()
method, instead, thesubscriptions
property is now public.- The property is no longer an object, the implementation now uses a
Map
.
- The property is no longer an object, the implementation now uses a
Add Client shutdown/startup listener
This pre-release adds a LeagueClient class which listens for LeagueClientUx processes.
Added
LeagueClient
implementation for listening for client shutdown/startupauthenticate
will now return the PID of the LeagueClientUx process
Publish compiled code
Previously, the compiled typescript code wouldn't be pushed to npm. This has been fixed.
Fix type declarations
This release makes some internal code quality improvements as well as adding basic unit tests.