Releases: hkwu/wargamer
Releases · hkwu/wargamer
v0.5.0
⭐ Breaking
Added
- Additional options to configure the client's data cache.
- Accounts module for all API clients.
Changed
- The
cacheTimeToLive
client option now represents the TTL in seconds, not milliseconds. ⭐
Fixed
- Issue with
findVehicleProfile()
not returningnull
when a vehicle ID match is not found.
v0.4.0
⭐ Breaking
Added
- Encyclopedia modules for World of Tanks Blitz, World of Tanks Console, World of Warplanes and World of Warships.
findVehicleProfile()
method for World of Tanks module.
Changed
- Removed
options
parameter from module convenience methods. ⭐
Fixed
- Issue with request rejection handler not handling certain types of errors.
v0.3.1
v0.3.0
⭐ Breaking
Added
- Default
language
option for client constructor. - Client modules.
- Separate components for each client with convenience methods associated with specific endpoints.
- Caching system for requests.
- More unit tests!
Changed
- The World of Tanks Console client's factory method on the
Wargamer
class is nowWoTX()
instead ofWoTC()
in order to be consistent with the client slugs. The exportedWorldOfTanksConsole
client class remains the same. ⭐ - Changed Webpack's Babel preset setting to >2% usage. Node distribution now builds based on Node v4 compatibility only. ⭐
APIResponse#response
is nowAPIResponse#body
. ⭐- Client methods that weren't entirely asynchronous have been rewritten to be 100% asynchronous.
Removed
APIResponse#url
removed since it's not consistent with SuperAgent's response. ⭐
v0.2.1
v0.2.0
Changed
client.fetch()
is now a private method. Requests must now go throughclient.get()
orclient.post()
. TherequestMethod
option is no longer available.- Web distribution: the Wargamer object is now available as
Wargamer
orwindow.Wargamer
(the name is capitalized).
Removed
- Wiped out
.npmignore
in favour ofpackage.json
. - Web distribution removed from version control.