chore(deps): bump mongoose from 8.12.1 to 8.22.1
Open
Number: #6870
Type: Pull Request
State: Open
Type: Pull Request
State: Open
Author:
dependabot[bot]
Association: Unknown
Comments: 6
Association: Unknown
Comments: 6
Created:
May 06, 2026 at 02:39 AM UTC
(13 days ago)
(13 days ago)
Updated:
May 06, 2026 at 02:49 AM UTC
(13 days ago)
(13 days ago)
Labels:
size/XS dependencies javascript
size/XS dependencies javascript
Description:
Bumps mongoose from 8.12.1 to 8.22.1.
Release notes
Sourced from mongoose's releases.
8.22.1 / 2025-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
8.22.0 / 2026-01-27
8.21.1
- 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
8.21.0 / 2025-12-29
- feat(document): add support for getAtomics() to allow custom container types to utilize atomics #15817
- feat(document+model): pass options to pre('deleteOne') and update+options to pre('updateOne') hooks #15908 #15870
- fix: add support for typescript style enums #15914 #15913 mjfwebb
8.20.4 / 2025-12-18
- fix(model): ensure $isDeleted is set after calling doc.deleteOne() successfully #15898
- fix(document): use bitwise OR to accumulate version mode flags #15893 #15888 AbdelrahmanHafez
8.20.3 / 2025-12-15
- perf: use Object.hasOwn instead of Object#hasOwnProperty #15875 AbdelrahmanHafez
- fix: improve error when calling Document.prototype.init() with null/undefined #15812 Vegapunk-debug
- types(schema): avoid treating paths with default: null as required #15889
- types(schema): allow partial statics to schema.statics() #15780
8.20.2 / 2025-12-05
- fix(model): bump version if necessary after successful bulkSave() #15809 #15800
- fix(bulkWrite): pass overwriteImmutable option to castUpdate fixes #15789 #15782 #15781
- types(schema): allow calling schema.static() with as TStatics #15794 #15780
8.20.1 / 2025-11-20
- types: correct Model.schema type and fix unknown check for this param type in schema.methods #15750 #15693
- docs: add detailed loadClass() TypeScript usage guide #15731 #12813 Necro-Rohan
- docs: update version support documentation for Mongoose #15761 ManmathX
- docs: add copy-to-clipboard feature for code blocks in docs #15759 vedansha07
8.20.0 / 2025-11-17
... (truncated)
Changelog
Sourced from mongoose's changelog.
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
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
- fix(map): validate map subdocument when loaded with init #15960 #15957 AbdelrahmanHafez
- fix(discriminator): prevent indexes and callQueue duplication with shared nested schemas #15974 #15966 AbdelrahmanHafez
- fix(subdocuments): do not pass parent path on init #15970 #15969 #15682 AbdelrahmanHafez
- types(inferrawdoctype): correct handling for subdocs and doc arrays #15967 #13772
- docs: improve grammar and clarity in TypeScript schema comments #15971 harshsinghpujari
9.1.4 / 2026-01-15
- fix: attach sessions to docs retrieved by cursor #15953 #15949 mjfwalsh
- fix(model): make hydrate() handle nested schema arrays #15964 #15956
- fix(clone): fix parent doc for map subdocuments and array subdocuments #15958 #15954 AbdelrahmanHafez
- fix: prevent crash when accessing nested paths on prototype #15962 #15961 som14062005
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 / 2026-01-05
- fix(subdocs): pass options to pre-save hooks for subdocs #15921 #15920 AbdelrahmanHafez
- perf(model): select only _id when checking document existence during save() #15919 AbdelrahmanHafez
... (truncated)
Commits
472e7c7chore: release 8.22.11735149Merge branch '7.x' into 8.x5227801chore: release 7.8.9b804e34fix: handle other top-level query operators in sanitizeFilter8d9a81fchore: release 8.22.0f752854Merge pull request #15985 from Automattic/8.22e7a57edavoid hardcoding dbName31adbb4chore: release 8.21.162a5af7test: bring test cases from #15958 into 8.x to ensure fixes are applied in 8.xbc8cb23implement review suggestions- Additional commits viewable in compare view
Maintainer changes
This version was pushed to npm by GitHub Actions, a new releaser for mongoose since your current version.
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 rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
You can disable automated security fix PRs for this repo from the Security Alerts page.
Package Dependencies
Technical Details
| ID: | 15670470 |
| UUID: | 4388367531 |
| Node ID: | PR_kwDOJBnXq87YnI4q |
| Host: | GitHub |
| Repository: | labring/FastGPT |