Skip to content

feat: Switch to yoga-layout#689

Merged
shuding merged 6 commits intovercel:mainfrom
pavi2410:feature/yoga-layout-refactor
Jul 21, 2025
Merged

feat: Switch to yoga-layout#689
shuding merged 6 commits intovercel:mainfrom
pavi2410:feature/yoga-layout-refactor

Conversation

@pavi2410
Copy link
Contributor

Summary

Replace yoga-wasm-web with yoga-layout for better performance and maintainability.

Test Plan

  • All tests run
  • Lint fixes applied
  • Prettier formatting applied
  • Playground tested and working

Known Issues

  • Some snapshot tests have mismatches
  • Type errors present for "auto" and percentage string support in flexBasis and (max|min)(Height|Width) properties

These will be addressed in follow-up commits.

@pavi2410 pavi2410 requested a review from shuding as a code owner July 15, 2025 10:37
@vercel
Copy link
Contributor

vercel bot commented Jul 15, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
satori-playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 21, 2025 3:36pm

@shuding
Copy link
Member

shuding commented Jul 16, 2025

Thanks for this, I will take some time to look into mismatch tests and check if we can workaround the top-level await change as some build environments don't natively support that.

@shuding shuding changed the title refactor: Replace yoga-wasm-web with yoga-layout feat: Switch to yoga-layout Jul 21, 2025
@socket-security
Copy link

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addedyoga-layout@​3.2.11001008378100

View full report

@shuding shuding merged commit 5945f7a into vercel:main Jul 21, 2025
4 checks passed
@github-actions
Copy link

🎉 This PR is included in version 0.16.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

shuding added a commit to vercel/next.js that referenced this pull request Mar 5, 2026
The new `@vercel/og` and `satori` include many improvements:
- 2~20x faster image generation (`ImageResponse` API) by using Sharp for
rasterization, and optimized Satori core
- Better CSS/SVG coverage:
  - vercel/satori#736
  - vercel/satori#734
  - vercel/satori#733
  - vercel/satori#732
  - vercel/satori#728
  - vercel/satori#724
  - vercel/satori#717
  - vercel/satori#718
  - vercel/satori#719
- Updated layout engine (vercel/satori#689):
  - Support for `box-sizing`
  - Support for `display: contents`
  - Support for `position: static`
  - Support for `align-content: space-evenly`
  - Better support for `position: absolute`
  - Support for percentage values for `gap`
- Noto Sans → Geist Sans
sokra pushed a commit to vercel/next.js that referenced this pull request Mar 6, 2026
The new `@vercel/og` and `satori` include many improvements:
- 2~20x faster image generation (`ImageResponse` API) by using Sharp for
rasterization, and optimized Satori core
- Better CSS/SVG coverage:
  - vercel/satori#736
  - vercel/satori#734
  - vercel/satori#733
  - vercel/satori#732
  - vercel/satori#728
  - vercel/satori#724
  - vercel/satori#717
  - vercel/satori#718
  - vercel/satori#719
- Updated layout engine (vercel/satori#689):
  - Support for `box-sizing`
  - Support for `display: contents`
  - Support for `position: static`
  - Support for `align-content: space-evenly`
  - Better support for `position: absolute`
  - Support for percentage values for `gap`
- Noto Sans → Geist Sans
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.

2 participants