:electric_plug: Node.js HTTP/1.1, HTTP/2.0 and WebSocket interface to the League of Legends Client APIs
Query for the LeagueClientUx/RiotClient process is now done through Get-CimInstance instead of the deprecated WMIC.
Thanks @Nerdsie (from #54)
Authentication is now possible through the RiotClient process. Available with an optional name
field in the authenticate options.
Thanks @andrewchae (from #51)
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
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.
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!
The ternary operator for inserting the body into the request was inverted so it was always undefined (lol) this has been fixed.
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.
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.InvalidPlatformError
upon calls to authenticate
LeagueClient
is a new LeagueClientUx process lifecycle listener, detecting client shutdowns and startupsfs-extra
dependencyThese 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"
.
getListeners()
method, instead, the subscriptions
property is now public.
Map
.Previously, the compiled typescript code wouldn't be pushed to npm. This has been fixed.
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.
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.InvalidPlatformError
upon calls to authenticate
.fs-extra
dependencyCredentials
interface no longer returns HTTP protocol, process pid or process name.
getListeners()
method, instead, the subscriptions
property is a public.