- BREAKING CHANGE: drop callback support #137 hasezoey
- BREAKING CHANGE: remove custom promise library support #137 hasezoey
- BREAKING CHANGE: remove long deprecated
update
,remove
functions #136 hasezoey - BREAKING CHANGE: remove collection ducktyping: first param to
mquery()
is now always the query filter #138 - feat: support MongoDB Node driver 5 #137 hasezoey
- fix: allow using
comment
withfindOneAndUpdate()
,count()
,distinct()
andhint
withfindOneAndUpdate()
Automattic/mongoose#11793
- perf: replace regexp-clone with native functionality #131 Uzlopak
- perf: remove sliced, add various microoptimizations #130 Uzlopak
- refactor: convert NodeCollection to a class #128 jimmywarting
4.0.0 / 2021-08-24
- BREAKING CHANGE: drop support for Node < 12 #123
- BREAKING CHANGE: upgrade to mongodb driver 4.x: drop support for
findAndModify()
, use nativefindOneAndUpdate/Delete
#124 - BREAKING CHANGE: rename findStream -> findCursor #124
- BREAKING CHANGE: use native ES6 promises by default, remove bluebird dependency #123
- fix(utils): make
mergeClone()
skip special properties like__proto__
#121 zpbrent
- fix(utils): make clone() only copy own properties Automattic/mongoose#9876
- fix(utils): avoid copying special properties like
__proto__
when merging and cloning. Fix CVE-2020-35149
- fix: dont re-call setOptions() when pulling base class options Automattic/mongoose#8159
- chore: upgrade deps
- feat: add $useProjection to opt in to using
projection
instead offields
re: MongoDB deprecation warnings Automattic/mongoose#6880
- chore: move eslint to devDependencies #110 jakesjews
- feat: add
readConcern()
helper #105 Fonger - feat: add
maxTimeMS()
as alias ofmaxTime()
#105 Fonger - feat: add
collation()
helper #105 Fonger
- fix: parse sort array options correctly #103 #102 Fonger
- chore: upgrade deps and add nsp
- BREAKING CHANGE: remove support for node < 4
- BREAKING CHANGE: remove support for retainKeyOrder, will always be true by default re: Automattic/mongoose#2749
- fixed; catch sync errors in cursor.toArray() re: Automattic/mongoose#5812
- fixed; bumped debug -> 2.6.9 re: #89
- fixed; bumped debug -> 2.6.7 re: #86
- added; replaceOne function
- added; deleteOne and deleteMany functions
- fixed; throw correct error when passing incorrectly formatted array to sort()
- fixed; allow passing maps to sort()
- fixed; allow passing string to hint()
- added; updateOne and updateMany functions
- added; ability to pass an array to select() #81 dciccale
- added; support for mongodb driver 2.0 streams
- added;
retainKeyOrder
option re: Automattic/mongoose#4542
- added;
.minDistance()
helper and minDistance for.near()
Automattic/mongoose#4179
- fixed; ensure conditions is an object before assigning #75
- updated; bluebird to latest 2.10.2 version #74 matskiv
- added;
.eq
as a shortcut for.equals
#72 Fonger - added; ability to use array syntax for sort re: https://jira.mongodb.org/browse/NODE-578 #67
- fixed; dont throw an error if count used with sort or select Automattic/mongoose#3914
- fixed; don't treat objects with a length property as argument objects #70
- added;
.findCursor()
method #69 nswbmw - added;
_compiledUpdate
property #68 nswbmw
- fixed; support exec cb being called synchronously #66
- fixed; do not treat $meta projection as inclusive vkarpov15
- update dependencies #65 bachp
- fixed; debug output
- fixed; allow hint usage with count #61 trueinsider
- added; setTraceFunction() #53 from jlai
- fixed; distinct assignment in toConstructor() #51 from esco
- added; stream() support for find()
- add #then for co / koa support
- start checking code coverage
- Remove broken require() calls until they're actually implemented #48 vkarpov15
- added; thunk() support
- release 0.8.0
- added; support for maxTimeMS #44 yoitsro
- updated; devDependency (driver to 1.4.4)
- fixed; pass $maxDistance in $near object as described in docs #43 vkarpov15
- fixed; cloning buffers #42 gjohnson
- tests; a little bit more
mongodb
agnostic #34 refack
- fixed; Allow $meta args in sort() so text search sorting works #37 vkarpov15
- fixed; cloning mongodb.Binary
- fixed; cloning ObjectId constructors
- fixed; cloning of ReadPreferences #30 ashtuchkin
- tests; use specific mongodb version #29 AvianFlu
- tests; remove dependency on ObjectId #28 refack
- tests; add failing ReadPref test
- added; deprecation notice to tags parameter #27 ashtuchkin
- readme; add links
- removed; mongodb driver dependency #26 ashtuchkin
- removed; first class support of read preference tags #26 (still supported though) ashtuchkin
- added; better ObjectId clone support
- fixed; cloning objects that have no constructor #21
- docs; cleaned up ashtuchkin
- updated; debug module 0.7.4 refack
- fixed; inclusive/exclusive logic
- added; selected()
- added; selectedInclusively()
- added; selectedExclusively()
- Fix Mongo DB Dependency #20 rschmukler
- added; geometry support for near()
- fixed; update retains key order #19
- less hardcoded isNode env detection #18 vshulyak
- added; validation of findAndModify varients
- clone update doc before execution
- stricter env checks
- Now support GeoJSON point values for Query#near
- internally, 'asc' and 'desc' for sorts are now converted into 1 and -1, respectively
- updated docs
- changed internal representation of
sort
to use objects instead of arrays
- updated; sliced to 0.0.5
- now using a callback in collection.find instead of directly calling toArray() on the cursor ebensing
- now exposing mongodb export to allow for better testing ebensing
- select no longer accepts arrays as parameters ebensing
- use $geoWithin by default
- added use$geoWithin flag ebensing
- fix read preferences typo ebensing
- fix reference to old param name in exists() ebensing
- fixed; $intersects -> $geoIntersects #14 ebensing
- fixed; Retain key order when copying objects #15 ebensing
- bump mongodb dev dep
- findAndModify; return the query
- move mquery.proto.canMerge to mquery.canMerge
- overwrite option now works with non-empty objects
- use strict mode
- validate count options
- validate distinct options
- add aggregate to base collection methods
- clone merge arguments
- clone merged update arguments
- move subclass to mquery.prototype.toConstructor
- fixed; maxScan casing
- use regexp-clone
- added; geometry/intersects support
- support $and
- near: do not use "radius"
- callbacks always fire on next turn of loop
- defined collection interface
- remove time from tests
- clarify goals
- updated docs;
- initial release