Skip to content

fix(deps): update rust crate swc_core to v42#1766

Merged
gaoachao merged 2 commits intolynx-family:mainfrom
colinaaa:colin/0917/crates
Sep 17, 2025
Merged

fix(deps): update rust crate swc_core to v42#1766
gaoachao merged 2 commits intolynx-family:mainfrom
colinaaa:colin/0917/crates

Conversation

@colinaaa
Copy link
Copy Markdown
Collaborator

@colinaaa colinaaa commented Sep 17, 2025

Summary by CodeRabbit

  • Chores
    • Updated internal dependencies to latest patch versions for improved stability and compatibility.
    • No changes to functionality or public APIs; behavior remains the same for end-users.

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).
  • Changeset added, and when a BREAKING CHANGE occurs, it needs to be clearly marked (or not required).

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Sep 17, 2025

⚠️ No Changeset found

Latest commit: d7ad454

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
Contributor

coderabbitai bot commented Sep 17, 2025

📝 Walkthrough

Walkthrough

Dependency versions in Cargo.toml are updated: serde to 1.0.225, serde_json to 1.0.145, and swc_core to 42.0.2. No source code or public API changes are included.

Changes

Cohort / File(s) Summary
Dependency version bumps
Cargo.toml
Bumped serde 1.0.217 → 1.0.225, serde_json 1.0.134 → 1.0.145, swc_core 39.0.3 → 42.0.2; no other changes.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Suggested reviewers

  • gaoachao

Poem

A hop, a skip, I tweak the crates—
Version carrots on my plates. 🥕
Serde shines, SWC too,
JSON gleams a fresher hue.
Nose twitch-check, then off I bound—
All tidy now, with nary a sound.

Pre-merge checks and finishing touches

✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title Check ✅ Passed The title accurately and concisely identifies a real change in the changeset—updating swc_core to v42—and is specific and readable; however, the manifest also bumps serde and serde_json, so the title only partially describes the full changeset rather than every dependency change.
Docstring Coverage ✅ Passed No functions found in the changes. Docstring coverage check skipped.
✨ Finishing touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment

📜 Recent review details

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 75693e4 and d7ad454.

⛔ Files ignored due to path filters (1)
  • Cargo.lock is excluded by !**/*.lock
📒 Files selected for processing (1)
  • Cargo.toml (1 hunks)
🧰 Additional context used
🧠 Learnings (1)
📓 Common learnings
Learnt from: gaoachao
PR: lynx-family/lynx-stack#1714
File: packages/react/transform/Cargo.toml:19-19
Timestamp: 2025-09-10T11:42:36.855Z
Learning: In packages/react/transform/Cargo.toml, the crate uses serde derive macros (#[derive(Serialize, Deserialize)]) in multiple files including src/esbuild.rs and src/swc_plugin_extract_str/mod.rs, so the "derive" feature is required when migrating to workspace dependencies.
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (10)
  • GitHub Check: Playwright ALL_ON_UI-CSR (2/4) / check
  • GitHub Check: Playwright ALL_ON_UI-CSR (2/4) / check
  • GitHub Check: Playwright ALL_ON_UI-CSR (2/4) / check
  • GitHub Check: Playwright ALL_ON_UI-CSR (2/4) / check
  • GitHub Check: Playwright ALL_ON_UI-CSR (2/4) / check
  • GitHub Check: Playwright ALL_ON_UI-CSR (2/4) / check
  • GitHub Check: Playwright ALL_ON_UI-CSR (2/4) / check
  • GitHub Check: Playwright ALL_ON_UI-CSR (2/4) / check
  • GitHub Check: Playwright ALL_ON_UI-CSR (2/4) / check
  • GitHub Check: Playwright ALL_ON_UI-CSR (2/4) / check
🔇 Additional comments (3)
Cargo.toml (3)

23-23: serde_json bump looks fine.

No known feature gating changes likely to impact typical usage. Proceed.


25-25: swc_core 42.0.2 — verify WASM plugin/runtime compatibility before merging.

Quick scan found swc_core (workspace = true) with plugin-related features in the workspace; both plugin crates declare ecma_plugin_transform — you must build/test their WASM outputs against v42 and confirm Next.js/@swc/core alignment and feature flags.

Locations:

  • packages/react/transform/swc-plugin-reactlynx/Cargo.toml:20 — swc_core features include "ecma_plugin_transform"
  • packages/react/transform/Cargo.toml:22 — swc_core features (transform-related)
  • packages/react/transform/swc-plugin-reactlynx-compat/Cargo.toml:16 — swc_core features include "ecma_plugin_transform"

Recommended quick checks:

  • Build both plugin crates for wasm32 (wasi / wasm32-unknown-unknown) and run minimal transform tests.
  • Verify no member crates rely on removed/renamed swc_* crates or changed feature flags.
  • If using Next.js/@swc/core, confirm runtime/version alignment.

22-22: No action — workspace serde derive not required

Verification script returned []: no crates use #[derive(Serialize|Deserialize)] while depending on serde via the workspace, so do not apply the suggested diff.

Tip

👮 Agentic pre-merge checks are now available in preview!

Pro plan users can now enable pre-merge checks in their settings to enforce checklists before merging PRs.

  • Built-in checks – Quickly apply ready-made checks to enforce title conventions, require pull request descriptions that follow templates, validate linked issues for compliance, and more.
  • Custom agentic checks – Define your own rules using CodeRabbit’s advanced agentic capabilities to enforce organization-specific policies and workflows. For example, you can instruct CodeRabbit’s agent to verify that API documentation is updated whenever API schema files are modified in a PR. Note: Upto 5 custom checks are currently allowed during the preview period. Pricing for this feature will be announced in a few weeks.

Please see the documentation for more information.

Example:

reviews:
  pre_merge_checks:
    custom_checks:
      - name: "Undocumented Breaking Changes"
        mode: "warning"
        instructions: |
          Pass/fail criteria: All breaking changes to public APIs, CLI flags, environment variables, configuration keys, database schemas, or HTTP/GraphQL endpoints must be documented in the "Breaking Change" section of the PR description and in CHANGELOG.md. Exclude purely internal or private changes (e.g., code not exported from package entry points or explicitly marked as internal).

Please share your feedback with us on this Discord post.


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

Comment @coderabbitai help to get the list of available commands and usage tips.

@relativeci
Copy link
Copy Markdown

relativeci bot commented Sep 17, 2025

React Example

#5276 Bundle Size — 237.52KiB (0%).

d7ad454(current) vs 75693e4 main#5253(baseline)

Bundle metrics  no changes
                 Current
#5276
     Baseline
#5253
No change  Initial JS 0B 0B
No change  Initial CSS 0B 0B
No change  Cache Invalidation 0% 0%
No change  Chunks 0 0
No change  Assets 4 4
No change  Modules 162 162
No change  Duplicate Modules 65 65
No change  Duplicate Code 46.71% 46.71%
No change  Packages 2 2
No change  Duplicate Packages 0 0
Bundle size by type  no changes
                 Current
#5276
     Baseline
#5253
No change  IMG 145.76KiB 145.76KiB
No change  Other 91.76KiB 91.76KiB

Bundle analysis reportBranch colinaaa:colin/0917/cratesProject dashboard


Generated by RelativeCIDocumentationReport issue

@relativeci
Copy link
Copy Markdown

relativeci bot commented Sep 17, 2025

Web Explorer

#5269 Bundle Size — 365.16KiB (0%).

d7ad454(current) vs 75693e4 main#5246(baseline)

Bundle metrics  Change 1 change
                 Current
#5269
     Baseline
#5246
No change  Initial JS 145.65KiB 145.65KiB
No change  Initial CSS 31.89KiB 31.89KiB
Change  Cache Invalidation 0% 16.33%
No change  Chunks 8 8
No change  Assets 8 8
Change  Modules 220(+1.38%) 217
No change  Duplicate Modules 16 16
No change  Duplicate Code 3.37% 3.37%
No change  Packages 4 4
No change  Duplicate Packages 0 0
Bundle size by type  no changes
                 Current
#5269
     Baseline
#5246
No change  JS 239.25KiB 239.25KiB
No change  Other 94.02KiB 94.02KiB
No change  CSS 31.89KiB 31.89KiB

Bundle analysis reportBranch colinaaa:colin/0917/cratesProject dashboard


Generated by RelativeCIDocumentationReport issue

@codspeed-hq
Copy link
Copy Markdown

codspeed-hq bot commented Sep 17, 2025

CodSpeed Performance Report

Merging #1766 will degrade performances by 9.73%

Comparing colinaaa:colin/0917/crates (d7ad454) with main (75693e4)

🎉 Hooray! codspeed-cpp just leveled up to 1.2.0!

A heads-up, this is a breaking change and it might affect your current performance baseline a bit. But here's the exciting part - it's packed with new, cool features and promises improved result stability 🥳!
Curious about what's new? Visit our releases page to delve into all the awesome details about this new version.

Summary

⚡ 1 improvement
❌ 2 regressions
✅ 53 untouched

⚠️ Please fix the performance issues or acknowledge them on CodSpeed.

Benchmarks breakdown

Benchmark BASE HEAD Change
transform 1000 effects 30.4 ms 32.9 ms -7.59%
basic-performance-nest-level-100 6.5 ms 6 ms +8.59%
basic-performance-small-css 6.9 ms 7.6 ms -9.73%

@codecov
Copy link
Copy Markdown

codecov bot commented Sep 17, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ All tests successful. No failed tests found.

📢 Thoughts on this report? Let us know!

@colinaaa colinaaa marked this pull request as ready for review September 17, 2025 08:24
@colinaaa colinaaa requested a review from gaoachao September 17, 2025 08:24
@gaoachao gaoachao merged commit 0970d5c into lynx-family:main Sep 17, 2025
113 of 118 checks passed
@coderabbitai coderabbitai bot mentioned this pull request Jan 29, 2026
3 tasks
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