bump-rspack-swc

Upgrades SWC Rust dependencies in Rspack and opens a validated pull request.

12.9k|843|Updated Apr 1, 2022
One-click install
npx skills add https://github.com/web-infra-dev/rspack --skill bump-rspack-swc
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: bump-rspack-swc
Source: https://github.com/web-infra-dev/rspack/tree/main/.agents/skills/bump-rspack-swc
Command: npx skills add https://github.com/web-infra-dev/rspack --skill bump-rspack-swc

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Upgrading the SWC Rust crates that Rspack depends on is a multi-step, error-prone process: versions must stay aligned across the workspace, generated code must be regenerated, upstream changelogs must be analyzed for breaking changes, and a properly formatted PR must be opened. This Skill automates that entire workflow end to end.

Core Features & Use Cases

  • Aligned dependency upgrade: Queries crates.io for the latest stable swc_core release, resolves compatible versions for all in-scope SWC crates, and updates Cargo.toml and Cargo.lock without touching excluded swc_experimental_* crates.
  • Tag-to-tag changelog analysis: Compares [email protected] tags via the GitHub compare API, classifies breaking changes, features, performance improvements, and fixes, and correlates verified fixes with open Rspack issues.
  • Validation and PR automation: Regenerates workspace code with cargo codegen, validates with pnpm run build:binding:dev, then commits, pushes, and opens a PR following the Rspack title and description conventions.
  • Use Case: A maintainer asks to bump swc_core to the latest release; the Skill updates the pins, adapts any breaking API changes, documents the relevant upstream changes, and opens a ready-to-review PR.

Quick Start

Use the bump-rspack-swc skill to upgrade this Rspack checkout to the latest swc_core release and open the pull request.

Frequently Asked Questions about bump-rspack-swc

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I upgrade swc_core in the Rspack repository?

Update the SWC dependency block in the root Cargo.toml to the latest stable swc_core release, refresh Cargo.lock, run cargo codegen to regenerate workspace version code, and validate with pnpm run build:binding:dev. This Skill performs all of these steps and opens the PR.

How do I analyze SWC changelog changes between two versions?

Compare the exact tags swc_core@OLD_VERSION...swc_core@NEW_VERSION using the GitHub compare API, then classify commits into breaking changes, features, performance improvements, and bug fixes relevant to Rspack integration surfaces.

Does the SWC upgrade also bump swc_experimental crates?

No. All swc_experimental_* crates are treated as independent and out of scope. The workflow never queries, bumps, or changes their manifest or lockfile versions.

What validation runs after upgrading SWC dependencies?

Only pnpm run build:binding:dev is run as the validation command. Tests, lint, and other checks are skipped unless the user explicitly requests them.

When should a SWC bump PR mention upstream bug fixes?

Only when an upstream fix matches a verified Rspack issue's failure mode and is validated when practical. Weak or unverified connections are omitted rather than listed as related.