petio-team / petio

Petio Request, Discover, Review
https://petio.tv
MIT License
253 stars 28 forks source link

Bump mongoose from 5.13.14 to 6.1.6 in /api #671

Closed dependabot[bot] closed 2 years ago

dependabot[bot] commented 2 years ago

Bumps mongoose from 5.13.14 to 6.1.6.

Release notes

Sourced from mongoose's releases.

6.1.6 / 2022-01-10

  • perf(document): delay creating document event emitter until used to improve memory usage, several small improvements to improve initing docs with large arrays #10400
  • fix(model): avoid bulkSave() error when versionKey: false #11186 #11071 IslandRhythms
  • fix(model): revert #11079: findByIdAndUpdate(undefined) breaking change #11149
  • fix(index.d.ts): support strings in deep populate #11181 ivalduan
  • fix(index.d.ts): rename map() -> transform() to line up with change in v6.0 #11161
  • fix(index.d.ts): allow new Model(obj) for stricter type checks #11148
  • fix(index.d.ts): make Schema.prototype.pre() and post() generics default to HydratedDocument #11180
  • docs: improve autoCreate docs #11116
  • docs(schematype): add missing parameter to example #11185 kerolloz
  • docs(connections): use updated link to list of MongoDB Node driver connect() options #11184 splinter
  • docs(aggregate): fix formatting #11191 enieber
  • docs: fix broken link #11179 khairnarsaurabh23

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

... (truncated)

Changelog

Sourced from mongoose's changelog.

6.1.6 / 2022-01-10

  • perf(document): delay creating document event emitter until used to improve memory usage, several small improvements to improve initing docs with large arrays #10400
  • fix(model): avoid bulkSave() error when versionKey: false #11186 #11071 IslandRhythms
  • fix(model): revert #11079: findByIdAndUpdate(undefined) breaking change #11149
  • fix(index.d.ts): support strings in deep populate #11181 ivalduan
  • fix(index.d.ts): rename map() -> transform() to line up with change in v6.0 #11161
  • fix(index.d.ts): allow new Model(obj) for stricter type checks #11148
  • fix(index.d.ts): make Schema.prototype.pre() and post() generics default to HydratedDocument #11180
  • docs: improve autoCreate docs #11116
  • docs(schematype): add missing parameter to example #11185 kerolloz
  • docs(connections): use updated link to list of MongoDB Node driver connect() options #11184 splinter
  • docs(aggregate): fix formatting #11191 enieber
  • docs: fix broken link #11179 khairnarsaurabh23

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


Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
dependabot[bot] commented 2 years ago

Superseded by #679.