Releases: b-cho/galeforce
0.6.1
0.6.0
[0.6.0] (2022-12-27)
Added
- Add support for
lol-challenges-v1undergaleforce.lol.challenges - Add the SEA routing value for OC1 shard
match-v5requests (#22) - Add support for
tournament-stub-v4- Accessible by passing in
trueto the action constructor
const events = await galeforce.lol.tournament.events(true) // use tournament-stub-v4 ...
- Accessible by passing in
Changed
0.5.2
[0.5.2] (2022-03-05)
Changed
- Fix the query parameters in the type definitions for
galeforce.lol.match.list().query() - [breaking] Update region parameters for the Legends of Runeterra API endpoints (
ASIAwas merged intoSEA) - Fix an issue where Data Dragon champion splash art methods returned loading art and vice versa
- Update
match-v5match DTO values
0.5.1
[0.5.1] (2021-09-04)
Added
- Add additional methods under
galeforce.lol.ddragon- Retrieve assets from an arbitrary path using
galeforce.lol.ddragon.asset() - Fetch Runes Reforged data and image assets with
galeforce.lol.ddragon.rune(#12) - Get champion tile image assets with
galeforce.lol.ddragon.champion.art.tile()
- Retrieve assets from an arbitrary path using
Changed
- Update DTOs corresponding to
val-match-v1endpoints (#6) - [breaking] Update the handling of the
assetIdparameter ingaleforce.lol.ddragon.sprite.art()andgaleforce.lol.ddragon.minimap.art().sprite.art().assetId()now requires the type of sprite to be specified (see the filenames in the Data Dragon compressed tarball for more information).sprite.map().assetId()now requires the word map to be included (for example,→.assetId(11).assetId('map11'))
- Fixed the valid region input types for the
tournament-v4set of endpoints
0.5.0
[0.5.0] (2021-08-07)
Changed
- [breaking] Update
galeforce.lol.matchfromtomatch-v4match-v5- Remove
galeforce.lol.match.tournament - Update required parameters for
galeforce.lol.match.match,galeforce.lol.match.list,galeforce.lol.match.timelineto conform to Riotmatch-v5specifications - Rewrite DTOs for match and timeline JSON responses
- Remove
- [breaking] Dropped support for Node versions <12.0
- Fixed a bug preventing the library from being used in environments where
fsis not available
0.5.0-dev.1
This is a development build. Stability is not guaranteed, and new features may change at any time.
0.5.0-dev.1
Changed
- [breaking] Update the
galeforce.lol.matchfromtomatch-v4match-v5- Remove
galeforce.lol.match.tournament - Update required parameters for
galeforce.lol.match.match,galeforce.lol.match.list,galeforce.lol.match.timelineto conform to Riotmatch-v5specifications - Rewrite DTOs for match and timeline JSON responses
- Remove
0.4.0
[0.4.0] (2021-06-22)
Added
- Add significant rate limiting functionality using the bottleneck library
- Support for a user-specified number of retry attempts after receiving HTTP 429 errors
- Automatic rate limiting with retry timing automatically determined based on response headers
- New
max-concurrentandmin-timeoptions for Riot API requests
- Setting multiple Action properties simultaneously from an object using
.set()const summonerData = await galeforce.lol.summoner().set({ region: galeforce.region.lol.NORTH_AMERICA, summonerName: 'name' }).exec();
- Expose the
Division,Tier,Game,Queue, andRegionenums directly viaGaleforceModule.*import GaleforceModule, { Region } from 'galeforce'; console.log(Region.lol.NORTH_AMERICA) // na1
- Legends of Runeterra Data Dragon support under
galeforce.lor.ddragon
Changed
- [breaking] Update the structure of the config object passed into the
GaleforceModule()constructor-
Now merges the provided configuration object with a default object
{ 'riot-api': { key: undefined, }, 'rate-limit': { type: 'bottleneck', cache: { type: 'internal', 'key-id': 'galeforce', uri: undefined, }, options: { intervals: {}, 'max-concurrent': null, 'min-time': 0, 'retry-count-after-429': 3, }, }, debug: [], }
-
- [breaking] Rename enums to have singular names
→galeforce.regionsgaleforce.region→galeforce.queuesgaleforce.queue→galeforce.tiersgaleforce.tier→galeforce.divisionsgaleforce.division→galeforce.gamesgaleforce.game
- Update the
galeforce.regionobject to better represent available API regions- Add an
esportsrouting value to associated Riot and Valorant region objects (check Riot documentation for endpoints where this is valid) - [breaking] Split off Legends of Runeterra request regions into their own
galeforce.region.lorenum, which is now used in allgaleforce.lor.*endpoints
- Add an
- Update
galeforce:rate-limitdebugging output - [breaking] Move existing League of Legends Data Dragon functionality from
galeforce.ddragontogaleforce.lol.ddragon
0.4.0-dev.1
This is a development build. Stability is not guaranteed, and new features may change at any time.
0.4.0-dev.1
Added
- Add significant rate limiting functionality using the bottleneck library
- Support for a user-specified number of retry attempts after receiving HTTP 429 errors
- Automatic rate limiting with retry timing automatically determined based on response headers
- New
max-concurrentandmin-timeoptions for Riot API requests
- Setting multiple Action properties simultaneously from an object using
.set()const summonerData = await galeforce.lol.summoner().set({ region: galeforce.regions.lol.NORTH_AMERICA, summonerName: 'name' }).exec();
Changed
- [breaking] Update the structure of the config object passed into the
GaleforceModule()constructor-
Now merges the provided configuration object with a default object
{ 'riot-api': { key: '', }, 'rate-limit': { type: 'bottleneck', cache: { type: 'internal', 'key-id': 'galeforce', uri: undefined, }, options: { intervals: {}, 'max-concurrent': null, 'min-time': 0, 'retry-count-after-429': 3, }, }, debug: [], }
-
- Updated galeforce:rate-limit debugging output
0.4.0-dev.2
This is a development build. Stability is not guaranteed, and new features may change at any time.
0.4.0-dev.2
Added
- Add significant rate limiting functionality using the bottleneck library
- Support for a user-specified number of retry attempts after receiving HTTP 429 errors
- Automatic rate limiting with retry timing automatically determined based on response headers
- New
max-concurrentandmin-timeoptions for Riot API requests
- Setting multiple Action properties simultaneously from an object using
.set()const summonerData = await galeforce.lol.summoner().set({ region: galeforce.region.lol.NORTH_AMERICA, summonerName: 'name' }).exec();
- Expose the
Division,Tier,Game,Queue, andRegionenums directly viaGaleforceModule.*import GaleforceModule, { Region } from 'galeforce'; console.log(Region.lol.NORTH_AMERICA) // na1
Changed
- [breaking] Update the structure of the config object passed into the
GaleforceModule()constructor-
Now merges the provided configuration object with a default object
{ 'riot-api': { key: undefined, }, 'rate-limit': { type: 'bottleneck', cache: { type: 'internal', 'key-id': 'galeforce', uri: undefined, }, options: { intervals: {}, 'max-concurrent': null, 'min-time': 0, 'retry-count-after-429': 3, }, }, debug: [], }
-
- [breaking] Rename enums to have singular names
→galeforce.regionsgaleforce.region→galeforce.queuesgaleforce.queue→galeforce.tiersgaleforce.tier→galeforce.divisionsgaleforce.division→galeforce.gamesgaleforce.game
- Update the
galeforce.regionobject to better represent available API regions- Add an
esportsrouting value to associated Riot and Valorant region objects (check Riot documentation for endpoints where this is valid) - [breaking] Split off Legends of Runeterra request regions into their own
galeforce.region.lorenum, which is now used in allgaleforce.lor.*endpoints
- Add an
- Updated
galeforce:rate-limitdebugging output
0.3.0
[0.3.0] (2021-05-03)
Added
-
Live Client Data endpoint support under
galeforce.lcd -
Game Client endpoint information using
galeforce.gc.swagger()andgaleforce.gc.openAPI() -
Support for an internal Javascript rate-limit cache using the node-cache library. (Use the javascript option in the
cachesection of your config.) -
DTO interfaces for TypeScript are now public-facing and can be accessed directly via
GaleforceModule.dtoor as another export:import GaleforceModule from 'galeforce'; const summonerData: GaleforceModule.dto.SummonerDTO = ... // get summoner data
import GaleforceModule, { dto } from 'galeforce'; const summonerData: dto.SummonerDTO = ... // get summoner data
-
Direct access to action URLs using the
.URL()methodconst summonerURL = galeforce.lol.summoner().region(galeforce.regions.lol.NORTH_AMERICA).name('name').URL(); // https://na1.api.riotgames.com/lol/summoner/v4/summoners/by-name/name
Changed
-
[breaking] Change the output of Data Dragon image and tarfile actions to a
Bufferobject.- Previous versions returned corrupted versions of the files which were unusable.
-
Riot API keys are no longer required in the
GaleforceModule()constructor, and theoptionsparameter is now optional.import GaleforceModule from 'galeforce'; const galeforce = new GaleforceModule(); // now OK, but requests requiring an API key will return a 401 Unauthorized error.