chore(deps): Update dependencies and improve type safety#875
Conversation
This commit updates the following core dependencies to their latest versions: - @modelcontextprotocol/sdk: 1.15.0 → 1.18.2 - @types/node: 24.5.2 → 24.6.0 - oxlint: 1.16.0 → 1.19.0 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Updated the base image in the devcontainer Dockerfile to use Node.js 24, aligning with the dependency updates made in the current branch. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Fixed linting warnings by replacing 'any' return types in WXT function declarations with proper TypeScript interfaces. This improves type safety without affecting functionality. Changes: - Added BackgroundDefinition and ContentScriptDefinition interfaces - Updated defineBackground and defineContentScript return types - Resolves 2 lint/suspicious/noExplicitAny warnings 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Updated multiple dependencies to their latest versions: - commander: 14.0.0 → 14.0.1 - fast-xml-parser: 5.2.0 → 5.2.5 - minimatch: 10.0.1 → 10.0.3 - tiktoken: 1.0.20 → 1.0.22 - tsx: 4.20.5 → 4.20.6 (dev) - vite: 7.1.6 → 7.1.7 (dev) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Updated dependencies to their latest versions: - @clack/prompts: 0.10.1 → 0.11.0 - @clack/core: 0.4.2 → 0.5.0 (indirect) - iconv-lite: 0.6.3 → 0.7.0 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Updated dependencies with major version bumps: - @secretlint/core: 9.3.1 → 11.2.4 - @secretlint/secretlint-rule-preset-recommend: 9.3.1 → 11.2.4 - @secretlint/types: 9.3.4 → 11.2.4 (dev) - secretlint: 9.3.1 → 11.2.4 (dev) - clipboardy: 4.0.0 → 5.0.0 - globby: 14.1.0 → 15.0.0 - log-update: 6.1.0 → 7.0.1 - tinypool: 1.1.1 → 2.0.0 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
WalkthroughBumps the devcontainer base image to Node.js 24, tightens TypeScript type declarations for WXT APIs in browser/types.d.ts (introducing named interfaces and updated function signatures), and updates multiple dependency versions in package.json. No runtime logic or behavior changes are included. Changes
Sequence Diagram(s)Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested labels
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches
🧪 Generate unit tests
📜 Recent review detailsConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (3)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (11)
🔇 Additional comments (4)
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. 🧪 Early access (Sonnet 4.5): enabledWe are currently testing the Sonnet 4.5 model, which is expected to improve code review quality. However, this model may lead to increased noise levels in the review comments. Please disable the early access features if the noise level causes any inconvenience. Note:
Comment |
There was a problem hiding this comment.
Pull Request Overview
This PR updates multiple dependencies to their latest versions and improves type safety in the browser extension. The changes focus on keeping dependencies current while maintaining compatibility.
- Updates major dependencies including @secretlint packages (9.3.x → 11.2.4), clipboardy (4.0.0 → 5.0.0), globby (14.1.0 → 15.0.0), and others
- Improves development environment by updating Node.js from version 20 to 24 in the devcontainer
- Minor version updates for development tools like tsx, vite, and oxlint
Reviewed Changes
Copilot reviewed 2 out of 4 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| package.json | Updates 16 production and development dependencies to latest versions |
| .devcontainer/Dockerfile | Updates Node.js base image from version 20 to 24 |
Summary of ChangesHello @yamadashy, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request focuses on modernizing the project's dependencies and enhancing the robustness of the browser extension through improved type definitions. By upgrading numerous packages to their latest versions, including several major bumps, the project benefits from the newest features, performance improvements, and security patches. Concurrently, explicit type definitions have been introduced for WXT global functions, moving away from any types to provide clearer contracts and better compile-time validation. The development container's Node.js version has also been updated to ensure a consistent and up-to-date development environment. Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
Deploying repomix with
|
| Latest commit: |
198c2fc
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://c598af1b.repomix.pages.dev |
| Branch Preview URL: | https://chore-deps.repomix.pages.dev |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #875 +/- ##
=======================================
Coverage 88.85% 88.85%
=======================================
Files 109 109
Lines 7575 7575
Branches 1423 1423
=======================================
Hits 6731 6731
Misses 844 844 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Code Review
This pull request brings valuable updates to the project by upgrading numerous dependencies to their latest versions, including several major bumps that keep the codebase modern and secure. The improvements to type safety in browser/types.d.ts are particularly noteworthy, as replacing any types with specific BackgroundDefinition and ContentScriptDefinition interfaces enhances code clarity, maintainability, and robustness. The update to Node.js 24 in the DevContainer is also a welcome modernization. Overall, these are excellent changes that improve the project's health.
This PR updates multiple dependencies to their latest versions and fixes type safety issues in the browser extension.
Summary
Dependency Updates
Type Safety Improvements
browser/types.d.tsby replacinganyreturn types with proper TypeScript definitionsBackgroundDefinitionandContentScriptDefinitioninterfaces for WXT functionsDevContainer Update
.devcontainer/DockerfileChecklist
npm run testnpm run lint🤖 Generated with Claude Code