0.3.0 / 2017-07-25
- Fix getArrayPages when limit is more than no of pages (#38)
- Drop support for NodeJS 0.10.0 and 0.12.0. Minimum requirement now is NodeJS v4.
- Updates to documentation
0.2.2 / 2016-09-29
Fix bugs related to limit parameters (#24):
- when negative limit is given the calculation of the offset/skip was happening before changing the limit to zero
- there was no default for unparsable limit parameters - add zero as default.
0.2.1 / 2016-07-14
Fix limit
option for getArrayPages()
method (#23).
0.2.0 / 2016-04-06
We now allow you to pass ?limit=0
to get infinite (all) results. This may impose security or performance issues for your application, so we suggest you to write a quick middleware fix such as the one below, or use rate limiting middleware to prevent abuse.
app.all(function(req, res, next) {
// set default or minimum is 10 (as it was prior to v0.2.0)
if (req.query.limit <= 10) req.query.limit = 10;
next();
});