Skip to content

chore: bump unrs-resolver to v1.3.3 #267

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 4 commits into from
Mar 29, 2025
Merged

chore: bump unrs-resolver to v1.3.3 #267

merged 4 commits into from
Mar 29, 2025

Conversation

JounQin
Copy link
Member

@JounQin JounQin commented Mar 29, 2025

close #266

Summary by CodeRabbit

This release includes updates to the project documentation along with several internal improvements to enhance performance and consistency.

  • Documentation
    • Updated documentation with new sections for Sponsors, Backers, Changelog, and License, plus additional resource links for user reference.
  • Chores
    • Enhanced internal processes with automated formatting, quality checks, and improved release management through updated dependencies.
  • Style
    • Applied minor stylistic refinements to ensure consistent code presentation.

Copy link

changeset-bot bot commented Mar 29, 2025

🦋 Changeset detected

Latest commit: 5bce93f

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

This PR includes changesets to release 1 package
Name Type
eslint-plugin-import-x 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 Mar 29, 2025

Walkthrough

This pull request introduces several configuration and dependency updates. A new changeset entry documents a patch for the "eslint-plugin-import-x" package and notes a bump of the unrs-resolver package to version 1.3.3. Two GitHub Actions workflows are added/updated—one for automatic code formatting on pull requests and another for release management with concurrency controls and updated permissions. In addition, minor code style adjustments, documentation enhancements in the README, and new scripts and dependency version updates in the package configuration have been implemented.

Changes

File(s) Change summary
.changeset/early-mangos-invite.md Added entry for "eslint-plugin-import-x" patch and noted bump of unrs-resolver to version 1.3.3
.github/workflows/autofix.yml, .github/workflows/release.yml Introduced new autofix workflow triggered on pull requests; updated release workflow with concurrency settings, permissions, and an added env var
.simple-git-hooks.mjs Changed string quotations in the export statement from double quotes to single quotes
README.md Added "Sponsors", "Backers", "Changelog", and "License" sections; updated various links
package.json Added "format" script and updated dependency versions for unrs-resolver, @types/node, and eslint-import-resolver-typescript

Sequence Diagram(s)

sequenceDiagram
    participant PR as "Pull Request Event"
    participant GA as "GitHub Actions"
    participant Autofix as "Autofix Job"
    participant Checkout as "Checkout Repo"
    participant Setup as "Setup Node.js"
    participant Install as "Install Dependencies"
    participant Format as "Format Code"
    participant Fix as "Apply Autofix"
    
    PR->>GA: New PR (open, reopen, synchronize)
    GA->>Autofix: Start Autofix job
    Autofix->>Checkout: Checkout repository
    Autofix->>Setup: Set up Node.js LTS
    Autofix->>Install: Run yarn --immutable
    Autofix->>Format: Execute yarn format
    Autofix->>Fix: Run autofix-ci action
Loading
sequenceDiagram
    participant Trigger as "Release Trigger"
    participant GA as "GitHub Actions"
    participant ReleaseJob as "Release Job"
    
    Trigger->>GA: Trigger release workflow
    GA->>ReleaseJob: Start release job
    ReleaseJob->>ReleaseJob: Check concurrency (cancel outdated runs)
    ReleaseJob->>GA: Execute release steps with updated permissions & env variables
Loading

Assessment against linked issues

Objective Addressed Explanation
Update rspack-resolver/unrs-resolver to mitigate segmentation fault (#266)

Poem

I'm a rabbit on a code-venture spree,
Hopping through workflows so sprightly and free,
With fixes and formats that make bugs flee,
Dependencies leap to version 1.3.3, 🐇
Celebrating changes with a twitch of glee!

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.

.simple-git-hooks.mjs

(node:16864) ESLintIgnoreWarning: The ".eslintignore" file is no longer supported. Switch to using the "ignores" property in "eslint.config.js": https://eslint.org/docs/latest/use/configure/migration-guide#ignoring-files
(Use node --trace-warnings ... to show where the warning was created)

Oops! Something went wrong! :(

ESLint: 9.23.0

ESLint couldn't find an eslint.config.(js|mjs|cjs) file.

From ESLint v9.0.0, the default configuration file is now eslint.config.js.
If you are using a .eslintrc.* file, please follow the migration guide
to update your configuration file to the new format:

https://eslint.org/docs/latest/use/configure/migration-guide

If you still have problems after following the migration guide, please stop by
https://eslint.org/chat/help to chat with the team.

✨ Finishing Touches
  • 📝 Generate Docstrings

🪧 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.
    • Generate unit testing code for this file.
    • 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 generate unit testing code for this file.
    • @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 generate unit testing code.
    • @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.

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 resolve resolve all the CodeRabbit review comments.
  • @coderabbitai plan to trigger planning for file edits and PR creation.
  • @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.

@JounQin JounQin requested a review from Copilot March 29, 2025 19:03
Copy link

socket-security bot commented Mar 29, 2025

New, updated, and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/@cspotcode/[email protected] filesystem 0 102 kB cspotcode
npm/@humanwhocodes/[email protected] None 0 55.6 kB nzakas
npm/@humanwhocodes/[email protected] None 0 53.3 kB nzakas
npm/@jest/[email protected] None 0 19 kB simenb
npm/@jest/[email protected] unsafe Transitive: environment +1 172 kB simenb
npm/@jest/[email protected] environment, unsafe 0 115 kB simenb
npm/@jest/[email protected] None 0 15.8 kB simenb
npm/@jest/[email protected] None 0 52.4 kB simenb
npm/@tsconfig/[email protected] None 0 2.31 kB typescript-deploys
npm/@tsconfig/[email protected] None 0 2.5 kB typescript-deploys
npm/@tsconfig/[email protected] None 0 2.39 kB typescript-deploys
npm/@tsconfig/[email protected] None 0 2.45 kB typescript-deploys
npm/@unrs/[email protected]1.3.3 None 0 2.26 MB jounqin
npm/@unrs/[email protected]1.3.3 None 0 2.58 MB jounqin
npm/@unrs/[email protected]1.3.3 None 0 2.8 MB jounqin
npm/@unrs/[email protected]1.3.3 None 0 2.35 MB jounqin
npm/@unrs/[email protected]1.3.3 None 0 2.35 MB jounqin
npm/@unrs/[email protected]1.3.3 None 0 2.54 MB jounqin
npm/@unrs/[email protected]1.3.3 None 0 2.55 MB jounqin
npm/@unrs/[email protected]1.3.3 None 0 3.1 MB jounqin
npm/@unrs/[email protected]1.3.3 None 0 4.13 MB jounqin
npm/@unrs/[email protected]1.3.3 None 0 2.94 MB jounqin
npm/@unrs/[email protected]1.3.3 None 0 2.96 MB jounqin
npm/@unrs/[email protected]1.3.3 None 0 2.07 MB jounqin
npm/@unrs/[email protected]1.3.3 None 0 2.44 MB jounqin
npm/@unrs/[email protected]1.3.3 None 0 2.52 MB jounqin
npm/@unrs/[email protected]1.3.3 None 0 2.79 MB jounqin
npm/@yarnpkg/[email protected] None +2 1.43 MB arcanis, bestander, cpojer, ...2 more
npm/[email protected] None 0 52.4 kB marijn
npm/[email protected] None 0 16.4 kB sindresorhus
npm/[email protected] None 0 12.9 kB qix
npm/[email protected] unsafe 0 4.51 kB sindresorhus
npm/[email protected] None 0 8.54 kB samverschueren
npm/[email protected] None 0 15.9 kB simenb
npm/[email protected] filesystem, unsafe 0 6.25 kB pi0
npm/[email protected] None 0 335 kB kpdecker
npm/[email protected] filesystem 0 54.1 kB ota-meshi
npm/[email protected]4.3.1 None 0 54.3 kB alexgorbatchev, bradzacher, jounqin
npm/[email protected] None 0 86.5 kB johno, remcohaszing, timneutkens, ...1 more
npm/[email protected] None 0 409 kB eslint-community-bot
npm/[email protected] None +1 112 kB jounqin
npm/[email protected] None 0 711 kB sindresorhus
npm/[email protected] None 0 288 kB ota-meshi
npm/[email protected]8.56.0 filesystem +1 3.04 MB eslintbot
npm/[email protected] None 0 22.6 kB wooorm
npm/[email protected] environment 0 80.1 kB ehmicky
npm/[email protected] None 0 59.8 kB cowboy
npm/[email protected] None 0 52.3 kB luin
npm/[email protected] None 0 271 kB hermes-team
npm/[email protected] None 0 364 kB hermes-team
npm/[email protected] None 0 1.25 MB hermes-team
npm/[email protected] None 0 4.66 kB sindresorhus
npm/[email protected] None 0 4.4 kB sindresorhus
npm/[email protected] None 0 3.88 kB sindresorhus
npm/[email protected] None 0 4.12 kB sindresorhus
npm/[email protected] environment 0 18.2 kB simenb
npm/[email protected] None 0 33.8 kB simenb
npm/[email protected] None 0 114 kB simenb
npm/[email protected] environment, filesystem, shell, unsafe 0 121 kB simenb
npm/[email protected] None 0 3.52 kB simenb
npm/[email protected] None 0 8.92 kB simenb
npm/[email protected] environment, unsafe 0 65.7 kB simenb
npm/[email protected] environment 0 29.6 kB simenb
npm/[email protected] unsafe 0 89.2 kB simenb
npm/[email protected] eval 0 83.5 kB simenb
npm/[email protected] None 0 28.7 kB simenb
npm/[email protected] None 0 23.4 kB simenb
npm/[email protected] None 0 5.01 kB simenb
npm/[email protected] None 0 213 kB vscode-bot
npm/[email protected] filesystem 0 18 kB antonk52
npm/[email protected] None 0 0 B
npm/[email protected] environment 0 276 kB cenk1cenk2
npm/[email protected] None 0 12.4 kB julien-f
npm/[email protected] None 0 684 kB streamich
npm/[email protected] None 0 23.2 kB jsbizon
npm/[email protected] None 0 14 kB wooorm
npm/[email protected] None 0 2.97 kB thejameskyle
npm/[email protected] environment, filesystem +1 658 kB bret
npm/[email protected] eval 0 78.7 kB sooniter
npm/[email protected] shell 0 23.1 kB simonepri
npm/[email protected] None 0 9.58 kB bpscott
npm/[email protected] None 0 6.73 kB sindresorhus
npm/[email protected] filesystem 0 6.05 kB sindresorhus
npm/[email protected] None 0 290 kB phryneas
npm/[email protected] None 0 314 kB dmitrysoshnikov
npm/[email protected] None 0 14.7 kB wooorm
npm/[email protected] None 0 4.98 kB sindresorhus
npm/[email protected] environment, filesystem 0 281 kB isaacs
npm/[email protected] None 0 45 kB ljharb
npm/[email protected] filesystem 0 13.6 kB toplenboren
npm/[email protected] None 0 7.8 kB cellule
npm/[email protected] None 0 3.31 kB sindresorhus
npm/[email protected] None 0 11 kB substack
npm/[email protected] environment, filesystem, unsafe +1 1.3 MB blakeembrey
npm/[email protected] None 0 22.9 MB typescript-bot
npm/[email protected]1.3.3 None 0 20.3 kB jounqin
npm/[email protected] None 0 48.3 kB lukeed
npm/[email protected] environment, filesystem, unsafe 0 18.2 kB cspotcode
npm/[email protected] None 0 507 kB aeschli
npm/[email protected] None 0 40.3 kB vscode-bot
npm/[email protected] None 0 377 kB vscode-bot
npm/[email protected] environment, filesystem 0 85.3 kB tylerl0706
npm/[email protected] None 0 204 kB microsoft1es
npm/[email protected] None 0 91.7 kB ota-meshi
npm/[email protected] None 0 65.1 kB churpeau
npm/[email protected] None 0 6.31 kB sindresorhus
npm/[email protected] None 0 699 kB colinhacks

🚮 Removed packages: npm/@eslint/[email protected], npm/@eslint/[email protected], npm/@eslint/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected]

View full report↗︎

Copy link

codesandbox-ci bot commented Mar 29, 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

@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 bumps the version of the unrs-resolver package to v1.3.3 and updates related documentation and CI configuration.

  • Updated README.md to add sponsor and backer sections
  • Modified release workflow to include a new environment variable
  • Added a changeset entry for the version bump

Reviewed Changes

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

File Description
README.md Added sections for sponsors, backers, and references
.github/workflows/release.yml Included NPM_CONFIG_PROVENANCE in the release process
.changeset/early-mangos-invite.md Created a changeset entry for the version bump
Files not reviewed (1)
  • package.json: Language not supported
Comments suppressed due to low confidence (1)

README.md:621

[jounqin]: https://GitHub.com/JounQin

Copy link

pkg-pr-new bot commented Mar 29, 2025

Open in StackBlitz

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

commit: 9d7f527

Copy link

codecov bot commented Mar 29, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.18%. Comparing base (eb7f23b) to head (5bce93f).
Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #267   +/-   ##
=======================================
  Coverage   96.18%   96.18%           
=======================================
  Files         106      106           
  Lines        5034     5034           
  Branches     1778     1779    +1     
=======================================
  Hits         4842     4842           
+ Misses        191      186    -5     
- Partials        1        6    +5     

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

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 (3)
README.md (3)

592-599: Review of the Sponsors section addition

The new Sponsors section is clearly added with a well-formatted table that includes logos and links. Please verify that the image URL (https://raw.githubusercontent.com/1stG/static/master/sponsors.svg) is reliable and that the link (https://github.com/sponsors/JounQin) correctly points to the intended sponsor page. Additionally, consider adding descriptive alt text for better accessibility and clarity.


600-605: Review of the Backers section addition

The Backers section follows a similar table layout as the Sponsors section. Ensure that each backer's image (with URLs for 1stG, RxTS, and UnTS) is loading correctly and that the respective Open Collective links are valid. Like the Sponsors section, consider using alt texts for the images to enhance accessibility.


610-623: Review of the License section and link references

The License section now clearly displays attribution with a reference to the MIT license. However, the syntax [MIT][] © [JounQin][]@[1stG.me][] seems a bit unconventional. It might be beneficial to reformat it for better Markdown clarity—for example, by ensuring that each reference is rendered as a proper hyperlink. Also, ensure that all link references (e.g., [1stg.me], [jounqin], [mit]) are defined correctly later in the file.

📜 Review details

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

📥 Commits

Reviewing files that changed from the base of the PR and between eb7f23b and 5bce93f.

⛔ Files ignored due to path filters (1)
  • yarn.lock is excluded by !**/yarn.lock, !**/*.lock
📒 Files selected for processing (6)
  • .changeset/early-mangos-invite.md (1 hunks)
  • .github/workflows/autofix.yml (1 hunks)
  • .github/workflows/release.yml (2 hunks)
  • .simple-git-hooks.mjs (1 hunks)
  • README.md (1 hunks)
  • package.json (4 hunks)
⏰ Context from checks skipped due to timeout of 90000ms (20)
  • GitHub Check: Lint and Test with Node.js 20 and ESLint 9 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 22 and ESLint 9 on windows-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 22 and ESLint 8.56 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 18 and ESLint 9 on windows-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 18 and ESLint 9 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 20 and ESLint 9 on macos-latest
  • GitHub Check: Lint and Test with Node.js 22 and ESLint 8 on windows-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 18 and ESLint 9 on windows-latest
  • GitHub Check: Lint and Test with Node.js 22 and ESLint 9 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.56 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 18 and ESLint 8.56 on windows-latest
🔇 Additional comments (14)
.changeset/early-mangos-invite.md (2)

1-3: Well-Formatted Changeset Entry.
The front matter section with the dashes and the package update line ("eslint-plugin-import-x": patch) is clear and properly structured.


5-6: Clear Dependency Update Note.
The note "chore: bump unrs-resolver to v1.3.3" explicitly communicates the dependency update. Ensure this change is verified against the updated version in package.json.

.simple-git-hooks.mjs (1)

1-2: Consistent Module Import Style.
The export statement now uses single quotes ('@1stg/simple-git-hooks'), which aligns with the project's style guidelines.

.github/workflows/release.yml (3)

8-11: Concurrency Block Added.
The introduction of the concurrency block using ${{ github.workflow }}-${{ github.ref }} prevents overlapping runs and is a solid addition for workflow efficiency.


12-16: Enhanced Permissions Configuration.
Granting write access for contents, id-token, and pull-requests meets the requirements for release automation. This configuration appears well considered for the release process.


52-53: npm Provenance Environment Variable Set.
Adding NPM_CONFIG_PROVENANCE: true ensures that npm includes provenance information during the release process, which aids in traceability and debugging.

package.json (4)

36-36: New Formatting Script Added.
The addition of the "format": "prettier --write ." script provides a convenient way to maintain consistent code style across the codebase—ideal for integration with automated formatting workflows.


63-63: Dependency Version Bumped.
The unrs-resolver dependency is updated from ^1.3.1 to ^1.3.3. This update should address any issues from the previous version and is properly reflected across the changeset and dependency listings.


98-98: @types/node Version Update.
Upgrading "@types/node" to ^20.17.28 ensures compatibility with newer Node.js versions.


109-109: eslint-import-resolver-typescript Version Update.
Moving to version ^4.3.1 should resolve any previous inconsistencies with TypeScript resolution during linting.

.github/workflows/autofix.yml (3)

1-2: Appropriate Workflow Naming.
Naming the workflow "autofix.ci" satisfies the security requirement and clearly indicates its purpose.


10-13: Effective Concurrency Control.
The concurrency settings ensure that only the latest run for a given pull request executes, which helps prevent redundant or conflicting operations.


14-37: Well-Structured Autofix Workflow.
The job steps (checkout, Node.js setup, install dependencies, format codes, and apply the autofix action) are clear and sequential, aligning perfectly with the PR objectives of automating code formatting.

README.md (1)

606-609: Review of the Changelog section addition

Introducing a dedicated Changelog section that directs users to [CHANGELOG.md](./CHANGELOG.md) is a great improvement for transparency and detailed release notes. Please verify that the CHANGELOG.md file exists in the repository and is kept up-to-date with recent changes.

@JounQin JounQin merged commit e9e2300 into master Mar 29, 2025
68 checks passed
@JounQin JounQin deleted the chore/bump branch March 29, 2025 19:38
@coderabbitai coderabbitai bot mentioned this pull request Apr 7, 2025
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.

Update to 4.9.3 results in segmentation fault
1 participant