1.2.0 / 2017-06-07
- Query parameter is now optional for
database.search() - Implemented different request limits for authenticated and non-authenticated clients
- Implemented new Discogs rate limiting headers. The rate limit param in a callback now looks like:
{ limit: 240, used: 1, remaining: 239 }
- Added
collection().getReleaseInstances()
- Fixed issue with
database().search()when using aPromise
- When no callback is provided, all API functions now return a native JS
Promise - Removed the non get/set method calls like
database.release(...)deprecated in release0.8.0
- Upgraded OAuth library to
oauth-1.0av2.0.0
- Added
user().getLists() - Added the new
user().list()namespace for other list functions. Currently only containsgetItems().
- Added the new release rating endpoints
- Changed a lot of function names to more consistent ones. Old function calls still work, but a deprecation notice is shown on the console and the old function names will be removed in the next major version.
- Fixed default maximum number of requests per minute
- Added
database().labelReleases()function
- The
util.queueobject literal has been replaced by a minimalutil.Queueclass DiscogsClientnow has two new config paramsrequestLimitandrequestLimitInterval
- Dependency updates
- Fixed a minor bug in
DiscogsClient.authenticated()
- Fixed regression bug from version
0.6.6involving double URL query string encoding indatabase().search()
- An empty search query in
database().search()will no longer add theq=param to the search URL
- Fixed a bug in
util.merge()
- Prevent
JSON.parse()crash when the Discogs API returns HTML instead of json (maintainance mode) - Added Discogs API version to
DiscogsClientconfig (only the defaultv2is supported at the moment)
- Updated
oauth-1.0adependency
database().image()now requires the full image url as the first parameter due to the new Discogs image cluster- Local request throttling by
disconnecthas been disabled fordatabase().image()
- Added setting output format for user, artist and label profiles through
DiscogsClient.setConfig({outputFormat: 'html'})
- OAuth authentication is no longer embedded in
DiscogsClient - Added OAuth signature method configuration option
- Added support for the new
Discogs Authauthentication methods - Changed default OAuth signature method to
PLAINTEXTdue to problems withHMAC-SHA1+ database search
- Fixed incorrect assumption that a Discogs order ID is numeric in
marketplace().orders()
- Fixed incorrect reference to
thisfrom within a callback function inDiscogsClient.about() - The internal
oauthobject ofDiscogsClientnow only gets 3 status values:null,requestandaccess
- Fixed a test which was failing due to changes in
0.5.0andnpm testnow runs the tests - Added the possibility to set a custom configuration object with
DiscogsClient.setConfig()for Browserify + CORS or Proxy use cases - Updated
README.mdto explain theappvariable
- Replaced some short circuit evaluations and improved the general readability of
client.js - Implemented a more elegant way to require OAuth authentication for the
get(),post(),put()anddelete()functions ofDiscogsClient - Breaking change:
DiscogsClient.getAccessToken()now only acceps two parameters:verifierandcallback. The formerrequestObjectparameter is now taken from theoauthproperty of theDiscogsClientinstance. For further info see the updatedREADME.md
- Fixed
thisscoping inabout() - Switched from
httpto the newly implementedhttpsDiscogs API connection for added security
- Fixed "Unexpected token u" error when trying to parse an
undefinedresponse value to JSON marketplace().fee()now accepts the price argument as both a number (int/float) and a literal string
- Use
strict - Added local authentication check for the
database().search()function
- Added
user().contributions()anduser().submissions()for the newly implemented endpoints
- Discogs has fixed the
/images/<filename>endpoint, so changeddatabase().image()accordingly
- Added
about()function to get general info about the Discogs API and thedisconnectclient
- Fixed a little bug in the calculation of free positions in the request queue
- Started adding unit tests using
wru
- Added automatic request throttle of 1 request per second queueing up to 10 requests
- Exposed the request queueing functions in
util.queue
- Fixed data encoding bug for gzipped response from
0.2.0 - First implementation of generic error handling using custom
Errorobjects containing the HTTP status code
- Implemented/fixed broken
database().image()function from0.1.1 - Added rate limiting header info to the callback params
- Added
HISTORY.md - Fixed some object reference bugs
- Compacted the
DiscogsClientconstructor - Added the collection folder functions
- Added the
imagefunction to thedatabasenamespace
- Initial public release