Skip to content
This repository has been archived by the owner on Jul 20, 2024. It is now read-only.

chore(deps): update mongoose (major) #319

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

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Oct 31, 2023

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@typegoose/typegoose (source) 11.3.0 -> 12.6.0 age adoption passing confidence
mongoose (source) 7.3.4 -> 8.5.1 age adoption passing confidence

Release Notes

typegoose/typegoose (@​typegoose/typegoose)

v12.6.0

Compare Source

Dependencies
  • mongoose: upgrade to 8.5.0 (8f3e4f6)
  • tslib: upgrade to 2.6.3 (f299ccc)
Dev-Dependencies

v12.5.0

Compare Source

Dependencies
  • mongoose: upgrade to 8.4.0 (7a3e65e)
  • semver: upgrade to 7.6.2 (877b7da)
Dev-Dependencies

v12.4.0

Compare Source

Dependencies
  • mongoose: upgrade to 8.3.1 (a431d3a)
Dev-Dependencies
  • jest-runner-tsd: upgrade to 6.0.0 (06ec544)
  • mongodb-memory-server: upgrade to 9.2.0 (f999238)

v12.3.1

Compare Source

Fixes

v12.3.0

Compare Source

Features
Fixes
  • typegoose: update minimal node version check to match engines (a07c9ee)
  • typegoose: update mongoose version check for 8.2.4 (f197dbe)
Dependencies
  • mongoose: upgrade to 8.2.4 (f1e3dc7)
  • reflect-metadata: upgrade to 0.2.2 (1e4d282)
Dev-Dependencies

v12.2.0

Compare Source

Dependencies
  • loglevel: upgrade to 1.9.1 (f3455d1)
  • mongoose: upgrade to 8.2.0 (186328e)
  • semver: upgrade to 7.6.0 (1dcd4d2)
Dev-Dependencies

v12.1.0

Compare Source

Dependencies
  • mongoose: upgrade to 8.1.0 (99b3eca)
  • reflect-metadata: upgrade to 0.2.1 (0cc46a7)
Dev-Dependencies
  • @​types/jest: upgrade to 29.5.11 (db83044)
  • @​typescript-eslint/*: upgrade to 6.19.0 (d48adfb)
  • commitlint: upgrade to 17.8.1 (77ed29f)
  • eslint-config-prettier: upgrade to 9.1.0 (97b7859)
  • eslint-plugin-prettier: upgrade to 5.1.3 (6536299)
  • eslint: upgrade to 8.56.0 (464cb26)
  • mongodb-memory-server: upgrade to 9.1.5 (432798b)
  • prettier: upgrade to 3.2.4 (91cdff8)
  • typescript: upgrade to 5.3.3 (6a821f8)

v12.0.0

Compare Source

⚠ BREAKING CHANGES
  • mongoose: mongoose 8.0.0 is now the version in use
  • tsconfig.json: tsconfig "target" is now "es2021" which could be potentially breaking
  • package.json: Minimal NodeJS version is now 16.20.1
Features
  • package.json: update nodejs version to 16.20 (8dd8467)
  • tsconfig.json: update "target" to match minimal NodeJS capabilities (ce3cf74)
Fixes
Style
  • processProp: fix lint (db6042a)
  • types::EnumValues: remove some TODOs (5f0abf5)
Dependencies
  • mongoose: upgrade to 8.0.0 (fc16e81)
  • mongoose: upgrade to 8.0.1 (6223bf8)
Dev-Dependencies

v11.7.1

Compare Source

Fixes

v11.7.0

Compare Source

Features
  • dont inherit typegoose option "disableLowerIndexes" (7706715)
  • hooks: update hook definitions to match mongoose 7.6.2 (c97bb88)
  • typegoose::buildSchema: correctly get and set "superOptions" if the top level class sets it (717a60c), closes typegoose/typegoose#890
Fixes
  • utils::mergeMetadata: add options to use "getOwnMetadata" instead of "getMetadata" (148983b)
Style
  • typegoose::buildSchema: rename variable to make more sense (ca4863c)
Dependencies
  • mongoose: upgrade to 7.6.3 (c9399f2)
Dev-Dependencies

v11.6.0

Compare Source

Dependencies
  • mongoose: upgrade to 7.6.1 (61ae900)

v11.5.1

Compare Source

Style
  • apply prettier 3.0 formatting changes (07826fa)
Dev-Dependencies

v11.5.0

Compare Source

Dependencies

v11.4.1

Compare Source

Fixes
  • types::QueryHelperThis: use InstanceType instead of T (b9cf61f)

v11.4.0

Compare Source

Dependencies
Automattic/mongoose (mongoose)

v8.5.1

Compare Source

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

  • perf(model): performance improvements for insertMany() #​14724
  • fix(model): avoid leaving subdoc defaults on top-level doc when setting subdocument to same value #​14728 #​14722
  • fix(model): handle transactionAsyncLocalStorage option with insertMany() #​14743
  • types: make _id required on Document type #​14735 #​14660
  • types: fix ChangeStream.close to return a Promise like the driver #​14740 orgads

v8.5.0

Compare Source

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

  • perf: memoize toJSON / toObject default options #​14672
  • feat(document): add $createModifiedPathsSnapshot(), $restoreModifiedPathsSnapshot(), $clearModifiedPaths() #​14699 #​14268
  • feat(query): make sanitizeProjection prevent projecting in paths deselected in the schema #​14691
  • feat: allow setting array default value to null #​14717 #​6691
  • feat(mongoose): allow drivers to set global plugins #​14682
  • feat(connection): bubble up monitorCommands events to Mongoose connection if monitorCommands option set #​14681 #​14611
  • fix(document): ensure post('deleteOne') hooks are called when calling save() after subdoc.deleteOne() #​14732 #​9885
  • fix(query): remove count() and findOneAndRemove() from query chaining #​14692 #​14689
  • fix: remove default connection if setting createInitialConnection to false after Mongoose instance created #​14679 #​8302
  • types(models+query): infer return type from schema for 1-level deep nested paths #​14632
  • types(connection): make transaction() return type match the executor function #​14661 #​14656
  • docs: fix docs links in index.md mirasayon

v8.4.5

Compare Source

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

v8.4.4

Compare Source

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

  • perf: avoid unnecesary get() call and use faster approach for converting to string #​14673 #​14394
  • fix(projection): handle projections on arrays in Model.hydrate() projection option #​14686 #​14680
  • fix(document): avoid passing validateModifiedOnly to subdocs so subdocs get fully validating if they're directly modified #​14685 #​14677
  • fix: handle casting primitive array with $elemMatch in bulkWrite() #​14687 #​14678
  • fix(query): cast $pull using embedded discriminator schema when discriminator key is set in filter #​14676 #​14675
  • types(connection): fix return type of withSession() #​14690 tt-public
  • types: add $documents pipeline stage and fix $unionWith type #​14666 nick-statsig
  • docs(findoneandupdate): improve example that shows findOneAndUpdate() returning doc before updates were applied #​14671 #​14670

v8.4.3

Compare Source

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

  • fix: remove 0x flamegraph files from release

v8.4.2

Compare Source

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

  • perf: more toObject() perf improvements #​14623 #​14606 #​14394
  • fix(model): check the value of overwriteModels in options when calling discriminator() #​14646 uditha-g
  • fix: avoid throwing TypeError when deleting an null entry on a populated Map #​14654 futurliberta
  • fix(connection): fix up some inconsistencies in operation-end event and add to docs #​14659 #​14648
  • types: avoid inferring Boolean, Buffer, ObjectId as Date in schema definitions under certain circumstances #​14667 #​14630
  • docs: add note about parallelism in transations #​14647 fiws

v8.4.1

Compare Source

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

v8.4.0

Compare Source

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

  • feat: upgrade mongodb -> 6.6.2 #​14584
  • feat: add transactionAsyncLocalStorage option to opt in to automatically setting session on all transactions #​14583 #​13889
  • feat: handle initially null driver when instantiating Mongoose for Rollup support #​14577 #​12335
  • feat(mongoose): export omitUndefined() helper #​14582 #​14569
  • feat: add Model.listSearchIndexes() #​14519 #​14450
  • feat(connection): add listDatabases() function #​14506 #​9048
  • feat(schema): add schema-level readConcern option to apply default readConcern for all queries #​14579 #​14511
  • fix(error): remove model property from CastError to avoid printing all model properties to console #​14568 #​14529
  • fix(model): make bulkWrite() and insertMany() throw if throwOnValidationError set and all ops invalid #​14587 #​14572
  • fix(document): ensure transform function passed to toObject() options applies to subdocs #​14600 #​14589
  • types: add inferRawDocType helper #​13900 #​13772
  • types(document): make document _id type default to unknown instead of any #​14541

v8.3.5

Compare Source

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

  • fix(query): shallow clone $or, $and if merging onto empty query filter #​14580 #​14567
  • types(model+query): pass TInstanceMethods to QueryWithHelpers so populated docs have methods #​14581 #​14574
  • docs(typescript): clarify that setting THydratedDocumentType on schemas is necessary for correct method context #​14575 #​14573

v8.3.4

Compare Source

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

  • perf(document): avoid cloning options using spread operator for perf reasons #​14565 #​14394
  • fix(query): apply translateAliases before casting to avoid strictMode error when using aliases #​14562 #​14521
  • fix(model): consistent top-level timestamps option for bulkWrite operations
    #​14546 #​14536
  • docs(connections): improve description of connection creation patterns #​14564 #​14528

v8.3.3

Compare Source

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

  • perf(document): add fast path for applying non-nested virtuals to JSON #​14543
  • fix: make hydrate() recursively hydrate virtual populate docs if hydratedPopulatedDocs is set #​14533 #​14503
  • fix: improve timestamps option handling in bulkWrite #​14546 #​14536 sderrow
  • fix(model): make recompileSchema() overwrite existing document array discriminators #​14527
  • types(schema): correctly infer Array<Schema.Types.*> #​14534 #​14367
  • types(query+populate): apply populate overrides to doc toObject() result #​14525 #​14441
  • types: add null to select override return type for findOne #​14545 sderrow

v8.3.2

Compare Source

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

v8.3.1

Compare Source

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

  • fix(document): make update minimization unset property rather than setting to null #​14504 #​14445
  • fix(model): make Model.recompileSchema() also re-apply discriminators #​14500 #​14444
  • fix(schema): deduplicate idGetter so creating multiple models with same schema doesn't result in multiple id getters #​14492
  • fix: update kareem -> 2.6.3 for index.d.ts #​14508 #​14497
  • fix(mongoose): make setDriver() update mongoose.model() connections and collections #​14505
  • types(validation): support function for validator message property, and add support for accessing validator reason #​14499 #​14496
  • docs: remove typo #​14501 epmartini

v8.3.0

Compare Source

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

v8.2.4

Compare Source

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

v8.2.3

Compare Source

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

v8.2.2

Compare Source

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

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 [#&#

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 is behind base branch, or you tick the rebase/retry checkbox.

👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.


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

@renovate renovate bot added the dependencies Updates one or more dependencies label Oct 31, 2023
@renovate renovate bot assigned Ta1al Oct 31, 2023
@renovate renovate bot force-pushed the renovate/major-mongoose branch 5 times, most recently from d912a1a to 23928a3 Compare November 8, 2023 04:17
@renovate renovate bot force-pushed the renovate/major-mongoose branch 9 times, most recently from 8162f97 to c324b3c Compare November 21, 2023 11:10
@renovate renovate bot force-pushed the renovate/major-mongoose branch 5 times, most recently from 482699f to 8071796 Compare November 25, 2023 16:34
@renovate renovate bot changed the title chore(deps): update dependency mongoose to v8 chore(deps): update mongoose (major) Nov 25, 2023
@renovate renovate bot force-pushed the renovate/major-mongoose branch 8 times, most recently from 45e6d0c to d684aa9 Compare December 2, 2023 11:04
@renovate renovate bot force-pushed the renovate/major-mongoose branch 4 times, most recently from 4377331 to 2b35d7a Compare May 6, 2024 21:29
@renovate renovate bot force-pushed the renovate/major-mongoose branch 3 times, most recently from acb448d to b79e645 Compare May 19, 2024 10:58
@renovate renovate bot force-pushed the renovate/major-mongoose branch 5 times, most recently from c5925d0 to 880ecb2 Compare June 5, 2024 14:17
@renovate renovate bot force-pushed the renovate/major-mongoose branch 7 times, most recently from 5ce1b00 to 0697c5e Compare June 22, 2024 02:04
@renovate renovate bot force-pushed the renovate/major-mongoose branch from 0697c5e to 41a6738 Compare June 25, 2024 21:40
@renovate renovate bot force-pushed the renovate/major-mongoose branch 7 times, most recently from 9c14ce0 to 2e300aa Compare July 12, 2024 19:38
@renovate renovate bot force-pushed the renovate/major-mongoose branch from 2e300aa to 5c4dbd6 Compare July 18, 2024 22:34
@renovate renovate bot force-pushed the renovate/major-mongoose branch from 5c4dbd6 to 31ab6b3 Compare July 19, 2024 00:24
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
dependencies Updates one or more dependencies
Development

Successfully merging this pull request may close these issues.

1 participant