- Updates dependencies to resolve security issues, mostly affecting devDependencies (e.g
object-path
) - Updates tests to be more resilient to cases where the test target account hasn't completed placements for all roles yet
- Replace the unused
displayName
for accounts withname
andnameEscaped
, mirroring the top-level properties - Add
id
under theaccounts
-
Fixes a bug where if any requestOptions were set, the entire default object would be replaced instead of merged, and thus the default
baseUrl
would have to be reset -
Correctly respects
normalizeNames
forcompetitiveRank
,endorsementLevel
, etc (now correctlysnake_cased
when appropriate) -
Achievement names are no longer affected by
normalizeNames
, and alwayssnake_cased
-
Resolved configuration options are now exposed read-only under the main oversmash object under
options
const ow = oversmash({ percentsAsInts: true }) console.log(ow.options.percentsAsInts) # => true
1.5.3
- Fixes a bug where users who had not completed all placements for the season could have incorrect or invalid role rank values
1.5.2
- Normalizes name handling on all methods, making the
#
sign mandatory - Adds
nameEscaped
andnameEscapedUrl
to method return values as appropriate, with the escaped values used internally
1.5.1
- Fixes issue with some hero stat values being
null
incorrectly, due to an error in value normalization in the scraper - Reshuffled debug logging around. New
DEBUG=
values areoversmash:*
for all logs, oroversmash:scraper
,oversmash:main
, andoversmash:snapshot
respectively.
1.5.0
- Adds support for role queue ranks in
playerStats
method
{
stats: {
competitiveRank: {
support: 1234,
tank: 1234,
damage: 1234
}
}
}
- Adds
endorsementLevel
toplayerStats
- Adds
gamesWon
toplayerStats
1.4.0
- Fixes support for player portraits
- Removes region-related code
- Adds missing fields to player profile
- Fixes errors in player stats scraping
1.4.1
- Fixes inconsistent name handling in oversmash.player
Fixes .player
to work with changes to the blizzard API, specifically how it no longer
seems to support using a dash -
in place of the pound #
sign. URL-encoding the pound
sign as part of the URL appears to resolve it.