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
cacheTimeToLiveclient option now represents the TTL in seconds, not milliseconds. ⭐
Fixed
- Issue with
findVehicleProfile()not returningnullwhen 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
optionsparameter 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
languageoption 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
Wargamerclass is nowWoTX()instead ofWoTC()in order to be consistent with the client slugs. The exportedWorldOfTanksConsoleclient class remains the same. ⭐ - Changed Webpack's Babel preset setting to >2% usage. Node distribution now builds based on Node v4 compatibility only. ⭐
APIResponse#responseis nowAPIResponse#body. ⭐- Client methods that weren't entirely asynchronous have been rewritten to be 100% asynchronous.
Removed
APIResponse#urlremoved 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(). TherequestMethodoption is no longer available.- Web distribution: the Wargamer object is now available as
Wargamerorwindow.Wargamer(the name is capitalized).
Removed
- Wiped out
.npmignorein favour ofpackage.json. - Web distribution removed from version control.