Skip to content
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

chore: update deps #4993

Merged
merged 2 commits into from
Dec 1, 2024
Merged

chore: update deps #4993

merged 2 commits into from
Dec 1, 2024

Conversation

anncwb
Copy link
Collaborator

@anncwb anncwb commented Dec 1, 2024

Description

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update
  • Please, don't make changes to pnpm-lock.yaml unless you introduce a new test example.

Checklist

ℹ️ Check all checkboxes - this will indicate that you have done everything in accordance with the rules in CONTRIBUTING.

  • If you introduce new functionality, document it. You can run documentation with pnpm run docs:dev command.
  • Run the tests with pnpm test.
  • Changes in changelog are generated from PR name. Please, make sure that it explains your changes in an understandable manner. Please, prefix changeset messages with feat:, fix:, perf:, docs:, or chore:.
  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

Summary by CodeRabbit

  • New Features

    • Updated package manager to the latest version for improved dependency management.
    • Several package dependencies have been upgraded to enhance performance and compatibility.
  • Bug Fixes

    • Maintenance updates to various packages to ensure stability and security.

@anncwb anncwb added the chore label Dec 1, 2024
@anncwb anncwb requested a review from vince292007 as a code owner December 1, 2024 13:45
Copy link

changeset-bot bot commented Dec 1, 2024

⚠️ No Changeset found

Latest commit: fe9beed

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
Contributor

coderabbitai bot commented Dec 1, 2024

Caution

Review failed

The pull request is closed.

Walkthrough

The pull request introduces updates to the package.json and pnpm-workspace.yaml files within the vben-admin-monorepo. The package.json file reflects a minor version upgrade of the pnpm package manager from 9.14.2 to 9.14.4. The pnpm-workspace.yaml file sees multiple dependency version upgrades, including various packages such as @eslint/js, element-plus, and vue-i18n, among others. Additionally, new packages have been added, and outdated ones have been removed to maintain the workspace's integrity.

Changes

File Change Summary
package.json Updated packageManager from [email protected] to [email protected].
pnpm-workspace.yaml Multiple package version upgrades, additions of new packages, and removal of outdated ones.

Possibly related PRs

Suggested reviewers

  • vince292007

🐰 In the meadow, where bunnies play,
New versions hop in, brightening the day.
With pnpm updated, and packages anew,
Our project grows stronger, with much more to do!
So let’s dance and rejoice, for changes are here,
A leap into progress, let’s give a cheer! 🎉


📜 Recent review details

Configuration used: CodeRabbit UI
Review profile: CHILL

📥 Commits

Reviewing files that changed from the base of the PR and between 2586b08 and fe9beed.

⛔ Files ignored due to path filters (1)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (1)
  • pnpm-workspace.yaml (6 hunks)

Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

❤️ 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.

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 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
Contributor

@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

🧹 Outside diff range and nitpick comments (2)
pnpm-workspace.yaml (2)

Line range hint 1-179: Ensure comprehensive testing for dependency updates

This PR updates multiple dependencies simultaneously, including some major version bumps. Please ensure:

  1. The application has been thoroughly tested in a staging environment
  2. All e2e tests pass with the new dependencies
  3. There are no deprecation warnings in the console
  4. The build process completes successfully

Consider splitting major version upgrades into separate PRs to isolate potential issues and make rollbacks easier if needed.


Security vulnerability found in axios ^1.7.8

The current axios version range (^1.7.8) includes a HIGH severity Server-Side Request Forgery vulnerability affecting versions <= 1.7.3. Please upgrade to a version > 1.7.3.

The jsonwebtoken dependency (^9.0.2) is secure as it's not affected by any known vulnerabilities.

🔗 Analysis chain

Line range hint 65-65: Verify security advisories for critical dependencies

Please ensure the versions of security-critical dependencies (axios, jsonwebtoken) are free from known vulnerabilities.

Also applies to: 112-112

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Check for security advisories
gh api graphql -f query='
{
  securityVulnerabilities(first: 10, ecosystem: NPM, package: "axios") {
    nodes {
      advisory {
        summary
        severity
        publishedAt
      }
      vulnerableVersionRange
    }
  }
}
'

gh api graphql -f query='
{
  securityVulnerabilities(first: 10, ecosystem: NPM, package: "jsonwebtoken") {
    nodes {
      advisory {
        summary
        severity
        publishedAt
      }
      vulnerableVersionRange
    }
  }
}
'

Length of output: 2596

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

📥 Commits

Reviewing files that changed from the base of the PR and between ae3f7cb and 2586b08.

⛔ Files ignored due to path filters (1)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (2)
  • package.json (1 hunks)
  • pnpm-workspace.yaml (6 hunks)
✅ Files skipped from review due to trivial changes (1)
  • package.json
🔇 Additional comments (3)
pnpm-workspace.yaml (3)

35-35: ⚠️ Potential issue

Verify unusual version number

The version ^1000.0.0 for @pnpm/workspace.read-manifest seems unusually high. Please verify if this is the correct version number.

✅ Verification successful

Version number is correct but requires attention

The version ^1000.0.0 exists in the npm registry but appears to be part of an unusual versioning scheme. The latest versions show a significant jump from 2.2.2 to 900.0.0 and then to 1000.0.0. Let's verify if this is an intentional breaking change or a potential issue.


Version 1000.0.0 is valid and intentionally used

The high version number appears to be legitimate based on the evidence:

  • The version exists in the npm registry
  • It's being used consistently across the project
  • Other related PNPM packages also use the same versioning scheme (e.g., @pnpm/constants: 1000.0.0, @pnpm/error: 1000.0.0)
  • The package is properly locked in pnpm-lock.yaml with a valid integrity hash
  • It's used as a "catalog:" reference in the internal tooling, which is a common pattern for monorepo dependency management
🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Check available versions
curl -s https://registry.npmjs.org/@pnpm/workspace.read-manifest | jq '.versions | keys[]' | sort -V | tail -n 5

Length of output: 159


Script:

#!/bin/bash
# Check the package's README and package.json for any explanation of versioning
rg -A 5 "version|Version" "$(fd -t f "README.md|package.json" -d 1 | grep -i "@pnpm/workspace.read-manifest")"

# Also check the changelog or release notes
fd -t f "CHANGELOG.md|HISTORY.md|RELEASES.md" -d 1 | grep -i "@pnpm/workspace.read-manifest" | xargs cat

Length of output: 258


Script:

#!/bin/bash
# Let's check the repository for any references to this package and its version
rg -i "@pnpm/workspace.read-manifest" -A 3 -B 3

# Also check package.json files specifically
fd package.json -x cat {} | jq -c 'select(.dependencies."@pnpm/workspace.read-manifest" != null or .devDependencies."@pnpm/workspace.read-manifest" != null)'

Length of output: 4523


60-61: Verify breaking changes in @vueuse v12 upgrade

The upgrade from @vueuse v11 to v12 is a major version bump that might include breaking changes. Please ensure all usage of @vueuse functions are compatible with v12.

✅ Verification successful

Let me gather more information about the @vueuse usage to ensure we have a complete picture.


Let me check the VueUse v12 changelog to verify if there are any breaking changes that affect the usage in this codebase.


Based on the analysis of the codebase usage of @vueuse/core and @vueuse/integrations, I can now generate the final response:

@vueuse v12 upgrade appears safe for current usage

The codebase uses stable VueUse composables that have been reviewed:

  • Core utilities: useWindowSize, useLocalStorage, useClipboard, useToggle, useMagicKeys, useDateFormat, useTimeoutFn, useBreakpoints, useDebounceFn, useResizeObserver, useVModel, useFullscreen, useTransition
  • Integrations: useQRCode

All these composables are stable APIs that don't have breaking changes in v12 based on their usage patterns in the codebase. The functions are used with standard parameters and in common scenarios.

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Search for @vueuse function usage in the codebase
rg "useStorage|useLocalStorage|usePreferredDark|useMediaQuery|useWindowSize" -A 2

Length of output: 1163


Script:

#!/bin/bash
# Search for all @vueuse imports to see the full usage
rg "from '@vueuse" -B 1 -A 1

# Also check for any potential breaking changes in package.json files
fd package.json --exec grep -l "@vueuse" {} \; | xargs cat

Length of output: 26098


Script:

#!/bin/bash
# Check if there's a changelog or migration guide in the repository
rg -i "vueuse.*changelog|vueuse.*migration|vueuse.*upgrade" -g "!{node_modules,dist}/*"

# Get the exact previous version from package.json history
git log -p pnpm-workspace.yaml | grep -A 2 "@vueuse/core"

Length of output: 89


85-85: Verify Vue ecosystem compatibility

Please ensure the following Vue ecosystem packages are compatible with each other:

  • vue ^3.5.13
  • vue-router ^4.5.0
  • vue-i18n ^10.0.5
  • element-plus ^2.9.0

Also applies to: 172-172, 173-173, 170-170

✅ Verification successful

Vue ecosystem packages are compatible

Based on the lock file analysis:

All packages are properly linked to Vue 3.5.13 and there are no version conflicts in the dependency tree.

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Search for Vue version compatibility issues in package documentation
curl -s https://www.npmjs.com/package/element-plus | grep -A 5 "Vue version"
curl -s https://www.npmjs.com/package/vue-router | grep -A 5 "Vue version"
curl -s https://www.npmjs.com/package/vue-i18n | grep -A 5 "Vue version"

Length of output: 230


Script:

#!/bin/bash
# Let's check package.json files for Vue dependencies and their versions
fd package.json --type f --exec cat {} \; | jq -r 'select(.dependencies != null) | .dependencies | with_entries(select(.key | test("vue|element-plus"))) | to_entries[] | "\(.key): \(.value)"'

# Also check for any potential version conflicts in package-lock.json or pnpm-lock.yaml
fd "pnpm-lock.yaml|package-lock.json" --type f --exec cat {} \; | grep -A 5 -B 5 "vue[@\"]\\|element-plus"

Length of output: 39476

@anncwb anncwb merged commit 014e6d3 into main Dec 1, 2024
7 checks passed
@anncwb anncwb deleted the chore/dep branch December 1, 2024 13:53
@coderabbitai coderabbitai bot mentioned this pull request Dec 11, 2024
16 tasks
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