Changes
This commit is contained in:
83
node_modules/mongoose/History.md
generated
vendored
83
node_modules/mongoose/History.md
generated
vendored
@@ -1,3 +1,86 @@
|
||||
5.10.0 / 2020-08-14
|
||||
===================
|
||||
* feat: upgrade to MongoDB driver 3.6 for full MongoDB 4.4 support
|
||||
* feat(connection): add `Connection#transaction()` helper that handles resetting Mongoose document state if the transaction fails #8380
|
||||
* feat(connection): make transaction() helper reset array atomics after failed transaction
|
||||
* feat(schema+model): add `optimisticConcurrency` option to use OCC for `save()` #9001 #5424
|
||||
* feat(aggregate): add `Aggregate#search()` for Atlas Text Search #9115
|
||||
* feat(mongoose): add support for setting `setDefaultsOnInsert` as a global option #9036 [AbdelrahmanHafez](https://github.com/AbdelrahmanHafez)
|
||||
* feat(mongoose): add support for setting `returnOriginal` as a global option #9189 #9183 [AbdelrahmanHafez](https://github.com/AbdelrahmanHafez)
|
||||
* feat(mongoose): allow global option mongoose.set('strictQuery', true) #9016 [AbdelrahmanHafez](https://github.com/AbdelrahmanHafez)
|
||||
* feat(document): add Document#getChanges #9097 [AbdelrahmanHafez](https://github.com/AbdelrahmanHafez)
|
||||
* feat(document): support `defaults` option to disable adding defaults to a single document #8271
|
||||
* feat(SingleNestedPath+DocumentArray): add static `set()` function for global options, support setting `_id` globally #8883
|
||||
* feat(query): handle casting `$or` when each clause contains a different discriminator key #9018
|
||||
* feat(query): add overwriteDiscriminatorKey option that allows changing the discriminator key in `findOneAndUpdate()`, `updateOne()`, etc. #6087
|
||||
* fix(connection): make calling `mongoose.connect()` while already connected a no-op #9203
|
||||
* feat(connection): add `getClient()` and `setClient()` function for interacting with a connection's underlying MongoClient instance #9164
|
||||
* feat(document+populate): add `parent()` function that allows you to get the parent document for populated docs #8092
|
||||
* feat(document): add `useProjection` option to `toObject()` and `toJSON()` for hiding deselected fields on newly created documents #9118
|
||||
|
||||
5.9.29 / 2020-08-13
|
||||
===================
|
||||
* fix(document): support setting nested path to itself when it has nested subpaths #9313
|
||||
* fix(model): make `syncIndexes()` report error if it can't create an index #9303
|
||||
* fix: handle auth error when Atlas username is incorrect #9300
|
||||
|
||||
5.9.28 / 2020-08-07
|
||||
===================
|
||||
* fix(connection): consistently stop buffering when "reconnected" is emitted #9295
|
||||
* fix(error): ensure `name` and `message` show up on individual ValidatorErrors when calling JSON.stringify() on a ValidationError #9296
|
||||
* fix(document): keeps manually populated paths when setting a nested path to itself #9293
|
||||
* fix(document): allow saving after setting document array to itself #9266
|
||||
* fix(schema): handle `match` schema validator with `/g` flag #9287
|
||||
* docs(guide): refactor transactions examples to async/await #9204
|
||||
|
||||
5.9.27 / 2020-07-31
|
||||
===================
|
||||
* fix: upgrade mongodb driver -> 3.5.10 [AbdelrahmanHafez](https://github.com/AbdelrahmanHafez)
|
||||
* docs(transactions): make transactions docs use async/await for readability #9204
|
||||
|
||||
5.9.26 / 2020-07-27
|
||||
===================
|
||||
* fix(document): allow unsetting boolean field by setting the field to `undefined` #9275
|
||||
* fix(document): throw error when overwriting a single nested subdoc changes an immutable path within the subdoc #9281
|
||||
* fix(timestamps): apply timestamps to `bulkWrite()` updates when not using `$set` #9268
|
||||
* fix(browser): upgrade babel to v7 to work around an issue with `extends Error` #9273
|
||||
* fix: make subdocument's `invalidate()` methods have the same return value as top-level document #9271
|
||||
* docs(model): make `create()` docs use async/await, and add another warning about how `create()` with options requires array syntax #9280
|
||||
* docs(connections): clarify that Mongoose can emit 'connected' when reconnecting after losing connectivity #9240
|
||||
* docs(populate): clarify that you can't filter based on foreign document properties when populating #9279
|
||||
* docs(document+model): clarify how `validateModifiedOnly` option works #9263
|
||||
* docs: remove extra poolSize option in comment #9270 [shahvicky](https://github.com/shahvicky)
|
||||
* docs: point bulkWrite() link to mongoose docs instead of localhost #9284
|
||||
|
||||
5.9.25 / 2020-07-17
|
||||
===================
|
||||
* fix(discriminator): allow passing a compiled model's schema as a parameter to `discriminator()` #9238
|
||||
* fix(connection): throw more readable error when querying db before initial connection when `bufferCommands = false` #9239
|
||||
* fix(indexes): don't unnecessarily drop text indexes when running `syncIndexes()` #9225
|
||||
* fix: make Boolean _castNullish respect omitUndefined #9242 [ehpc](https://github.com/ehpc)
|
||||
* fix(populate): populate single nested discriminator underneath doc array when populated docs have different model but same id #9244
|
||||
* docs(mongoose): correct formatting typo #9247 [JNa0](https://github.com/JNa0)
|
||||
|
||||
5.9.24 / 2020-07-13
|
||||
===================
|
||||
* fix(connection): respect connection-level `bufferCommands` option if `mongoose.connect()` is called after `mongoose.model()` #9179
|
||||
* fix(document): clear out `priorDoc` after overwriting single nested subdoc so changes after overwrite get persisted correctly #9208
|
||||
* fix(connection): dont overwrite user-specified `bufferMaxEntries` when setting `bufferCommands` #9218
|
||||
* fix(model): allow passing projection to `Model.hydrate()` #9209
|
||||
* fix(schema+document): support adding `null` to schema boolean's `convertToFalse` set #9223
|
||||
* docs(model): make `find` and `findOne()` examples use async/await and clarify `find({})` is find all #9210
|
||||
|
||||
4.13.21 / 2020-07-12
|
||||
====================
|
||||
* fix(query): delete top-level `_bsontype` property in queries to prevent silent empty queries #8222
|
||||
|
||||
5.9.23 / 2020-07-10
|
||||
===================
|
||||
* fix(model): fix `syncIndexes()` error when db index has a collation but Mongoose index does not #9224 [clhuang](https://github.com/clhuang)
|
||||
* fix(array): only cast array to proper depth if it contains an non-array value #9217 #9215 [cyrilgandon](https://github.com/cyrilgandon)
|
||||
* docs(schematype): document the `transform` option #9211
|
||||
* docs(mongoose): fix typo #9212 [JNa0](https://github.com/JNa0)
|
||||
|
||||
5.9.22 / 2020-07-06
|
||||
===================
|
||||
* fix(schema): treat `{ type: mongoose.Schema.Types.Array }` as equivalent to `{ type: Array }` #9194
|
||||
|
||||
Reference in New Issue
Block a user