Skip to content

Commit

Permalink
Merge pull request #25 from PlayNetwork/v0.2.17
Browse files Browse the repository at this point in the history
V0.2.17
  • Loading branch information
brozeph committed Mar 9, 2016
2 parents 890f020 + 0572619 commit 3295fda
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
6 changes: 5 additions & 1 deletion history.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# v0.2.17 / 2016-03-07

* fix bug were not supplying `optional` search options would cause an exception

# v0.2.16 / 2016-03-07

* mondern versions of mongoose expect the skip and limit parameter to be an int.
* modern versions of mongoose expect the skip and limit parameter to be an int.
* remove ability to specify gt,gte,lt,lte and ne parameters with an optional filter

# v0.2.15 / 2016-03-04
Expand Down
5 changes: 4 additions & 1 deletion lib/filter.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,10 @@ module.exports = function(mongoose) {
}
}
}
self.or(orOptions);

if (orOptions.length > 0) {
self.or(orOptions);
}
};

var regexContains = function (val) {
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": "mongoose-middleware",
"description": "Middleware for mongoose that makes filtering, sorting, pagination and projection chainable and simple to apply",
"version": "0.2.16",
"version": "0.2.17",
"scripts": {
"test": "gulp test-all"
},
Expand Down

0 comments on commit 3295fda

Please sign in to comment.