Skip to content

0.3.0

Compare
Choose a tag to compare
@b-cho b-cho released this 03 May 07:19
· 58 commits to master since this release

[0.3.0] (2021-05-03)

Added

  • Live Client Data endpoint support under galeforce.lcd

  • Game Client endpoint information using galeforce.gc.swagger() and galeforce.gc.openAPI()

  • Support for an internal Javascript rate-limit cache using the node-cache library. (Use the javascript option in the cache section of your config.)

  • DTO interfaces for TypeScript are now public-facing and can be accessed directly via GaleforceModule.dto or 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() method

    const 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 Buffer object.

    • Previous versions returned corrupted versions of the files which were unusable.
  • Riot API keys are no longer required in the GaleforceModule() constructor, and the options parameter 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.