You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Having both unenv + cloudflare preset for wrangler hybrid node_compat in same repo/versioning has proven to be a tricky process.
The idea of this external preset is to split areas clearly:
unenv: The base/polyfill-only source for Node.js compatibility (nodeless)
unenv-preset-cloudflare: has full control over hybrid layer composition on top of unenv
Versioning
By this split, unenv versioning focuses mainly on polyfill improvements and bug fixes with both stable channels and nightly channels
I believe unenv-preset-cloudflare might need to also have two channels and stable channel releases making sure the hybrid composition, matches production tag of workerd and is also in sync with wrangler SDK.
Tests
I think the focus of these preset tests would be testing functionality with node_compat.
The focus of unenv would then be polyfill-only coverage.
porting current workerd tests is time-consuming because it was so hacky but as an alternative, since this setup has fewer constraints I think we might directly use vitest-environment-cloudflare somehow.
Ownership
With this split, I would love to have the cloudflare team having full ownership.
I would be more than glad to have cloudflare team oversights on unenv development as well, and also I would love to keep helping on this preset because we might need an extension of it for Nitro/Nuxt support to avoid duplicating efforts.
I made this POC quickly in my personal namespace and invited major contributors, if you want to move it to a better place, please do! (i would personally suggest it being part of SDK monorepo to help saving time!)
Transition
I think we can have as much as time as needed. unenv is not going to break wrangler dependency until we adopt this repository.
I would appreciate any help on making this happen faster btw since it unblocks next steps for unenv v2 release.
The text was updated successfully, but these errors were encountered:
Having both unenv + cloudflare preset for wrangler hybrid node_compat in same repo/versioning has proven to be a tricky process.
The idea of this external preset is to split areas clearly:
Versioning
By this split, unenv versioning focuses mainly on polyfill improvements and bug fixes with both stable channels and nightly channels
I believe
unenv-preset-cloudflare
might need to also have two channels and stable channel releases making sure the hybrid composition, matches production tag of workerd and is also in sync with wrangler SDK.Tests
I think the focus of these preset tests would be testing functionality with node_compat.
The focus of unenv would then be polyfill-only coverage.
porting current workerd tests is time-consuming because it was so hacky but as an alternative, since this setup has fewer constraints I think we might directly use vitest-environment-cloudflare somehow.
Ownership
With this split, I would love to have the cloudflare team having full ownership.
I would be more than glad to have cloudflare team oversights on unenv development as well, and also I would love to keep helping on this preset because we might need an extension of it for Nitro/Nuxt support to avoid duplicating efforts.
I made this POC quickly in my personal namespace and invited major contributors, if you want to move it to a better place, please do! (i would personally suggest it being part of SDK monorepo to help saving time!)
Transition
I think we can have as much as time as needed. unenv is not going to break wrangler dependency until we adopt this repository.
I would appreciate any help on making this happen faster btw since it unblocks next steps for unenv v2 release.
The text was updated successfully, but these errors were encountered: