-
Notifications
You must be signed in to change notification settings - Fork 90
Add explicit scenarios for feature gate usage #387
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
Add explicit scenarios for feature gate usage #387
Conversation
@alexcrichton / @lukewagner / @yoshuawuyts would anyone mind taking a look at this? |
0a39c42
to
8aef89c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great, thanks for doing this! Just one question below which, depending on what folks here think, suggests a few more changes in the PR.
4c288a4
to
29682a4
Compare
29682a4
to
d25824a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great, thanks!
I just realized that one other change we discussed in #382 that maybe we want to make in this PR (if we want it to fully resolve #382) is the validation requirements (attached to the various gates) of: |
@lukewagner thanks that's a great catch -- that little requirement was definitely an eye opener on the code side -- will add! |
Kept this particular change separate so it might be easy to review (I added some headings): Would appreciate just a bit more feedback! |
Awesome, lgtm, thanks again! Once things are implemented enough to feel good about this PR, lmk and I'll merge this. |
This commit addds some explanation of the intended usage pattern of feature gates in order to make the transition points and functionality easier to identify/reason about. Signed-off-by: Victor Adossi <[email protected]>
af0c60e
to
a8e89f7
Compare
Yup! I'll squash here and see what I can do about updating implementation in other spots! |
This commit removes the optional `feature` specification from feature gates (`@since`, in particular). This change should simplify the usage of feature gates (see WebAssembly/component-model#387) for more discussion. This is a breaking change for those who were depending on `wit-parser` as `feature` now no longer present. Signed-off-by: Victor Adossi <[email protected]>
This commit removes the optional `feature` specification from feature gates (`@since`, in particular). This change should simplify the usage of feature gates (see WebAssembly/component-model#387) for more discussion. This is a breaking change for those who were depending on `wit-parser` as `feature` now no longer present. Signed-off-by: Victor Adossi <[email protected]>
…#1741) * Remove feature flag from post-stabilization feature gates This commit removes the optional `feature` specification from feature gates (`@since`, in particular). This change should simplify the usage of feature gates (see WebAssembly/component-model#387) for more discussion. This is a breaking change for those who were depending on `wit-parser` as `feature` now no longer present. Signed-off-by: Victor Adossi <[email protected]> * Update wit-component to not use feature option in since This commit updates `wit-component` to remove reliance on the `feature` option when dealing with post-stabilization (`@since`) feature gates. Signed-off-by: Victor Adossi <[email protected]> * Update tests to remove optional feature on since gates Signed-off-by: Victor Adossi <[email protected]> --------- Signed-off-by: Victor Adossi <[email protected]>
Hey @lukewagner so at this point the optional feature is removed (in a semi-breaking manner, those changes should percolate through but have rarely few people affected), anything else I'm missing? We don't have a new version of |
Great, thanks again for all the work! |
This commit addds some explanation of the intended usage pattern of feature gates in order to make the transition points and functionality easier to identify/reason about.
Resolves #382