- Fixes bug in .d.ts
- Fixes bug in .d.ts where all queries are assumed to be rawCursor queries (Thanks @zkldi!)
- Adjust some TypeScript definitions (Thanks @cupcakearmy!)
- Adjust some TypeScript definitions (Thanks @cupcakearmy!)
- Adjust some TypeScript definitions
- Update docs for projections (Thanks @mpatino117!)
- Update the
count
method and add a newestimate
option (Thanks @bit-cmdr!)
- Add
replace
option to update methods (Thanks @lakshmipriyamukundan!)
- Allow for
mongo+srv
uri (Thanks @s-zimm!)
- Fix
insert
deprecation warning (Thanks @RobertoMachorro!) - Default to using
useUnifiedTopology
option (Thanks @bobmoff!) collection.findOneAndUpdate
now requires an atomic operator in the update object (Thanks @mpangrazzi!)
- Update mongo to v3 (Thanks @mpangrazzi!)
- Remove
collection.geoNear
(Thanks @mpangrazzi!) collection.findOneAndUpdate
now requires an atomic operator in the update object (Thanks @mpangrazzi!)
- Change existing function declarations from properties to functions in order to be able to supply additional typescript definitions to handle a callback scenario
- Make
monk.get('collection')
a typescript template so that every methods have more specific types - Make some types more specifics (
createIndex
,drop
,dropIndex
,dropIndexes
,indexes
,remove
,stats
,update
)
- Fix typescript types for
find
(fix #224)
- Really export Manager as
default
as well
- Fix typescript types
- Export Manager as
default
as well
- Fix typo in
update
method name
- Add typescript definition (fix #204)
- return null when findOneAnd... find nothing (fix #175)
remove
now usesdeleteOne
ordeleteMany
under the hood (fix #178)- Add
mapReduce
method (fix #167) - Add
geoHaystackSearch
method - Add
geoNear
method - Add
stats
method (fix #191) - Remove monk specific options used by middleware (fix #203)
- The only option set globally is
castIds
.safe
is nottrue
by default anymore. - Return the cursor in a promise (when using the
rawCursor
on thefind
method) so that the entire API has the same return type (a promise)
- Emit event from the manager from the underlying db emits an event (fix #189)
- Fix typo on requesting middlewares
- Remove deprecated methods
- Middleware architecture! See https://automattic.github.io/monk/docs/middlewares.html for more information
- Update dev dependencies - Thanks @ratson(◕ᴥ◕)
- Add
collection.createIndex
and deprecatecollection.index
andcollection.ensureIndex
- Remove default
safe
option (fix #180)
- delete wrong options for ensureIndex (fix #174) Thanks @kos984
- Added a check to ensure no crash in
cast()`` when
_id` is undefined (fix #165) Thanks @JoelParke
- Fix
collection.count
andcollection.distinct
are ignoring options (fix #159)
- Provide option to not cache collections (fix #21)
- Add
Collection.group
(fix #63) - Add
Collection.bulkWrite
(fix #85) - Pipe
mongodb.Logger
todebug
(fix #143)
- Wait for the last 'each' (in
find
) toresume
orclose
before resolving the promise
- Fix when casting
null
- Fix when updating with
0
- Do not fail when inserting empty array
- Cast
_id
recursively (fix #3)
- Fix find cursor close when already paused
- Fix find cursor pause and resume
- remove Mongoskin dependency
- new documentation using gitbook
- add
opts
arg toCollection.count
andcollection.distinct
- deprecate
Collection.removeById
,Collection.findById
,Collection.updateById
in favor of usingremove
,findOne
andupdate
directly - deprecate
collection.id
andmanager.id
in favor ofmonk.id
monk('localhost')
can be used as a promise which resolves when the connection opens and rejects when it throws an error (fix #24, fix #10)- deprecate
Collection.findAndModify
in favor ofCollection.findOneAndDelete
andCollection.findOneAndUpdate
(fix #74) - add
Manager.create
(fix #50) - add option
rawCursor
toCollection.find
to return the raw cursor (fix #103)
- add aggregate method (#56)
- add dropIndex and dropIndexes methods (#113)
- use
util.inherits
instead of__proto__
- Add
castIds
option to disable the automatic id casting (#1, #72)
- Safer insert (#137)
complete rewrite of monk:
-
return real promises (#104)
-
update mongoskin and mongodb (#111)
-
auto binding of the methods
-
eslint
-
test coverage
-
Support $ne, $in, $nin for id casting
-
Make the sort option behave like fields
-
Collection.update
now return an object:{ n: number of matched documents, nModified: number of modified documents, nUpserted: number of upserted documents }
- upgrade; mongoskin to 1.4.13
- mongoskin: bump to 1.4.11
- Inserting an array returns an array
- Cast oids inside of $nor queries
- Cast object ids inside of $or and $and queries
- Cast object ids inside of $not queries
- Added a missing test for updateById
- Added removeById
- Use
setImmediate
on node 0.10.x
- update mongoskin to 1.4.4
- addition of
close()
method - updaet mongoskin 1.4.1
- fixed URL parsing of replsets
- freezed mpromise version
- fixed collection distinct after rebase
- reimplemented Monk.Promise with MPromise.
- fix for parameter handling in
findAndModify
- check for
uri
parameter or throw
- added
distinct
support (fixes #52) - added
Promise#then
- promise: expose
query
*: bumped mongoskin
and therefore node-mongodb-native
- collection: added cursor closing support
- promise: introduce #destroy
- test: added cursor destroy test
- promise: added opts to constructor
- util: fix field negation
- test: added test for promise options
- collection: pass options to promises
- added travis
- manager: added Manager#id and Manager#oid
- collection: introduced Collection#oid
- manager: added Manager#col
- collection: make
findAndModify
accept an oid as the query
- collection: fixed streaming when options are not supplied
- collection: added
count
- collection: avoid mongoskin warn when buffering commands
- Use any debug. [visionmedia]
- Use any mocha. [visionmedia]
- Fixed string-based field selection.
- Added package.json tags.
- Added support for update with ids (fixes #4)
- Added support for new objectids through
Collection#id
- Enhanced findAndModify default behavior for upserts.
- Fixed findAndModify.
- Bumped mongoskin
- Fixed mongoskin version
- Improved options docs section.
- Added global and collection-level options.
- Enabled safe mode by default.
- Improved error handling in tests.
- Fixed
update
callback with safe: false.
- Added tests for
findById
.
- Added
Collection
references toPromise
s. - Fixed
findAndModify
.
- Ensured insert calls back with a single object.
- Ensured
insert
resolves promise in next tick.
- Exposed
util
- Make
Collection
inherit fromEventEmitter
.
- Added
updateById
.
- Initial release.