Skip to content

Conversation

remcohaszing
Copy link

@remcohaszing remcohaszing commented Jul 25, 2025

The types import @typescript-eslint/utils and type-fest. These dependencies were missing from package.json.


Important

Add missing dependencies @typescript-eslint/utils and type-fest to package.json.

  • Dependencies:
    • Add @typescript-eslint/utils version ^8.34.0 to dependencies in package.json.
    • Add type-fest version ^4.39.1 to dependencies in package.json.

This description was created by Ellipsis for a9b4905. You can customize this summary. It will automatically update as commits are pushed.

Summary by CodeRabbit

  • Chores
    • Added two new runtime dependencies: @typescript-eslint/utils and type-fest.
    • No functional or public API changes; this is a low-risk maintenance update that does not alter user-visible behavior.

The types import `@typescript-eslint/utils` and `type-fest`. These
dependencies were missing from `package.json`.
Copy link

changeset-bot bot commented Jul 25, 2025

⚠️ No Changeset found

Latest commit: 0258551

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link

coderabbitai bot commented Jul 25, 2025

Important

Review skipped

Review was skipped due to path filters

⛔ Files ignored due to path filters (1)
  • yarn.lock is excluded by !**/yarn.lock, !**/*.lock

CodeRabbit blocks several paths by default. You can override this behavior by explicitly including those paths in the path filters. For example, including **/dist/** will override the default block on the dist directory, by removing the pattern from both the lists.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Walkthrough

Added two dependencies to package.json: @typescript-eslint/utils (^8.34.0) and type-fest (^4.39.1); also inserted a trailing comma after the existing stable-hash-x entry. No other changes.

Changes

Cohort / File(s) Change Summary
Package manifest
package.json
Added dependencies @typescript-eslint/utils (^8.34.0) and type-fest (^4.39.1); added a trailing comma after stable-hash-x entry.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Suggested labels

dependencies

Poem

In the package patch I hop and cheer,
Two tidy friends have come quite near.
A comma placed with perfect art,
New types to soothe the typed-heart.
🐇✨

✨ Finishing Touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment

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.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

CodeRabbit Commands (Invoked using PR/Issue comments)

Type @coderabbitai help to get the list of available commands.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Status, Documentation and Community

  • Visit our Status Page to check the current availability of CodeRabbit.
  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link

codesandbox-ci bot commented Jul 25, 2025

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Copy link

@ellipsis-dev ellipsis-dev bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Important

Looks good to me! 👍

Reviewed everything up to a9b4905 in 1 minute and 4 seconds. Click for details.
  • Reviewed 16 lines of code in 1 files
  • Skipped 1 files when reviewing.
  • Skipped posting 3 draft comments. View those below.
  • Modify your settings and rules to customize what types of comments Ellipsis leaves. And don't forget to react with 👍 or 👎 to teach Ellipsis.
1. package.json:54
  • Draft comment:
    Added dependency '@typescript-eslint/utils'. Confirm if it should be in dependencies (runtime) or devDependencies (type-only).
  • Reason this comment was not posted:
    Confidence changes required: 33% <= threshold 50% None
2. package.json:57
  • Draft comment:
    Added missing dependency 'type-fest'. Validate its placement based on how its types are used.
  • Reason this comment was not posted:
    Confidence changes required: 33% <= threshold 50% None
3. package.json:56
  • Draft comment:
    Comma added to 'stable-hash-x' for valid JSON formatting. Confirm consistency with the rest of the file.
  • Reason this comment was not posted:
    Confidence changes required: 33% <= threshold 50% None

Workflow ID: wflow_Z2kybVsOseDN2Z4d

You can customize Ellipsis by changing your verbosity settings, reacting with 👍 or 👎, replying to comments, or adding code review rules.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

🧹 Nitpick comments (1)
package.json (1)

53-58: Consider moving type-fest to devDependencies.

type-fest is a type-only package; after transpilation no runtime require() call is emitted, so it will never be loaded in production. Moving it to devDependencies keeps the runtime install footprint minimal and avoids consumers of this library pulling an unnecessary package.

 "dependencies": {
   "@typescript-eslint/utils": "^8.34.0",
   "get-tsconfig": "^4.10.1",
   "stable-hash-x": "^0.2.0",
-  "type-fest": "^4.39.1"
+},
+"devDependencies": {
+  "type-fest": "^4.39.1",

(Adjust surrounding commas/indentation accordingly.)

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 070e5e3 and a9b4905.

⛔ Files ignored due to path filters (1)
  • yarn.lock is excluded by !**/yarn.lock, !**/*.lock
📒 Files selected for processing (1)
  • package.json (1 hunks)
⏰ 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). (1)
  • GitHub Check: Socket Security: Pull Request Alerts
🔇 Additional comments (1)
package.json (1)

53-55: Double-check version compatibility between @typescript-eslint/utils and ESLint 9.

The repo now depends on eslint@^9.29.0 (dev) while @typescript-eslint/utils@^8.34.0 historically aligned with ESLint 8. Recent releases of @typescript-eslint/* may already declare compatibility with ESLint 9, but the major is still 8. Please confirm no peer-dependency warnings are produced.

If incompatibilities appear, bumping to the latest @typescript-eslint version that explicitly supports ESLint 9 will prevent runtime failures when rules use the utils package.

remcohaszing added a commit to remcohaszing/eslint that referenced this pull request Jul 25, 2025
@JounQin
Copy link
Member

JounQin commented Aug 19, 2025

Sorry I didn't notice this PR, but I'm also unusre should we mark types as dependencies or devDependencies or optionalDependencies, that's also why I'm declaring unrs-resolver as optional peerDependencies.

@remcohaszing
Copy link
Author

If you intend to support TypeScript, you should make sure the types work without type errors. That means that if the imports end up in the published declaration files, they should be declared in the package dependencies.

The alternative is to not publish type definitions and leave that to DefinitelyTyped. But knowing you and considering this project is written in TypeScript, I don’t think that’s what you want.

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.

2 participants