Skip to content

Compatibility with mongoose 9#30

Merged
matiaslopezd merged 2 commits into
mainfrom
develop
Apr 27, 2026
Merged

Compatibility with mongoose 9#30
matiaslopezd merged 2 commits into
mainfrom
develop

Conversation

@matiaslopezd

Copy link
Copy Markdown
Member

This pull request updates the mongoose dependency to version 9.5.0 and improves compatibility with newer Mongoose schema structures in the getArrayItem method. These changes ensure better support for recent versions of Mongoose and enhance the handling of array item schemas.

Dependency update:

  • Upgraded the mongoose package version from ^8.2.3 to ^9.5.0 in package.json to support the latest features and fixes.

Schema compatibility improvement:

  • Updated the getArrayItem method in src/index.js to use schema.caster ?? schema.embeddedSchemaType, improving support for array schemas in newer versions of Mongoose.

@matiaslopezd matiaslopezd self-assigned this Apr 27, 2026
@matiaslopezd matiaslopezd added the bug Something isn't working label Apr 27, 2026
@matiaslopezd matiaslopezd changed the title Bug migration mongoose 8 to 9 Compatibility with mongoose 9 Apr 27, 2026
@socket-security

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updatedmongoose@​8.23.0 ⏵ 9.5.094 +110010099100

View full report

@matiaslopezd matiaslopezd merged commit a7be32a into main Apr 27, 2026
10 checks passed
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 1.7.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working released

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant