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

chore(deps): update dependency mongoose to v7 #1642

Closed

Conversation

renovate-bot
Copy link
Contributor

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
mongoose (source) 6.11.5 -> 7.4.3 age adoption passing confidence

Release Notes

Automattic/mongoose (mongoose)

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

v7.2.1

Compare Source

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

  • fix(array): track correct changes when setting nested array of primitives #​13422 #​13372
  • fix(query): handle plus path in projection with findOneAndUpdate() #​13437 #​13413
  • fix(cursor): handle calling skipMiddlewareFunction() in pre('find') middleware with cursors #​13436 #​13411
  • fix(model): include inspect output in castBulkWrite() error #​13426
  • fix: avoid setting null property when updating using update pipeline with child timestamps but no top-level timestamps #​13427 #​13379
  • docs: remove callback based examples #​13433 #​13401
  • docs(connections): add details about keepAlive deprecation #​13431
  • docs: add list of supported patterns for error message templating #​13425 #​13311

v7.2.0

Compare Source

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

  • feat: upgrade mongodb -> 5.5.0
  • feat(document): add flattenObjectIds option to toObject() and toJSON() #​13383 #​13341
  • feat(query): add translateAliases option to automatically call translate aliases on query fields #​13397 #​8678 #​7511
  • feat(schema): propagate toObject and toJSON options to implicitly created schemas #​13325
  • feat(model): add throwOnValidationError option for opting into getting MongooseBulkWriteError if all valid operations succeed in bulkWrite() and insertMany() #​13410 #​13256
  • feat(types+mongoose): export MongooseError #​13403 #​13387 ramos-ph

v7.1.2

Compare Source

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

v7.1.1

Compare Source

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

v7.1.0

Compare Source

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

v7.0.5

Compare Source

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

  • fix(schema): correctly handle uuids with populate() #​13317 #​13267
  • fix(schema): add clusteredIndex to schema options #​13286 jakesjews
  • fix(document): use collection.findOne() for saving docs with no changes to avoid firing findOne middleware #​13298
  • types(schema): avoid circular constraint in TSchemaOptions with --incremental by deferring ResolveSchemaOptions<> #​13291 #​13129
  • docs(subdocs): fix mention of subdocument ".remove" function #​13312 hasezoey
  • docs: add mongoose.Promise removal to migrating to 7 guide #​13295
  • docs: updated formatting of Error Handling section to better highlight the two kinds of possible errors #​13279 Ankit-Mandal
  • docs: fix broken link #​13301 #​13281

v7.0.4

Compare Source

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

v7.0.3

Compare Source

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

v7.0.2

Compare Source

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

v7.0.1

Compare Source

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

v7.0.0

Compare Source

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

  • BREAKING CHANGE: copy schema options when merging schemas using new Schema() or Schema.prototype.add() #​13092
  • feat(types): export mongodb types more robustly #​12948 simon-abbott
  • docs: fix populate docs #​13090 hasezoey
  • docs(migrating_to_6): added info about removal of reconnectTries and reconnectInterval options #​13083 lpizzinidev

Configuration

📅 Schedule: Branch creation - "before 3am on Friday" (UTC), 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.

@renovate-bot renovate-bot requested a review from a team August 18, 2023 02:02
@forking-renovate forking-renovate bot added the dependencies Pull requests that update a dependency file label Aug 18, 2023
@blumamir
Copy link
Member

need more changes than just bumping the version.

tracked in issue #1606

Closing this automatic PR which isn't mergeable anyhow

@blumamir blumamir closed this Aug 18, 2023
@forking-renovate
Copy link

forking-renovate bot commented Aug 18, 2023

Renovate Ignore Notification

Because you closed this PR without merging, Renovate will ignore this update. You will not get PRs for any future 7.x releases. But if you manually upgrade to 7.x then Renovate will re-enable minor and patch updates automatically.

If you accidentally closed this PR, or if you changed your mind: rename this PR to get a fresh replacement PR.

@renovate-bot renovate-bot deleted the renovate/mongoose-7.x branch August 18, 2023 05:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants