Skip to content

Bump mongoose from 4.13.21 to 9.1.6 in /MEANApp in the npm_and_yarn group across 1 directory#1

Open
dependabot[bot] wants to merge 1 commit intomasterfrom
dependabot/npm_and_yarn/MEANApp/npm_and_yarn-99e0259228
Open

Bump mongoose from 4.13.21 to 9.1.6 in /MEANApp in the npm_and_yarn group across 1 directory#1
dependabot[bot] wants to merge 1 commit intomasterfrom
dependabot/npm_and_yarn/MEANApp/npm_and_yarn-99e0259228

Conversation

@dependabot
Copy link

@dependabot dependabot bot commented on behalf of github Feb 5, 2026

Bumps the npm_and_yarn group with 1 update in the /MEANApp directory: mongoose.

Updates mongoose from 4.13.21 to 9.1.6

Release notes

Sourced from mongoose's releases.

9.1.6 / 2026-02-04

  • fix: handle other top-level query operators in sanitizeFilter
  • fix(types): fix toObject() type inference with timestamps + virtuals #15975 #15965 AbdelrahmanHafez
  • fix(populate): defer subpopulate until after match functions to avoid comparing populated subdocs #15981 mongodb-js/mongoose-autopopulate#112
  • fix(DocumentArray): correctly clone subdocument when updating document array #15978 #15973
  • fix(documentArray): fix change tracking for documentArrays in nested maps #15983 #15970 AbdelrahmanHafez
  • docs: clarify that you need to explicitly create timeseries collection before inserting document #15990 #15986

9.1.5 / 2026-01-20

9.1.4 / 2026-01-15

9.1.3 / 2026-01-09

  • fix(model): support timestamps option to insertMany() as both boolean and QueryTimestampsConfig #15941 #15938
  • fix(query): include preview of current and incoming update in error when merging normal update with pipeline #15939 #15928
  • types(model): apply basic type casting to paths underneath subdocuments #15948 #15947
  • types(utility): make WithLevel1NestedPaths correctly handle PopulatedDoc and other TypeScript unions with Document members #15942 #15923
  • docs(schema): expose "DocumentArrayElement" #15590 hasezoey

9.1.2 / 2025-01-05

9.1.1 / 2025-12-30

  • fix(document): avoid 'Cannot mix array and object updates' on doc.updateOne() with pipeline #15928
  • docs: update default search version to 9.x #15926 #15925

9.1.0 / 2025-12-29

  • feat(model): make pathsToSave handle saving just a subpath of a modified path #15896
  • feat(document+model): pass options to pre('deleteOne') and update+options to pre('updateOne') hooks #15908 #15870
  • feat(versioning): optimistic concurrency exclude option, update docs for optimisticConcurrency options #15917 #15915 #15912 AbdelrahmanHafez
  • feat(document): add support for getAtomics() to allow custom container types to utilize atomics #15817
  • perf: optimize Object.keys() checks and optional chaining #15865 AbdelrahmanHafez
  • fix: add support for typescript style enums #15914 #15913 mjfwebb

... (truncated)

Changelog

Sourced from mongoose's changelog.

9.1.6 / 2026-02-04

  • fix: handle other top-level query operators in sanitizeFilter
  • fix(types): fix toObject() type inference with timestamps + virtuals #15975 #15965 AbdelrahmanHafez
  • fix(populate): defer subpopulate until after match functions to avoid comparing populated subdocs #15981 mongodb-js/mongoose-autopopulate#112
  • fix(DocumentArray): correctly clone subdocument when updating document array #15978 #15973
  • fix(documentArray): fix change tracking for documentArrays in nested maps #15983 #15970 AbdelrahmanHafez
  • docs: clarify that you need to explicitly create timeseries collection before inserting document #15990 #15986

8.22.1 / 2026-02-04

  • fix: handle other top-level query operators in sanitizeFilter
  • fix(document): when cloning a doc with subdocs, make sure the subdocs parent is the cloned doc #15904 #15901
  • types(models): support Mongoose query casting in AnyBulkWriteOperation filter property #15910
  • types: add toBSON() to documents #15927

7.8.9 / 2026-02-04

  • fix: handle other top-level query operators in sanitizeFilter

8.22.0 / 2026-01-27

  • feat(model): allow passing strict option to hydrate() #15944 #15940

8.21.1 / 2026-01-23

  • fix(clone): fix parent doc for map subdocuments and array subdocuments #15958 AbdelrahmanHafez
  • fix(document): when cloning a doc with subdocs, make sure the subdocs parent is the cloned doc #15904 #15901
  • fix: respect currentTime schema option in bulkWrite updates #15976 sderrow
  • types(models): support Mongoose query casting in AnyBulkWriteOperation filter property #15910
  • types: add toBSON() to documents #15927

9.1.5 / 2026-01-20

9.1.4 / 2026-01-15

9.1.3 / 2026-01-09

  • fix(model): support timestamps option to insertMany() as both boolean and QueryTimestampsConfig #15941 #15938

... (truncated)

Commits
  • dfff2a5 chore: release 9.1.6
  • 1b06959 test: remove hydrate with strict mode test for now
  • fad4514 style: fix lint
  • ffe31d7 Merge branch '8.x'
  • 41fb971 docs: add missing changelog entries
  • 472e7c7 chore: release 8.22.1
  • 1735149 Merge branch '7.x' into 8.x
  • 5227801 chore: release 7.8.9
  • b804e34 fix: handle other top-level query operators in sanitizeFilter
  • c893a91 Merge pull request #15992 from Automattic/vkarpov15/npm-audit
  • Additional commits viewable in compare view
Maintainer changes

This version was pushed to npm by [GitHub Actions](https://www.npmjs.com/~GitHub Actions), a new releaser for mongoose since your current version.


Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore <dependency name> major version will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)
  • @dependabot ignore <dependency name> minor version will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)
  • @dependabot ignore <dependency name> will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)
  • @dependabot unignore <dependency name> will remove all of the ignore conditions of the specified dependency
  • @dependabot unignore <dependency name> <ignore condition> will remove the ignore condition of the specified dependency and ignore conditions
    You can disable automated security fix PRs for this repo from the Security Alerts page.

Summary by cubic

Upgrade Mongoose from 4.10.4 to 9.1.6 in MEANApp to modernize our MongoDB layer and pull in recent fixes and performance improvements. This is a major bump with breaking changes; expect follow-up code updates.

  • Dependencies

    • Mongoose: ^9.1.6 (was ^4.10.4)
  • Migration

    • Ensure Node.js version supported by Mongoose 9 (>=16).
    • Update connection setup: use mongoose.connect(uri) and remove deprecated options like useNewUrlParser/useUnifiedTopology.
    • Replace ensureIndex() with createIndexes() and review index definitions.
    • Review query defaults (e.g., findOneAndUpdate, strictQuery) and set options explicitly to match current behavior.

Written for commit 94f9bf2. Summary will update on new commits.

Bumps the npm_and_yarn group with 1 update in the /MEANApp directory: [mongoose](https://github.com/Automattic/mongoose).


Updates `mongoose` from 4.13.21 to 9.1.6
- [Release notes](https://github.com/Automattic/mongoose/releases)
- [Changelog](https://github.com/Automattic/mongoose/blob/master/CHANGELOG.md)
- [Commits](Automattic/mongoose@4.13.21...9.1.6)

---
updated-dependencies:
- dependency-name: mongoose
  dependency-version: 9.1.6
  dependency-type: direct:production
  dependency-group: npm_and_yarn
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Feb 5, 2026
Copy link

@cubic-dev-ai cubic-dev-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 1 file

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 javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants