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

Update Yoga to 3.0 #2692

Closed
wojtekmaj opened this issue Mar 27, 2024 · 1 comment · Fixed by #2711
Closed

Update Yoga to 3.0 #2692

wojtekmaj opened this issue Mar 27, 2024 · 1 comment · Fixed by #2711

Comments

@wojtekmaj
Copy link
Contributor

wojtekmaj commented Mar 27, 2024

Updating Yoga to 3.0 will bring several features into React-PDF:

  • Support for position: static
  • Support for align-content: space-evenly
  • Improvements to layout correctness
  • Yoga’s JavaScript bindings are now distributed as an ES Module
  • Fixes several crashes in Java bindings
  • Some existing Yoga APIs have been removed

Source: https://www.yogalayout.dev/blog/announcing-yoga-3.0

But also, it will:

Potential breaking changes:

  • Yoga 3.0 is distributed as ESM-only. We might be forced to make React-PDF ESM-only as well.
  • Given that there are "layout correctness" improvements makes me believe this should be considered a breaking change, as people may have used certain workarounds that would stop working after an update.
@diegomura
Copy link
Owner

Nice! Excited to see this in place. Will try to find some time to work on it soon, but if anyone has time please be my guest 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants