petio-team / petio

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

Bump mongoose from 5.13.13 to 6.1.1 in /api #638

Closed dependabot[bot] closed 2 years ago

dependabot[bot] commented 2 years ago

Bumps mongoose from 5.13.13 to 6.1.1.

Release notes

Sourced from mongoose's releases.

6.1.0 / 2021-12-07

  • feat(populate): support ref on subdocuments #10856
  • feat(document): add ownerDocument() method to top-level document for consistency with subdocs #10884 IslandRhythms
  • fix: upgrade to mongodb driver 4.2.1 #11032 #10985 lorand-horvath has-n
  • feat(schema): support timeseries option for MongoDB 5 time series collections support #10611
  • feat(mongoose): add global strictPopulate option #10694 IslandRhythms
  • feat(mongoose+connection): add global mongoose.syncIndexes() and Connection.prototype.syncIndexes() #10893 IslandRhythms
  • feat(query): support removing fields from projections #10630 canac
  • feat(aggregate): add unionWith method to aggregate #10961 saeidasadi
  • fix(index.d.ts): types for aggregation pipeline stages #10971 jeremyben

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() and deleteMany() docs to reflect new matchedCount, 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
Changelog

Sourced from mongoose's changelog.

6.1.1 / 2021-12-09

  • fix(document): allow setting nested path to instance of document #11011
  • fix(update): respect strict option when casting array filters #11062
  • fix(index.d.ts): allow SchemaTypes.Mixed for all schema definition properties to allow using union types #10900
  • fix(index.d.ts): correct types for Schema.prototype.obj and Model.schema #10895
  • docs(migrating_to_6): add note about Types.ObjectId() being a class and requiring new #10960

6.1.0 / 2021-12-07

  • feat(populate): support ref on subdocuments #10856
  • feat(document): add ownerDocument() method to top-level document for consistency with subdocs #10884 IslandRhythms
  • fix: upgrade to mongodb driver 4.2.1 #11032 #10985 lorand-horvath has-n
  • feat(schema): support timeseries option for MongoDB 5 time series collections support #10611
  • feat(mongoose): add global strictPopulate option #10694 IslandRhythms
  • feat(mongoose+connection): add global mongoose.syncIndexes() and Connection.prototype.syncIndexes() #10893 IslandRhythms
  • feat(query): support removing fields from projections #10630 canac
  • feat(aggregate): add unionWith method to aggregate #10961 saeidasadi
  • fix(index.d.ts): types for aggregation pipeline stages #10971 jeremyben

6.0.15 / 2021-12-06

  • fix(document): avoid overwriting schema methods when creating a new document with new Model() and strict: false #11001
  • fix(document): avoid overwriting top-level document _id with nested _id when strict = false #10934
  • fix(collection): avoid double-calling callback on sync error #10956
  • fix(connection): handle direct connection to uninitialized replica set that then becomes initialized #10948
  • fix(index.d.ts): allow partial updates on subdocuments for defaults #10947
  • fix(index.d.ts): handle buffer type in schema definitions #11026

6.0.14 / 2021-11-29

  • fix(document): catch errors in required functions #10968
  • fix(connection): clone schema when passing a schema from a different copy of Mongoose to Connection#model() #10904
  • fix(populate): set empty array [] on virtual populate with no result #10992
  • fix(query): handle orFail() with replaceOne() #10963
  • fix(populate): use Model by default when using Model.populate() on a POJO #10978
  • fix(document): throw VersionError if saving a document with version bump and document isn't found #10974
  • fix(index.d.ts): make populate type param optional #10989 mohd-akram
  • docs(migrating_to_6): add a note about minimize and toObject() behavior change in v5.10.5 #10827
  • docs: remove duplicate path in docs #11020 ItWorksOnMyMachine
  • docs: fix typo in populate docs #11015 gavi-shandler
  • docs: fix typo in model.js #10982 eltociear

6.0.13 / 2021-11-15

  • fix(document): allows validating doc again if pre validate errors out #10830
  • fix: upgrade to mongodb driver 4.1.4 #10955 mohd-akram
  • fix(schema): handle functions with accidental type properties in schema definitions #10807
  • fix(path): add check to avoid flattening dotted paths on Mongoose docs, improve error when flattening dotted paths causes conflicts #10825
  • fix(index.d.ts): rename EnforceDocument -> HydratedDocument, export HydratedDocument for easier typing for users #10843

... (truncated)

Commits
  • b5f5678 chore: release 6.1.1
  • 61ad24d fix(index.d.ts): allow SchemaTypes.Mixed for all schema definition properties...
  • ba7147c fix(update): respect strict option when casting array filters
  • 2e8d61e test(update): repro #11062
  • 1cca222 fix(index.d.ts): correct types for Schema.prototype.obj and Model.schema
  • 94e4c9c docs(migrating_to_6): add note about Types.ObjectId() being a class and req...
  • 851e367 fix(document): allow setting nested path to instance of document
  • ae5843d test(document): repro #11011
  • 072e847 chore: release 6.1.0
  • 4540a29 Merge pull request #11053 from Automattic/6.1
  • Additional commits viewable in compare view


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 #642.