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

wintercg-specific fallback #1

Open
panva opened this issue Oct 5, 2022 · 6 comments
Open

wintercg-specific fallback #1

panva opened this issue Oct 5, 2022 · 6 comments

Comments

@panva
Copy link

panva commented Oct 5, 2022

A lot of times I encounter the need to single a specific runtime out. For instance, all wintercg runtimes meet my criteria except node.

What I'm looking for is key setup which allows me to put specific runtimes infront of a wintercg catchall.

@Ethan-Arrowood
Copy link
Collaborator

If I'm understanding your recommendation correctly, I was thinking about the same thing! I want to define a wintercg key that would essentially mean "features defined by wintercg specifications" i.e. the common api proposal. The thing is though (and I do need to write more description in this proposal), this proposal is not going to define how these keys will be used, only defining that they exist and what they are associated with. The how is left up to whatever tooling folks want to build.

@panva
Copy link
Author

panva commented Oct 5, 2022

Understood, we are on the same page. The how can very much be informed by the description of this "wintercg" (or whatever it ends up being) key.

@sheplu
Copy link
Contributor

sheplu commented Oct 20, 2022

also should we in the future have some kind of list with all the runtimes and a Yes/No compliance on all features ? Or should we expect runtimes to add to their doc that they are compliant ?|

Looking at JavaScript and browser history I do think it is better to have us do it as this would be neutral (a bit like caniuse for example)

@Ethan-Arrowood
Copy link
Collaborator

I believe as soon as we have a technical WinterCG proposal (such as the incoming Fetch work), we can also develop a set of web platform tests for compliance checking. Generally, it is up to platforms to state their level of compliance. Would love there to be an integration with caniuse or have our own site that automates and shows compliance for various open source runtimes 😄

@lucacasonato lucacasonato mentioned this issue Nov 9, 2022
8 tasks
@Jarred-Sumner
Copy link

Jarred-Sumner commented Nov 11, 2022

We'd be open to adding "wintercg" to the list of export conditions bun reads from (or some other export condition name that is agreed on to mean "server-side runtime")

@styfle
Copy link

styfle commented May 5, 2023

It sounds like #5 will cover this use case, right?

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

No branches or pull requests

5 participants