-
-
Notifications
You must be signed in to change notification settings - Fork 99
Mongoose 9 Support and Dependency, eslint, nodejs 🚀 🔥 #448
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
Conversation
|
@nodkz I have updated mongoose 9 and its looks good 👍 could you have a look |
|
Wow — this is a very massive and impressive improvements. ❤️ I’m a bit overloaded right now, but I’ll review it carefully over the next ~5 days. I’m very sorry for the delay 🙂 |
|
🎉 This PR is included in version 10.1.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
|
@meabed Thanks again for the awesome contribution — really appreciate it! 🙌 |
|
@nodkz thank you 🙏 🚀 |
The temp release for this release before merging this package is here you could install this
This pull request introduces several major updates focused on modernizing the codebase, updating dependencies, and improving compatibility with newer Node.js and Mongoose versions. The most significant changes include switching to ESLint's flat config, updating CI workflows and supported Node.js versions, and enhancing test coverage for Mongoose enum number fields.
Tooling and Configuration Modernization
.eslintrc.jsto the new flat config format ineslint.config.js, updating how ESLint is configured and loaded. This improves compatibility with ESLint v9+ and streamlines linting setup. (.eslintrc.jsremoved,eslint.config.jsadded) [1] [2]Continuous Integration and Node.js Compatibility
.github/workflows/nodejs.yml) [1] [2] [3] [4] [5]Dependency Updates
package.jsonto their latest major versions, including ESLint, Jest, Mongoose, GraphQL, and related plugins. The package name and version were also updated to reflect a new scope and release. (package.json) [1] [2] [3] [4]Mongoose Model and Test Enhancements
statusCodeandnumTest) to the mockedUserModel, and updated the corresponding interface. Expanded unit tests to cover enum number fields and their GraphQL conversion, ensuring proper handling and type derivation. (src/__mocks__/userModel.ts,src/__tests__/fieldConverter-test.ts) [1] [2] [3] [4] [5]General Code Cleanup
src/__mocks__/mongooseCommon.ts,src/__tests__/composeWithMongoose-test.ts,src/__tests__/fieldConverter-test.ts,src/__tests__/github_issues/117-test.ts,src/__tests__/github_issues/120-test.ts,src/__tests__/github_issues/128-test.ts) [1] [2] [3] [4] [5] [6]