Skip to content

dependabot npm(deps): bump mongoose from 5.13.14 to 6.1.5

Depen d'Abot requested to merge dependabot-npm_and_yarn-mongoose-6.1.5 into master

Bumps mongoose from 5.13.14 to 6.1.5.

Release notes

Sourced from mongoose's releases.

6.1.5 / 2022-01-04

  • perf(index.d.ts): simplify Schema typedef for query helpers and methods to significantly reduce TS compiler overhead #10349
  • fix(document): allow populating deeply nested models as strings #11168 #11160 AbdelrahmanHafez
  • fix(query): allow calling limit() and skip() with a string #11017
  • fix(cursor): propery apply selected fields when loading discriminator docs with query cursor #11130
  • fix(mongoose+connection): clone schema correctly when passing instance of another Mongoose instance's Schema to Connection.prototype.model() #11047
  • fix(index.d.ts): handle primitives with FlattenMaps #11117
  • fix(index.d.ts): enforce id on lean query result type #11118
  • fix(index.d.ts): export facet stage type #11150 mhoc
  • fix(index.d.ts): correct return type of projection method #11176 EugeneKorshenko
  • fix(index.d.ts): additional fix for $group pipeline stage #11140 #11067 EugeneKorshenko
  • docs: update CONTRIBUTING.md for TS tests #11164 ahmedelshenawy25
  • docs: use es6 object destructuring instead of regular dot operator for accessing value in object #11147 Shivaansh-Agarwal

6.1.4 / 2021-12-27

  • fix(document): handle save with undefined nested doc under subdoc #11110
  • fix(document): allow manually populating subdocument refs with create() #10856
  • fix(populate): handles refPath underneath map of subdocuments #9359
  • fix(update): throw error when calling findByIdAndUpdate with undefined id #11079 gramliu
  • fix(mongoose): export ConnectionStates #11133 orgads
  • fix(index.d.ts): unpack array when using generic type override with populate() #11027
  • fix(index.d.ts): fix typings in Merge stage #11132
  • fix(index.d.ts): PipelineStage.Merge interface definition is wrong #11109
  • docs(typescript): add note about Schema.Types.ObjectId vs Types.ObjectId in document definition #10949
  • docs(connection): clarify that "connected" and "open" are different #10886
  • docs(populate): correct refPath example to not use on as a schema path name #11113
  • docs: fix strictQuery example #11135 MontgomeryWatts

6.1.3 / 2021-12-21

  • perf(populate): avoid duplicate model names when using refPath to avoid O(n^2) memory growth with number of array elements #10983
  • fix(schema+model): cast paths marked with ref when hydrating #11052
  • fix(schema): handle default function that returns null on document arrays #11058
  • fix(document): clean modified paths when setting deeply nested subdocument #11060
  • fix(populate): report full path when throwing strictPopulate error with deep populate #10923
  • fix(connection): allow calling setClient() when disconnected #11114 hustxiaoc
  • fix(index.d.ts): fix typings in Group stage #11124 DavideViolante
  • fix(index.d.ts): add Mongoose.prototype.trusted() function to type defs #10957
  • fix(index.d.ts): allow use type string in $unset update with aggregation pipeline #11107 rpenido
  • fix(index.d.ts) treat _id like other fields in $project #11102
  • docs(migrating_to_6): add omitUndefined to Mongoose 6 migration guide #10672
  • docs: add MongooseDocumentArray to API docs #10998
  • docs: fix typo in model.js #11121 eltociear
  • docs: fix typo in validation.md #11103 warlock1996

6.1.2 / 2021-12-14

... (truncated)

Changelog

Sourced from mongoose's changelog.

6.1.5 / 2022-01-04

  • perf(index.d.ts): simplify Schema typedef for query helpers and methods to significantly reduce TS compiler overhead #10349
  • fix(document): allow populating deeply nested models as strings #11168 #11160 AbdelrahmanHafez
  • fix(query): allow calling limit() and skip() with a string #11017
  • fix(cursor): propery apply selected fields when loading discriminator docs with query cursor #11130
  • fix(mongoose+connection): clone schema correctly when passing instance of another Mongoose instance's Schema to Connection.prototype.model() #11047
  • fix(index.d.ts): handle primitives with FlattenMaps #11117
  • fix(index.d.ts): enforce id on lean query result type #11118
  • fix(index.d.ts): export facet stage type #11150 mhoc
  • fix(index.d.ts): correct return type of projection method #11176 EugeneKorshenko
  • fix(index.d.ts): additional fix for $group pipeline stage #11140 #11067 EugeneKorshenko
  • docs: update CONTRIBUTING.md for TS tests #11164 ahmedelshenawy25
  • docs: use es6 object destructuring instead of regular dot operator for accessing value in object #11147 Shivaansh-Agarwal

6.1.4 / 2021-12-27

  • fix(document): handle save with undefined nested doc under subdoc #11110
  • fix(document): allow manually populating subdocument refs with create() #10856
  • fix(populate): handles refPath underneath map of subdocuments #9359
  • fix(update): throw error when calling findByIdAndUpdate with undefined id #11079 gramliu
  • fix(mongoose): export ConnectionStates #11133 orgads
  • fix(index.d.ts): unpack array when using generic type override with populate() #11027
  • fix(index.d.ts): fix typings in Merge stage #11132
  • fix(index.d.ts): PipelineStage.Merge interface definition is wrong #11109
  • docs(typescript): add note about Schema.Types.ObjectId vs Types.ObjectId in document definition #10949
  • docs(connection): clarify that "connected" and "open" are different #10886
  • docs(populate): correct refPath example to not use on as a schema path name #11113
  • docs: fix strictQuery example #11135 MontgomeryWatts
Commits
  • 3c7ae7a chore: release 6.1.5
  • 869cbc8 refactor: remove unnecessary if re: #11168
  • 9dcbe71 Merge pull request #11176 from EugeneKorshenko/ts-projection_return_type
  • 234f21d Merge pull request #11164 from ahmedelshenawy25/ahmedelshenawy25-patch-1
  • 2350bff Merge pull request #11168 from AbdelrahmanHafez/gh-11160
  • a455e18 types: Fix return type of projection method
  • d5550a5 fix(query): allow calling limit() and skip() with a string
  • 0c1fdbc docs: add github sponsors section
  • c8fd2cd fix(document): handle cases where subPopulate is nullish
  • e49a1f6 refactor(cursor): use standard completeOne() to hydrate doc with query curs...
  • Additional commits viewable in compare view

Merge request reports