nestjs-typeorm-paginate
nestjs-typeorm-paginate copied to clipboard
Revert of #918 with only essential changes, including security enhancements, package updates, Dependabot improvements, testing setup and workflow fixes.
What is changing in this PR
Summary of Package Changes
-
Updated: Test cases and
index.ts -
Upgraded Dependencies:
typeorm→0.3.20typescript→5.7.3ts-jest→^29.2.5jest→^29.0.0@nestjs/common→^11.0.1@nestjs/core→^11.0.1@nestjs/testing→^11.0.1@nestjs/typeorm→^11.0.0
-
Added Dependencies:
"typescript": "^5.7.3""rimraf": "^6.0.1""rxjs": "^7.1.0""sqlite3": "^5.1.7""npm-run-all2": "^7.0.2""cross-env": "^7.0.3"
-
Removed Deprecated/old Dependencies:
"coveralls": "^3.0.5""rxjs": "^6.5.2""ts-jest": "^26.4.4""typeorm": "0.3.17""typescript": "^4.0.5"- "@nestjs/common": "^9.0.5",
- "@nestjs/core": "9.4.3",
- "@nestjs/testing": "^9.0.5",
- "@nestjs/typeorm": "^7.1.0",
Improvements
- Removed
coverallsdependency and few overrides are added to fix security issues - Added
npm-run-all2to improve script management. - Modularized build scripts for better maintainability.
- Improved cross-platform compatibility for script execution.
- Implemented security overrides for dependencies.
- Added
cross-envto ensuresetup:testscript runs consistently across different environments. - Installed
sqlite3to enhance testing speed. - Updated ORM configuration to use an inbuilt SQLite database for optimized test performance.
- Fixed and aligned test cases with the new setup.
- Test coverage verified – all tests passed successfully. ✅
This PR enhances project stability, performance, and maintainability while ensuring smooth dependency upgrades and test execution. 🚀