Skip to content

Commit

Permalink
1.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
bartve committed Nov 10, 2016
1 parent 27b5fde commit e64ffd2
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
4 changes: 4 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
1.0.2 / 2016-11-10
==================
* Added `collection().getReleaseInstances()`

1.0.1 / 2016-11-03
==================
* Fixed issue with `database().search()` when using a `Promise`
Expand Down
12 changes: 12 additions & 0 deletions lib/collection.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,18 @@ module.exports = function(client){
}
};

/**
* Get the instances of a release in a user's collection
* @param {string} user - The user name
* @param {(number|string)} release - The release ID
* @param {function} [callback] - The callback
* @returns {DiscogsClient|Promise}
*/

collection.getReleaseInstances = function(user, release, callback){
return client.get('/users/'+util.escape(user)+'/collection/releases/'+release, callback);
};

/**
* Add a release instance to the (optionally) given collection folder
* @param {string} user - The user name
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "disconnect",
"description": "A full featured Discogs API v2.0 client library",
"version": "1.0.1",
"version": "1.0.2",
"keywords": ["discogs", "api", "client", "oauth"],
"homepage": "https://github.com/bartve/disconnect",
"bugs": "https://github.com/bartve/disconnect/issues",
Expand Down

0 comments on commit e64ffd2

Please sign in to comment.