Update Lightning to 11.0.0 and TypeScript to ^5.9.3 Issue726#727
Update Lightning to 11.0.0 and TypeScript to ^5.9.3 Issue726#727Matobi98 wants to merge 3 commits intolnp2pBot:mainfrom
Conversation
WalkthroughUpdated dependency versions in Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Possibly related issues
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Fix all issues with AI agents
In `@package.json`:
- Line 67: Update the `@typescript-eslint` packages to a newer 8.x release that
supports TypeScript 5.9.3: change the versions for `@typescript-eslint/parser` and
`@typescript-eslint/eslint-plugin` in package.json devDependencies to a current
8.x version that explicitly supports TS >=4.8.4 <6.0.0, then reinstall
(npm/yarn) to update lockfile; verify eslint still runs and lints files
referencing TypeScript by running your lint script or eslint directly.
Can you specify which fixes and improvements are the ones you're after? |
|
It was a mistake; I've updated the description to clarify the reason:
|
There was a problem hiding this comment.
Review Summary
✅ Checks Passed
- CI Status: All workflows pass (Lint, NodeJS CI, CodeQL)
- Breaking Change Compatibility:
lightningv11.0.0 only breaks Node.js 18 support (requires ≥20). The project already uses Node.js 20 in Dockerfile and hasengines: {"node": ">=18.0.0"}, so this is compatible. - TypeScript Upgrade: 5.1.6 → 5.9.3 is a safe major bump with no known breaking changes for this codebase.
- ESLint Plugins:
@typescript-eslint/*8.11.0 → 8.21.0 is a minor version bump. - Lockfile:
package-lock.jsoncorrectly regenerated.
⚠️ Issues Found
-
Missing newline at EOF in
package.json- The diff shows
}without trailing newline:
-} +} \ No newline at end of file
- This violates POSIX standards and can cause issues with some tools.
- Fix required: Add a newline at the end of
package.json.
- The diff shows
-
Version specifier inconsistency
lightningchanged from exact (10.25.0) to caret (^11.0.0)- Other deps use exact versions (e.g.,
mongoose: 6.13.6,invoices: 2.0.6) - Recommendation: Use exact version
11.0.0for consistency with existing patterns, OR document the reason for allowing minor updates.
-
engines.node should be updated
- Current:
>=18.0.0 - With
lightningv11.0.0 requiring Node.js ≥20, theenginesfield should be updated to>=20.0.0to prevent installation on unsupported Node versions. - Fix recommended: Update
engines.nodeto>=20.0.0.
- Current:
📋 Checklist
- PR linked to issue #726
- CI passes
- No breaking runtime changes (Node 20 already in use)
- EOF newline in package.json
- Consider exact version for lightning
- Update engines.node to >=20.0.0
Verdict
Request Changes — The missing EOF newline is a clear issue. The engines.node update is strongly recommended to prevent future issues when someone tries to run on Node 18.
But Ubuntu LTS (24.04) still has 18.x. I recommend waiting until 26.04 is out the door to make this change (in April this year). |
Summary
Updated the Lightning dependency to 11.0.0. This required upgrading TypeScript to ^5.9.3 (minimum required ≥ 5.4), so TypeScript was bumped to ^5.9.3.
Changes
lightningto 11.0.0 inpackage.json.typescriptto ^5.9.3.package-lock.json/yarn.lock) accordingly.Why
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.