Skip to content

fix(rust-plugins): 🐛 virtual \0 prefix#129

Merged
Maidang1 merged 2 commits intomainfrom
feat/changeset-bot
Apr 10, 2025
Merged

fix(rust-plugins): 🐛 virtual \0 prefix#129
Maidang1 merged 2 commits intomainfrom
feat/changeset-bot

Conversation

@Maidang1
Copy link
Copy Markdown
Contributor

@Maidang1 Maidang1 commented Apr 10, 2025

Summary by CodeRabbit

  • Chores
    • Streamlined the package release process to enable a more efficient and straightforward publishing workflow, ensuring smoother distribution of updates and reliable package releases.
  • Bug Fixes
    • Released an updated plugin version (0.0.12) that corrects an unexpected prefix issue, providing improved consistency and functionality.
  • Style
    • Refined dependency declaration formatting to uphold clarity and consistency across the codebase.

@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Apr 10, 2025

Walkthrough

This pull request removes a changelog file for the version update of @farmfe/plugin-virtual, streamlines the release workflows for both JavaScript and Rust plugins by replacing a changeset action with a direct npm publish command, fixes a formatting issue in an example package, and updates the version and changelog for the Rust plugin from 0.0.11 to 0.0.12.

Changes

File(s) Change Summary
.changeset/thin-bananas-draw.md Removed the changelog file documenting the dependency version update for @farmfe/plugin-virtual.
.github/workflows/release-js-plugins.yml
.github/workflows/release-rust-plugins.yml
Removed the steps using changesets/action@v1 and replaced them with direct command execution for publishing (setting the npm token and triggering publish commands).
examples/virtual/package.json Corrected formatting in the dependency declaration for @farmfe/plugin-virtual (added a space before the colon).
rust-plugins/virtual/CHANGELOG.md
rust-plugins/virtual/package.json
Updated the version from 0.0.11 to 0.0.12 and added a corresponding patch change entry in the changelog, while retaining the previous version's notes.

Sequence Diagram(s)

sequenceDiagram
  participant GH as "GitHub Actions"
  participant Shell as "Command Line"
  participant NPM as "npm Registry"

  GH->>Shell: Trigger Release and Publish command
  Shell->>NPM: Set npm auth token and publish package
  NPM-->>Shell: Publish acknowledgment
  Shell-->>GH: Report publish status
Loading

Possibly related PRs

Suggested reviewers

  • CCherry07

Poem

I’m a rabbit with a tale so grand,
Hoping through changes with a nimble stand.
Code lines dance in the moonlit night,
New flows and fixes shining bright.
Celebrate the change with a joyful hop!
🐇✨


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.

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.

@Maidang1 Maidang1 force-pushed the feat/changeset-bot branch from e5a0e5d to be41e97 Compare April 10, 2025 11:43
@Maidang1 Maidang1 force-pushed the feat/changeset-bot branch from be41e97 to 56e6520 Compare April 10, 2025 11:45
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: 0

🧹 Nitpick comments (3)
rust-plugins/virtual/CHANGELOG.md (1)

3-8: Changelog Entry Detail Suggestion
A new entry for version 0.0.12 has been added with the note - update version. If the release also includes the fix for the \0 prefix (as referenced in version 0.0.11), consider elaborating on the changes for clarity. Providing additional context can help end users understand the improvements in this version.

.github/workflows/release-js-plugins.yml (1)

45-47: Streamlined Publishing Step for JS Plugins
The new step "Release and Publish Packages" replaces the previous changeset-based approach with direct commands: setting the npm auth token and publishing via pnpm using the filter {js-plugins}[HEAD~1]. This streamlines the workflow; however, please ensure that the filter targets exactly the intended packages and that any failure during publishing is properly caught by your CI/CD process.

.github/workflows/release-rust-plugins.yml (1)

55-57: Streamlined Publishing Step for Rust Plugins
The release job now directly publishes the Rust plugins via a command that sets the npm authentication token and uses the pnpm publish command with the filter {rust-plugins}[HEAD~1]. Verify that this change accurately targets the intended packages and that it aligns with your overall release strategy. Consider if additional error handling or pre-publish validation is needed.

📜 Review details

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

📥 Commits

Reviewing files that changed from the base of the PR and between 527f0eb and 56e6520.

📒 Files selected for processing (6)
  • .changeset/thin-bananas-draw.md (0 hunks)
  • .github/workflows/release-js-plugins.yml (1 hunks)
  • .github/workflows/release-rust-plugins.yml (1 hunks)
  • examples/virtual/package.json (1 hunks)
  • rust-plugins/virtual/CHANGELOG.md (1 hunks)
  • rust-plugins/virtual/package.json (1 hunks)
💤 Files with no reviewable changes (1)
  • .changeset/thin-bananas-draw.md
⏰ Context from checks skipped due to timeout of 90000ms (3)
  • GitHub Check: call-rust-build / Build and Upload Artifacts - win32-x64-msvc
  • GitHub Check: call-rust-build / Build and Upload Artifacts - win32-ia32-msvc
  • GitHub Check: call-rust-build / Build and Upload Artifacts - win32-arm64-msvc
🔇 Additional comments (2)
rust-plugins/virtual/package.json (1)

3-3: Version Bump Verification
The version has been updated to "0.0.12", which is consistent with the intended release. Please verify that downstream dependencies and the associated changelog entries reflect this new version.

examples/virtual/package.json (1)

23-23: Dependency Declaration Update
The dependency for @farmfe/plugin-virtual now uses "workspace:*", ensuring that the workspace resolution is correctly leveraged. Confirm that this change aligns with your package management and build system expectations.

@Maidang1 Maidang1 merged commit 7805365 into main Apr 10, 2025
11 checks passed
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.

2 participants