Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

JounQin
Copy link
Member

@JounQin JounQin commented Jun 5, 2025

Important

Remove unused hashing utilities and update changelog and dependencies for stability.

  • Refactor:
    • Removed unused hashing utility functions from src/utils/hash.ts and their exports from src/utils/index.ts.
    • Deleted test/utils/hash.spec.ts as it tested the removed hashing utilities.
  • Chores:
    • Updated changelog entries in CHANGELOG.md to reflect contributor credits.
    • Upgraded eslint-import-context to ^0.1.8 and tsdown to ^0.12.7 in package.json.

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


Summary by CodeRabbit

  • Chores
    • Updated contributor attributions in the changelog.
    • Upgraded dependency versions for improved compatibility and maintenance.
  • Refactor
    • Removed unused hashing utility functions and their related exports.
  • Tests
    • Deleted test files related to the removed hashing utilities.

@JounQin JounQin requested a review from Copilot June 5, 2025 17:25
@JounQin JounQin self-assigned this Jun 5, 2025
Copy link

changeset-bot bot commented Jun 5, 2025

⚠️ No Changeset found

Latest commit: 7c85b19

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 Jun 5, 2025

Walkthrough

This change updates dependency versions in package.json, revises contributor credits in the changelog, and removes the hash.ts utility along with its exports from the codebase. No public APIs or exported entities remain for the deleted hashing utilities.

Changes

File(s) Change Summary
CHANGELOG.md Updated contributor credits for two fixes.
package.json Bumped eslint-import-context to ^0.1.8 and tsdown to ^0.12.7.
src/utils/hash.ts Deleted file; removed hashing utility functions.
src/utils/index.ts Removed export of the deleted hash.js module.
test/utils/hash.spec.ts Deleted test suite for hashing utility functions.

Possibly related PRs

Suggested labels

refactor

Poem

A hash once lived in utils’ den,
Now gone, erased by coder’s pen.
Dependencies fresh, the credits right,
The changelog shines with names in light.
The rabbit hops, its work complete—
Refactored code is always neat!
🐇✨


📜 Recent review details

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

📥 Commits

Reviewing files that changed from the base of the PR and between 9574478 and 7c85b19.

⛔ Files ignored due to path filters (1)
  • yarn.lock is excluded by !**/yarn.lock, !**/*.lock
📒 Files selected for processing (5)
  • CHANGELOG.md (1 hunks)
  • package.json (2 hunks)
  • src/utils/hash.ts (0 hunks)
  • src/utils/index.ts (0 hunks)
  • test/utils/hash.spec.ts (0 hunks)
💤 Files with no reviewable changes (3)
  • src/utils/index.ts
  • test/utils/hash.spec.ts
  • src/utils/hash.ts
🚧 Files skipped from review as they are similar to previous changes (2)
  • package.json
  • CHANGELOG.md
⏰ Context from checks skipped due to timeout of 90000ms (21)
  • GitHub Check: Lint and Test with Node.js 22 and ESLint 8 on ubuntu-latest
  • GitHub Check: Lint and Test with Node.js 18 and ESLint 8.56 on ubuntu-latest
  • GitHub Check: Lint and Test with Node.js 22 and ESLint 9 on ubuntu-latest
  • GitHub Check: Lint and Test with Node.js 22 and ESLint 8 on windows-latest
  • GitHub Check: Lint and Test with Node.js 22 and ESLint 8 on ubuntu-latest
  • GitHub Check: Lint and Test with Node.js 24 and ESLint 8.56 on windows-latest
  • GitHub Check: Lint and Test with Node.js 20 and ESLint 8 on ubuntu-latest
  • GitHub Check: Lint and Test with Node.js lts/* and ESLint 9 on ubuntu-latest
  • GitHub Check: Lint and Test with Node.js 20 and ESLint 8.56 on windows-latest
  • GitHub Check: Lint and Test with Node.js 20 and ESLint 8 on windows-latest
  • GitHub Check: Lint and Test with Node.js 20 and ESLint 9 on windows-latest
  • GitHub Check: Lint and Test with Node.js 18 and ESLint 8 on windows-latest
  • GitHub Check: Lint and Test with Node.js 22 and ESLint 8.56 on ubuntu-latest
  • GitHub Check: Lint and Test with Node.js 18 and ESLint 8.56 on ubuntu-latest
  • GitHub Check: Lint and Test with Node.js 18 and ESLint 8 on ubuntu-latest
  • GitHub Check: Lint and Test with Node.js 22 and ESLint 8.56 on macos-latest
  • GitHub Check: Lint and Test with Node.js 24 and ESLint 8 on macos-latest
  • GitHub Check: Lint and Test with Node.js 18 and ESLint 9 on macos-latest
  • GitHub Check: Lint and Test with Node.js 20 and ESLint 9 on macos-latest
  • GitHub Check: Lint and Test with Node.js 18 and ESLint 8.56 on macos-latest
  • GitHub Check: Codacy Static Code Analysis
✨ Finishing Touches
  • 📝 Generate Docstrings

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.
    • Explain this complex logic.
    • 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. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • 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 src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

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

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

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

Documentation and Community

  • 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

socket-security bot commented Jun 5, 2025

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Updated@​babel/​runtime@​7.27.4 ⏵ 7.27.61001007897 +1100
Updated@​babel/​helpers@​7.27.4 ⏵ 7.27.6100 +2100100 +23100 +4100

View full report

Copy link

codesandbox-ci bot commented Jun 5, 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 9574478 in 41 seconds. Click for details.
  • Reviewed 109 lines of code in 4 files
  • Skipped 1 files when reviewing.
  • Skipped posting 4 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. CHANGELOG.md:9
  • Draft comment:
    Updated contributor attribution for PR #371—make sure the correct contributors are recognized for each fix.
  • Reason this comment was not posted:
    Confidence changes required: 0% <= threshold 50% None
2. package.json:80
  • Draft comment:
    Dependency version bumps (eslint-import-context and tsdown) are updated appropriately. Confirm these versions match downstream requirements.
  • Reason this comment was not posted:
    Confidence changes required: 0% <= threshold 50% None
3. src/utils/hash.ts:1
  • Draft comment:
    Removal of the unused hash utility is clean. Verify no external modules depend on it.
  • Reason this comment was not posted:
    Confidence changes required: 0% <= threshold 50% None
4. src/utils/index.ts:18
  • Draft comment:
    Removed export of './hash.js' in line with the deletion of the hash utility file.
  • Reason this comment was not posted:
    Confidence changes required: 0% <= threshold 50% None

Workflow ID: wflow_U7M4smYzAxdinxeq

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

Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR removes an unused hashing utility, bumps two development dependencies, and refines contributor acknowledgements in the changelog.

  • Removed export of the unused hash.js util and deleted its source file.
  • Upgraded eslint-import-context from v0.1.7 to v0.1.8 and tsdown from v0.12.6 to v0.12.7.
  • Updated CHANGELOG.md entries for PR #371 to include additional contributor mentions.

Reviewed Changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

File Description
src/utils/index.ts Removed export of unused hash.js.
src/utils/hash.ts Deleted unused hash utility implementation.
package.json Bumped eslint-import-context to v0.1.8 and tsdown to v0.12.7.
CHANGELOG.md Expanded contributor acknowledgements for PR #371 fixes.
Comments suppressed due to low confidence (2)

CHANGELOG.md:11

  • [nitpick] The second bullet for PR #371 only thanks @JounQin; consider also acknowledging @dword-design for consistency with the first entry.
+ [#371](https://github.com/un-ts/eslint-plugin-import-x/pull/371) [`4f97a1a`](https://github.com/un-ts/eslint-plugin-import-x/commit/4f97a1a1419c15821ba1ab07e4038b715208ac7a) Thanks [@JounQin](https://github.com/JounQin)! - fix: enable `nocomment: true` for glob options of rules `no-import-module-exports` and `no-namespace`

package.json:83

  • Dependency versions were updated; please remember to update and commit the lockfile (e.g., package-lock.json or yarn.lock) to ensure reproducible installs.
"eslint-import-context": "^0.1.8",

Copy link

pkg-pr-new bot commented Jun 5, 2025

Open in StackBlitz

npm i https://pkg.pr.new/eslint-plugin-import-x@375

commit: 7c85b19

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 (4)
package.json (2)

83-83: Confirm bump of eslint-import-context and document it.
Ensure upgrading to ^0.1.8 is compatible with existing rules and peer dependencies. Consider adding a note under “4.15.1” in CHANGELOG.md to document this dependency bump.


164-164: Validate tsdown update and update documentation.
Verify that tsdown@^0.12.7 produces correct build artifacts without regressions. If this change affects the build output or workflow, please add a corresponding entry in CHANGELOG.md.

CHANGELOG.md (2)

9-9: Consolidate duplicate PR entry.
PR #371 appears twice with the same commit (4f97a1a…). Merge these two bullets into one under “4.15.1” and list both fixes together to avoid repetition.


11-11: Unify author attribution for PR #371.
The second bullet credits only [@JounQin] while the first credits both [@dword-design] and [@JounQin]. Please make the author listing consistent across both entries.

📜 Review details

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

📥 Commits

Reviewing files that changed from the base of the PR and between 985bb91 and 9574478.

⛔ Files ignored due to path filters (1)
  • yarn.lock is excluded by !**/yarn.lock, !**/*.lock
📒 Files selected for processing (4)
  • CHANGELOG.md (1 hunks)
  • package.json (2 hunks)
  • src/utils/hash.ts (0 hunks)
  • src/utils/index.ts (0 hunks)
💤 Files with no reviewable changes (2)
  • src/utils/index.ts
  • src/utils/hash.ts
⏰ Context from checks skipped due to timeout of 90000ms (21)
  • GitHub Check: Codacy Static Code Analysis
  • GitHub Check: autofix
  • GitHub Check: Lint and Test with Node.js 24 and ESLint 9 on ubuntu-latest
  • GitHub Check: Lint and Test with Node.js 22 and ESLint 9 on ubuntu-latest
  • GitHub Check: Lint and Test with Node.js 20 and ESLint 9 on ubuntu-latest
  • GitHub Check: Lint and Test with Node.js 22 and ESLint 8 on macos-latest
  • GitHub Check: Lint and Test with Node.js 18 and ESLint 8 on ubuntu-latest
  • GitHub Check: Lint and Test with Node.js 18 and ESLint 8.56 on ubuntu-latest
  • GitHub Check: Lint and Test with Node.js 18 and ESLint 9 on ubuntu-latest
  • GitHub Check: Lint and Test with Node.js 18 and ESLint 9 on macos-latest
  • GitHub Check: publish
  • GitHub Check: Analyze (actions)
  • GitHub Check: Analyze (javascript-typescript)
  • GitHub Check: Lint and Test with Node.js 24 and ESLint 8 on windows-latest
  • GitHub Check: Lint and Test with Node.js 20 and ESLint 9 on windows-latest
  • GitHub Check: Lint and Test with Node.js 20 and ESLint 8 on windows-latest
  • GitHub Check: Lint and Test with Node.js 22 and ESLint 8 on windows-latest
  • GitHub Check: Lint and Test with Node.js 18 and ESLint 8 on windows-latest
  • GitHub Check: Lint and Test with Node.js 24 and ESLint 8.56 on macos-latest
  • GitHub Check: Lint and Test with Node.js 18 and ESLint 8.56 on ubuntu-latest
  • GitHub Check: Lint and Test with Node.js 22 and ESLint 9 on macos-latest

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 7c85b19 in 1 minute and 23 seconds. Click for details.
  • Reviewed 220 lines of code in 5 files
  • Skipped 1 files when reviewing.
  • Skipped posting 4 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. CHANGELOG.md:9
  • Draft comment:
    Changelog update looks good – the contributor attribution formatting has been adjusted consistently.
  • Reason this comment was not posted:
    Comment did not seem useful. Confidence is useful = 0% <= threshold 50% This comment is purely informative, as it only states that the changelog update looks good and mentions formatting consistency. It doesn't provide any actionable feedback or suggestions for improvement.
2. package.json:80
  • Draft comment:
    Updated 'eslint-import-context' from ^0.1.7 to ^0.1.8. This dependency bump is clear; ensure it aligns with its usage in the code.
  • Reason this comment was not posted:
    Comment did not seem useful. Confidence is useful = 0% <= threshold 50% The comment is asking the PR author to ensure that the dependency bump aligns with its usage in the code. This falls under the rule of not asking the author to ensure compatibility or test changes, which is not allowed.
3. package.json:161
  • Draft comment:
    Bumped 'tsdown' from ^0.12.6 to ^0.12.7. Confirm that this new version is compatible with the build scripts.
  • Reason this comment was not posted:
    Comment did not seem useful. Confidence is useful = 0% <= threshold 50% The comment is asking the PR author to confirm compatibility of a dependency version change, which violates the rule against asking for confirmation or verification of intentions. It also relates to dependency changes, which should not be commented on unless there's a specific suggestion or issue identified.
4. src/utils/index.ts:17
  • Draft comment:
    Removed the export of the unused hash utility (hash.js). This removal is consistent with deleting the file and its tests.
  • Reason this comment was not posted:
    Comment was not on a location in the diff, so it can't be submitted as a review comment.

Workflow ID: wflow_oXEpOSgqxwPLRU0j

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

Copy link

codacy-production bot commented Jun 5, 2025

Coverage summary from Codacy

See diff coverage on Codacy

Coverage variation Diff coverage
-0.03% (target: -1.00%)
Coverage variation details
Coverable lines Covered lines Coverage
Common ancestor commit (985bb91) 3707 3544 95.60%
Head commit (7c85b19) 3684 (-23) 3521 (-23) 95.58% (-0.03%)

Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: <coverage of head commit> - <coverage of common ancestor commit>

Diff coverage details
Coverable lines Covered lines Diff coverage
Pull request (#375) 0 0 ∅ (not applicable)

Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: <covered lines added or modified>/<coverable lines added or modified> * 100%

See your quality gate settings    Change summary preferences

Copy link

codecov bot commented Jun 5, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.02%. Comparing base (985bb91) to head (7c85b19).
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #375      +/-   ##
==========================================
- Coverage   96.04%   96.02%   -0.03%     
==========================================
  Files          95       94       -1     
  Lines        4934     4907      -27     
  Branches     1851     1846       -5     
==========================================
- Hits         4739     4712      -27     
  Misses        194      194              
  Partials        1        1              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@JounQin JounQin merged commit 924b14f into master Jun 6, 2025
91 of 92 checks passed
@JounQin JounQin deleted the chore/hash branch June 6, 2025 00:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant