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

feat: @deprecated decorator #3111

Open
3 tasks done
arvindanta opened this issue Oct 20, 2021 · 2 comments
Open
3 tasks done

feat: @deprecated decorator #3111

arvindanta opened this issue Oct 20, 2021 · 2 comments
Labels
Feature: Want this? Upvote it! This PR or Issue may be a great consideration for a future idea.

Comments

@arvindanta
Copy link

Prerequisites

Describe the Feature Request

Add @decorator option to denote deprecated attributes, events and methods.
Show a console warn when these deprecated items are used by the component consumer

Describe the Use Case

Provide a way to denote deprecated attributes, events and methods.
Show a console warn when these deprecated items are used by the component consumer

Describe Preferred Solution

No response

Describe Alternatives

No response

Related Code

No response

Additional Information

No response

@ionitron-bot ionitron-bot bot added the triage label Oct 20, 2021
@rwaskiewicz
Copy link
Contributor

Hey @arvindanta 👋

This is an interesting idea! We think that this could be useful for consumers using components in HTML files quite a bit. I think there's some alignment here between Stencil adopting Custom Elements Manifest and this. Although it doesn't support a @Deprecated flag yet, I do believe there is an active feature request for it.

I'd like to see how that flag plays out in the Custom Elements Manifest, as that's something we're keeping an eye on & considering implementing in Stencil. If possible, we would love to leverage that work. I'm going to mark this feature request as something we'd like the community to vote on, and will continue to monitor. Thanks!

PS In the case of TypeScript/JavaScript consumers, the @Deprecated JSDoc may be of help there

@driskull
Copy link

driskull commented Feb 29, 2024

Adding onto this request...

We are documenting our slots and our CSS custom properties for our design system. We would love a way to be able to flag deprecated slots and CSS vars somehow. It would be super helpful if Stencil provided a helpful way to do this.

We can handle the props, method, and events with JSDoc but need something better for slots and CSS vars.

cc @rwaskiewicz

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature: Want this? Upvote it! This PR or Issue may be a great consideration for a future idea.
Projects
None yet
Development

No branches or pull requests

3 participants