Skip to content

Releases: b-cho/galeforce

0.6.1

13 Jan 20:37
Compare
Choose a tag to compare

[0.6.1] (2023-01-13)

Added

  • Update region parameters for the League of Legends API endpoints (new servers in Southeast Asia) (#24, by xEcEz)

0.6.0

27 Dec 20:35
Compare
Choose a tag to compare

[0.6.0] (2022-12-27)

Added

  • Add support for lol-challenges-v1 under galeforce.lol.challenges
  • Add the SEA routing value for OC1 shard match-v5 requests (#22)
  • Add support for tournament-stub-v4
    • Accessible by passing in true to the action constructor
    const events = await galeforce.lol.tournament.events(true) // use tournament-stub-v4
      ...

Changed

  • [breaking] Remove galeforce.lol.platform.thirdPartyCode() (deprecated by Riot, see here)
  • [breaking] Dropped support for Node versions <14.0
  • Fixed an issue where using Redis caching would prevent API requests from properly executing (#21)

0.5.2

05 Mar 23:57
Compare
Choose a tag to compare

[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 (ASIA was merged into SEA)
  • Fix an issue where Data Dragon champion splash art methods returned loading art and vice versa
  • Update match-v5 match DTO values

0.5.1

04 Sep 22:10
Compare
Choose a tag to compare

[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()

Changed

  • Update DTOs corresponding to val-match-v1 endpoints (#6)
  • [breaking] Update the handling of the assetId parameter in galeforce.lol.ddragon.sprite.art() and galeforce.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-v4 set of endpoints

0.5.0

07 Aug 20:29
Compare
Choose a tag to compare

[0.5.0] (2021-08-07)

Changed

  • [breaking] Update galeforce.lol.match from match-v4 to match-v5
    • Remove galeforce.lol.match.tournament
    • Update required parameters for galeforce.lol.match.match, galeforce.lol.match.list, galeforce.lol.match.timeline to conform to Riot match-v5 specifications
    • Rewrite DTOs for match and timeline JSON responses
  • [breaking] Dropped support for Node versions <12.0
  • Fixed a bug preventing the library from being used in environments where fs is not available

0.5.0-dev.1

05 Aug 22:31
Compare
Choose a tag to compare
0.5.0-dev.1 Pre-release
Pre-release

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.match from match-v4 to match-v5
    • Remove galeforce.lol.match.tournament
    • Update required parameters for galeforce.lol.match.match, galeforce.lol.match.list, galeforce.lol.match.timeline to conform to Riot match-v5 specifications
    • Rewrite DTOs for match and timeline JSON responses

0.4.0

23 Jun 06:30
Compare
Choose a tag to compare

[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-concurrent and min-time options 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, and Region enums directly via GaleforceModule.*
    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.region object to better represent available API regions
    • Add an esports routing 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.lor enum, which is now used in all galeforce.lor.* endpoints
  • Update galeforce:rate-limit debugging output
  • [breaking] Move existing League of Legends Data Dragon functionality from galeforce.ddragon to galeforce.lol.ddragon

0.4.0-dev.1

12 May 21:41
Compare
Choose a tag to compare
0.4.0-dev.1 Pre-release
Pre-release

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-concurrent and min-time options 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

22 May 01:46
Compare
Choose a tag to compare
0.4.0-dev.2 Pre-release
Pre-release

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-concurrent and min-time options 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, and Region enums directly via GaleforceModule.*
    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.region object to better represent available API regions
    • Add an esports routing 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.lor enum, which is now used in all galeforce.lor.* endpoints
  • Updated galeforce:rate-limit debugging output

0.3.0

03 May 07:19
Compare
Choose a tag to compare

[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.