All Versions
617
Latest Version
Avg Release Cycle
4 days
Latest Release
85 days ago
Changelog History
Page 10
Changelog History
Page 10
-
v5.6.9
August 07, 2019- fix(model): delete versionError after saving to prevent memory leak #8048
- fix(cursor): correctly handle batchSize option with query cursor #8039
- fix(populate): handle virtual populate with count = 0 if virtual embedded in doc array #7573
- fix(schema): allow declaring ObjectId array with
{ type: 'ObjectID' }
, last 'D' case insensitive #8034
-
v5.6.8
August 02, 2019- fix(aggregate): allow modifying pipeline in pre('aggregate') hooks #8017
- fix(query): make
findOneAndReplace()
work withorFail()
#8030 - fix(document): allow saving an unchanged document if required populated path is null #8018
- fix(debug): support disabling colors in debug mode #8033 Mangosteen-Yang
- docs: add async-await guide #8028 Rossh87
- docs(plugins): rewrite plugins docs to be more modern and not use strange
= exports
syntax #8026 - docs(transactions): clarify relationship between
session
in docs and MongoDB driver ClientSession class, link to driver docs #8009
-
v5.6.7
July 26, 2019- fix(document): support validators on nested arrays #7926
- fix(timestamps): handle
timestamps: false
in child schema #8007 - fix(query): consistently support
new
option tofindOneAndX()
as an alternative toreturnOriginal
#7846 - fix(document): make
inspect()
never returnnull
, because a document or nested path is never== null
#7942 - docs(query+lean): add links to mongoose-lean-virtuals, mongoose-lean-getters, mongoose-lean-defaults #5606
- docs: add example for
Schema#pre(Array)
#8022 Mangosteen-Yang - docs(schematype): updated comment from Schema.path to proper s.path #8013 chrisweilacker
- chore: upgrade nyc #8015 kolya182
-
v5.6.6
July 22, 2019- fix(populate): handle refPath returning a virtual with
Query#populate()
#7341 - fix(populate): handle
refPath
in discriminator when populating top-level model #5109 - fix(mongoose): ensure destucturing and named imports work for Mongoose singleton methods like
set()
, etc. #6039 - fix(query): add missing options for deleteOne and deleteMany in Query #8004 Fonger
- fix(schema): make embedded discriminators
instanceof
their parent types #5005 - fix(array): make
validators
a private property that doesn't show up in for/in #6572 - docs(api): fix array API docs that vanished because of #7798 #7979
- docs(discriminators+api): add single nested discriminator to discriminator docs and API docs #7983
- docs(connection+mongoose): make option lists consistent between
mongoose.connect()
,mongoose.createConnection()
, andconn.openUri()
#7976 - docs(validation): clarify resolve(false) vs reject() for promise-based async custom validators #7761
- docs(guide): use correct
mongoose.set()
instead ofmongoose.use()
#7998 - docs: add redis cache example #7997 usama-asfar
- fix(populate): handle refPath returning a virtual with
-
v5.6.5
July 17, 2019- fix(document): handle setting non-schema path to ObjectId or Decimal128 if strict: false #7973
- fix(connection): remove backwards-breaking multiple mongoose.connect() call for now #7977
- fix(schema): print invalid value in error message when a schema path is set to undefined or null #7956
- fix(model): throw readable error if calling
new Model.discriminator()
#7957 - fix(mongoose): export
cast()
function #7975 perfectstorm88 - docs(model): fix link to Model.inspect() and add example #7990
- docs: fix broken anchor links on validation tutorial #7966
- docs(api): fix broken links to split API pages #7978
- chore: create LICENSE.md #7989 Fonger
-
v5.6.4
July 08, 2019- fix(schema): support pre(Array, Function) and post(Array, Function) #7803
- fix(document): load docs with a
once
property successfully #7958 - fix(queryhelpers): ensure parent
select
overwrites child pathselect
if parent is nested #7945 - fix(schema): make
clone()
correctly copy array embedded discriminators #7954 - fix(update): fix error when update property gets casted to null #7949
- fix(connection): bubble up attemptReconnect event for now #7872
- docs(tutorials): add virtuals tutorial #7965
- docs(connection): add section on connection handling #6997
-
v5.6.3
July 03, 2019- fix(document): respect projection when running getters #7940
- fix(model): call createCollection() in syncIndexes() to ensure the collection exists #7931
- fix(document): consistently use post-order traversal for gathering subdocs for hooks #7929
- fix(schema): ensure
Schema#pathType()
returns correct path type given non-existent positional path #7935 - fix(ChangeStream): set
closed
if emitting close event #7930 - fix(connection): bubble up 'attemptReconnect' event from MongoDB connection #7872
- docs: fix broken .jade links on search page #7932
- docs: correct link to
Query#select()
#7953 rayhatfield - docs(README): add list of related projects #7773
-
v5.6.2
June 28, 2019- fix(update): allow using
update()
with immutablecreatedAt
#7917 - fix(model): pass
doc
parameter to save() error handling middleware #7832 - fix(mongoose): add applyPluginsToChildSchemas option to allow opting out of global plugins for child schemas #7916
- docs(connection): document
useCache
option foruseDb()
#7923 - docs: fix broken link in FAQ #7925 christophergeiger3
- fix(update): allow using
-
v5.6.1
June 24, 2019- fix(update): skip setting defaults for single embedded subdocs underneath maps #7909
- fix(document): copy date objects correctly when strict = false #7907
- feat(mongoose): throw an error if calling
mongoose.connect()
multiple times while connected #7905 Fonger - fix(document): copies virtuals from array subdocs when casting array of docs with same schema #7898
- fix(schema): ensure clone() copies single embedded discriminators correctly #7894
- fix(discriminator): merge instead of overwriting conflicting nested schemas in discriminator schema #7884
- fix(populate): ignore nullish arguments when calling
populate()
#7913 rayhatfield - docs: add getters/setters tutorial #7919
- docs: clean up error docs so they refer to
Error
rather thanMongooseError
#7867 - docs: fix a couple broken links #7921 kizmo04
- refactor: remove unnecessary if #7911 rayhatfield
-
v5.6.0
June 14, 2019- feat(schematype): add
immutable
option to disallow changing a given field #7671 - docs: split API docs into separate pages to make API documentation more Google-able #7812
- perf(array): remove all mixins in favor of ES6 classes, ~20% faster in basic benchmarks #7798
- feat(document): use promise rejection error message when async custom validator throws an error #4913
- feat(virtual): pass document as 3rd parameter to virtual getters and setters to enable using arrow functions #4143
- feat(model): add
Model.exists()
function to quickly check whether a document matchingfilter
exists #6872 - feat(index+connection): support setting global and connection-level
maxTimeMS
- feat(populate): support setting
ref
to a function for conventional populate #7669 - feat(document): add overwrite() function that overwrites all values in a document #7830
- feat(populate): support
PopulateOptions#connection
option to allow cross-db populate with refPath #6520 - feat(populate): add skipInvalidIds option to silently skip population if id is invalid, instead of throwing #7706
- feat(array): skip empty array default if there's a 2dsphere index on a geojson path #3233
- feat(query): add
getFilter()
as an alias ofgetQuery()
to be more in line with API docs #7839 - feat(model): add Model.inspect() to make models not clutter
util.inspect()
#7836 - perf(discriminator): skip calling
createIndex()
on indexes that are defined in the base schema #7379 - docs: upgrade from Jade to latest Pug #7812
- docs(README): update reference to example schema.js #7899 sharils
- docs(README): improve variable name #7900 sharils
- chore: replace charAt(0) with startsWith #7897 Fonger
- chore: replace indexOf with includes, startsWith and endsWith for String #7897 Fonger
- feat(schematype): add