Releases: node-steam/market-pricing
Releases · node-steam/market-pricing
N|Steam Market-Pricing v2.1.0
Features:
-
Return errors with custom codes so you can check for specific errors like so:
if ( exception.code === codes.SOME_ERROR_CODE )
more easily
Changes:
- Return
ITEM_NOT_FOUND
Error when steam returnssuccess
without values
Diff:
N|Steam Market-Pricing v2.0.1
N|Steam Market-Pricing v2.0.0
Features:
- Function overloads. Removes any
x | y
and returns more definite types because of that
Changes:
- Strict non-null checks enabled
- Types aren't imported, instead referenced
- Export source maps
- Update dependencies
Deprecations:
- Direct access to
getPrice()
andgetPrices()
removed Application
andCurrency
exports removed, use@node-steam/data
instead
Diff:
N|Steam Market-Pricing v1.3.0
Changes:
- Fix edge case where
lowest_price
could be undefined. (Discovered by @jonathontoon 👍) - Move enums to external module
- Update dependencies
Diff:
N|Steam Market-Pricing v1.2.5
Changes:
- Allow configuring the User Agent
- Allow
strictSSL
to be configured - Allow base URL and base path to be configured
- Allow GZIP compression to be configured
- Clean up HTTP request options
- Remove custom request.js typings
- DefinitelyTyped/DefinitelyTyped#18000 and DefinitelyTyped/DefinitelyTyped#17658 have been merged. Custom request typings are no longer needed.
- Add tests for accessing functions directly without a constructor / class
Diff:
N|Steam Market-Pricing v1.2.4
Changes:
- Enhancements of internal utils
- Library now throws an
Error
when failing to parse a string with monetary value
Diff:
N|Steam Market-Pricing v1.2.3
N|Steam Market-Pricing v1.2.2
Changes:
- Allow setting the
timings
option to recieve request timings
Enhancements:
- Differentiate between the requirements of the options passed
to the constructor and the options passed to the function
(it doesn't need the game id if it was set in the constructor before)
Diff:
N|Steam Market-Pricing v1.2.1
Changes:
- Don't force generating
volume
andmedian
keys since are not always provided by the API - Add all games who have items on the market to the
Application
enum
Diff:
N|Steam Market-Pricing v1.2.0
Features:
- Allow replacing options on every request when using the class with constructor
- Add option to specify a custom timeout for the request
- Add option to specify the local IP address to send from (keep in mind that the Steam API is currently only
IPv4
enabled)
Changes:
- De-duplicate network request code
- Enable GZIP compression
- Add custom user agent to requests
- Throw custom errors on network timeouts / resets
- Strengthen request rules (e.g. strict SSL)
- Replace custom
type()
function withtypeof
Miscellaneous:
- Add more tests
- Enhance JSDoc
- Update dependencies