Skip to content

chore: bump all compatible dev dependencies#1189

Merged
JounQin merged 1 commit intomasterfrom
chore/bump
May 10, 2025
Merged

chore: bump all compatible dev dependencies#1189
JounQin merged 1 commit intomasterfrom
chore/bump

Conversation

@JounQin
Copy link
Copy Markdown
Member

@JounQin JounQin commented May 10, 2025

Important

Updated dev dependencies, added yarn-berry-deduplicate, and improved scripts in package.json and package-scripts.js.

  • Dependencies:
    • Updated dev dependencies in package.json to newer versions.
    • Added yarn-berry-deduplicate to devDependencies for deduplication.
  • Scripts:
    • Enhanced prepare script in package.json to include yarn-berry-deduplicate.
    • Simplified validate script in package-scripts.js using concurrent.nps.
    • Improved format script in package-scripts.js to use prettier and eslint in series.

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


Summary by CodeRabbit

  • Chores
    • Updated development dependencies to newer versions for improved tooling.
    • Added a new dependency to help deduplicate Yarn Berry dependencies.
    • Enhanced the prepare script to include automatic dependency deduplication.
    • Simplified and improved script commands for validation and starting the app.

@JounQin JounQin requested a review from Copilot May 10, 2025 23:18
@JounQin JounQin self-assigned this May 10, 2025
@JounQin JounQin added dependencies Pull requests that update a dependency file internal labels May 10, 2025
@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented May 10, 2025

⚠️ No Changeset found

Latest commit: 1c6893c

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

@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented May 10, 2025

Walkthrough

This update refactors script commands in package-scripts.js by replacing a generic concurrent call with a more concise concurrent.nps usage and splitting the formatting script into separate Prettier and ESLint steps. In package.json, it appends a Yarn Berry deduplication step to the prepare script, simplifies the start script, upgrades several devDependencies, and adds yarn-berry-deduplicate.

Changes

File(s) Change Summary
package-scripts.js Replaced generic concurrent invocation with concurrent.nps in the validate script; replaced single-step format script with a two-step Prettier and ESLint series.
package.json Added `yarn-berry-deduplicate

Poem

🐇
Scripts now sparkle, commas align,
Deduplication hops in line.
Packages freshen, tools renew,
Yarn’s garden gets a tidy view.
With every tweak and version bump,
The codebase takes a lighter jump!


📜 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 1a05b3e and 1c6893c.

⛔ Files ignored due to path filters (1)
  • yarn.lock is excluded by !**/yarn.lock, !**/*.lock
📒 Files selected for processing (2)
  • package-scripts.js (1 hunks)
  • package.json (3 hunks)
🚧 Files skipped from review as they are similar to previous changes (2)
  • package.json
  • package-scripts.js
✨ 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.
    • 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.

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
Copy Markdown

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 various dev dependency versions and adjusts build scripts to leverage updated tooling. Key changes include:

  • Updated version numbers for several dev dependencies in package.json.
  • Enhanced prepare script in package.json by adding a yarn-berry-deduplicate command.
  • Simplified concurrent command usage in package-scripts.js using concurrent.nps.

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
package.json Updated dependency versions and modified the prepare script.
package-scripts.js Simplified the concurrent script invocation.
Comments suppressed due to low confidence (1)

package-scripts.js:57

  • [nitpick] The simplified usage of 'concurrent.nps' looks cleaner; please verify that this change is fully supported by the current version of the concurrent library and behaves as expected.
      script: concurrent.nps('lint', 'build', 'test'),

@codesandbox-ci
Copy link
Copy Markdown

codesandbox-ci bot commented May 10, 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.

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented May 10, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (9ebdb98) to head (1c6893c).

Additional details and impacted files
@@            Coverage Diff            @@
##            master     #1189   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            2         2           
  Lines          304       299    -5     
  Branches        79        78    -1     
=========================================
- Hits           304       299    -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.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new bot commented May 10, 2025

Open in StackBlitz

npm i https://pkg.pr.new/prettier-eslint@1189

commit: 1c6893c

Copy link
Copy Markdown

@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 ca7b3af in 1 minute and 45 seconds. Click for details.
  • Reviewed 86 lines of code in 2 files
  • Skipped 2 files when reviewing.
  • Skipped posting 8 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-scripts.js:57
  • Draft comment:
    Verify that using concurrent.nps('lint', 'build', 'test') works as intended. Confirm that this abstraction correctly picks up scripts defined in this file without hardcoding the file path.
  • 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 verify the behavior of a specific function call, which violates the rule against asking for confirmation of intended behavior. It does not provide a specific suggestion or point out a clear issue with the code.
2. package.json:38
  • Draft comment:
    Review the added yarn-berry-deduplicate || exit 0 in prepare. Using exit 0 may cancel further script execution abruptly; consider if using a no-op (e.g. || true) is more appropriate.
  • Reason this comment was not posted:
    Decided after close inspection that this draft comment was likely wrong and/or not actionable: usefulness confidence = 10% vs. threshold = 50% In shell scripting, both exit 0 and true are ways to indicate success and prevent failure propagation. exit 0 explicitly exits the current shell while true just returns success. However, in package.json scripts, each command runs in its own shell, so exit 0 won't actually terminate the whole prepare script - it will just make that specific command return success. The behavior would be effectively identical to using true. The comment raises a theoretical concern about script execution, but am I certain about how npm/yarn actually handles script execution and shell processes? While there could be edge cases I'm not aware of, package managers run each command in isolated shells, so exit 0 is safe here and functionally equivalent to true. This comment suggests a change that would have no practical impact on behavior. The existing code is fine and the comment should be removed.
3. package.json:39
  • Draft comment:
    Changing the start command to simply nps might affect environments expecting a specific config file. Verify that CI and local workflows correctly locate the new package-scripts.js.
  • 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 verify that CI and local workflows correctly locate the new package-scripts.js. This falls under the rule of not asking the author to ensure the behavior is intended or to double-check things. Therefore, this comment should be removed.
4. package-scripts.js:54
  • Draft comment:
    Refactored validate script: using concurrent.nps('lint', 'build', 'test') is cleaner. Confirm that dropping the explicit config file argument is intentional.
  • Reason this comment was not posted:
    Confidence changes required: 50% <= threshold 50% None
5. package.json:38
  • Draft comment:
    Updated 'prepare' script now includes 'yarn-berry-deduplicate || exit 0'. Ensure swallowing errors from deduplication is intended.
  • Reason this comment was not posted:
    Confidence changes required: 50% <= threshold 50% None
6. package.json:39
  • Draft comment:
    The 'start' script is simplified to 'nps'. Verify that auto-detection of package-scripts.js works as expected.
  • Reason this comment was not posted:
    Confidence changes required: 50% <= threshold 50% None
7. package.json:67
  • Draft comment:
    Several dev dependency versions have been bumped. Verify that these updates (e.g., @1stg/eslint-config, prettier-config, @changesets/cli, etc.) are fully compatible with the project.
  • Reason this comment was not posted:
    Confidence changes required: 30% <= threshold 50% None
8. package.json:104
  • Draft comment:
    New dev dependency 'yarn-berry-deduplicate' has been added. Ensure its integration with the prepare script fits the intended workflow.
  • Reason this comment was not posted:
    Confidence changes required: 40% <= threshold 50% None

Workflow ID: wflow_nEAuU94VVBhIL9kD

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

Copy link
Copy Markdown

@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: 4

♻️ Duplicate comments (1)
package.json (1)

38-38: Consider proper error handling instead of silencing failures
Appending || exit 0 to yarn-berry-deduplicate will swallow any real errors during deduplication. It’s better to log failures explicitly so you’re aware of issues but still continue the prepare step.
This echoes a previous nitpick.

📜 Review details

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

📥 Commits

Reviewing files that changed from the base of the PR and between 9ebdb98 and 1a05b3e.

⛔ Files ignored due to path filters (1)
  • yarn.lock is excluded by !**/yarn.lock, !**/*.lock
📒 Files selected for processing (2)
  • package-scripts.js (2 hunks)
  • package.json (3 hunks)
🧰 Additional context used
🪛 ESLint
package-scripts.js

[error] 26-26: Unexpected trailing comma.

(comma-dangle)


[error] 29-29: Unexpected trailing comma.

(comma-dangle)


[error] 32-32: Unexpected trailing comma.

(comma-dangle)

🪛 GitHub Actions: CI
package-scripts.js

[error] 26-26: ESLint: Unexpected trailing comma (comma-dangle)


[error] 29-29: ESLint: Unexpected trailing comma (comma-dangle)


[error] 32-32: ESLint: Unexpected trailing comma (comma-dangle)

🔇 Additional comments (2)
package-scripts.js (1)

57-57: Approve concise concurrent invocation
Refactoring validate.script to use concurrent.nps('lint', 'build', 'test') is cleaner and aligns with nps-utils conventions.

package.json (1)

39-39: Simplified start script is clear and effective
Switching "start" to nps removes unnecessary flags and keeps scripts in sync with package-scripts.js. Looks good.

Copy link
Copy Markdown

@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 1c6893c in 1 minute and 45 seconds. Click for details.
  • Reviewed 95 lines of code in 2 files
  • Skipped 0 files when reviewing.
  • Skipped posting 10 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-scripts.js:57
  • Draft comment:
    Good refactor: using concurrent.nps is cleaner than previous command strings.
  • Reason this comment was not posted:
    Confidence changes required: 0% <= threshold 50% None
2. package-scripts.js:61
  • Draft comment:
    Ensure using '.mjs' instead of '..js' is intentional, as this may affect files with standard .js extensions.
  • Reason this comment was not posted:
    Confidence changes required: 33% <= threshold 50% None
3. package.json:38
  • Draft comment:
    New prepare script appends yarn-berry-deduplicate; confirm || exit 0 is desired to ignore errors.
  • Reason this comment was not posted:
    Confidence changes required: 33% <= threshold 50% None
4. package.json:39
  • Draft comment:
    Simplified start script to 'nps'; ensure removal of explicit script file is compatible with your setup.
  • Reason this comment was not posted:
    Confidence changes required: 0% <= threshold 50% None
5. package-scripts.js:56
  • Draft comment:
    Refactored validate script using 'concurrent.nps'; it's cleaner. Confirm that all intended tasks (lint, build, test) are executed as expected.
  • 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 that tasks are executed as expected after refactoring, which falls under the rule of not asking the author to ensure behavior is intended or tested. This is not a specific code suggestion or a request for a test to be written.
6. package-scripts.js:63
  • Draft comment:
    The format script now uses separate 'prettier' and 'eslint' commands. Verify that using the glob pattern targeting '..mjs' (instead of '..js') is intentional.
  • Reason this comment was not posted:
    Decided after close inspection that this draft comment was likely wrong and/or not actionable: usefulness confidence = 10% vs. threshold = 50% The comment asks for verification, which violates our rules about not asking authors to confirm their intentions. The change from .js to .mjs appears to be part of an intentional workaround as indicated by the inline comment. Even if it was unintentional, it's a minor glob pattern change that could easily be fixed if it causes issues. Maybe the glob pattern change could cause some files to be missed in formatting, leading to inconsistent code style? If the glob pattern causes issues, it would be immediately apparent when running the format command and could be fixed then. This doesn't warrant a review comment. Delete the comment as it violates the rule about asking for verification and doesn't point out a clear issue that requires fixing.
7. package.json:38
  • Draft comment:
    The prepare script now includes 'yarn-berry-deduplicate' with '|| exit 0'. Ensure that silently ignoring failures here is acceptable and doesn’t mask critical issues.
  • Reason this comment was not posted:
    Comment did not seem useful. Confidence is useful = 30% <= threshold 50% The comment is asking the author to ensure that ignoring failures is acceptable, which violates the rule against asking the author to ensure behavior is intended. However, it does point out a potential issue with the use of || exit 0, which could be useful if rephrased to suggest confirming the intention behind ignoring failures.
8. package.json:39
  • Draft comment:
    Start script updated from 'nps -c ./package-scripts.cjs' to 'nps' to reflect the renaming of the script file. This change looks correct.
  • Reason this comment was not posted:
    Comment did not seem useful. Confidence is useful = 0% <= threshold 50% This comment is purely informative, explaining a change that was made. It doesn't provide a suggestion, ask for confirmation, or point out a potential issue. It violates the rule against making purely informative comments.
9. package.json:69
  • Draft comment:
    Dev dependency version bumps (e.g. @1stg/eslint-config, @swc/core, @types/node) appear appropriate. Verify that these updates remain backward-compatible with your project.
  • Reason this comment was not posted:
    Comment did not seem useful. Confidence is useful = 0% <= threshold 50% This comment is asking the PR author to verify backward compatibility of dev dependency version bumps. It is related to dependencies, which the rules specify should not be commented on unless it's about specific version mismatches or similar issues. This comment does not provide a specific suggestion or highlight a specific issue, so it should be removed.
10. package.json:104
  • Draft comment:
    A new dependency 'yarn-berry-deduplicate' was added. Ensure it integrates well with your Yarn Berry workflow and that its failure being ignored (via '|| exit 0') is intended.
  • Reason this comment was not posted:
    Comment did not seem useful. Confidence is useful = 20% <= threshold 50% The comment is about a new dependency, which is generally not allowed. However, it also mentions a specific behavior (failure being ignored) that could be a potential issue. The comment asks to ensure that this behavior is intended, which is not allowed. However, it does point out a specific behavior that might be worth considering. Overall, the comment is mostly about dependencies and asks for confirmation, which violates the rules.

Workflow ID: wflow_gdzg4wAoVmb0RDPG

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

@JounQin JounQin merged commit addbded into master May 10, 2025
17 checks passed
@JounQin JounQin deleted the chore/bump branch May 10, 2025 23:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file internal

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants