All Versions
655
Latest Version
Avg Release Cycle
7 days
Latest Release
1856 days ago
Changelog History
Page 15
Changelog History
Page 15
-
v5.5.13 Changes
June 05, 2019- fix(model): support passing deleteOne options #7860 #7857 Fonger
- fix(update): run setters on array elements when doing $addToSet, $push, etc #4185
- fix(model): support getting discriminator by value when creating a new model #7851
- docs(transactions): add section about the
withTransaction()helper #7598 - docs(schema): clarify relationship between Schema#static() and Schema#statics #7827
- docs(model): fix typo
projetiontoprojection#7868 dfdeagle47 - docs(schema): correct schema options lists #7828
-
v5.5.12 Changes
May 31, 2019- fix(document): fix unexpected error when loading a document with a nested property named
schema#7831 - fix(model): skip applying static hooks by default if static name conflicts with query middleware (re: mongoose-delete plugin) #7790
- fix(query): apply schema-level projections to the result of
findOneAndReplace()#7654 - fix: upgrade mongodb driver -> 3.2.6
- docs(tutorials): add findOneAndUpdate() tutorial #7847
- docs(validation): add
updateOne()andupdateMany()to list of update validator operations #7845 - docs(model): make sure options lists in
update()API line up #7842
- fix(document): fix unexpected error when loading a document with a nested property named
-
v5.5.11 Changes
May 23, 2019- fix(discriminator): allow numeric discriminator keys for embedded discriminators #7808
- chore: add Node.js 12 to travis build matrix #7784
-
v5.5.10 Changes
May 20, 2019- fix(discriminator): allow user-defined discriminator path in schema #7807
- fix(query): ensure
findOneAndReplace()sendsreplacementto server #7654 - fix(cast): allow
[]as a value when casting$nin#7806 - docs(model): clarify that setters do run on
update()by default #7801 - docs: fix typo in FAQ #7821 jaona
-
v5.5.9 Changes
May 16, 2019- fix(query): skip schema setters when casting $regexp $options #7802 Fonger
- fix(populate): don't skip populating doc array properties whose name conflicts with an array method #7782
- fix(populate): make populated virtual return undefined if not populated #7795
- fix(schema): handle custom setters in arrays of document arrays #7804 Fonger
- docs(tutorials): add query casting tutorial #7789
-
v5.5.8 Changes
May 13, 2019- fix(document): run pre save hooks on nested child schemas #7792
- fix(model): set $session() before validation middleware for bulkWrite/insertMany #7785 #7769 Fonger
- fix(query): make
getPopulatedPaths()return deeply populated paths #7757 - fix(query): suppress findAndModify deprecation warning when using
Model.findOneAndUpdate()#7794 - fix: upgrade mongodb -> 3.2.4 #7794
- fix(document): handle a couple edge cases with atomics that happen when schema defines an array property named 'undefined' #7756
- docs(discriminator): correct function parameters #7786 gfpacheco
-
v5.5.7 Changes
May 09, 2019- fix(model): set $session() before pre save middleware runs when calling save() with options #7742
- fix(model): set $session before pre remove hooks run when calling remove() with options #7742
- fix(schema): support
remove()on nested path #2398 - fix(map): handle setting populated map element to doc #7745
- fix(query): return rawResult when inserting with options
{new:false,upsert:true,rawResult:true}#7774 #7770 LiaanM - fix(schematype): remove internal
validatorsoption because it conflicts with Backbone #7720
-
v5.5.6 Changes
May 06, 2019- fix(document): stop converting arrays to objects when setting non-schema path to array with strict: false #7733
- fix(array): make two Mongoose arrays
assert.deepEqual()each other if they have the same values #7700 - fix(populate): support populating a path in a document array embedded in an array #7647
- fix(populate): set populate virtual count to 0 if local field is empty #7731
- fix(update): avoid throwing cast error if casting array filter that isn't in schema with strictQuery = false #7728
- docs: fix typo in
distinct()description #7767 phil-r
-
v5.5.5 Changes
April 30, 2019- fix(document): ensure nested properties within single nested subdocs get set correctly when overwriting single nested subdoc #7748
- fix(document): skip non-object
validatorsin schema types #7720 - fix: bump mongodb driver -> 3.2.3 #7752
- fix(map): disallow setting map key with special properties #7750 Fonger
-
v5.5.4 Changes
April 25, 2019- fix(document): avoid calling custom getters when saving #7719
- fix(timestamps): handle child schema timestamps correctly when reusing child schemas #7712
- fix(query): pass correct callback for _legacyFindAndModify #7736 Fonger
- fix(model+query): allow setting
replacementparameter forfindOneAndReplace()#7654 - fix(map): make
delete()unset the key in the database #7746 Fonger - fix(array): use symbol for
_schemaproperty to avoid confusing deep equality checks #7700 - fix(document): prevent
depopulate()from removing fields with empty array #7741 #7740 Fonger - fix: make
MongooseArray#includessupport ObjectIds #7732 #6354 hansemannn - fix(document): report correct validation error index when pushing onto doc array #7744 Fonger