All Versions
655
Latest Version
Avg Release Cycle
7 days
Latest Release
980 days ago

Changelog History
Page 13

  • v5.7.3 Changes

    September 30, 2019
    • fix: make CoreMongooseArray#includes() handle fromIndex parameter #8203
    • fix(update): cast right hand side of $pull as a query instead of an update for document arrays #8166
    • fix(populate): handle virtual populate of an embedded discriminator nested path #8173
    • docs(validation): remove deprecated isAsync from validation docs in favor of emphasizing promises #8184
    • docs(documents): add overwriting section #8178
    • docs(promises): add note about queries being thenable #8110
    • perf: avoid update validators going into Mixed types #8192 birdofpreyru
    • refactor: remove async as a prod dependency #8073
  • v5.7.2 Changes

    September 23, 2019
    • fix(mongoose): support mongoose.set('autoIndex', false) #8158
    • fix(discriminator): support tiedValue parameter for embedded discriminators analagous to top-level discriminators #8164
    • fix(query): handle toConstructor() with entries-style sort syntax #8159
    • fix(populate): avoid converting mixed paths into arrays if populating an object path under Mixed #8157
    • fix: use $wrapCallback when using promises for mongoose-async-hooks
    • fix: handle queries with setter that converts value to Number instance #8150
    • docs: add mongoosejs-cli to readme #8142
    • docs: fix example typo for Schema.prototype.plugin() #8175 anaethoss
  • v5.7.1 Changes

    September 13, 2019
    • fix(query): fix TypeError when calling findOneAndUpdate() with runValidators #8151 fernandolguevara
    • fix(document): throw strict mode error if setting an immutable path with strict mode: false #8149
    • fix(mongoose): support passing options object to Mongoose constructor #8144
    • fix(model): make syncIndexes() handle changes in index key order #8135
    • fix(error): export StrictModeError as a static property of MongooseError #8148 ouyuran
    • docs(connection+mongoose): add useUnifiedTopology option to connect() and openUri() docs #8146
  • v5.7.0 Changes

    September 09, 2019
    • feat(document+query): support conditionally immutable schema paths #8001
    • perf(documentarray): refactor to use ES6 classes instead of mixins, ~30% speedup #7895
    • feat: use MongoDB driver 3.3.x for MongoDB 4.2 support #8083 #8078
    • feat(schema+query): add pre('validate') and post('validate') hooks for update validation #7984
    • fix(timestamps): ensure updatedAt gets incremented consistently using update with and without $set #4768
    • feat(query): add Query#get() to make writing custom setters that handle both queries and documents easier #7312
    • feat(document): run setters on defaults #8012
    • feat(document): add aliases: false option to Document#toObject() #7548
    • feat(timestamps): support skipping updatedAt and createdAt for individual save() and update() #3934
    • docs: fix index creation link in guide #8138 joebowbeer
  • v5.6.13 Changes

    September 04, 2019
    • fix(parallel): fix parallelLimit when fns is empty #8130 #8128 sibelius
    • fix(document): ensure nested mixed validator gets called exactly once #8117
    • fix(populate): handle justOne = undefined #8125 taxilian
  • v5.6.12 Changes

    September 03, 2019
    • fix(schema): handle required validator correctly with clone() #8111
    • fix(schema): copy schematype getters and setters when cloning #8124 StphnDamon
    • fix(discriminator): avoid unnecessarily cloning schema to avoid leaking memory on repeated discriminator() calls #2874
    • docs(schematypes): clarify when Mongoose uses toString() to convert an object to a string #8112 TheTrueRandom
    • docs(plugins): fix out of date link to npm docs #8100
    • docs(deprecations): fix typo #8109 jgcmarins
    • refactor(model): remove dependency on async.parallelLimit() for insertMany() #8073
  • v5.6.11 Changes

    August 25, 2019
    • fix(model): allow passing options to exists() #8075
    • fix(document): make validateUpdatedOnly option handle pre-existing errors #8091
    • fix: throw readable error if middleware callback isnt a function #8087
    • fix: don't throw error if calling find() on a nested array #8089
    • docs(middleware): clarify that you must add middleware before compiling your model #5087
    • docs(query): add missing options to setOptions() #8099
  • v5.6.10 Changes

    August 20, 2019
    • fix(schema): fix require() path to work around yet another bug in Jest #8053
    • fix(document): skip casting when initing a populated path #8062
    • fix(document): prevent double-calling validators on mixed objects with nested properties #8067
    • fix(query): handle schematype with null options when checking immutability #8070 rich-earth
    • fix(schema): support Schema#path() to get schema path underneath doc array #8057
    • docs(faq): add disable color instruction #8066
  • v5.6.9 Changes

    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 Changes

    August 02, 2019
    • fix(aggregate): allow modifying pipeline in pre('aggregate') hooks #8017
    • fix(query): make findOneAndReplace() work with orFail() #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