Skip to content

chore: Export InitInput type and allow Promise as the init parameter#726

Merged
shuding merged 2 commits intovercel:mainfrom
kumardeo:standalone-promise-input
Mar 3, 2026
Merged

chore: Export InitInput type and allow Promise as the init parameter#726
shuding merged 2 commits intovercel:mainfrom
kumardeo:standalone-promise-input

Conversation

@kumardeo
Copy link
Copy Markdown
Contributor

@kumardeo kumardeo commented Feb 10, 2026

  • allows Promise as input, so we can
await init(fetch("yoga.wasm"));

// instead of

await init(await fetch("yoga.wasm"));
  • exports InitInput type
  • adds ./yoga.wasm in package.json exports

@kumardeo kumardeo requested a review from shuding as a code owner February 10, 2026 14:53
@vercel
Copy link
Copy Markdown
Contributor

vercel bot commented Feb 10, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
satori-playground Ready Ready Preview, Comment, Open in v0 Feb 10, 2026 3:28pm

@kumardeo
Copy link
Copy Markdown
Contributor Author

@huozhi can this be merged as well?

@shuding shuding changed the title chore: export InitInput and allow Promise chore: Export InitInput type and allow Promise as the init parameter Mar 3, 2026
@shuding shuding merged commit 54a749b into vercel:main Mar 3, 2026
11 checks passed
@github-actions
Copy link
Copy Markdown

github-actions bot commented Mar 3, 2026

🎉 This PR is included in version 0.24.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@kumardeo kumardeo deleted the standalone-promise-input branch March 3, 2026 15:15
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