@mendeley/api
Advanced tools
Comparing version 5.0.4 to 6.0.0
@@ -194,3 +194,4 @@ 'use strict'; | ||
'Accept': MIME_TYPES.DOCUMENT | ||
} | ||
}, | ||
responseFilter: utils.paginationFilter | ||
}), | ||
@@ -197,0 +198,0 @@ |
{ | ||
"name": "@mendeley/api", | ||
"version": "5.0.4", | ||
"version": "6.0.0", | ||
"description": "Mendeley API JavaScript SDK", | ||
@@ -39,3 +39,3 @@ "directories": { | ||
"karma": "^1.1.2", | ||
"karma-chrome-launcher": "^1.0.1", | ||
"karma-chrome-launcher": "^2.0.0", | ||
"karma-coverage": "^1.1.1", | ||
@@ -48,9 +48,10 @@ "karma-firefox-launcher": "^1.0.0", | ||
"mversion": "^1.3.0", | ||
"nyc": "^7.1.0", | ||
"nyc": "^8.3.0", | ||
"pre-commit": "^1.1.3", | ||
"serial-jasmine": "^0.1.1", | ||
"simple-oauth2": "^0.7.0", | ||
"simple-oauth2": "^1.0.0", | ||
"webpack": "^1.8.5" | ||
}, | ||
"dependencies": { | ||
"axios": "^0.13.1", | ||
"axios": "^0.14.0", | ||
"bluebird": "^3.4.0", | ||
@@ -69,3 +70,7 @@ "form-urlencoded": "^1.4.1", | ||
] | ||
} | ||
}, | ||
"pre-commit": [ | ||
"lint", | ||
"test" | ||
] | ||
} |
@@ -158,1 +158,19 @@ # UPGRADING | ||
``` | ||
## Upgrading to v6.x | ||
1. Pagination has been added to the `document.search` method. Now, the result looks like what calls to `list` methods would return. | ||
```javascript | ||
api.documents.search(searchParams) | ||
.then(function (firstResultPage) { | ||
console.info('I have ' + firstResultPage.total + 'search result items in total'); | ||
console.info('The items on the first page are ' + firstResultPage.items); | ||
return firstResultPage.next(); | ||
}) | ||
.then(function (secondResultPage) { | ||
console.info('Now I am on the next page') | ||
}); | ||
``` |
1493086
14798
21
+ Addedaxios@0.14.0(transitive)
- Removedaxios@0.13.1(transitive)
Updatedaxios@^0.14.0