- Fixed accept headers for non-json data
- Fixed bug in image downloads (and any url different from
api.discogs.com
)
- 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.0a
v2.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.queue
object literal has been replaced by a minimalutil.Queue
class DiscogsClient
now has two new config paramsrequestLimit
andrequestLimitInterval
- Dependency updates
- Fixed a minor bug in
DiscogsClient.authenticated()
- Fixed regression bug from version
0.6.6
involving 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
DiscogsClient
config (only the defaultv2
is supported at the moment)
- Updated
oauth-1.0a
dependency
database().image()
now requires the full image url as the first parameter due to the new Discogs image cluster- Local request throttling by
disconnect
has 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 Auth
authentication methods - Changed default OAuth signature method to
PLAINTEXT
due to problems withHMAC-SHA1
+ database search
- Fixed incorrect assumption that a Discogs order ID is numeric in
marketplace().orders()
- Fixed incorrect reference to
this
from within a callback function inDiscogsClient.about()
- The internal
oauth
object ofDiscogsClient
now only gets 3 status values:null
,request
andaccess
- Fixed a test which was failing due to changes in
0.5.0
andnpm test
now runs the tests - Added the possibility to set a custom configuration object with
DiscogsClient.setConfig()
for Browserify + CORS or Proxy use cases - Updated
README.md
to explain theapp
variable
- 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 accepts two parameters:verifier
andcallback
. The formerrequestObject
parameter is now taken from theoauth
property of theDiscogsClient
instance. For further info see the updatedREADME.md
- Fixed
this
scoping inabout()
- Switched from
http
to the newly implementedhttps
Discogs API connection for added security
- Fixed "Unexpected token u" error when trying to parse an
undefined
response 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 thedisconnect
client
- 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
Error
objects 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
DiscogsClient
constructor - Added the collection folder functions
- Added the
image
function to thedatabase
namespace
- Initial public release