-
Notifications
You must be signed in to change notification settings - Fork 11
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
Use kebab-case instead of SCREAMING_SNAKE_CASE for our string unions #1835
Comments
Will the deprecation period end when the beta begins? Also how do we want to handle outputs that are currently in |
I believe it'll be when we go RC. I think the deprecation period is also marked as breaking for the cases you stated. We can only easily produce backwards compatibility for inputs but it is harder for outputs (we'd have to duplicate all values in both formats). TypeScript will help guide most people for the migrations. |
Do you think it would be bad to just support backwards compatibility for inputs, because we can't do it consistently for outputs? It would probably make users take the breaking change more seriously if we don't support it for outputs at all, so there's less likely to be issues for users in cases where we can't infer the casing scheme that they want. |
Pausing work on this while we await a response on bytecodealliance/jco#509 since we agree that it is better to avoid a migration for our users if possible |
It seems like jco will not allow us to make this change. This leaves us with three options:
We discussed why option one is unfavorable before, basically we would rather not force a breaking change on users where it isn't necessary. Option three should work in theory, all of the string-enums that jco generates are either objects with a I would like to make a decision on this soon so that we can progress the beta release. cc @davidmytton |
Agreed with your assessment. Option 3 sounds like it could break in the future so I suggest we stick with how it is now (option 2). |
Since we have decided not to make this change, I am closing this issue. Future work that would allow us to remove the translation layer is tracked by #2660. |
This will better align us with jco bindings.
We also want to support SCREAMING_SNAKE_CASE during a deprecation period.
The text was updated successfully, but these errors were encountered: