Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update dependency mongoose to v5.11.18 #32

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jan 1, 2021

WhiteSource Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
mongoose (source) 5.10.5 -> 5.11.18 age adoption passing confidence
@types/mongoose 5.7.36 -> 5.10.3 age adoption passing confidence

Release Notes

Automattic/mongoose

v5.11.18

Compare Source

====================

  • fix(connection): set connection state to disconnected if connecting string failed to parse #​9921
  • fix(connection): remove db events deprecation warning if useUnifiedTopology = true #​9930
  • fix(connection): fix promise chaining for openUri #​9960 lantw44
  • fix(index.d.ts): add PopulatedDoc type to make it easier to define populated docs in interfaces #​9818
  • fix(index.d.ts): allow explicitly overwriting toObject() return type for backwards compatibility #​9944
  • fix(index.d.ts): correctly throw error when interface path type doesn't line up with schema path type #​9958 ShadiestGoat
  • fix(index.d.ts): remove any from deleteX() and updateX() query params and return values #​9959 btd
  • fix(index.d.ts): add non-generic versions of Model.create() for better autocomplete #​9928
  • docs: correctly handle multiple &gt in API descriptions #​9940

v5.11.17

Compare Source

====================

  • fix(populate): handle perDocumentLimit when multiple documents reference the same populated doc #​9906
  • fix(document): handle directly setting embedded document array element with projection #​9909
  • fix(map): cast ObjectId to string inside of MongooseMap #​9938 HunterKohler
  • fix(model): use schema-level default collation for indexes if index doesn't have collation #​9912
  • fix(index.d.ts): make SchemaTypeOptions#type optional again to allow alternative typeKeys #​9927
  • fix(index.d.ts): support { type: String } in schema definition when using SchemaDefinitionType generic #​9911
  • docs(populate+schematypes): document the $* syntax for populating every entry in a map #​9907
  • docs(connection): clarify that Connection#transaction() promise resolves to a command result #​9919

v5.11.16

Compare Source

====================

  • fix(document): skip applying array element setters when init-ing an array #​9889
  • fix: upgrade to mongodb driver 3.6.4 #​9893 jooeycheng
  • fix: avoid copying Object.prototype properties when cloning #​9876
  • fix(aggregate): automatically convert functions to strings when using $function operator #​9897
  • fix: call pre-remove hooks for subdocuments #​9895 #​9885 IslandRhythms
  • docs: fix confusing sentence in Schema docs #​9914 namenyi

v5.11.15

Compare Source

====================

  • fix(document): fix issues with isSelected as an path in a nested schema #​9884 #​9873 IslandRhythms
  • fix(index.d.ts): better support for SchemaDefinition generics when creating schema #​9863 #​9862 #​9789
  • fix(index.d.ts): allow required function in array definition #​9888 Ugzuzg
  • fix(index.d.ts): reorder create typings to allow array desctructuring #​9890 Ugzuzg
  • fix(index.d.ts): add missing overload to Model.validate #​9878 #​9877 jonamat
  • fix(index.d.ts): throw compiler error if schema says path is a String, but interface says path is a number #​9857
  • fix(index.d.ts): make Query a class, allow calling Query#where() with object argument and with no arguments #​9856
  • fix(index.d.ts): support calling Schema#pre() and Schema#post() with options and array of hooked function names #​9844
  • docs(faq): mention other debug options than console #​9887 dandv
  • docs(connections): clarify that Mongoose can emit 'error' both during initial connection and after initial connection #​9853

v5.11.14

Compare Source

====================

  • fix(populate): avoid inferring justOne from parent when populating a POJO with a manually populated path #​9833 IslandRhythms
  • fix(document): apply setters on each element of the array when setting a populated array #​9838
  • fix(map): handle change tracking on maps of subdocs #​9811 IslandRhythms
  • fix(document): remove dependency on documentIsSelected symbol #​9841 IslandRhythms
  • fix(error): make ValidationError.toJSON to include the error name correctly #​9849 hanzki
  • fix(index.d.ts): indicate that Document#remove() returns a promise, not a query #​9826
  • fix(index.d.ts): allow setting SchemaType#enum to TypeScript enum with required: true #​9546

v5.11.13

Compare Source

====================

  • 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

v5.11.12

Compare Source

====================

  • 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

v5.11.11

Compare Source

====================

  • 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

v5.11.10

Compare Source

====================

  • 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

v5.11.9

Compare Source

===================

  • 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

v5.11.8

Compare Source

===================

  • 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

v5.11.7

Compare Source

===================

  • 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

v5.11.6

Compare Source

===================

  • 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

v5.11.5

Compare Source

===================

  • 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

v5.11.4

Compare Source

===================

  • 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

v5.11.3

Compare Source

===================

  • fix(index.d.ts): make Mongoose collection inherit MongoDB collection #​9637 #​9630 AbdelrahmanHafez
  • fix(index.d.ts): add Document#_id so documents have an id by default #​9632
  • fix(index.d.ts): allow inline schema definitions for nested properties #​9639 Green-Cat
  • fix(index.d.ts): add support for missing error message definitions #​9638 SaifAlsabe
  • fix(schema+discriminator): support defining recursive embedded discriminators by passing document array schematype to discriminator #​9600
  • fix(index.d.ts): make it possible to use LeanDocument with arrays #​9620
  • fix(index.d.ts): add ModelUpdateOptions as alias for QueryOptions for backwards compat #​9637

v5.11.2

Compare Source

===================

  • fix(index.d.ts): add missing query options and model findById() function #​9626 #​9620
  • fix(index.d.ts): support defining schema paths as arrays of functions #​9617
  • fix(index.d.ts): add automatic _id for Document, support creating Mongoose globals and accessing collection name #​9618
  • fix(index.d.ts): add missing global get() and set() #​9616
  • fix(index.d.ts): add missing new and returnOriginal options to QueryOptions, add missing model static properties #​9627 #​9616 #​9615
  • fix(index.d.ts): allow useCreateIndex in connection options #​9621

v5.11.1

Compare Source

====================

  • fix(connection): set connection state to disconnected if connecting string failed to parse #​9921
  • fix(connection): remove db events deprecation warning if useUnifiedTopology = true #​9930
  • fix(connection): fix promise chaining for openUri #​9960 lantw44
  • fix(index.d.ts): add PopulatedDoc type to make it easier to define populated docs in interfaces #​9818
  • fix(index.d.ts): allow explicitly overwriting toObject() return type for backwards compatibility #​9944
  • fix(index.d.ts): correctly throw error when interface path type doesn't line up with schema path type #​9958 ShadiestGoat
  • fix(index.d.ts): remove any from deleteX() and updateX() query params and return values #​9959 btd
  • fix(index.d.ts): add non-generic versions of Model.create() for better autocomplete #​9928
  • docs: correctly handle multiple &gt in API descriptions #​9940

v5.11.0

Compare Source

===================

  • feat: add official TypeScript definitions index.d.ts file #​8108
  • feat(connection): add bufferTimeoutMS option that configures how long Mongoose will allow commands to buffer #​9469
  • feat(populate): support populate virtuals with localField and foreignField as arrays #​6608
  • feat(populate+virtual): feat: support getters on populate virtuals, including get option for Schema#virtual() #​9343
  • feat(populate+schema): add support for populate schematype option that sets default populate options #​6029
  • feat(QueryCursor): execute post find hooks for each doc in query cursor #​9345
  • feat(schema): support overwriting cast logic for individual schematype instances #​8407
  • feat(QueryCursor): make cursor populate() in batch when using batchSize #​9366 biomorgoth
  • chore: remove changelog from published bundle #​9404
  • feat(model+mongoose): add overwriteModels option to bypass OverwriteModelError globally #​9406
  • feat(model+query): allow defining middleware for all query methods or all document methods, but not other middleware types #​9190
  • feat(document+model): make change tracking skip saving if new value matches last saved value #​9396
  • perf(utils): major speedup for deepEqual() on documents and arrays #​9396
  • feat(schema): support passing a TypeScript enum to enum validator in schema #​9547 #​9546 AbdelrahmanHafez
  • feat(debug): #​8963 shell option for date format (ISODate) #​9532 FlameFractal
  • feat(document): support square bracket indexing for get(), set() #​9375
  • feat(document): support array and space-delimited syntax for Document#$isValid(), isDirectSelected(), isSelected(), $isDefault() #​9474
  • feat(string): make minLength and maxLength behave the same as minlength and maxlength #​8777 m-weeks
  • feat(document): add $parent() as an alias for parent() for documents and subdocuments to avoid path name conflicts #​9455

v5.10.19

Compare Source

====================

  • fix(query): support passing an array to $type in query filters #​9577
  • perf(schema): avoid creating unnecessary objects when casting to array #​9588
  • docs: make example gender neutral #​9601 rehatkathuria

v5.10.18

Compare Source

====================

v5.10.17

Compare Source

====================

v5.10.16

Compare Source

====================

  • fix(connection): copy config options from connection rather than base connection when calling useDb() #​9569
  • fix(schema): support of for array type definitions to be consistent with maps #​9564
  • docs(dates): fix broken example reference #​9557 kertof
  • docs(virtualtype): remove unintentional h2 tag re: tj/dox#​60 #​9568

v5.10.15

Compare Source

====================

  • fix(array): make sure Array#toObject() returns a vanilla JavaScript array in Node.js 6+ #​9540
  • fix(connection): make disconnect() stop Mongoose if it is trying to reconnect #​9531
  • fix: ensure Document#overwrite() correctly overwrites maps #​9549
  • fix(document): make transform work with nested paths #​9544 #​9543 jonathan-wilkinson
  • fix(query): maxTimeMS in count, countDocuments, distinct #​9552 FlameFractal
  • fix(schema): remove warning re: increment as a schema path name #​9538
  • fix(model): automatically set partialFilterExpression for indexes in discriminator schemas #​9542

v5.10.14

Compare Source

====================

  • fix(update): handle casting immutable object properties with $setOnInsert #​9537
  • fix(discriminator): overwrite instead of merge if discriminator schema specifies a path is single nested but base schema has path as doc array #​9534
  • docs(middleware): clarify that you need to set both document and query on remove hooks to get just document middleware #​9530 mustafaKamal-fe
  • docs(CONTRIBUTING): remove mmapv1 recommendation and clean up a few other details #​9529
  • refactor: remove duplicate function definition #​9527 ksullivan

v5.10.13

Compare Source

====================

v5.10.12

Compare Source

====================

  • fix(connection): catch and report sync errors in connection wrappers like startSession() #​9515
  • fix(document): ignore getters when diffing values for change tracking #​9501
  • fix(connection): avoid executing promise handler unless it's a function #​9507 AbdelrahmanHafez
  • fix(error): throw more helpful error when connecting to a non-SSL MongoDB server with SSL enabled #​9511
  • docs(model+query): clarify that deleteOne and deleteMany trigger middleware #​9504
  • docs(ssl): add note about ssl defaulting to true for srv connection strings #​9511

v5.10.11

Compare Source

====================

  • fix(connection): when calling mongoose.connect() multiple times in parallel, make 2nd call wait for connection before resolving #​9476
  • fix(map): make save() persist Map#clear() #​9493
  • fix(document): avoid overwriting array subdocument when setting dotted path that isn't selected #​9427
  • fix(connection): don't throw Atlas error if server discovery doesn't find any servers #​9470
  • docs: update options for Model.findOneAndUpdate #​9499 radamson

v5.10.10

Compare Source

====================

  • fix(schema): handle merging schemas from separate Mongoose module instances when schema has a virtual #​9471
  • fix(connection): make connection.then(...) resolve to a connection instance #​9497 AbdelrahmanHafez
  • fix(aggregate): when using $search with discriminators, add $match as the 2nd stage in pipeline rather than 1st #​9487
  • fix(query): cast $nor within $elemMatch #​9479
  • docs(connection): add note about 'error' event versus 'disconnected' event #​9488 tareqdayya

v5.10.9

Compare Source

===================

  • fix(update): strip out unused array filters to avoid "filter was not used in the update" error #​9468
  • fix(mongoose): allow setting autoCreate as a global option to be consistent with autoIndex #​9466

v5.10.8

Compare Source

===================

  • fix(schema): handle setting nested paths underneath single nested subdocs #​9459
  • fix(schema+index): allow calling mongoose.model() with schema from a different Mongoose module instance #​9449
  • fix(transaction): fix saving new documents w/ arrays in transactions #​9457 PenguinToast
  • fix(document): track reason on cast errors that occur while init-ing a document #​9448
  • fix(model): make createCollection() not throw error when collection already exists to be consistent with v5.9 #​9447
  • docs(connections): add SSL connections docs #​9443
  • docs(query_casting): fix typo #​9458 craig-davis

v5.10.7

Compare Source

===================

  • fix(schema): set correct path and schema on nested primitive arrays #​9429
  • fix(document): pass document to required validator so required can use arrow functions #​9435 AbdelrahmanHafez
  • fix(document): handle required when schema has property named isSelected #​9438
  • fix(timestamps): allow using timestamps when schema has a property named 'set' #​9428
  • fix(schema): make Schema#clone() use parent Mongoose instance's Schema constructor #​9426

v5.10.6

Compare Source

===================

  • fix(populate): handle options.perDocumentLimit option same as perDocumentLimit when calling populate() #​9418
  • fix(document): invalidate path if default function throws an error #​9408
  • fix: ensure subdocument defaults run after initial values are set when initing #​9408
  • docs(faq+queries): add more detail about duplicate queries, including an faq entry #​9386
  • docs: replace var with let and const in docs and test files #​9414 jmadankumar
  • docs(model+query): document using array of strings as projection #​9413
  • docs(middleware): add missing backtick #​9425 tphobe9312

Renovate configuration

📅 Schedule: At any time (no schedule defined).

🚦 Automerge: Enabled.

♻️ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about these updates again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by WhiteSource Renovate. View repository job log here.

@renovate renovate bot changed the title Update dependency mongoose to v5.11.9 Update dependency mongoose to v5.11.10 Jan 4, 2021
@renovate renovate bot changed the title Update dependency mongoose to v5.11.10 Update dependency mongoose to v5.11.11 Jan 8, 2021
@renovate renovate bot force-pushed the renovate/mongoose-5.x branch 2 times, most recently from 9cb3042 to 8c41179 Compare January 14, 2021 21:32
@renovate renovate bot changed the title Update dependency mongoose to v5.11.11 Update dependency mongoose to v5.11.12 Jan 14, 2021
@renovate renovate bot changed the title Update dependency mongoose to v5.11.12 Update dependency mongoose to v5.11.13 Jan 20, 2021
@renovate renovate bot changed the title Update dependency mongoose to v5.11.13 Update dependency mongoose to v5.11.14 Jan 28, 2021
@renovate renovate bot changed the title Update dependency mongoose to v5.11.14 Update dependency mongoose to v5.11.15 Feb 3, 2021
@renovate renovate bot changed the title Update dependency mongoose to v5.11.15 Update dependency mongoose to v5.11.16 Feb 12, 2021
@renovate renovate bot changed the title Update dependency mongoose to v5.11.16 Update dependency mongoose to v5.11.17 Feb 17, 2021
@renovate renovate bot changed the title Update dependency mongoose to v5.11.17 Update dependency mongoose to v5.11.18 Feb 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant