All Versions
655
Latest Version
Avg Release Cycle
7 days
Latest Release
960 days ago
Changelog History
Page 14
Changelog History
Page 14
-
v5.6.7 Changes
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 Changes
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 Changes
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 Changes
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 Changes
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 Changes
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 Changes
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 Changes
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
-
v5.5.15 Changes
June 12, 2019- fix(connection): reject initial connect promise even if there is an on('error') listener #7850
- fix(map): make
of
automatically convert POJOs to schemas unless typeKey is set #7859 - fix(update): use discriminator schema to cast update if discriminator key specified in filter #7843
- fix(array): copy atomics from source array #7891 #7889 jyrkive
- fix(schema): return this when Schema.prototype.add is called with Schema #7887 Mickael-van-der-Beek
- fix(document): add
numAffected
andresult
to DocumentNotFoundError for better debugging #7892 #7844
-
v5.5.14 Changes
June 08, 2019- fix(query): correct this scope of setters in update query #7876 Fonger
- fix(model): reset modifiedPaths after successful insertMany #7852 #7873 Fonger
- fix(populate): allow using
refPath
with virtual populate #7848 - fix(document): prepend private methods getValue and setValue with $ #7870 Fonger
- fix: update mongodb driver -> 3.2.7 #7871 Fonger
- docs(tutorials): add tutorial about custom casting functions #7045
- docs(connection): fix outdated events document #7874 Fonger
- docs: fix typo in lean docs #7875 tannakartikey
- docs: move off of KeenIO for tracking and use self-hosted analytics instead