drph4nt0m / avbot-charts

Aviation charts
Other
23 stars 28 forks source link

Update mongoose: 6.0.12 → 6.1.5 (minor) #375

Closed depfu[bot] closed 2 years ago

depfu[bot] commented 2 years ago

Here is everything you need to know about this update. Please take a good look at what changed and the test results before merging this pull request.

What changed?

✳️ mongoose (6.0.12 → 6.1.5) · Repo · Changelog

Release Notes

6.1.5

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

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

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

6.1.2 / 2021-12-14

  • fix: upgrade mongodb driver to 4.2.2 #11092 lorand-horvath
  • fix(model): respect discriminators when calling Model.watch() #11007
  • fix(populate): allow referencing parent connection models by name when using useDb() #11003
  • fix(query): support options param to Query.prototype.countDocuments() #11037
  • fix(query): correctly use awaitData instead of awaitdata in Query.prototype.tailable() #10875
  • fix(index.d.ts): fix replaceRoot type #11098 alibehroozi
  • fix(index.d.ts): add missing syncIndexes() definition to Mongoose global and Connection class #11065
  • fix(index.d.ts): add boolean type for transform option #11057 AliYusuf95
  • docs(model.estimatedDocumentCount): add await into example to get value from the Query #11044 olecom
  • docs: fix broken build from awaitdata comment #11096 medolino
  • docs: correct Query.prototype.transform() docs #11094 medolino

6.1.1

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

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 (from changelog)

  • 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 (from changelog)

  • 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 (from changelog)

  • 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
  • fix(index.d.ts): handle maps in TypeScript schema definitions #10838
  • fix(index.d.ts): add clone to query #10943 asportnoy
  • fix(index.d.ts): add strictQuery global option #10933
  • fix(index.d.ts): add generic to allow overriding Schema#clone() return type #10951 StefanoA1
  • docs(typescript): add quick guide to virtuals in TypeScript #10754
  • docs(aggregate): remove exec() from AggregationCursor example, no longer correct for Mongoose 6 #10862
  • docs(document.js): fix link leading to old github pages site #10958 PuneetGopinath
  • docs: fixed typo in document.js #10950 Haosik

Does any of this look wrong? Please let us know.

Commits

See the full diff on Github. The new version differs by more commits than we can show here.


Depfu Status

Depfu will automatically keep this PR conflict-free, as long as you don't add any commits to this branch yourself. You can also trigger a rebase manually by commenting with @depfu rebase.

All Depfu comment commands
@​depfu rebase
Rebases against your default branch and redoes this update
@​depfu recreate
Recreates this PR, overwriting any edits that you've made to it
@​depfu merge
Merges this PR once your tests are passing and conflicts are resolved
@​depfu close
Closes this PR and deletes the branch
@​depfu reopen
Restores the branch and reopens this PR (if it's closed)
@​depfu pause
Ignores all future updates for this dependency and closes this PR
@​depfu pause [minor|major]
Ignores all future minor/major updates for this dependency and closes this PR
@​depfu resume
Future versions of this dependency will create PRs again (leaves this PR as is)
Go to the Depfu Dashboard to see the state of your dependencies and to customize how Depfu works.
depfu[bot] commented 2 years ago

Closed in favor of #377.