- updated; mquery to 0.7.0
- updated; node-mongodb-native to 1.4.3
- fixed; $near failing against MongoDB 2.6
- fixed; relying on .options() to determine if collection exists
- fixed; $out aggregate helper
- fixed; all test failures against MongoDB 2.6.1, with caveat #2065
- fixed; saving Buffers #1914
- updated; expose connection states for user-land #1926 yorkie
- updated; mquery to 0.5.3
- updated; added get / set to reserved path list #1903 tstrimple
- docs; README code highlighting, syntax fixes #1930 IonicaBizau
- docs; fixes link in the doc at #1925 kapeels
- docs; add a missed word 'hook' for the description of the post-hook api #1924 ipoval
- fixed; sending safe/read options in Query#exec #1895
- fixed; findOneAnd..() with sort #1887
- fixed; setting readPreferences #1895
- fixed; ssl setting when using URI #1882
- fixed; findByIdAndUpdate now respects the overwrite option #1809 owenallenaz
- updated; mongodb driver to 1.3.23
- updated; mquery to 0.4.1
- updated; mpromise to 0.4.3
- fixed; discriminators now work when selecting fields #1820 daemon1981
- fixed; geoSearch with no results timeout #1846 ghartnett
- fixed; infitite recursion in ValidationError #1834 chetverikov
- fixed; setting empty array with model.update #1838
- docs; fix url
- fixed; enum validation of multiple values #1778 heroicyang
- fixed; global var leak #1803
- fixed; post remove now fires on subdocs #1810
- fixed; no longer set default empty array for geospatial-indexed fields #1668 shirish87
- fixed; model.stream() not hydrating discriminators correctly #1792 j
- docs: Stablility -> Stability nikmartin
- tests; improve shard error handling
- fixed; mishandling of Dates with minimize/getters #1764
- fixed; Normalize bugs.email, so
npm
will shut up #1769 refack - docs; Improve the grammar where "lets us" was used #1777 alexyoung
- docs; Fix some grammatical issues in the documentation #1777 alexyoung
- docs; fix Query api exposure
- docs; fix return description
- docs; Added Notes on findAndUpdate() #1750 sstadelman
- docs; Update version number in README #1762 Fodi69
- updated; warn when using an unstable version
- updated; error message returned in doc.save() #1595
- updated; mongodb driver to 1.3.19 (fix error swallowing behavior)
- updated; mquery to 0.3.2
- updated; mocha to 1.12.0
- updated; mpromise 0.3.0
- updated; sliced 0.0.5
- removed; mongoose.Error.DocumentError (never used)
- removed; namedscope (undocumented and broken) #679 #642 #455 #379
- changed; no longer offically supporting node 0.6.x
- changed; query.within getter is now a method -> query.within()
- changed; query.intersects getter is now a method -> query.intersects()
- added; custom error msgs for built-in validators #747
- added; discriminator support #1647 #1003 j
- added; support disabled collection name pluralization #1350 #1707 refack
- added; support for GeoJSON to Query#near ebensing
- added; stand-alone base query support - query.toConstructor() ebensing
- added; promise support to geoSearch #1614 ebensing
- added; promise support for geoNear #1614 ebensing
- added; connection.useDb() #1124 ebensing
- added; promise support to model.mapReduce()
- added; promise support to model.ensureIndexes()
- added; promise support to model.populate()
- added; benchmarks ebensing
- added; publicly exposed connection states #1585
- added; $geoWithin support #1529 $1455 ebensing
- added; query method chain validation
- added; model.update
overwrite
option - added; model.geoNear() support #1563 ebensing
- added; model.geoSearch() support #1560 ebensing
- added; MongooseBuffer#subtype()
- added; model.create() now returns a promise #1340
- added; support for
awaitdata
query option - added; pass the doc to doc.remove() callback #1419 JoeWagner
- added; aggregation query builder #1404 njoyard
- fixed; document.toObject when using
minimize
andgetters
options #1607 JedWatson - fixed; Mixed types can now be required #1722 Reggino
- fixed; do not pluralize model names not ending with letters #1703 refack
- fixed; repopulating modified populated paths #1697
- fixed; doc.equals() when _id option is set to false #1687
- fixed; strict mode warnings #1686
- fixed; $near GeoJSON casting #1683
- fixed; nearSphere GeoJSON query builder
- fixed; population field selection w/ strings #1669
- fixed; setters not firing on null values #1445 ebensing
- fixed; handle another versioning edge case #1520
- fixed; excluding subdocument fields #1280 ebensing
- fixed; allow array properties to be set to null with findOneAndUpdate aheuermann
- fixed; subdocuments now use own toJSON opts #1376 ebensing
- fixed; model#geoNear fulfills promise when results empty #1658 ebensing
- fixed; utils.merge no longer overrides props and methods #1655 j
- fixed; subdocuments now use their own transform #1412 ebensing
- fixed; model.remove() removes only what is necessary #1649
- fixed; update() now only runs with cb or explicit true #1644
- fixed; casting ref docs on creation #1606 ebensing
- fixed; model.update "overwrite" option works as documented
- fixed; query#remove() works as documented
- fixed; "limit" correctly applies to individual items on population #1490 ebensing
- fixed; issue with positional operator on ref docs #1572 ebensing
- fixed; benchmarks to actually output valid json
- deprecated; promise#addBack (use promise#onResolve)
- deprecated; promise#complete (use promise#fulfill)
- deprecated; promise#addCallback (use promise#onFulFill)
- deprecated; promise#addErrback (use promise#onReject)
- deprecated; query.nearSphere() (use query.near)
- deprecated; query.center() (use query.circle)
- deprecated; query.centerSphere() (use query.circle)
- deprecated; query#slaveOk (use query#read)
- docs; custom validator messages
- docs; 10gen -> MongoDB
- docs; add Date method caveats #1598
- docs; more validation details
- docs; state which branch is stable/unstable
- docs; mention that middleware does not run on Models
- docs; promise.fulfill()
- docs; fix readme spelling #1483 yorchopolis
- docs; fixed up the README and examples ebensing
- website; add "show code" for properties
- website; move "show code" links down
- website; update guide
- website; add unstable docs
- website; many improvements
- website; fix copyright #1439
- website; server.js -> static.js #1546 nikmartin
- tests; refactor 1703
- tests; add test generator
- tests; validate formatMessage() throws
- tests; add script for continuously running tests
- tests; fixed versioning tests
- tests; race conditions in tests
- tests; added for nested and/or queries
- tests; close some test connections
- tests; validate db contents
- tests; remove .only
- tests; close some test connections
- tests; validate db contents
- tests; remove .only
- tests; replace deprecated method names
- tests; convert id to string
- tests; fix sharding tests for MongoDB 2.4.5
- tests; now 4-5 seconds faster
- tests; fix race condition
- make; suppress warning msg in test
- benchmarks; updated for pull requests
- examples; improved and expanded ebensing
- updated; mquery to 0.3.2
- removed; mongoose.Error.DocumentError (never used)
- added; custom error msgs for built-in validators #747
- added; discriminator support #1647 #1003 j
- added; support disabled collection name pluralization #1350 #1707 refack
- fixed; do not pluralize model names not ending with letters #1703 refack
- fixed; repopulating modified populated paths #1697
- fixed; doc.equals() when _id option is set to false #1687
- fixed; strict mode warnings #1686
- fixed; $near GeoJSON casting #1683
- fixed; nearSphere GeoJSON query builder
- fixed; population field selection w/ strings #1669
- docs; custom validator messages
- docs; 10gen -> MongoDB
- docs; add Date method caveats #1598
- docs; more validation details
- website; add "show code" for properties
- website; move "show code" links down
- tests; refactor 1703
- tests; add test generator
- tests; validate formatMessage() throws
- updated; warn when using an unstable version
- updated; mquery to 0.3.1
- updated; mocha to 1.12.0
- updated; mongodb driver to 1.3.19 (fix error swallowing behavior)
- changed; no longer offically supporting node 0.6.x
- added; support for GeoJSON to Query#near ebensing
- added; stand-alone base query support - query.toConstructor() ebensing
- added; promise support to geoSearch #1614 ebensing
- added; promise support for geoNear #1614 ebensing
- fixed; setters not firing on null values #1445 ebensing
- fixed; handle another versioning edge case #1520
- fixed; excluding subdocument fields #1280 ebensing
- fixed; allow array properties to be set to null with findOneAndUpdate aheuermann
- fixed; subdocuments now use own toJSON opts #1376 ebensing
- fixed; model#geoNear fulfills promise when results empty #1658 ebensing
- fixed; utils.merge no longer overrides props and methods #1655 j
- fixed; subdocuments now use their own transform #1412 ebensing
- make; suppress warning msg in test
- docs; state which branch is stable/unstable
- docs; mention that middleware does not run on Models
- tests; add script for continuously running tests
- tests; fixed versioning tests
- benchmarks; updated for pull requests
- fixed; model.remove() removes only what is necessary #1649
- fixed; update() now only runs with cb or explicit true #1644
- tests; race conditions in tests
- website; update guide
- updated; driver to 1.3.18 (fixes memory leak)
- added; connection.useDb() #1124 ebensing
- added; promise support to model.mapReduce()
- added; promise support to model.ensureIndexes()
- added; promise support to model.populate()
- fixed; casting ref docs on creation #1606 ebensing
- fixed; model.update "overwrite" option works as documented
- fixed; query#remove() works as documented
- fixed; "limit" correctly applies to individual items on population #1490 ebensing
- fixed; issue with positional operator on ref docs #1572 ebensing
- fixed; benchmarks to actually output valid json
- tests; added for nested and/or queries
- tests; close some test connections
- tests; validate db contents
- tests; remove .only
- tests; close some test connections
- tests; validate db contents
- tests; remove .only
- tests; replace deprecated method names
- tests; convert id to string
- docs; promise.fulfill()
- changed; query.within getter is now a method -> query.within()
- changed; query.intersects getter is now a method -> query.intersects()
- deprecated; promise#addBack (use promise#onResolve)
- deprecated; promise#complete (use promise#fulfill)
- deprecated; promise#addCallback (use promise#onFulFill)
- deprecated; promise#addErrback (use promise#onReject)
- deprecated; query.nearSphere() (use query.near)
- deprecated; query.center() (use query.circle)
- deprecated; query.centerSphere() (use query.circle)
- deprecated; query#slaveOk (use query#read)
- removed; namedscope (undocumented and broken) #679 #642 #455 #379
- added; benchmarks ebensing
- added; publicly exposed connection states #1585
- added; $geoWithin support #1529 $1455 ebensing
- added; query method chain validation
- added; model.update
overwrite
option - added; model.geoNear() support #1563 ebensing
- added; model.geoSearch() support #1560 ebensing
- added; MongooseBuffer#subtype()
- added; model.create() now returns a promise #1340
- added; support for
awaitdata
query option - added; pass the doc to doc.remove() callback #1419 JoeWagner
- added; aggregation query builder #1404 njoyard
- updated; integrate mquery #1562 ebensing
- updated; error msg in doc.save() #1595
- updated; bump driver to 1.3.15
- updated; mpromise 0.3.0
- updated; sliced 0.0.5
- tests; fix sharding tests for MongoDB 2.4.5
- tests; now 4-5 seconds faster
- tests; fix race condition
- docs; fix readme spelling #1483 yorchopolis
- docs; fixed up the README and examples ebensing
- website; add unstable docs
- website; many improvements
- website; fix copyright #1439
- website; server.js -> static.js #1546 nikmartin
- examples; improved and expanded ebensing
- fixed; repopulating modified populated paths #1697
- fixed; doc.equals w/ _id false #1687
- fixed; strict mode warning #1686
- docs; near/nearSphere
- fixed; population field selection w/ strings #1669
- docs; Date method caveats #1598
- updated; warn when using an unstable version of mongoose
- updated; mocha to 1.12.0
- updated; mongodb driver to 1.3.19 (fix error swallowing behavior)
- fixed; setters not firing on null values #1445 ebensing
- fixed; properly exclude subdocument fields #1280 ebensing
- fixed; cast error in findAndModify #1643 aheuermann
- website; update guide
- website; added documentation for safe:false and versioning interaction
- docs; mention that middleware dont run on Models
- docs; fix indexes link
- make; suppress warning msg in test
- tests; moar
- updated; driver to 1.3.18 (fixes memory leak)
- fixed; casting ref docs on creation #1606
- docs; query options
- added; publicly expose connection states #1585
- fixed; limit applies to individual items on population #1490 ebensing
- fixed; positional operator casting in updates #1572 ebensing
- updated; MongoDB driver to 1.3.17
- updated; sliced to 0.0.5
- website; tweak homepage
- tests; fixed + added
- docs; fix some examples
- docs; multi-mongos support details
- docs; auto open browser after starting static server
- added; mongos failover support #1037
- updated; make schematype return vals return self #1580
- docs; add note to model.update #571
- docs; document third param to document.save callback #1536
- tests; tweek mongos test timeout
- updated; driver to 1.3.11
- fixed; issue with findOneAndUpdate not returning null on upserts #1533 ebensing
- fixed; missing return statement in SchemaArray#$geoIntersects() #1498 bsrykt
- fixed; wrong isSelected() behavior #1521 kyano
- docs; note about toObject behavior during save()
- docs; add callbacks details #1547 nikmartin
- fixed; calling model.distinct without conditions #1541
- fixed; regression in Query#count() #1542
- now working on 3.6.13
- updated; driver to 1.3.10
- updated; clearer capped collection error message #1509 bitmage
- fixed; MongooseBuffer subtype loss during casting #1517 zedgu
- fixed; docArray#id when doc.id is disabled #1492
- fixed; docArray#id now supports matches on populated arrays #1492 pgherveou
- website; fix example
- website; improve _id disabling example
- website; fix typo #1494 dejj
- docs; added a 'Requesting new features' section #1504 shovon
- docs; improve subtypes description
- docs; clarify _id disabling
- docs: display by alphabetical order the methods list #1508 nicolasleger
- tests; refactor isSelected checks
- tests; remove pointless test
- tests; fixed timeouts
- updated; driver to 1.3.5
- fixed; compat w/ Object.create(null) #1484 #1485
- fixed; cloning objects w/ missing constructors
- fixed; prevent multiple min number validators #1481 nrako
- docs; add doc.increment() example
- docs; add $size example
- docs; add "distinct" example
- update driver to 1.3.3
- fixed; increment() works without other changes #1475
- website; fix links to posterous
- docs; fix link #1472
- fixed; depopulation of mixed documents #1471
- fixed; use of $options in array #1462
- tests; fix race condition
- docs; fix default example
- updated; driver to 1.3.0
- fixed; connection.model should retain options #1458 vedmalex
- tests; 4-5 seconds faster
- fixed; population regression in 3.6.6 #1444
- fixed; saving populated new documents #1442
- fixed; population regession in 3.6.5 #1441
- website; fix copyright #1439
- fixed; strict:throw edge case using .set(path, val)
- fixed; schema.pathType() on some numbericAlpha paths
- fixed; numbericAlpha path versioning
- fixed; setting nested mixed paths #1418
- fixed; setting nested objects with null prop #1326
- fixed; regression in v3.6 population performance #1426 vedmalex
- fixed; read pref typos #1422 kyano
- docs; fix method example
- website; update faq
- website; add more deep links
- website; update poolSize docs
- website; add 3.6 release notes
- website; note about keepAlive
- fixed; +field conflict with $slice #1370
- fixed; nested deselection conflict #1333
- fixed; RangeError in ValidationError.toString() #1296
- fixed; do not save user defined transforms #1415
- tests; fix race condition
- fixed; setting subdocuments deeply nested fields #1394
- fixed; regression: populated streams #1411
- docs; mention hooks/validation with findAndModify
- docs; mention auth
- docs; add more links
- examples; add document methods example
- website; display "see" links for properties
- website; clean up homepage
- fixed; corrupted sub-doc array #1408
- fixed; document#update returns a Query #1397
- docs; readpref strategy
- added; populate support to findAndModify varients #1395
- added; text index type to schematypes
- expose allowed index types as Schema.indexTypes
- fixed; use of
setMaxListeners
as path - fixed; regression in node 0.6 on docs with > 10 arrays
- fixed; do not alter schema arguments #1364
- fixed; subdoc#ownerDocument() #1385
- website; change search id
- website; add search from google jackdbernier
- website; fix link
- website; add 3.5.x docs release
- website; fix link
- docs; fix geometry
- docs; hide internal constructor
- docs; aggregation does not cast arguments #1399
- docs; querystream options
- examples; added for population
- changed; cast 'true'/'false' to boolean #1282 mgrach
- changed; Buffer arrays can now contain nulls
- added; QueryStream transform option
- added; support for authSource driver option
- added; {mongoose,db}.modelNames()
- added; $push w/ $slice,$sort support (MongoDB 2.4)
- added; hashed index type (MongoDB 2.4)
- added; support for mongodb 2.4 geojson (MongoDB 2.4)
- added; value at time of validation error
- added; support for object literal schemas
- added; bufferCommands schema option
- added; allow auth option in connections #1360 geoah
- added; performance improvements to populate() 263ece9
- added; allow adding uncasted docs to populated arrays and properties #570
- added; doc#populated(path) stores original populated _ids
- added; lean population #1260
- added; query.populate() now accepts an options object
- added; document#populate(opts, callback)
- added; Model.populate(docs, opts, callback)
- added; support for rich nested path population
- added; doc.array.remove(value) subdoc with _id value support #1278
- added; optionally allow non-strict sets and updates
- added; promises/A+ comformancy with mpromise
- added; promise#then
- added; promise#end
- fixed; use of
model
as doc property - fixed; lean population #1382
- fixed; empty object mixed defaults #1380
- fixed; populate w/ deselected _id using string syntax
- fixed; attempted save of divergent populated arrays #1334 related
- fixed; better error msg when attempting toObject as property name
- fixed; non population buffer casting from doc
- fixed; setting populated paths #570
- fixed; casting when added docs to populated arrays #570
- fixed; prohibit updating arrays selected with $elemMatch #1334
- fixed; pull / set subdoc combination #1303
- fixed; multiple bg index creation #1365
- fixed; manual reconnection to single mongod
- fixed; Constructor / version exposure #1124
- fixed; CastError race condition
- fixed; no longer swallowing misuse of subdoc#invalidate()
- fixed; utils.clone retains RegExp opts
- fixed; population of non-schema property
- fixed; allow updating versionKey #1265
- fixed; add EventEmitter props to reserved paths #1338
- fixed; can now deselect populated doc _ids #1331
- fixed; properly pass subtype to Binary in MongooseBuffer
- fixed; casting _id from document with non-ObjectId _id
- fixed; specifying schema type edge case { path: [{type: "String" }] }
- fixed; typo in schemdate #1329 jplock
- updated; driver to 1.2.14
- updated; muri to 0.3.1
- updated; mpromise to 0.2.1
- updated; mocha 1.8.1
- updated; mpath to 0.1.1
- deprecated; pluralization will die in 4.x
- refactor; rename private methods to something unusable as doc properties
- refactor MongooseArray#remove
- refactor; move expires index to SchemaDate #1328
- refactor; internal document properties #1171 #1184
- tests; added
- docs; indexes
- docs; validation
- docs; populate
- docs; populate
- docs; add note about stream compatibility with node 0.8
- docs; fix for private names
- docs; Buffer -> mongodb.Binary #1363
- docs; auth options
- docs; improved
- website; update FAQ
- website; add more api links
- website; add 3.5.x docs to prior releases
- website; Change mongoose-types to an active repo jackdbernier
- website; compat with node 0.10
- website; add news section
- website; use T for generic type
- benchmark; make adjustable
- refactor; rename private methods to something unusable as doc properties
- added; {mongoose,db}.modelNames()
- added; $push w/ $slice,$sort support (MongoDB 2.4)
- added; hashed index type (MongoDB 2.4)
- added; support for mongodb 2.4 geojson (MongoDB 2.4)
- added; value at time of validation error
- added; support for object literal schemas
- added; bufferCommands schema option
- added; allow auth option in connections #1360 geoah
- fixed; lean population #1382
- fixed; empty object mixed defaults #1380
- fixed; populate w/ deselected _id using string syntax
- fixed; attempted save of divergent populated arrays #1334 related
- fixed; better error msg when attempting toObject as property name
- fixed; non population buffer casting from doc
- fixed; setting populated paths #570
- fixed; casting when added docs to populated arrays #570
- fixed; prohibit updating arrays selected with $elemMatch #1334
- fixed; pull / set subdoc combination #1303
- fixed; multiple bg index creation #1365
- fixed; manual reconnection to single mongod
- fixed; Constructor / version exposure #1124
- fixed; CastError race condition
- fixed; no longer swallowing misuse of subdoc#invalidate()
- fixed; utils.clone retains RegExp opts
- fixed; population of non-schema property
- fixed; allow updating versionKey #1265
- fixed; add EventEmitter props to reserved paths #1338
- fixed; can now deselect populated doc _ids #1331
- updated; muri to 0.3.1
- updated; driver to 1.2.12
- updated; mpromise to 0.2.1
- deprecated; pluralization will die in 4.x
- docs; Buffer -> mongodb.Binary #1363
- docs; auth options
- docs; improved
- website; add news section
- benchmark; make adjustable
- changed; cast 'true'/'false' to boolean #1282 mgrach
- changed; Buffer arrays can now contain nulls
- fixed; properly pass subtype to Binary in MongooseBuffer
- fixed; casting _id from document with non-ObjectId _id
- fixed; specifying schema type edge case { path: [{type: "String" }] }
- fixed; typo in schemdate #1329 jplock
- refactor; move expires index to SchemaDate #1328
- refactor; internal document properties #1171 #1184
- added; performance improvements to populate() 263ece9
- added; allow adding uncasted docs to populated arrays and properties #570
- added; doc#populated(path) stores original populated _ids
- added; lean population #1260
- added; query.populate() now accepts an options object
- added; document#populate(opts, callback)
- added; Model.populate(docs, opts, callback)
- added; support for rich nested path population
- added; doc.array.remove(value) subdoc with _id value support #1278
- added; optionally allow non-strict sets and updates
- added; promises/A+ comformancy with mpromise
- added; promise#then
- added; promise#end
- updated; mocha 1.8.1
- updated; muri to 0.3.0
- updated; mpath to 0.1.1
- updated; docs
- updated; driver to 1.3.18
- updated; sliced to 0.0.5
- updated; driver to 1.3.12
- fixed; regression in Query#count() due to driver change
- tests; fixed timeouts
- tests; handle differing test uris
- updated; driver to 1.3.5
- fixed; compat w/ Object.create(null) #1484 #1485
- fixed; cloning objects missing constructors
- fixed; prevent multiple min number validators #1481 nrako
- update driver to 1.3.3
- fixed; use of $options in array #1462
- updated; driver to 1.3.0
- fixed; connection.model should retain options #1458 vedmalex
- fixed; read pref typos #1422 kyano
- fixed; +field conflict with $slice #1370
- fixed; RangeError in ValidationError.toString() #1296
- fixed; nested deselection conflict #1333
- remove time from Makefile
- fixed; setting subdocuments deeply nested fields #1394
- fixed; do not alter schema arguments #1364
- updated; driver to 1.2.14
- added; support for authSource driver option (mongodb 2.4)
- added; QueryStream transform option (node 0.10 helper)
- fixed; backport for saving required populated buffers
- fixed; pull / set subdoc combination #1303
- fixed; multiple bg index creation #1365
- test; added for saveable required populated buffers
- test; added for #1365
- test; add authSource test
- added; auth option in connection geoah
- fixed; CastError race condition
- docs; add note about stream compatibility with node 0.8
- updated; driver to 1.2.13
- updated; muri to 0.3.1 #1347
- fixed; utils.clone retains RegExp opts #1355
- fixed; deepEquals RegExp support
- tests; fix a connection test
- website; clean up docs afshinm
- website; update homepage
- website; migragtion: emphasize impact of strict docs #1264
- updated; driver to 1.2.12
- fixed; properly pass Binary subtype
- fixed; add EventEmitter props to reserved paths #1338
- fixed; use correct node engine version
- fixed; display empty docs as {} in log output #953 follow up
- improved; "bad $within $box argument" error message
- populate; add unscientific benchmark
- website; add stack overflow to help section
- website; use better code font #1336 risseraka
- website; clarify where help is available
- website; fix source code links #1272 floatingLomas
- docs; be specific about _id schema option #1103
- docs; add ensureIndex error handling example
- docs; README
- docs; CONTRIBUTING.md
- updated; driver to 1.2.11
- removed; old node < 0.6x shims
- fixed; documents with Buffer _ids equality
- fixed; MongooseBuffer properly casts numbers
- fixed; reopening closed connection on alt host/port #1287
- docs; fixed typo in Readme #1298 rened
- docs; fixed typo in migration docs Prinzhorn
- docs; fixed incorrect annotation in SchemaNumber#min bilalq
- docs; updated
- changed; "_pres" & "_posts" are now reserved pathnames #1261
- updated; driver to 1.2.8
- fixed; exception when reopening a replica set. #1263 ethankan
- website; updated
- added; support for geo object notation #1257
- fixed; $within query casting with arrays
- fixed; unix domain socket support #1254
- updated; driver to 1.2.7
- updated; muri to 0.0.5
- fixed; using auth with replica sets #1253
- fixed; regression when using subdoc with
path
as pathname #1245 daeq - fixed; safer db option checks
- updated; driver to 1.2.5
- website; add more examples
- website; clean up old docs
- website; fix prev release urls
- docs; clarify streaming with HTTP responses
- added; paths to CastErrors #1239
- added; support for mongodb connection string spec #1187
- added; post validate event
- added; Schema#get (to retrieve schema options)
- added; VersionError #1071
- added; npmignore hidekiy
- update; driver to 1.2.3
- fixed; stackoverflow in setter #1234
- fixed; utils.isObject()
- fixed; do not clobber user specified driver writeConcern #1227
- fixed; always pass current document to post hooks
- fixed; throw error when user attempts to overwrite a model
- fixed; connection.model only caches on connection #1209
- fixed; respect conn.model() creation when matching global model exists #1209
- fixed; passing model name + collection name now always honors collection name
- fixed; setting virtual field to an empty object #1154
- fixed; subclassed MongooseErrors exposure, now available in mongoose.Error.xxxx
- fixed; model.remove() ignoring callback when executed twice daeq #1210
- docs; add collection option to schema api docs #1222
- docs; NOTE about db safe options
- docs; add post hooks docs
- docs; connection string options
- docs; middleware is not executed with Model.remove #1241
- docs; {g,s}etter introspection #777
- docs; update validation docs
- docs; add link to plugins page
- docs; clarify error returned by unique indexes #1225
- docs; more detail about disabling autoIndex behavior
- docs; add homepage section to package (npm docs mongoose)
- docs; more detail around collection name pluralization #1193
- website; add .important css
- website; update models page
- website; update getting started
- website; update quick start
- added; support for generic toJSON/toObject transforms #1160 #1020 #1197
- added; doc.set() merge support #1148 NuORDER
- added; query#add support #1188 aleclofabbro
- changed; adding invalid nested paths to non-objects throws 4216f14
- changed; fixed; stop invalid function cloning (internal fix)
- fixed; add query $and casting support #1180 anotheri
- fixed; overwriting of query arguments #1176
- docs; fix expires examples
- docs; transforms
- docs; schema
collection
option docs hermanjunge - website; updated
- tests; added
- fixed; allow goose.connect(uris, dbname, opts) #1144
- docs; persist API private checked state across page loads
- fixed; passing options as 2nd arg to connect() #1144
- fixed; race condition after no-op save #1139
- fixed; schema field selection application in findAndModify #1150
- fixed; directly setting arrays #1126
- updated; driver to 1.1.11
- updated; collection pluralization rules mrickard
- tests; added
- docs; updated
- updated; driver to 1.1.10 #1143
- updated; use sliced 0.0.3
- fixed; do not recast embedded docs unnecessarily
- fixed; expires schema option helper #1132
- fixed; built in string setters #1131
- fixed; debug output for Dates/ObjectId properties #1129
- docs; fixed Javascript syntax error in example olalonde
- docs; fix toJSON example #1137
- docs; add ensureIndex production notes
- docs; fix spelling
- docs; add blogposts about v3
- website; updated
- removed; undocumented inGroupsOf util
- tests; added
- fixed; remove query batchSize option default of 1000 https://github.com/learnboost/mongoose/commit/3edaa8651
- docs; updated
- website; updated
- added; direct array index assignment with casting support
doc.array.set(index, value)
- fixed; QueryStream#resume within same tick as pause() #1116
- fixed; default value validatation #1109
- fixed; array splice() not casting #1123
- fixed; default array construction edge case #1108
- fixed; query casting for inequalities in arrays #1101 dpatti
- tests; added
- website; more documentation
- website; fixed layout issue #1111 SlashmanX
- website; refactored guille
- added; ReadPreferrence schema option #1097
- updated; driver to 1.1.7
- updated; default query batchSize to 1000
- fixed; we now cast the mapReduce query option #1095
- fixed; $elemMatch+$in with field selection #1091
- fixed; properly cast $elemMatch+$in conditions #1100
- fixed; default field application of subdocs #1027
- fixed; querystream prematurely dying #1092
- fixed; querystream never resumes when paused at getMore boundries #1092
- fixed; querystream occasionally emits data events after destroy #1092
- fixed; remove unnecessary ObjectId creation in querystream
- fixed; allow ne(boolean) again #1093
- docs; add populate/field selection syntax notes
- docs; add toObject/toJSON options detail
- docs;
read
schema option
- updated; driver to 1.1.6
- changed; fixed; directly setting nested objects now overwrites entire object (previously incorrectly merged them)
- added; read pref support (mongodb 2.2) 205a709c
- added; aggregate support (mongodb 2.2) f3a5bd3d
- added; virtual {g,s}etter introspection (#1070)
- updated; docs brettz9
- updated; driver to 1.1.5
- fixed; retain virtual setter return values (#1069)
- fixed; use of nested paths beginning w/ numbers #1062
- fixed; query population edge case #1053 #1055 jfremy
- fixed; simultaneous top and sub level array modifications #1073
- added; id and _id schema option aliases + tests
- improve debug formatting to allow copy/paste logged queries into mongo shell eknkc
- docs
- added; missing support for v3 sort/select syntax to findAndModify helpers (#1058)
- fixed; replset fullsetup event emission
- fixed; reconnected event for replsets
- fixed; server reconnection setting discovery
- fixed; compat with non-schema path props using positional notation (#1048)
- fixed; setter/casting order (#665)
- docs; updated
- fixed; throw Error on bad validators (1044)
- fixed; typo in EmbeddedDocument#parentArray [lackac]
- fixed; repair mongoose.SchemaTypes alias
- updated; docs
- removed; old subdocument#commit method
- fixed; setting arrays of matching docs [6924cbc2]
- fixed; doc!remove event now emits in save order as save for consistency
- fixed; pre-save hooks no longer fire on subdocuments when validation fails
- added; subdoc#parent() and subdoc#parentArray() to access subdocument parent objects
- added; query#lean() helper
- fixed; allow subdoc literal declarations containing "type" pathname (#993)
- fixed; unsetting a default array (#758)
- fixed; boolean $in queries (#998)
- fixed; allow use of
options
as a pathname (#529) - fixed;
model
is again a permitted schema path name - fixed; field selection option on subdocs (#1022)
- fixed; handle another edge case with subdoc saving (#975)
- added; emit save err on model if listening
- added; MongoDB TTL collection support (#1006)
- added; $center options support
- added; $nearSphere and $polygon support
- updated; driver version to 1.1.2
- changed; index errors are now emitted on their model and passed to an optional callback (#984)
- fixed; specifying index along with sparse/unique option no longer overwrites (#1004)
- fixed; never swallow connection errors (#618)
- fixed; creating object from model with emded object no longer overwrites defaults [achurkin] (#859)
- fixed; stop needless validation of unchanged/unselected fields (#891)
- fixed; document#equals behavior of objectids (#974)
- fixed; honor the minimize schema option (#978)
- fixed; provide helpful error msgs when reserved schema path is used (#928)
- fixed; callback to conn#disconnect is optional (#875)
- fixed; handle missing protocols in connection urls (#987)
- fixed; validate args to query#where (#969)
- fixed; saving modified/removed subdocs (#975)
- fixed; update with $pull from Mixed array (#735)
- fixed; error with null shard key value
- fixed; allow unsetting enums (#967)
- added; support for manual index creation (#984)
- added; support for disabled auto-indexing (#984)
- added; support for preserving MongooseArray#sort changes (#752)
- added; emit state change events on connection
- added; support for specifying BSON subtype in MongooseBuffer#toObject [jcrugzz]
- added; support for disabled versioning (#977)
- added; implicit "new" support for models and Schemas
- removed; doc#commit (use doc#markModified)
- removed; doc.modified getter (#950)
- removed; mongoose{connectSet,createSetConnection}. use connect,createConnection instead
- removed; query alias methods 1149804c
- removed; MongooseNumber
- changed; now creating indexes in background by default
- changed; strict mode now enabled by default (#952)
- changed; doc#modifiedPaths is now a method (#950)
- changed; getters no longer cast (#820); casting happens during set
- fixed; no need to pass updateArg to findOneAndUpdate (#931)
- fixed: utils.merge bug when merging nested non-objects. [treygriffith]
- fixed; strict:throw should produce errors in findAndModify (#963)
- fixed; findAndUpdate no longer overwrites document (#962)
- fixed; setting default DocumentArrays (#953)
- fixed; selection of _id with schema deselection (#954)
- fixed; ensure promise#error emits instanceof Error
- fixed; CursorStream: No stack overflow on any size result (#929)
- fixed; doc#remove now passes safe options
- fixed; invalid use of $set during $pop
- fixed; array#{$pop,$shift} mirror MongoDB behavior
- fixed; no longer test non-required vals in string match (#934)
- fixed; edge case with doc#inspect
- fixed; setter order (#665)
- fixed; setting invalid paths in strict mode (#916)
- fixed; handle docs without id in DocumentArray#id method (#897)
- fixed; do not save virtuals during model.update (#894)
- fixed; sub doc toObject virtuals application (#889)
- fixed; MongooseArray#pull of ObjectId (#881)
- fixed; handle passing db name with any repl set string
- fixed; default application of selected fields (#870)
- fixed; subdoc paths reported in validation errors (#725)
- fixed; incorrect reported num of affected docs in update ops (#862)
- fixed; connection assignment in Model#model (#853)
- fixed; stringifying arrays of docs (#852)
- fixed; modifying subdoc and parent array works (#842)
- fixed; passing undefined to next hook (#785)
- fixed; Query#{update,remove}() works without callbacks (#788)
- fixed; set/updating nested objects by parent pathname (#843)
- fixed; allow null in number arrays (#840)
- fixed; isNew on sub doc after insertion error (#837)
- fixed; if an insert fails, set isNew back to false [boutell]
- fixed; isSelected when only _id is selected (#730)
- fixed; setting an unset default value (#742)
- fixed; query#sort error messaging (#671)
- fixed; support for passing $options with $regex
- added; array of object literal notation in schema creates DocumentArrays
- added; gt,gte,lt,lte query support for arrays (#902)
- added; capped collection support (#938)
- added; document versioning support
- added; inclusion of deselected schema path (#786)
- added; non-atomic array#pop
- added; EmbeddedDocument constructor is now exposed in DocArray#create 7cf8beec
- added; mapReduce support (#678)
- added; support for a configurable minimize option #to{Object,JSON}(option) (#848)
- added; support for strict:
throws
[regality] - added; support for named schema types (#795)
- added; to{Object,JSON} schema options (#805)
- added; findByIdAnd{Update,Remove}()
- added; findOneAnd{Update,Remove}()
- added; query.setOptions()
- added; instance.update() (#794)
- added; support specifying model in populate() [DanielBaulig]
- added;
lean
query option [gitfy] - added; multi-atomic support to MongooseArray#nonAtomicPush
- added; support for $set + other $atomic ops on single array
- added; tests
- updated; driver to 1.0.2
- updated; query.sort() syntax to mirror query.select()
- updated; clearer cast error msg for array numbers
- updated; docs
- updated; doc.clone 3x faster (#950)
- updated; only create _id if necessary (#950)
- fixed; boolean $in queries (#998)
- fixed field selection option on subdocs (#1022)
- fixed; callback to conn#disconnect is optional (#875)
- fixed; handle missing protocols in connection urls (#987)
- fixed; saving modified/removed subdocs (#975)
- updated; tests
- fixed; sharding: when a document holds a null as a value of the shard key
- fixed; update() using $pull on an array of Mixed (gh-735)
- deprecated; MongooseNumber#{inc, increment, decrement} methods
- tests; now using mocha
- added; deprecation warnings to methods being removed in 3.x
- fixed; edge case when using 'options' as a path name (#961)
- fixed; ensure promise#error always emits instanceof Error
- fixed; selection of _id w/ another excluded path (#954)
- fixed; setting default DocumentArrays (#953)
- fixed; stack overflow in query stream with large result sets (#929)
- added; $gt, $gte, $lt, $lte support to arrays (#902)
- fixed; pass option
safe
along to doc#remove() calls
- fixed; do not save virtuals in Model.update (#894)
- added; missing $ prefixed query aliases (going away in 3.x) (#884) [timoxley]
- fixed; setting invalid paths in strict mode (#916)
- fixed; resetting isNew after insert failure (#837) [boutell]
- updated; backport string regex $options to 2.x
- updated; use driver 1.0.2 (performance improvements) (#914)
- fixed; calling MongooseDocumentArray#id when the doc has no _id (#897)
- fixed; repl-set connectivity issues during failover on MongoDB 2.0.1
- updated; driver to 1.0.0
- fixed; virtuals application of subdocs when using toObject({ virtuals: true }) (#889)
- fixed; MongooseArray#pull of ObjectId correctly updates the array itself (#881)
- fixed; default field application of selected fields (#870)
- fixed; connection assignment in mongoose#model (#853, #877)
- fixed; incorrect reported num of affected docs in update ops (#862)
- updated; hooks.js to 0.2.1
- fixed; issue with passing undefined to a hook callback. thanks to [chrisleishman] for reporting.
- fixed; updating/setting nested objects in strict schemas (#843) as reported by [kof]
- fixed; Query#{update,remove}() work without callbacks again (#788)
- fixed; modifying subdoc along with parent array $atomic op (#842)
- fixed; setting an unset default value (#742)
- fixed; doc.isSelected(otherpath) when only _id is selected (#730)
- updated; docs
- fixed; failing validation of unselected required paths (#730,#713)
- fixed; emitting connection error when only one listener (#759)
- fixed; MongooseArray#splice was not returning values (#784) [chrisleishman]
- fixed; honor the
safe
option in all ensureIndex calls - updated; node-mongodb-native driver to 0.9.9-7
- added; introspection for getters/setters (#745)
- updated; node-mongodb-driver to 0.9.9-5
- added; tailable method to Query (#769) [holic]
- fixed; Number min/max validation of null (#764) [btamas]
- added; more flexible user/password connection options (#738) [KarneAsada]
- updated; node-mongodb-native driver to 0.9.9-4
- added; Query#comment()
- fixed; allow unsetting arrays
- fixed; hooking the set method of subdocuments (#746)
- fixed; edge case in hooks
- fixed; allow $id and $ref in queries (fixes compatibility with mongoose-dbref) (#749) [richtera]
- added; default path selection to SchemaTypes
- fixed; properly cast nested atomic update operators for sub-documents
- added; post 'remove' middleware includes model that was removed (#729) [timoxley]
- fixed; RegExp validators on node >= v0.6.x
- fixed; emit errors returned from db.collection() on the connection (were being swallowed)
- added; can add multiple validators in your schema at once (#718) [diogogmt]
- fixed; strict embedded documents (#717)
- updated; docs [niemyjski]
- added; pass number of affected docs back in model.update/save
- fixed; RangeError: maximum call stack exceed error when removing docs with Number _id (#714)
- fixed; RangeError: maximum call stack exceed error (#714)
- added; doc#isSelected(path)
- added; query#equals()
- added; beta sharding support
- added; more descript error msgs (#700) [obeleh]
- added; document.modifiedPaths (#709) [ljharb]
- fixed; only functions can be added as getters/setters (#707,704) [ljharb]
- fixed; rollback -native driver to 0.9.7-3-5 (was causing timeouts and other replica set weirdness)
- deprecated; MongooseNumber (will be moved to a separate repo for 3.x)
- added; init event is emitted on schemas
- fixed; honor strict schemas in Model.update (#699)
- added; doc.toJSON calls toJSON on embedded docs when exists [jerem]
- added; populate support for refs of type Buffer (#686) [jerem]
- added; $all support for ObjectIds and Dates (#690)
- fixed; virtual setter calling on instantiation when strict: true (#682) [hunterloftis]
- fixed; doc construction triggering getters (#685)
- fixed; MongooseBuffer check in deepEquals (#688)
- fixed; range error when using Number _ids with
instance.save()
(#691) - fixed; isNew on embedded docs edge case (#680)
- updated; driver to 0.9.8-3
- updated; expose
model()
method within static methods
- added; optional getter application in .toObject()/.toJSON() (#412)
- fixed; nested $operators in $all queries (#670)
- added; $nor support (#674)
- fixed; bug when adding nested schema (#662) [paulwe]
- updated; driver to 0.9.7-3-5 to fix Linux performance degradation on some boxes
- updated; bump -native to 0.9.7.2-5
- fixed; compatibility with date.js (#646) [chrisleishman]
- changed; undocumented schema "lax" option to "strict"
- fixed; default value population for strict schemas
- updated; the nextTick helper for small performance gain. 1bee2a2
- fixed; bug in 2.4.6 with path setting
- updated; bump -native to 0.9.7.2-1
- added; strict schema option [nw]
- fixed; conflicting mods on update bug [sirlantis]
- improved; doc.id getter performance
- fixed; bad MongooseArray behavior in 2.4.2 - 2.4.4
- fixed; MongooseArray#doAtomics throwing after sliced
- updated; system.profile schema for MongoDB 2x
- fixed; partially populating multiple children of subdocs (#639) [kenpratt]
- fixed; allow Update of numbers to null (#640) [jerem]
- added; options support for populate() queries
- updated; -native driver to 0.9.7-1.4
- added; QueryStreams (#614)
- added; debug print mode for development
- added; $within support to Array queries (#586) [ggoodale]
- added; $centerSphere query support
- fixed; $within support
- added; $unset is now used when setting a path to undefined (#519)
- added; query#batchSize support
- updated; docs
- updated; -native driver to 0.9.7-1.3 (provides Windows support)
- fixed; required validation for Refs (#612) [ded]
- added; $nearSphere support for Arrays (#610)
- fixed; regression, objects passed to Model.update should not be changed (#605)
- fixed; regression, empty Model.update should not be executed
- fixed; using $elemMatch on arrays of Mixed types (#591)
- fixed; allow using $regex when querying Arrays (#599)
- fixed; calling Model.update with no atomic keys (#602)
- fixed; model.update casting for nested paths works (#542)
- fixed; deepEquals check for MongooseArray returned false
- fixed; reset modified flags of embedded docs after save [gitfy]
- fixed; setting embedded doc with identical values no longer marks modified [gitfy]
- updated; -native driver to 0.9.6.23 [mlazarov]
- fixed; Model.update casting (#542, #545, #479)
- fixed; populated refs no longer fail required validators (#577)
- fixed; populating refs of objects with custom ids works
- fixed; $pop & $unset work with Model.update (#574)
- added; more helpful debugging message for Schema#add (#578)
- fixed; accessing .id when no _id exists now returns null (#590)
- added; callback to query#findOne is now optional (#581)
- fixed; wrapped save/remove callbacks in nextTick to mitigate -native swallowing thrown errors
- fixed; exclusion of embedded doc _id from query results (#541)
- fixed; calling queries without passing a callback works (#569)
- fixed; populate() works with String and Number _ids too (#568)
- added; Model.create now accepts an array as a first arg
- fixed; calling toObject on a DocumentArray with nulls no longer throws
- fixed; calling inspect on a DocumentArray with nulls no longer throws
- added; MongooseArray#unshift support
- fixed; save hooks now fire on embedded documents [gitfy] (#456)
- updated; -native driver to 0.9.6-22
- fixed; correctly pass $addToSet op instead of $push
- fixed; $addToSet properly detects dates
- fixed; $addToSet with multiple items works
- updated; better node 0.6 Buffer support
- fixed; population conditions in multi-query settings [vedmalex] (#563)
- fixed; now compatible with Node v0.5.x
- fixed; population of null subdoc properties no longer hangs (#561)
- added; support for Query filters to populate() [eneko]
- fixed; querying with number no longer crashes mongodb (#555) [jlbyrey]
- updated; version of -native driver to 0.9.6-21
- fixed; prevent query callbacks that throw errors from corrupting -native connection state
- fixed; nulls as default values for Boolean now works as expected
- updated; version of -native driver to 0.9.6-20
- fixed; populate() works when returned array contains undefined/nulls
- updated; version of -native driver to 0.9.6-19
- added; $regex support to String [davidandrewcope]
- added; support for other contexts like repl etc (#535)
- fixed; clear modified state properly after saving
- added; $addToSet support to Array
- more descript error when casting undefined to string
- updated; version of -native driver to 0.9.6-18
- fixed; maxListeners warning on schemas with many arrays (#530)
- changed; return / apply defaults based on fields selected in query (#423)
- fixed; correctly detect Mixed types within schema arrays (#532)
- fixed; new private methods that stomped on users code
- changed; finished removing old "compat" support which did nothing
- updated; version of -native driver to 0.9.6-15
- added; emit
error
on connection when open fails [edwardhotchkiss] - added; index support to Buffers (thanks justmoon for helping track this down)
- fixed; passing collection name via schema in conn.model() now works (thanks vedmalex for reporting)
- fixed; Query#find with no args no longer throws
- added; support Model.count(fn)
- fixed; compatibility with node >=0.4.0 < 0.4.3
- added; pass model.options.safe through with .save() so w:2, wtimeout:5000 options work [andrewjstone]
- added; support for $type queries
- added; support for Query#or
- added; more tests
- optimized populate queries
- changed; document#validate is a public method
- fixed; setting number to same value no longer marks modified (#476) [gitfy]
- fixed; Buffers shouldn't have default vals
- added; allow specifying collection name in schema (#470) [ixti]
- fixed; reset modified paths and atomics after saved (#459)
- fixed; set isNew on embedded docs to false after save
- fixed; use self to ensure proper scope of options in doOpenSet (#483) [andrewjstone]
- Fixed; Only send the depopulated ObjectId instead of the entire doc on save (DBRefs)
- Fixed; Properly cast nested array values in Model.update (the data was stored in Mongo incorrectly but recast on document fetch was "fixing" it)
- Fixed; manipulating a populated array no longer causes infinite loop in BSON serializer during save (#477)
- Fixed; populating an empty array no longer hangs foreeeeeeeever (#481)
- Fixed; Maintain query option key order (fixes 'bad hint' error from compound query hints)
- Fixed; do not over-write the doc when no valide props exist in Model.update (#473)
- Added; support for Buffers [justmoon]
- Changed; improved error handling [maelstrom]
- Removed: unused utils.erase
- Fixed; support for passing other context object into Schemas (#234) [Sija]
- Fixed; getters are no longer circular refs to themselves (#366)
- Removed; unused compat.js
- Fixed; getter/setter scopes are set properly
- Changed; made several private properties more obvious by prefixing _
- Added; DBRef support [guille]
- Changed; removed support for multiple collection names per model
- Fixed; no longer applying setters when document returned from db
- Changed; default auto_reconnect to true
- Changed; Query#bind no longer clones the query
- Fixed; Model.update now accepts $pull, $inc and friends (#404)
- Added; virtual type option support [nw]
- Fixed; validation bug when instantiated with non-schema properties (#464) [jmreidy]
- Fixed; regression in connection#open [jshaw86]
- fixed; reset connection.readyState after failure [tomseago]
- fixed; can now query positionally for non-embedded docs (arrays of numbers/strings etc)
- fixed; embedded document query casting
- added; support for passing options to node-mongo-native db, server, and replsetserver [tomseago]
- fixed; ObjectIds were always marked modified
- fixed; can now query using document instances
- fixed; can now query/update using documents with subdocs
- fixed; can now use $all with String and Number
- fixed; can query subdoc array with $ne: null
- fixed; instance.subdocs#id now works with custom _ids
- fixed; do not apply setters when doc returned from db (change in bad behavior)
- fixed; sparse now a valid seperate schema option
- fixed; now catching cast errors in queries
- fixed; calling new Schema with object created in vm.runInNewContext now works (#384) [Sija]
- fixed; String enum was disallowing null
- fixed; Find by nested document _id now works (#389)
- fixed; MongooseArray#indexOf now works with ObjectIds
- fixed; validation scope now set properly (#418)
- fixed; added missing colors dependency (#398)
- changed; node-mongodb-native driver to v0.9.6.7
- changed; roll back node-mongodb-native driver to v0.9.6.4
- fixed; collection name misspelling [mathrawka]
- fixed; 2nd param is required for ReplSetServers [kevinmarvin]
- fixed; MongooseArray behaves properly with Object.keys
- changed; node-mongodb-native driver to v0.9.6.6
- fixed/changed; Mongodb segfault when passed invalid ObjectId (#407)
- This means invalid data passed to the ObjectId constructor will now error
- changed; .save() errors are now emitted on the instances db instead of the instance 9782463fc
- fixed; errors occurring when creating indexes now properly emit on db
- added; $maxDistance support to MongooseArrays
- fixed; RegExps now work with $all
- changed; node-mongodb-native driver to v0.9.6.4
- fixed; model names are now accessible via .modelName
- added; Query#slaveOk support
- changed; saving without a callback no longer ignores the error (@bnoguchi)
- changed; hook-js version bump to 0.1.9
- changed; node-mongodb-native version bumped to 0.9.6.1 - When .remove() doesn't return an error, null is no longer passed.
- fixed; two memory leaks (@justmoon)
- added; sparse index support
- added; more ObjectId conditionals (gt, lt, gte, lte) (@phillyqueso)
- added; options are now passed in model#remote (@JerryLuke)
- bumped hooks-js dependency (fixes issue passing null as first arg to next())
- fixed; document#inspect now works properly with nested docs
- fixed; 'set' now works as a schema attribute (GH-365)
- fixed; _id is now set properly within pre-init hooks (GH-289)
- added; Query#distinct / Model#distinct support (GH-155)
- fixed; embedded docs now can use instance methods (GH-249)
- fixed; can now overwrite strings conflicting with schema type
- added MongooseArray#splice support
- fixed; 'path' is now a valid Schema pathname
- improved hooks (utilizing https://github.com/bnoguchi/hooks-js)
- fixed; MongooseArray#$shift now works (never did)
- fixed; Document.modified no longer throws
- fixed; modifying subdoc property sets modified paths for subdoc and parent doc
- fixed; marking subdoc path as modified properly persists the value to the db
- fixed; RexExps can again be saved ( #357 )
- fixed; corrected casting for queries against array types
- added; Document#set now accepts Document instances
- fixed; $ne queries work properly with single vals
- added; #inspect() methods to improve console.log output
- fixed; find by Date works as expected (#336)
- added; geospatial 2d index support
- added; support for $near (#309)
- updated; node-mongodb-native driver
- fixed; updating numbers work (#342)
- added; better error msg when try to remove an embedded doc without an _id (#307)
- added; support for 'on-the-fly' schemas (#227)
- changed; virtual id getters can now be skipped
- fixed; .index() called on subdoc schema now works as expected
- fixed; db.setProfile() now buffers until the db is open (#340)
- fixed; corrected query casting on nested mixed types
- fixed; query hints now retain key order
- fixed; setting a property on an embedded array no longer overwrites entire array (GH-310)
- fixed; setting nested properties works when sibling prop is named "type"
- fixed; isModified is now much finer grained when .set() is used (GH-323)
- fixed; mongoose.model() and connection.model() now return the Model (GH-308, GH-305)
- fixed; can now use $gt, $lt, $gte, $lte with String schema types (GH-317)
- fixed; .lowercase() -> .toLowerCase() in pluralize()
- fixed; updating an embedded document by index works (GH-334)
- changed; .save() now passes the instance to the callback (GH-294, GH-264)
- added; can now query system.profile and system.indexes collections
- added; db.model('system.profile') is now included as a default Schema
- added; db.setProfiling(level, ms, callback)
- added; Query#hint() support
- added; more tests
- updated node-mongodb-native to 0.9.3
- changed; save() callbacks now fire only once on failed validation
- changed; Errors returned from save() callbacks now instances of ValidationError
- fixed; MongooseArray#indexOf now works properly
- changed; MongooseNumber now casts empty string to null
- fixed; post init now fires at proper time
- fixed; pushing an array onto an Array works on existing docs
- Added Model#model
- Fixed; $in queries on mixed types now work
- Fixed; setting object root to null/undefined works
- Fixed; setting multiple props on null field works
- Fixed; no longer using $set on paths to an unexisting fields
- Fixed; non-mixed type object setters work after initd from null
- Fixed; nested object property access works when root initd with null value
- Fixed; empty arrays are now saved
- Fixed;
null
andundefined
are set atomically.
- Changed; more forgiving date casting, accepting '' as null.
- Fixed setting values as
undefined
.
- Fixed; nested objects now convert to JSON properly
- Fixed; setting nested objects directly now works
- Update node-mongodb-native
- Fixed for use of
type
as a key.
- Changed; Make sure to only ensure indexes while connected
- Fixed; Mixed can now default to empty arrays
- Fixed; keys by the name 'type' are now valid
- Fixed; null values retrieved from the database are hydrated as null values.
- Fixed repeated atomic operations when saving a same document twice.
- Fixed 'id' overriding. [bnoguchi]
- Fixed RegExp query casting when querying against an Array of Strings [bnoguchi]
- Fixed getters/setters for nested virtualsl. [bnoguchi]
- Only doValidate when path exists in Schema [aheckmann]
- Allow function defaults for Array types [aheckmann]
- Fix validation hang [aheckmann]
- Fix setting of isRequired of SchemaType [aheckmann]
- Fix SchemaType#required(false) filter [aheckmann]
- More backwards compatibility [aheckmann]
- More tests [aheckmann]
- Added support for
uri, db, fn
anduri, fn
signatures for replica sets. - Improved/extended replica set tests.
- Fixed; running an empty Query doesn't throw. [aheckmann]
- Changed; Promise#addBack returns promise. [aheckmann]
- Added streaming cursor support. [aheckmann]
- Changed; Query#update defaults to use$SetOnSave now. [brian]
- Added more docs.
- Added Promise#resolve [aheckmann]
- Fixed backward compatibility with nulls [aheckmann]
- Changed; Query#{run,exec} return promises [aheckmann]
- Restored Query#exec and added notion of default operation [brian]
- Fixed ValidatorError messages [brian]
- Added SchemaType String
lowercase
,uppercase
,trim
. - Public exports (
Model
,Document
) and tests. - Added ObjectId casting support for
Document
s.
- Added support for replica sets.
- Added $nin as another whitelisted $conditional for SchemaArray [brian]
- Changed #with to #where [brian]
- Added ability to use $in conditional with Array types [brian]
- Added
id
virtual getter for documents to easily access the hexString of the_id
.
- Fix for arrays within subdocuments [brian]
- Fixed embedded documents saving.
- Minor refactorings [brian]
- Query refactor and $ne, $slice, $or, $size, $elemMatch, $nin, $exists support [brian]
- Named scopes sugar [brian]
- Updated node-mongodb-native driver [thanks John Allen]
- Fixed single member arrays as defaults [brian]
- Fixed for collection-level buffering of commands [gitfy]
- Fixed
Document#toJSON
[dalejefferson] - Fixed
Connection
authentication [robrighter] - Fixed clash of accessors in getters/setters [eirikurn]
- Improved
Model#save
promise handling
- Fixed memory leak warnings for test suite on 0.3
- Fixed querying documents that have an array that contain at least one specified member. [brian]
- Fixed default value for Array types (fixes GH-210). [brian]
- Fixed example code.
- Fixed
post
middleware - Fixed; it's now possible to instantiate a model even when one of the paths maps to an undefined value [brian]
- Fixed; combo $push and $pushAll auto-converts into a $pushAll [brian]
- Fixed; combo $pull and $pullAll auto-converts to a single $pullAll [brian]
- Fixed; $pullAll now removes said members from array before save (so it acts just like pushAll) [brian]
- Fixed; multiple $pulls and $pushes become a single $pullAll and $pushAll. Moreover, $pull now modifies the array before save to reflect the immediate change [brian]
- Added tests for nested shortcut getters [brian]
- Added tests that show that Schemas with nested Arrays don't apply defaults [brian]
- Added MongooseNumber#toString
- Added MongooseNumber unit tests
- Make sure safe mode works with Model#save
- Changed Schema options: safe mode is now the default
- Updated node-mongodb-native to HEAD
- Added a Model.create shortcut for creating documents. [brian]
- Fixed; we can now instantiate models with hashes that map to at least one null value. [brian]
- Fixed Schema with more than 2 nested levels. [brian]
- Improved
MongooseNumber
, works almost like the native except fortypeof
not being'number'
.