Skip to content

chore: migrate stable-hash to stable-hash-x #462

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 5, 2025
Merged

chore: migrate stable-hash to stable-hash-x #462

merged 2 commits into from
Jun 5, 2025

Conversation

JounQin
Copy link
Collaborator

@JounQin JounQin commented Jun 5, 2025

Important

Migrate from stable-hash to stable-hash-x and update various dependencies and yarn configuration.

  • Dependencies:
    • Migrate from stable-hash to stable-hash-x in package.json and src/index.ts.
    • Update eslint-import-context to ^0.1.8 and unrs-resolver to ^1.7.11 in package.json.
    • Update @1stg/common-config, @pkgr/core, @types/node, @vitest/coverage-v8, eslint, eslint-plugin-import-x, tsdown, and vitest in package.json.
  • Yarn:
    • Update yarnPath in .yarnrc.yml from yarn-4.9.1.cjs to yarn-4.9.2.cjs.
    • Update packageManager in package.json to [email protected].
  • Misc:
    • Add contributor @JounQin to CHANGELOG.md for a previous change.

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

Summary by CodeRabbit

  • Chores
    • Updated various dependencies to their latest versions.
    • Migrated from the "stable-hash" package to "stable-hash-x".
    • Updated Yarn to version 4.9.2.
  • Documentation
    • Added a new contributor to the changelog acknowledgments.

@JounQin JounQin self-assigned this Jun 5, 2025
Copy link

changeset-bot bot commented Jun 5, 2025

🦋 Changeset detected

Latest commit: e525eb0

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
eslint-import-resolver-typescript Patch

Not sure what this means? Click here to learn what changesets are.

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

Copy link

coderabbitai bot commented Jun 5, 2025

Caution

Review failed

The pull request is closed.

Walkthrough

This update upgrades several dependencies and development tools, notably replacing the stable-hash package with stable-hash-x in both source and configuration files. It also updates the Yarn version, modifies related configuration, and adds a contributor acknowledgment in the changelog. No public APIs or exported entities were changed.

Changes

File(s) Change Summary
.changeset/nasty-doors-mix.md Documents the migration from stable-hash to stable-hash-x.
.yarnrc.yml, package.json Updates Yarn from 4.9.1 to 4.9.2; updates multiple dependencies and devDependencies.
CHANGELOG.md Adds an additional contributor to the 4.4.2 release notes.
src/index.ts Changes import source from stable-hash to stable-hash-x for the stableHash function.

Poem

In the warren, code hops anew,
With hashes swapped for something true.
Yarn’s now fresher, dependencies rise,
Changelog thanks with rabbit surprise!
From stable to x, a subtle leap—
Our project’s garden, tidy and neat.
🐇✨

Warning

There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure.

🔧 ESLint

If the error stems from missing dependencies, add them to the package.json file. For unrecoverable errors (e.g., due to private dependencies), disable the tool in the CodeRabbit configuration.

yarn install v1.22.22
warning Resolution field "workspace:" has an invalid version entry and may be ignored
(node:2750) [DEP0169] DeprecationWarning: url.parse() behavior is not standardized and prone to errors that have security implications. Use the WHATWG URL API instead. CVEs are not issued for url.parse() vulnerabilities.
(Use node --trace-deprecation ... to show where the warning was created)
[1/4] Resolving packages...
error Couldn't find any versions for "eslint-import-resolver-typescript" that matches "workspace:
"
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.


📜 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 5db36e7 and e525eb0.

⛔ Files ignored due to path filters (2)
  • .yarn/releases/yarn-4.9.2.cjs is excluded by !**/.yarn/**
  • yarn.lock is excluded by !**/yarn.lock, !**/*.lock
📒 Files selected for processing (5)
  • .changeset/nasty-doors-mix.md (1 hunks)
  • .yarnrc.yml (1 hunks)
  • CHANGELOG.md (1 hunks)
  • package.json (3 hunks)
  • src/index.ts (1 hunks)
✨ 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

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

pkg-pr-new bot commented Jun 5, 2025

Open in StackBlitz

npm i https://pkg.pr.new/eslint-import-resolver-typescript@462

commit: e525eb0

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 4831fa8 in 1 minute and 7 seconds. Click for details.
  • Reviewed 104 lines of code in 4 files
  • Skipped 2 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. .yarnrc.yml:10
  • Draft comment:
    Bump yarnPath to v4.9.2. Confirm this upgrade aligns with the package manager version in package.json.
  • Reason this comment was not posted:
    Confidence changes required: 0% <= threshold 50% None
2. package.json:72
  • Draft comment:
    Replace dependency 'stable-hash' with 'stable-hash-x' (v^0.1.1). Verify that the new package’s API is fully compatible with its usage in the resolver.
  • Reason this comment was not posted:
    Confidence changes required: 33% <= threshold 50% None
3. src/index.ts:12
  • Draft comment:
    Update import to use 'stable-hash-x'. Ensure that its function signature (used for hashing options) remains compatible with the previous implementation.
  • Reason this comment was not posted:
    Confidence changes required: 33% <= threshold 50% None

Workflow ID: wflow_owsa34gEVOPutlJ3

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

Copy link
Contributor

github-actions bot commented Jun 5, 2025

size-limit report 📦

Path Size
lib/index.js 1.33 KB (+0.23% 🔺)

Copy link

codecov bot commented Jun 5, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 63.65%. Comparing base (5db36e7) to head (e525eb0).
Report is 2 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #462   +/-   ##
=======================================
  Coverage   63.65%   63.65%           
=======================================
  Files           6        6           
  Lines         388      388           
  Branches       50       50           
=======================================
  Hits          247      247           
  Misses        141      141           

☔ 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.

@import-js import-js deleted a comment from coderabbitai bot Jun 5, 2025
@JounQin JounQin merged commit 43575e7 into master Jun 5, 2025
37 of 38 checks passed
@JounQin JounQin deleted the chore/deps branch June 5, 2025 20:34
renovate bot added a commit to andrei-picus-tink/auto-renovate that referenced this pull request Jun 8, 2025
| datasource | package                           | from  | to    |
| ---------- | --------------------------------- | ----- | ----- |
| npm        | eslint-import-resolver-typescript | 4.4.2 | 4.4.3 |


## [v4.4.3](https://github.com/import-js/eslint-import-resolver-typescript/blob/HEAD/CHANGELOG.md#443)

##### Patch Changes

-   [#462](import-js/eslint-import-resolver-typescript#462) [`43575e7`](import-js/eslint-import-resolver-typescript@43575e7) Thanks [@JounQin](https://github.com/JounQin)! - chore: migrate `stable-hash` to `stable-hash-x`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

1 participant