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

fix(deps): update dependency mongoose to v8 #16

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

Conversation

renovate[bot]
Copy link

@renovate renovate bot commented Nov 1, 2023

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
mongoose (source) ^6.2.7 -> ^8.0.0 age adoption passing confidence

Release Notes

Automattic/mongoose (mongoose)

v8.2.1

Compare Source

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

v8.2.0

Compare Source

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

v8.1.3

Compare Source

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

  • fix: avoid corrupting $set-ed arrays when transaction error occurs #​14346 #​14340
  • fix(populate): handle ref() functions that return a model instance #​14343 #​14249
  • fix: insert version key when using insertMany even if toObject.versionKey set to false #​14344
  • fix(cursor): make aggregation cursor support transform option to match query cursor #​14348 #​14331
  • docs(document): clarify that transform function option applies to subdocs #​13757

v8.1.2

Compare Source

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

  • fix: include virtuals in document array toString() output if toObject.virtuals set #​14335 #​14315
  • fix(document): handle setting nested path to spread doc with extra properties #​14287 #​14269
  • fix(populate): call setter on virtual populated path with populated doc instead of undefined #​14314
  • fix(QueryCursor): remove callback parameter of AggregationCursor and QueryCursor #​14299 DevooKim
  • types: add typescript support for arbitrary fields for the options parameter of Model functions which are of type MongooseQueryOptions #​14342 #​14341 FaizBShah
  • types(model): correct return type for findOneAndUpdate with includeResultMetadata and lean set #​14336 #​14303
  • types(connection): add type definition for createCollections() #​14295 #​14279
  • docs(timestamps): clarify that replaceOne() and findOneAndReplace() overwrite timestamps #​14337 #​14309

v8.1.1

Compare Source

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

  • fix(model): throw readable error when calling Model() with a string instead of model() #​14288 #​14281
  • fix(document): handle setting nested path to spread doc with extra properties #​14287 #​14269
  • types(query): add back context and setDefaultsOnInsert as Mongoose-specific query options #​14284 #​14282
  • types(query): add missing runValidators back to MongooseQueryOptions #​14278 #​14275

v8.1.0

Compare Source

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

v8.0.4

Compare Source

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

  • fix(update): set CastError path to full path if casting update fails #​14161 #​14114
  • fix: cast error when there is an elemMatch in the and clause #​14171 tosaka-n
  • fix: allow defining index on base model that applies to all discriminators #​14176 peplin
  • fix(model): deep clone bulkWrite() updateOne arguments to avoid mutating documents in update #​14197 #​14164
  • fix(populate): handle deselecting _id with array of fields in populate() #​14242 #​14231
  • types(model+query): use stricter typings for updateX(), replaceOne(),deleteX() Model functions #​14228 #​14204
  • types: fix return types for findByIdAndDelete overrides #​14196 #​14190
  • types(schema): add missing omit() method #​14235 amitbeck
  • types(model): add missing strict property to bulkWrite() top level options #​14239
  • docs(compatibility): add note that Mongoose 5.13 is fully compatible with MongoDB server 5 #​14230 #​14149
  • docs: add shared schemas guide #​14211
  • docs: update TLS/SSL guide for Mongoose v8 - MongoDB v6 driver deprecations #​14170 andylwelch
  • docs: update findOneAndUpdate tutorial to use includeResultMetadata #​14208 #​14207
  • docs: clarify disabling _id on subdocs #​14195 #​14194

v8.0.3

Compare Source

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

  • fix(schema): avoid creating unnecessary clone of schematype in nested array so nested document arrays use correct constructor #​14128 #​14101
  • docs(connections): add example of registering connection event handlers #​14150
  • docs(populate): add example of using refPath and ref functions #​14133 #​13834
  • types: handle using BigInt global class in schema definitions #​14160 #​14147
  • types: make findOneAndDelete() without options return result doc, not ModifyResult #​14153 #​14130
  • types(model): add no-generic override for insertMany() with options #​14152 #​13999
  • types: add missing Type for applyDefaults #​14159 jaypea

v8.0.2

Compare Source

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

  • fix(populate): set populated docs in correct order when populating virtual underneath doc array with justOne #​14105
  • fix(populate): fix curPath to update appropriately #​14099 #​14098 csy1204
  • types: make property names show up in intellisense for UpdateQuery #​14123 #​14090
  • types(document): correct return type for doc.deleteOne() re: Mongoose 8 breaking change #​14110 #​14081
  • types: correct types for when includeResultMetadata: true is set #​14078
  • types(models): allow specifying timestamps as inline option for bulkWrite() operations #​14112 #​14072
  • docs: fix rendering of 7.x server compatibility #​14086 laupow
  • docs(source/api): fix "index.js" -> "mongoose.js" rename #​14125
  • docs(README): update breaking change version #​14126

v8.0.1

Compare Source

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

v8.0.0

Compare Source

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

  • docs: add version support notes for Mongoose 8, including EOL date for Mongoose 6

v7.6.9

Compare Source

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

  • fix(document): handle embedded recursive discriminators on nested path defined using Schema.prototype.discriminator #​14256 #​14245
  • types(model): correct return type for findByIdAndDelete() #​14233 #​14190
  • docs(connections): add note about using asPromise() with createConnection() for error handling #​14364 #​14266
  • docs(model+query+findoneandupdate): add more details about overwriteDiscriminatorKey option to docs #​14264 #​14246

v7.6.8

Compare Source

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

  • perf(schema): remove unnecessary lookahead in numeric subpath check
  • fix(discriminator): handle reusing schema with embedded discriminators defined using Schema.prototype.discriminator #​14202 #​14162
  • fix(ChangeStream): avoid suppressing errors in closed change stream #​14206 #​14177

v7.6.7

Compare Source

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

  • fix: avoid minimizing single nested subdocs if they are required #​14151 #​14058
  • fix(populate): allow deselecting discriminator key when populating #​14155 #​3230
  • fix: allow adding discriminators using Schema.prototype.discriminator() to subdocuments after defining parent schema #​14131 #​14109
  • fix(schema): avoid creating unnecessary clone of schematype in nested array so nested document arrays use correct constructor #​14128 #​14101
  • fix(populate): call transform object with single id instead of array when populating a justOne path under an array #​14135 #​14073
  • types: add back mistakenly removed findByIdAndRemove() function signature #​14136 #​14132

v7.6.6

Compare Source

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

v7.6.5

Compare Source

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

v7.6.4

Compare Source

v7.6.3

Compare Source

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

  • fix(populate): handle multiple spaces when specifying paths to populate using space-delimited paths #​13984 #​13951
  • fix(update): avoid applying defaults on query filter when upserting with empty update #​13983 #​13962
  • fix(model): add versionKey to bulkWrite when inserting or upserting #​13981 #​13944
  • docs: fix typo in timestamps docs #​13976 danielcoker

v7.6.2

Compare Source

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

  • perf: avoid storing a separate entry in schema subpaths for every element in an array #​13953 #​13874
  • fix(document): avoid triggering setter when initializing Model.prototype.collection to allow defining collection as a schema path name #​13968 #​13956
  • fix(model): make bulkSave() save changes in discriminator paths if calling bulkSave() on base model #​13959 #​13907
  • fix(document): allow calling $model() with no args for TypeScript #​13963 #​13878
  • fix(schema): handle embedded discriminators defined using Schema.prototype.discriminator() #​13958 #​13898
  • types(model): make InsertManyResult consistent with return type of insertMany #​13965 #​13904
  • types(models): add cleaner type definitions for insertMany() with no generics to prevent errors when using insertMany() in generic classes #​13964 #​13957
  • types(schematypes): allow defining map path using type: 'Map' in addition to type: Map #​13960 #​13755

v7.6.1

Compare Source

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

v7.6.0

Compare Source

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

v7.5.4

Compare Source

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

v7.5.3

Compare Source

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

  • fix(document): handle MongoDB Long when casting BigInts #​13869 #​13791
  • fix(model): make bulkSave() persist changes that happen in pre('save') middleware #​13885 #​13799
  • fix: handle casting $elemMatch underneath $not underneath another $elemMatch #​13893 #​13880
  • fix(model): make bulkWrite casting respect global setDefaultsOnInsert #​13870 #​13823
  • fix(document): handle default values for discriminator key with embedded discriminators #​13891 #​13835
  • fix: account for null values when assigning isNew property within document array #​13883
  • types: avoid "interface can only extend object types with statically known members" error in TypeScript 4 #​13871
  • docs(deprecations): fix typo in includeResultMetadata deprecation docs #​13884 #​13844
  • docs: fix pre element overflow in home page #​13868 ghoshRitesh12

v7.5.2

Compare Source

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

  • fix(schema): handle number discriminator keys when using Schema.prototype.discriminator() #​13858 #​13788
  • fix: ignore id property when calling set() with both id and _id specified to avoid id setter overwriting #​13762
  • types: pass correct document type to required and default function #​13851 #​13797
  • docs(model): add examples of using diffIndexes() to syncIndexes()and diffIndexes() api docs #​13850 #​13771

v7.5.1

Compare Source

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

  • fix: set default value for _update when no update object is provided and versionKey is set to false #​13795 #​13783 MohOraby
  • fix: avoid unexpected error when accessing null array element on discriminator array when populating #​13716 ZSabakh
  • types(schematypes): use DocType for instance method this #​13822 #​13800 pshaddel
  • types: remove duplicated 'exists' method in Model interface in models.d.ts #​13818 ohzeno
  • docs(model): replace outdated docs on deprecated findOneAndUpdate() overwrite option #​13821 #​13715
  • docs: add example of using virtuals.pathsToSkip option for toObject() and toJSON() #​13798 RobertHunter-Pluto

v7.5.0

Compare Source

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

  • feat: use mongodb driver v5.18.1
  • feat: allow top level dollar keys with findOneAndUpdate(), update() for MongoDB 5 #​13786
  • fix(document): make array getters avoid unintentionally modifying array, defer getters until index access instead #​13774
  • feat: deprecate overwrite option for findOneAndUpdate() #​13578
  • feat: add pathsToSkip option for Model.validate #​13663 #​10353
  • feat: support alias when declaring index #​13659 #​13276
  • fix(query): remove unnecessary check for atomic operators in findOneAndReplace() #​13678
  • types: add SearchMeta Interface for Atlas Search #​13792 mreouven
  • types(schematypes): add missing BigInt SchemaType #​13787

v7.4.5

Compare Source

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

  • fix(debug): avoid putting virtuals and getters in debug output #​13778
  • fix(model): make Model.bulkWrite() with empty array and ordered false not throw an error #​13664
  • fix(document): correctly handle inclusive/exclusive projections when applying subdocument defaults #​13763 #​13720

v7.4.4

Compare Source

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

  • fix(connection): reset document state in between transaction retries #​13726 #​13698
  • fix(cursor): bubble up resumeTokenChanged event from change streams #​13736 #​13607
  • fix(query+populate): add refPath to projection by default, unless explicitly excluded #​13758
  • fix(schema): support 'ascending', 'asc', 'descending', 'desc' for index direction #​13761 #​13725
  • fix(ChangeStream): add _bindEvents to addListener function for observable support #​13759 yury-ivaniutsenka
  • types: infer return type when using get(), markModified(), etc. with known property name literal #​13739 maybesmurf
  • types: add missing typings for option includeResultMetadata #​13747 #​13746 Idnan
  • types: export InferSchemaType #​13737
  • docs(middleware): clarify that query middleware applies to document by default #​13734 #​13713
  • docs: add brief note on TypeScript generic usage for embedded discriminator path() calls #​13728 #​10435
  • docs: link v7 migration guide #​13742 Cooldogyum
  • docs(migrating_to_6): add note about incompatible packages #​13733

v7.4.3

Compare Source

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

  • fix: avoid applying map property getters when saving #​13704 #​13657
  • fix(query): allow deselecting discriminator key #​13722 #​13679
  • types(models+query): return lean type when passing QueryOptions with lean: true to relevant model functions like find() and findOne() #​13721 #​13705
  • types(schema): correct return type for Schema.prototype.indexes() #​13718 #​13702
  • types: allow accessing options from pre middleware #​13708 #​13633
  • types: add UpdateQueryKnownOnly type for stricter UpdateQuery type checking #​13699 #​13630
  • types(schema): support required: { isRequired: true } syntax in schema definition #​13680
  • docs(middleware): clarify that doc.deleteOne() doesn't run query middleware currently #​13707 #​13669

v7.4.2

Compare Source

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

v7.4.1

Compare Source

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

  • fix(document): correctly clean up nested subdocs modified state on save() #​13644 #​13609
  • fix(schema): avoid propagating toObject.transform and toJSON.transform option to implicitly created schemas #​13634 #​13599
  • fix: prevent schema options overwriting user defined writeConcern #​13612 #​13592
  • types: correctly handle pre('deleteOne', { document: true }) #​13632
  • types(schema): handle type: Schema.Types.Map in TypeScript #​13628
  • types: Add inline comment to to tell the default value of the runValidator flag in the queryOptions types #​13636 omran95
  • docs: rework several code examples that still use callbacks #​13635 #​13616
  • docs: remove callbacks from validation description #​13638 #​13501

v7.4.0

Compare Source

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

  • perf: speed up mapOfSubdocs benchmark by 4x by avoiding unnecessary O(n^2) loop in getPathsToValidate() #​13614
  • feat: upgrade to MongoDB Node.js driver 5.7.0 #​13591
  • feat: support generating custom cast error message with a function #​13608 #​3162
  • feat(query): support MongoDB driver's includeResultMetadata option for findOneAndUpdate #​13584 #​13539
  • feat(connection): add Connection.prototype.removeDb() for removing a related connection #​13580 #​11821
  • feat(query): delay converting documents into POJOs until query execution, allow querying subdocuments with defaults disabled #​13522
  • feat(model): add option "aggregateErrors" for create() #​13544 hasezoey
  • feat(schema): add collectionOptions option to schemas #​13513
  • fix: move all MongoDB-specific connection logic into driver layer, add createClient() method to handle creating MongoClient #​13542
  • fix(document): allow setting keys with dots in mixed paths underneath nested paths #​13536
  • types: augment bson.ObjectId instead of adding on own type #​13515 #​12537 hasezoey
  • docs(guide): fix md lint #​13593 hasezoey
  • docs: changed the code from 'await author.save()' to 'await story1.save()' #​13596 SomSingh23

v7.3.4

Compare Source

7.3.4 / 2023-07-12

  • chore: release 7.4.4 to overwrite accidental publish of 5.13.20 to latest tag

v7.3.3

Compare Source

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

  • fix: avoid prototype pollution on init
  • fix(document): clean up all array subdocument modified paths on save() #​13589 #​13582
  • types: avoid unnecessary MergeType<> if TOverrides not set, clean up statics and insertMany() type issues #​13577 #​13529

v7.3.2

Compare Source

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

  • fix(model): avoid TypeError if insertMany() fails with error that does not have writeErrors property #​13579 #​13531
  • fix(query): convert findOneAndUpdate to findOneAndReplace when overwrite set for backwards compat with Mongoose 6 #​13572 #​13550
  • fix(query): throw readable error when executing a Query instance without an associated model #​13571 #​13570
  • types: support mongoose.Schema.ObjectId as alias for mongoose.Schema.Types.ObjectId #​13543 #​13534
  • docs(connections): clarify that socketTimeoutMS now defaults to 0 #​13576 #​13537
  • docs(migrating_to_7): add mapReduce() removal to migration guide #​13568 #​13548
  • docs(schemas): fix typo in schemas.md #​13540 Metehan-Altuntekin

v7.3.1

Compare Source

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

  • fix(query): respect query-level strict option on findOneAndReplace() #​13516 #​13507
  • docs(connections): expand docs on serverSelectionTimeoutMS #​13533 #​12967
  • docs: add example of accessing save options in pre save #​13498
  • docs(connections+faq): add info on localhost vs 127.0.0.1
  • docs(SchemaType): validate members are validator & message (not msg) #​13521 lorand-horvath

v7.3.0

Compare Source

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

  • feat: upgrade mongodb -> 5.6.0 #​13455 lorand-horvath
  • feat(aggregate): add Aggregate.prototype.finally() to be consistent with Promise API for TypeScript #​13509
  • feat(schema): support selecting subset of fields to apply optimistic concurrency to #​13506 #​10591
  • feat(model): add ordered option to Model.create() #​13472 #​4038
  • feat(schema): consistently add .get() function to all SchemaType classes
  • feat(populate): pass virtual to match function to allow merging match options #​13477 #​12443
  • types: allow overwriting Paths in select() to tell TypeScript which fields are projected #​13478 #​13224
  • types(schema): add validateModifiedOnly as schema option #​13503 #​10153
  • docs: add note about validateModifiedOnly as a schema option #​13503 #​10153
  • docs(migrating_to_7): update migrating_to_7.md to include Model.countDocuments #​13508 Climax777
  • docs(further_reading): remove style for "img" hasezoey

v7.2.4

Compare Source

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

v7.2.3

Compare Source

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

v7.2.2

Compare Source

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

  • fix(schema): make bulkWrite updateOne() and updateMany() respect timestamps option when set by merging schemas #​13445
  • fix(schema): recursively copy schemas from different modules when calling new Schema() #​13441 #​13275
  • fix(update): allow setting paths with dots under non-strict paths #​13450 #​13434
  • types: improve function parameter types for ToObjectOptions transform option #​13446 #​13421
  • docs: add nextjs page with link to next starter app and couple FAQs #​13444 #​13430
  • docs(connections): add section on multi tenant #​13449 #​11187
  • docs(connection+model): expand docs on accessors for underlying collections #​13448 #​13334


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - 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 Mend Renovate. View repository job log here.

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

0 participants