Skip to content
This repository was archived by the owner on Nov 1, 2023. It is now read-only.

Conversation

@renovate
Copy link

@renovate renovate bot commented Jan 17, 2020

This PR contains the following updates:

Package Type Update Change
mongoose (source) dependencies minor 5.8.7 -> 5.9.22

Release Notes

Automattic/mongoose

v5.9.22

Compare Source

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

  • fix(schema): treat { type: mongoose.Schema.Types.Array } as equivalent to { type: Array } #​9194
  • fix: revert fix for #​9107 to avoid issues when calling connect() multiple times #​9167
  • fix(update): respect storeSubdocValidationError option with update validators #​9172
  • fix: upgrade to safe-buffer 5.2 #​9198
  • docs: add a note about SSL validation to migration guide #​9147
  • docs(schemas): fix inconsistent header #​9196 samtsai15

v5.9.21

Compare Source

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

  • fix: propagate typeKey option to implicitly created schemas from typePojoToMixed #​9185 joaoritter
  • fix(populate): handle embedded discriminator refPath with multiple documents #​9153
  • fix(populate): handle deselected foreign field with perDocumentLimit and multiple documents #​9175
  • fix(document): disallow transform functions that return promises #​9176 #​9163 AbdelrahmanHafez
  • fix(document): use strict equality when checking mixed paths for modifications #​9165
  • docs: add target="_blank" to all edit links #​9058

v5.9.20

Compare Source

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

  • fix(populate): handle populating primitive array under document array discriminator #​9148
  • fix(connection): make sure to close previous connection when calling openUri() on an already open connection #​9107
  • fix(model): fix conflicting $setOnInsert default values with update values in bulkWrite #​9160 #​9157 AbdelrahmanHafez
  • docs(validation): add note about validateBeforeSave and invalidate #​9144 dandv
  • docs: specify the array field syntax for invalidate #​9137 dandv
  • docs: fix several typos and broken references #​9024 AbdelrahmanHafez
  • docs: fix minor typo #​9143 dandv

v5.9.19

Compare Source

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

  • fix: upgrade mongodb driver -> 3.5.9 #​9124 AbdelrahmanHafez
  • fix: copy required validator on single nested subdoc correctly when calling Schema#clone() #​8819
  • fix(discriminator): handle tiedValue when casting update on nested paths #​9108
  • fix(model): allow empty arrays for bulkWrite #​9132 #​9131 AbdelrahmanHafez
  • fix(schema): correctly set partialFilterExpression for nested schema indexes #​9091
  • fix(castArrayFilters): handle casting on all fields of array filter #​9122 lafeuil
  • fix(update): handle nested path createdAt when overwriting parent path #​9105
  • docs(subdocs): add some notes on the difference between single nested subdocs and nested paths #​9085
  • docs(subdocs): improve docs on typePojoToMixed #​9085
  • docs: add note about connections in globalSetup with Jest #​9063
  • docs: add schema and how to set default sub-schema to schematype options #​9111 dfle
  • docs(index): use const instead of var in examples #​9125 dmcgrouther
  • docs: corrected markdown typo #​9117

v5.9.18

Compare Source

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

  • fix: improve atlas error in the event of incorrect password #​9095
  • docs: add edit link for all docs pages #​9058
  • fix(document): allow accessing $locals when initializing document #​9099 #​9098 AbdelrahmanHafez
  • fix(query): make setDefaultsOnInsert a mongoose option so it doesn't end up in debug output #​9086
  • docs(connection+index): add serverSelectionTimeoutMS and heartbeatFrequencyMS to connect() and openUri() options #​9071
  • docs(geojson): add notes about geojson 2dsphere indexes #​9044
  • docs: make active page bold in navbar #​9062
  • docs: correct a typo in a code snippet #​9089 Elvis-Sarfo

v5.9.17

Compare Source

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

v5.9.16

Compare Source

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

  • perf(error): convert errors to classes extending Error for lower CPU overhead #​9021 zbjornson
  • fix(query): throw CastError if filter $and, $or, $nor contain non-object values #​8948
  • fix(bulkwrite): cast filter & update to schema after applying timestamps #​9030 AbdelrahmanHafez
  • fix(document): don't overwrite defaults with undefined keys in nested documents #​9039 vitorhnn
  • fix(discriminator): remove discriminator schema nested paths pulled from base schema underneath a mixed path in discriminator schema #​9042
  • fix(model): make syncIndexes() not drop index if all user-specified collation options are the same #​8994
  • fix(document): make internal $__.scope property a symbol instead to work around a bug with fast-safe-stringify #​8955
  • docs: model.findByIdAndUpdate() 'new' param fix #​9026 dandv

v5.9.15

Compare Source

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

  • fix(schema): treat creating dotted path with no parent as creating a nested path #​9020
  • fix(documentarray): make sure you can call unshift() after map() #​9012 philippejer
  • fix(model): cast bulkwrite according to discriminator schema if discriminator key is present #​8982 AbdelrahmanHafez
  • fix(schema): remove db from reserved keywords #​8940
  • fix(populate): treat populating a doc array that doesn't have a ref as a no-op #​8946
  • fix(timestamps): set createdAt and updatedAt on doubly nested subdocs when upserting #​8894
  • fix(model): allow POJOs as schemas for model.discriminator(...) #​8991 AbdelrahmanHafez
  • fix(model): report insertedDocs on insertMany() errors #​8938
  • fix(model): ensure consistent writeErrors property on insertMany error with ordered: false, even if only one op failed #​8938
  • docs: add anchor tag to strictQuery and strict #​9014 AbdelrahmanHafez
  • docs(faq): remove faq ipv6 #​9004
  • docs: add note about throwing error only after validation and fix broken reference to api/CastError #​8993 AbdelrahmanHafez
  • docs: fix typos in documents.pug #​9005 dandv

v5.9.14

Compare Source

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

v5.9.13

Compare Source

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

  • fix(schema): mark correct path as modified when setting a path underneath a nested array of documents #​8926
  • fix(query): Query#select({ field: false }) should not overwrite schema selection options #​8929 #​8923
  • fix(update): handle immutable properties are ignored in bulk upserts #​8952 philippejer
  • docs(browser): add back sample webpack config #​8890
  • docs(faq): fix broken reference in limit vs perDocumentLimit #​8937

v5.9.12

Compare Source

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

  • fix(document): report cast error on array elements with array index instead of just being a cast error for the whole array #​8888
  • fix(connection): throw more helpful error in case of IP whitelisting issue with Atlas #​8846
  • fix(schema): throw error on schema with reserved key with type of object #​8869 AbdelrahmanHafez
  • fix(connection): inherit config for useDB from default connection #​8267 AbdelrahmanHafez
  • fix(query): set mongodb options for distinct() #​8906 clhuang
  • fix(schema): allow adding descending indexes on schema #​8895 AbdelrahmanHafez
  • fix(document): set defaults if setting nested path to empty object with minimize: false #​8829
  • fix(populate): check discriminator existence before accessing schema in getModelsMapForPopulate #​8837 AbdelrahmanHafez
  • docs: fix broken references to Mongoose#Document API, and prefer mongoose.model(...) over Document#model(...) #​8914 AbdelrahmanHafez
  • docs(model): adds options.limit to Model.insertMany(...) #​8864 AbdelrahmanHafez
  • docs: add flattenMaps and aliases to Document#toObject() #​8901 AbdelrahmanHafez
  • docs(model): add options.overwrite to findOneAndUpdate #​8865 AbdelrahmanHafez
  • docs(populate+faq): separate limit-vs-perDocumentLimit into its own section, add FAQ for populate and limit #​8917 AbdelrahmanHafez

v5.9.11

Compare Source

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

v5.9.10

Compare Source

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

v5.9.9

Compare Source

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

  • fix(model): make Model.bulkWrite accept strict option #​8782 #​8788 AbdelrahmanHafez
  • fix(virtual): make populated virtual getter return value when it is passed in #​8775 #​8774 makinde
  • fix(document): handle validating document array whose docs contain maps and nested paths #​8767
  • fix(document): skip discriminator key when overwriting a document #​8765
  • fix(populate): support clone option with lean #​8761 #​8760
  • docs(transactions): use endSession() in all transactions examples #​8741
  • docs(queries): expand streaming section to include async iterators, cursor timeouts, and sesssion idle timeouts #​8720
  • docs(model+query+findoneandupdate): add docs for returnOriginal option #​8766
  • docs(model): fix punctuation #​8788 dandv
  • docs: fix typos #​8780 #​8799 dandv

v5.9.7

Compare Source

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

  • fix(map): avoid infinite loop when setting a map of documents to a document copied using spread operator #​8722
  • fix(query): clean stack trace for filter cast errors so they include the calling file #​8691
  • fix(model): make bulkWrite updates error if strict and upsert are set and filter contains a non-schema path #​8698
  • fix(cast): make internal castToNumber() allow undefined #​8725 p3x-robot

v5.9.6

Compare Source

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

  • fix(document): allow saving document with nested document array after setting nestedArr.0 #​8689
  • docs(connections): expand section about multiple connections to describe patterns for exporting schemas #​8679
  • docs(populate): add note about execPopulate() to "populate an existing document" section #​8671 #​8275
  • docs: fix broken links #​8690 AbdelrahmanHafez
  • docs(guide): fix typos #​8704 MateRyze
  • docs(guide): fix minor typo #​8683 pkellz

v5.9.5

Compare Source

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

  • fix: upgrade mongodb driver -> 3.5.5 #​8667 #​8664 AbdelrahmanHafez
  • fix(connection): emit "disconnected" after losing connectivity to every member of a replica set with useUnifiedTopology: true #​8643
  • fix(array): allow calling slice() after push() #​8668 #​8655 AbdelrahmanHafez
  • fix(map): avoid marking map as modified if setting key to the same value #​8652
  • fix(updateValidators): don't run Mixed update validator on dotted path underneath mixed type #​8659
  • fix(populate): ensure top-level limit applies if one document being populated has more than limit results #​8657
  • fix(populate): throw error if both limit and perDocumentLimit are set #​8661 #​8658 AbdelrahmanHafez
  • docs(findOneAndUpdate): add a section about the rawResult option #​8662
  • docs(guide): add section about loadClass() #​8623
  • docs(query): improve Query#populate() example to clarify that sort doesn't affect the original result's order #​8647

v5.9.4

Compare Source

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

  • fix(document): allow new Model(doc) to set immutable properties when doc is a mongoose document #​8642
  • fix(array): make sure you can call unshift() after slice() #​8482
  • fix(schema): propagate typePojoToMixed to implicitly created arrays #​8627
  • fix(schema): also propagate typePojoToMixed option to schemas implicitly created because of typePojoToMixed #​8627
  • fix(model): support passing background option to syncIndexes() #​8645
  • docs(schema): add a section about the _id path in schemas #​8625
  • docs(virtualtype+populate): document using match with virtual populate #​8616
  • docs(guide): fix typo #​8648 sauzy34

v5.9.3

Compare Source

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

  • fix: upgrade mongodb driver -> 3.5.4 #​8620
  • fix(document): set subpath defaults when overwriting single nested subdoc #​8603
  • fix(document): make calling validate() with single nested subpath only validate that single nested subpath #​8626
  • fix(browser): make mongoose.model() return a class in the browser to allow hydrating populated data in the browser #​8605
  • fix(model): make syncIndexes() and cleanIndexes() drop compound indexes with _id that aren't in the schema #​8559
  • docs(connection+index): add warnings to explain that bufferMaxEntries does nothing with useUnifiedTopology #​8604
  • docs(document+model+query): add options.timestamps parameter docs to findOneAndUpdate() and findByIdAndUpdate() #​8619
  • docs: fix out of date links to tumblr #​8599

v5.9.2

Compare Source

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

  • fix(schema): treat { type: mongoose.Schema.Types.Array } as equivalent to { type: Array } #​9194
  • fix: revert fix for #​9107 to avoid issues when calling connect() multiple times #​9167
  • fix(update): respect storeSubdocValidationError option with update validators #​9172
  • fix: upgrade to safe-buffer 5.2 #​9198
  • docs: add a note about SSL validation to migration guide #​9147
  • docs(schemas): fix inconsistent header #​9196 samtsai15

v5.9.1

Compare Source

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

  • fix: upgrade mongodb driver -> 3.5.9 #​9124 AbdelrahmanHafez
  • fix: copy required validator on single nested subdoc correctly when calling Schema#clone() #​8819
  • fix(discriminator): handle tiedValue when casting update on nested paths #​9108
  • fix(model): allow empty arrays for bulkWrite #​9132 #​9131 AbdelrahmanHafez
  • fix(schema): correctly set partialFilterExpression for nested schema indexes #​9091
  • fix(castArrayFilters): handle casting on all fields of array filter #​9122 lafeuil
  • fix(update): handle nested path createdAt when overwriting parent path #​9105
  • docs(subdocs): add some notes on the difference between single nested subdocs and nested paths #​9085
  • docs(subdocs): improve docs on typePojoToMixed #​9085
  • docs: add note about connections in globalSetup with Jest #​9063
  • docs: add schema and how to set default sub-schema to schematype options #​9111 dfle
  • docs(index): use const instead of var in examples #​9125 dmcgrouther
  • docs: corrected markdown typo #​9117

v5.9.0

Compare Source

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

  • fix: upgrade to MongoDB driver 3.5 #​8520 #​8563
  • feat(schematype): support setting default options for schema type (trim on all strings, etc.) #​8487
  • feat(populate): add perDocumentLimit option that limits per document in find() result, rather than across all documents #​7318
  • feat(schematype): enable setting transform option on individual schematypes #​8403
  • feat(timestamps): allow setting currentTime option for setting custom function to get the current time #​3957
  • feat(connection): add Connection#watch() to watch for changes on an entire database #​8425
  • feat(document): add Document#$op property to make it easier to tell what operation is running in middleware #​8439
  • feat(populate): support limit as top-level populate option #​8445

v5.8.13

Compare Source

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

  • fix(populate): use safe get to avoid crash if schematype doesn't have options #​8586

v5.8.12

Compare Source

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

  • fix(query): correctly cast dbref $id with $elemMatch #​8577
  • fix(populate): handle populating when some embedded discriminator schemas have refPath but none of the subdocs have refPath #​8553
  • docs: add useUnifiedTopology to homepage example #​8558 AbdelrahmanHafez
  • refactor(utils): moving promiseOrCallback to helpers/promiseOrCallback #​8573 hugosenari

v5.8.11

Compare Source

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

  • fix(document): allow calling validate() multiple times in parallel on subdocs to avoid errors if Mongoose double-validates taxilian #​8548 #​8539
  • fix(connection): allow calling initial mongoose.connect() after connection helpers on the same tick #​8534
  • fix(connection): throw helpful error when callback param to mongoose.connect() or mongoose.createConnection() is not a function #​8556
  • fix(drivers): avoid unnecessary caught error when importing #​8528
  • fix(discriminator): remove unnecessary utils.merge() samgladstone #​8542
  • docs: add "built with mongoose" page #​8540

v5.8.10

Compare Source

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

  • perf(document): improve performance of document creation by skipping unnecessary split() calls #​8533 igrunert-atlassian
  • fix(document): only call validate once for deeply nested subdocuments #​8532 #​8531 taxilian
  • fix(document): create document array defaults in forward order, not reverse #​8514
  • fix(document): allow function as message for date min/max validator #​8512
  • fix(populate): don't try to populate embedded discriminator that has populated path but no refPath #​8527
  • fix(document): plugins from base schema when creating a discriminator #​8536 samgladstone
  • fix(document): ensure parent and ownerDocument are set for subdocs in document array defaults #​8509
  • fix(document): dont set undefined keys to null if minimize is false #​8504
  • fix(update): bump timestamps when using update aggregation pipelines #​8524
  • fix(model): ensure cleanIndexes() drops indexes with different collations #​8521
  • docs(model): document insertMany lean option #​8522
  • docs(connections): document authSource option #​8517

v5.8.9

Compare Source

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

  • fix(populate): skip populating embedded discriminator array values that don't have a refPath #​8499
  • docs(queries): clarify when to use queries versus aggregations #​8494

Renovate configuration

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

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

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

🔕 Ignore: Close this PR and you won't be reminded about this update 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 force-pushed the renovate/mongoose-5.x branch 4 times, most recently from 0ce645b to 4a2bbff Compare January 27, 2020 18:12
@renovate renovate bot changed the title Update dependency mongoose to v5.8.9 Update dependency mongoose to v5.8.10 Jan 27, 2020
@renovate renovate bot force-pushed the renovate/mongoose-5.x branch from 4a2bbff to 8c17370 Compare January 31, 2020 22:15
@renovate renovate bot changed the title Update dependency mongoose to v5.8.10 Update dependency mongoose to v5.8.11 Jan 31, 2020
@renovate renovate bot force-pushed the renovate/mongoose-5.x branch from 8c17370 to ad43dad Compare February 12, 2020 22:53
@renovate renovate bot changed the title Update dependency mongoose to v5.8.11 Update dependency mongoose to v5.8.12 Feb 12, 2020
@renovate renovate bot force-pushed the renovate/mongoose-5.x branch from ad43dad to 7ac165a Compare February 13, 2020 16:21
@renovate renovate bot changed the title Update dependency mongoose to v5.8.12 Update dependency mongoose to v5.8.13 Feb 13, 2020
@renovate renovate bot force-pushed the renovate/mongoose-5.x branch from 7ac165a to cf63936 Compare February 13, 2020 20:23
@renovate renovate bot changed the title Update dependency mongoose to v5.8.13 Update dependency mongoose to v5.9.0 Feb 13, 2020
@renovate renovate bot force-pushed the renovate/mongoose-5.x branch from cf63936 to 52ac57b Compare February 14, 2020 22:34
@renovate renovate bot changed the title Update dependency mongoose to v5.9.0 Update dependency mongoose to v5.9.1 Feb 14, 2020
@renovate renovate bot force-pushed the renovate/mongoose-5.x branch 2 times, most recently from 0229fe3 to 448527c Compare February 21, 2020 22:46
@renovate renovate bot changed the title Update dependency mongoose to v5.9.1 Update dependency mongoose to v5.9.2 Feb 21, 2020
@renovate renovate bot force-pushed the renovate/mongoose-5.x branch from 448527c to 1c0ce19 Compare March 2, 2020 20:55
@renovate renovate bot changed the title Update dependency mongoose to v5.9.2 Update dependency mongoose to v5.9.3 Mar 2, 2020
@renovate renovate bot force-pushed the renovate/mongoose-5.x branch from 1c0ce19 to 883dab6 Compare March 9, 2020 19:58
@renovate renovate bot changed the title Update dependency mongoose to v5.9.3 Update dependency mongoose to v5.9.4 Mar 9, 2020
@renovate renovate bot force-pushed the renovate/mongoose-5.x branch from 883dab6 to 8ede0bd Compare March 16, 2020 22:04
@renovate renovate bot changed the title Update dependency mongoose to v5.9.4 Update dependency mongoose to v5.9.5 Mar 16, 2020
@renovate renovate bot force-pushed the renovate/mongoose-5.x branch from 8ede0bd to f321ce4 Compare March 23, 2020 20:45
@renovate renovate bot changed the title Update dependency mongoose to v5.9.5 Update dependency mongoose to v5.9.6 Mar 23, 2020
@renovate renovate bot changed the title Update dependency mongoose to v5.9.6 Update dependency mongoose to v5.9.7 Mar 30, 2020
@renovate renovate bot force-pushed the renovate/mongoose-5.x branch from f321ce4 to 29cb825 Compare March 30, 2020 16:18
@renovate renovate bot force-pushed the renovate/mongoose-5.x branch from 29cb825 to 9d33a5f Compare April 13, 2020 14:35
@renovate renovate bot changed the title Update dependency mongoose to v5.9.7 Update dependency mongoose to v5.9.9 Apr 13, 2020
@renovate renovate bot force-pushed the renovate/mongoose-5.x branch from 9d33a5f to 940c3ad Compare April 29, 2020 04:57
@renovate renovate bot changed the title Update dependency mongoose to v5.9.9 Update dependency mongoose to v5.9.10 Apr 29, 2020
@renovate renovate bot force-pushed the renovate/mongoose-5.x branch from 940c3ad to 2eea6a0 Compare May 6, 2020 04:00
@renovate renovate bot changed the title Update dependency mongoose to v5.9.10 Update dependency mongoose to v5.9.12 May 6, 2020
@renovate renovate bot force-pushed the renovate/mongoose-5.x branch from 2eea6a0 to 6f64b6e Compare May 15, 2020 17:52
@renovate renovate bot changed the title Update dependency mongoose to v5.9.12 Update dependency mongoose to v5.9.14 May 15, 2020
@renovate renovate bot force-pushed the renovate/mongoose-5.x branch from 6f64b6e to 14d572a Compare July 1, 2020 16:49
@renovate renovate bot changed the title Update dependency mongoose to v5.9.14 Update dependency mongoose to v5.9.20 Jul 1, 2020
@renovate renovate bot force-pushed the renovate/mongoose-5.x branch from 14d572a to 6de1110 Compare July 10, 2020 12:55
@renovate renovate bot changed the title Update dependency mongoose to v5.9.20 Update dependency mongoose to v5.9.22 Jul 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants