Sourced from mongoose's changelog.
5.13.13 / 2021-11-02
- fix: upgrade to mongodb@3.7.3 #10909 gaurav-sharma-gs
- fix: correctly emit end event in before close #10916 iovanom
- fix(index.d.ts): improve ts types for query set #10942 jneal-afs
6.0.12 / 2021-10-21
- fix(cursor): remove the logic for emitting close, rely on autoDestroy option for Node 12 support #10906 iovanom
- fix(map): support passing flattenMaps: false to Map toJSON(), make
toJSON()
flatten maps by default in TypeScript #10872- fix: upgrade to mongodb driver 4.1.3 #10911 orgads
- fix(index.d.ts): correct TS function signature for
SchemaType.prototype.set()
#10799- fix(index.d.ts): support implicit $in in FilterQuery #10826
- fix(index.d.ts): More precise type for Schema.clone() #10899 coyotte508
- fix(index.d.ts): add caster property to schema arrays and document arrays #10865
- docs: update
updateMany()
anddeleteMany()
docs to reflect newmatchedCount
,modifiedCount
,deletedCount
properties #10908 IslandRhythms- docs: fix broken links to populate virtuals #10870 IslandRhythms
- docs: updated docs to have returnOriginal, removed new and returnDocument #10887 IslandRhythms
5.13.12 / 2021-10-19
- fix(cursor): use stream destroy method on close to prevent emitting duplicate 'close' #10897 iovanom
- fix(index.d.ts): backport streamlining of FilterQuery and DocumentDefinition to avoid "excessively deep and possibly infinite" TS errors #10617
6.0.11 / 2021-10-14
- perf(index.d.ts): remove some unnecessary definitions, streamline some union types to reduce number of instantiations #10349
- fix(cursor): use stream destroy method on close to prevent emitting duplicate 'close' #10878 #10876 iovanom
- fix: create indexes when readPreference=primary is set #10861 #10855 gemyero
- fix(document): avoid depopulating when setting array of subdocs from different doc #10819
- fix(index.d.ts): allow modifying properties of UpdateQuery instances #10786
- fix(index.d.ts): add generic Paths to populate() to allow overriding path types #10758
5.13.11 / 2021-10-12
- fix: upgrade mongodb -> 3.7.2 #10871 winstonralph
- fix(connection): call setMaxListeners(0) on MongoClient to avoid event emitter memory leak warnings with
useDb()
#107326.0.10 / 2021-10-08
- fix(query): add back strictQuery option to avoid empty filter issues, tie it to
strict
by default for compatibility #10781 #10763- fix(model): avoid unnecessarily dropping text indexes in
syncIndexes()
#10851 #10850 IslandRhythms- fix(query): avoid trying to call toArray() on cursor if find() error occurred #10845
- fix: accepts uppercase values in mongoose.isValidObjectId #10846 foxadb
- perf(document): further reduce unnecessary objects and keys to minimize document memory overhead #10400
- fix(index.d.ts): restore unpacked type and avoid distributive conditional types #10859 dbellavista
- fix(index.d.ts): add correct null typings for
findOneAndUpdate()
andfindByIdAndUpdate()
#10820- fix(index.d.ts): make insertMany() correctly return Promise if passing single document to
insertMany()
#10802- fix(index.d.ts): avoid weird issue where TypeScript 4.3.x and 4.4.x makes string extend Function #10746
- fix(index.d.ts): allow type:
SchemaTypeOptions[]
when defining schema #10789
... (truncated)
a738440
chore: release 5.13.134d12a62
Merge pull request #10942 from jneal-afs/fix-query-set-ts-typec3463c4
Merge pull request #10916 from iovanom/gh-10902-v5ff5ddb5
fix: hardcode base 10 for nodeMajorVersion parseInt() calld205c4d
make value optionalc6fd7f7
Fix ts types for query set22e9b3b
[gh-10902 v5] Add node major version to utils5468642
[gh-10902 v5] Emit end event in before close271bc60
Merge pull request #10910 from lorand-horvath/patch-2b7ebeec
Update mongodb driver to 3.7.3