Update backend dependencies to latest compatible versions - #524
Merged
Conversation
Major updates: - NX workspace 20.8.2 → 22.5.2 - @swc/core 1.11.x → 1.15.13 - TypeScript 5.8.3 → 5.9.3 - NestJS packages to 11.1.14 - Fastify 5.0.0 → 5.7.4 - Mongoose 8.1.1 → 8.23.0 - Cron 3.x → 4.4.0 Security: Fixed 5 vulnerabilities (21 → 16) - Removed deprecated @nx/linter package - Updated minimatch and webpack through NX updates Code changes: - Fixed OCR service for TypeScript 5.9 stricter type checking All tests passing. Build successful. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Breaking changes resolved: - Replaced FilterQuery with mongodb.Filter type - Updated 9 service files with new import structure - Added type casting for Model.find() compatibility - Fixed test mock types for Mongoose 9 Files refactored: - chat.mongodb.service.ts, chat.service.ts - jokes-mongodb.service.ts, jokes.service.ts - identifiers-mongodb.service.ts, identifier.service.ts - keystore-mongodb.service.ts - todo-provider.service.ts, todo.service.ts All 18 test suites passing. Build successful. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
ESLint 10 is not yet supported by @nx/eslint@22.5.2. Updated to latest ESLint 9.x version (9.39.3) which is fully compatible with current NX toolchain. All verifications passing: - Build: successful - Linting: passing (1 pre-existing warning) - Tests: all 18 projects passing Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Major changes: - Jest 29.7.0 → 30.2.0 - @types/jest 29.5.14 → 30.0.0 - jest-environment-node 29.7.0 → 30.2.0 Breaking change fixed: - Replaced .rejects.toThrowError() with .rejects.toThrow() (toThrowError removed in Jest 30) All verifications passing: - Build: successful - Linting: passing (1 pre-existing warning) - Tests: all 18 projects passing (66 test suites) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Updates applied: - class-validator 0.14.3 → 0.14.4 (patch) - @fastify/static 8.3.0 → 9.0.0 (major) - @types/node 22.15.21 → 22.19.11 (minor, latest for Node.js 22) Note: @types/node@25.x is for Node.js 25 which doesn't exist yet. Current Node.js version: 22.22.0 - using matching @types/node@22.x All verifications passing: - Build: successful - Linting: passing (1 pre-existing warning) - Tests: all 18 projects passing All dependencies now fully up-to-date! Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
|
|
Documented all dependency updates in CHANGELOG.md: - Major version upgrades (Mongoose 9, Jest 30, NX 22, etc.) - Security vulnerability fixes (5 vulnerabilities resolved) - TypeScript 5.9 compatibility fix Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🎉 Complete Backend Dependency Update
This PR updates all backend dependencies to their latest compatible and stable versions, with comprehensive verification at every step.
📦 Major Updates Completed
Framework & Tooling
Testing
Linting
Database
NestJS Ecosystem
Runtime Dependencies
Type Definitions
🔒 Security Impact
Before: 21 vulnerabilities (1 low, 4 moderate, 16 high)
After: 16 vulnerabilities (4 moderate, 12 high)
✅ 5 vulnerabilities fixed (24% reduction)
Remaining vulnerabilities: All in devDependencies only - no production impact
🛠️ Breaking Changes Resolved
TypeScript 5.9 Compatibility
Buffer→Uint8Arrayconversion for Blob constructorMongoose 9 API Migration
FilterQuerywithmongodb.FiltertypeModel.find()compatibilityJest 30 API Update
.rejects.toThrowError()with.rejects.toThrow()✅ Verification Results
All verifications passing:
📝 Files Changed
11 files modified:
No new files added, no files deleted
🚀 Commits Included
📊 Package Status
✅ Fully Updated
All packages are now at their latest compatible and stable versions.
⏳ Not Updated (Awaiting Ecosystem Support)
🎯 Test Plan
📌 Notes
🤖 Generated with Claude Code