-
Notifications
You must be signed in to change notification settings - Fork 797
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
Road to v5 🚀 #6185
Comments
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
I would like Stencil to remove (or at least deprecate in preparation for removal) a bunch / most of the extras:
Related, I'd like Stencil to mark as deprecated (or remove) a few of the slot monkey-patches.
^ perhaps we could add a hook which Stencil would call, allowing users to add more if they require them? Lastly, I think it would good for Stencil to unify / simplify Prepare for the removal of: @Component({
tag: 'tag-1'
}) @Component({
tag: 'tag-1',
scoped: false,
}) @Component({
tag: 'tag-1',
shadow: false,
}) Potentially changing the api to something like: @Component({
tag: 'tag-1',
scoping: 'shadow' | 'class', // more could be added later - 'shadow-closed' etc
}) |
💯 a question: are we removing patches like
Do you mean like a extra package / plugin for folks who want to use scoped components?
IMHO all Stencil components should be |
At the moment to get the best / most consistent behaviour from I, as someone who knows stencil pretty well, have no idea why Also add to this that that Stencil runs all it's internal tests with these 2 flags on all the time now, it'll make our (Stencil devs) lives much easier and more determinative.
I haven't thought about it much so maybe it doesn't make sense, but I just mean some kind of config hook / function that users can leverage... This would allow users to provide their own monkey-patch for
Yeah - as a default that makese sense. But still tweaking might make sense(?) |
Afaik these patches were introduced as feature flags for users to opt-in because they had breaking character. v5 allows us to "merge them in" and consolidate this tech debt. If you suggest to make these patches the "default" behavior, I am all in.
Is this something a common StencilJS user would do? My only concern is that opening up these hooks to users means we introduce interfaces that require maintenance and documentation when it is not clear how much this would be actually useful for a common Stencil user.
I see. That makes sense, especially the extensibility part. My original desire was it to keep the upgrade effort minimal, while not dragging old interfaces ( |
Agreed - let's not make more work before we need to!
Gotcha, happy to 'just' make |
You are right though when it comes to extensibility. It makes sense to have ensure we can seamlessly add "closed" shadow roots in the future. |
This issue is a tracking issue to collect feedback for potential breaking changes and new features in Stencil v5. We appreciate everyone interested to participate and comment on urgent issues or often requested features they would like to see in the new major version. We will collect all acknowledged issues in here and resolve comments that mention it.
Accepted v5 Bug Fixes / Features / Breaking Changes
Under Consideration
cb/jsx-object
The text was updated successfully, but these errors were encountered: