Skip to content

Comments

Update mongoose: 5.11.3 → 5.11.13 (patch)#84

Closed
depfu[bot] wants to merge 1 commit intomasterfrom
depfu/update/npm/mongoose-5.11.13
Closed

Update mongoose: 5.11.3 → 5.11.13 (patch)#84
depfu[bot] wants to merge 1 commit intomasterfrom
depfu/update/npm/mongoose-5.11.13

Conversation

@depfu
Copy link

@depfu depfu bot commented Jan 21, 2021


Welcome to Depfu 👋

This is one of the first three pull requests with dependency updates we've sent your way. We tried to start with a few easy patch-level updates. Hopefully your tests will pass and you can merge this pull request without too much risk. This should give you an idea how Depfu works in general.

After you merge your first pull request, we'll send you a few more. We'll never open more than seven PRs at the same time so you're not getting overwhelmed with updates.

Let us know if you have any questions. Thanks so much for giving Depfu a try!


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 (5.11.3 → 5.11.13) · Repo · Changelog

Release Notes

5.11.13 (from changelog)

  • fix(map): handle change tracking on map of arrays #9813
  • fix(connection): allow passing options to Connection#transaction() #9834 pnutmath
  • fix(index.d.ts): make Query#options#rawResult take precedence over new+upsert #9816
  • fix(index.d.ts): changed setOptions's 'overwrite' argument to optional #9824 pierissimo
  • fix(index.d.ts): allow setting mongoose.Promise #9820
  • fix(index.d.ts): add Aggregate#replaceRoot() #9814
  • fix(index.d.ts): make Model.create() with a spread return a promise of array rather than single doc #9817
  • fix(index.d.ts): use SchemaDefinitionProperty generic for SchemaTypeOptions if specified #9815
  • docs(populate): add note about setting toObject for populate virtuals #9822

5.11.12 (from changelog)

  • fix(document): handle using db as a document path #9798
  • fix(collection): make sure to call onOpen() if autoCreate === false #9807
  • fix(index.d.ts): correct query type for findOneAndUpdate() and findByIdAndUpdate() with rawResult = true #9803
  • fix(index.d.ts): require setting new: true or returnOriginal: false to skip null check with findOneAndUpdate() #9654
  • fix(index.d.ts): make methods and statics optional on schema #9801
  • fix(index.d.ts): remove non backwards compatible methods restriction #9801
  • docs: removed the extra word on comment doc #9794 HenriqueLBorges

5.11.11 (from changelog)

  • fix(model): support calling create() with undefined as first argument and no callback #9765
  • fix(index.d.ts): ensure TypeScript knows that this refers to DocType in schema methods with strict mode #9755
  • fix(index.d.ts): make SchemaDefinition accept a model generic #9761 mroohian
  • fix(index.d.ts): add Aggregate#addFields() #9774
  • fix(index.d.ts): allow setting min and max to [number, string] and [Date, string] #9762
  • fix(index.d.ts): improve context and type bindings for Schema#methods and Schema#statics #9717
  • docs: add recommended connection option #9768 Fernando-Lozano
  • chore: correct improper date in History.md #9783 botv

5.11.10 (from changelog)

  • fix(model): support populate option for insertMany() as a workaround for mongoose-autopopulate #9720
  • perf(schema): avoid creating extra array when initializing array of arrays #9588
  • perf(schema): avoid setting arrayPath when casting to a non-array, avoid unnecessarily setting atomics #9588
  • perf(schema): avoid expensive String#slice() call when creating a new array #9588
  • fix(queryhelpers): avoid modifying lean.virtuals in place #9754
  • fix: fall back to legacy treatment for square brackets if square brackets contents aren't a number #9640
  • fix(document): make fix for #9396 handle null values more gracefully #9709
  • fix(index.d.ts): add missing overloaded function for Document#populate() #9744 sahasayan
  • fix(index.d.ts): allow Model.create param1 overwrite #9753 hasezoey
  • fix(index.d.ts): improve autocomplete for query middleware #9752 3Aahmednaser94
  • fix(index.d.ts): add missing function for Aggregate#group() #9750 coro101
  • fix(index.d.ts): add missing Aggregate#project() #9763 vorticalbox
  • fix(index.d.ts): allow null as an enum value for schematypes #9746
  • docs(guide+schema): make schema API docs and guide docs' list of Schema options line up #9749
  • docs(documents): add some more details about what the save() promise resolves to #9689
  • docs(subdocs): add section about subdocument defaults #7291
  • chore: run GitHub CI on PRs and update badge #9760 YC

5.11.9 (from changelog)

  • fix(document): keeps atomics when assigning array to filtered array #9651
  • fix(document): apply defaults option to subdocument arrays #9736
  • fix(index.d.ts): allow passing generic parameter to overwrite lean() result type #9728
  • fix(index.d.ts): add missing pre hook for findOneAndUpdate #9743 sahasayan
  • fix(index.d.ts): schema methods & statics types #9725
  • fix(index.d.ts): allow id paths with non-string values in TypeScript #9723
  • fix(index.d.ts): support calling createIndexes() and ensureIndexes() with just callback #9706
  • fix(index.d.ts): include __v in LeanDocuments #9687
  • fix(index.d.ts): add missing Aggregate#append() #9714
  • chore: add eslint typescript support and lint index.d.ts file #9729 simllll
  • chore: add Github Actions #9688 YC

5.11.8 (from changelog)

  • fix(index.d.ts): add missing single document populate #9696 YC
  • fix(index.d.ts): make options optional for toObject #9700
  • fix(index.d.ts): added missing match and model methods in Aggregate class #9710 manekshms
  • fix(index.d.ts): make options optional for createIndexes() and ensureIndexes() #9706
  • fix(index.d.ts): support passing a function to ValidateOpts.message #9697
  • docs: add media query for ::before on headings #9705 #9704 YC

5.11.7 (from changelog)

  • fix(document): ensure calling get() with empty string returns undefined for mongoose-plugin-autoinc #9681
  • fix(model): set isNew to false for documents that were successfully inserted by insertMany with ordered = false when an error occurred #9677
  • fix(index.d.ts): add missing Aggregate#skip() & Aggregate#limit() #9692 sahasayan
  • fix(index.d.ts): make Document#id optional so types that use id can use Model<IMyType & Document> #9684

5.11.6 (from changelog)

  • fix(middleware): ensure sync errors in pre hooks always bubble up to the calling code #9659
  • fix(index.d.ts): allow passing ObjectId properties as strings to create() and findOneAndReplace() #9676
  • fix(index.d.ts): allow calling mongoose.model() and Connection#model() with model as generic param #9685 #9678 sahasayan
  • fix(index.d.ts): Fix return type of Model#aggregate() #9680 orgads
  • fix(index.d.ts): optional next() parameter for post middleware #9683 isengartz
  • fix(index.d.ts): allow array of validators in SchemaTypeOptions #9686 cjroebuck

5.11.5 (from changelog)

  • fix(map): support null in maps of subdocs #9628
  • fix(index.d.ts): support object syntax for validate #9667
  • fix(index.d.ts): Allow number for Schema expires #9670 alecgibson
  • fix(index.d.ts): allow definining arbitrary properties on SchemaTypeOpts for plugins like mongoose-autopopulate #9669
  • fix(index.d.ts): add mongoose.models #9661 #9660 AbdelrahmanHafez
  • fix(index.d.ts): allow the next() argument to be optional #9665 #9664 sahasayan
  • fix(index.d.ts): add missing VirtualType#applyGetters() and applySetters(), Schema#virtuals, Schema#childSchemas, Query#_mongooseOptions #9658
  • fix(index.d.ts): add id to LeanDocuments in case it is defined in the user's schema #9657
  • fix(index.d.ts): add missing types for hook functions #9653
  • fix(index.d.ts): improve support for strict null checks with upsert and orFail() #9654
  • fix(index.d.ts): make return values for insertMany() more consistent #9662
  • fix(index.d.ts): Change options in Connection#collection() to be optional #9663 orgads
  • fix(index.d.ts): add the missing generic declaration for Schema #9655 sahasayan
  • fix(index.d.ts): add missing SchemaTypeOpts and ConnectionOptions aliases for backwards compat
  • docs(populate): remove sort() from limit example to avoid potential confusion #9584
  • docs(compatibility): add MongoDB server 4.4 version compatibility #9641

5.11.4 (from changelog)

  • fix(index.d.ts): add Document#__v so documents have a Version by default #9652 sahasayan
  • fix(index.d.ts): add missing session option to SaveOptions #9642
  • fix(index.d.ts): add Schema#paths, Schema#static(obj), Embedded#schema, DocumentArray#schema, make Schema inherit from EventEmitter #9650
  • fix(index.d.ts): order when cb is optional in method #9647 CatsMiaow
  • fix(index.d.ts): use DocumentDefinition for FilterQuery #9649
  • fix(index.d.ts): correct callback result types for find(), findOne(), findById() #9648
  • fix(index.d.ts): remove Document#parent() method because it conflicts with existing user code #9645
  • fix(index.d.ts): add missing Connection#db property #9643
  • test(typescript): add tsconfig.json file for intellisense #9611 alecgibson

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)

@depfu
Copy link
Author

depfu bot commented Jan 30, 2021

Closed in favor of #91.

@depfu depfu bot closed this Jan 30, 2021
@depfu depfu bot deleted the depfu/update/npm/mongoose-5.11.13 branch January 30, 2021 00:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants