Skip to content

Conversation

@meabed
Copy link
Contributor

@meabed meabed commented Dec 10, 2025

The temp release for this release before merhing this package is here you could install this

    "graphql-compose-mongoose": "npm:@area51ai/[email protected]",

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

  • Migrated from .eslintrc.js to the new flat config format in eslint.config.js, updating how ESLint is configured and loaded. This improves compatibility with ESLint v9+ and streamlines linting setup. (.eslintrc.js removed, eslint.config.js added) [1] [2]

Continuous Integration and Node.js Compatibility

  • Updated the GitHub Actions workflow to use Node.js versions 20.x, 22.x, and 24.x for testing, and 28.x for publishing, while removing legacy workflow cancellation steps and adding concurrency control. Also added tests for Mongoose v8 and upgraded action versions. (.github/workflows/nodejs.yml) [1] [2] [3] [4] [5]

Dependency Updates

  • Upgraded many dependencies and devDependencies in package.json to 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

  • Added new fields (statusCode and numTest) to the mocked UserModel, 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

  • Removed unnecessary ESLint disable comments and improved import statements throughout test and mock files for better readability and maintainability. (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]

@meabed meabed changed the title Update mongoose 9, eslint, nodejs 🚀 🔥 Mongoose 9 Support and Dependency, eslint, nodejs 🚀 🔥 Dec 10, 2025
@meabed
Copy link
Contributor Author

meabed commented Dec 10, 2025

@nodkz I have updated mongoose 9 and its looks good 👍 could you have a look

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant