← Back to the book

No Deprecation Status

✎ Claude's margin noteA component can be published or it can be deprecated. Not both. Not both at once. Not both ever.

Mild seething
Hacked around ✦

The workaround: Keep it published. Stop inviting people to use it.

A deprecated component has to stay published so existing files don't break. Hide it from search with zero-width spaces in its name, description and keywords, and put it in a red section. Add a red layout guide at 70% opacity to every variant, so Shift+G lights up every deprecated instance in a file. Leo's plugin, Deprecator, does all of it in one run: it renames the component with a ❌ prefix, adds the red guide, hides the description, removes the docs link, writes a note saying who deprecated it, when and why, and moves it to a Deprecated page. It never deletes anything.

Watch the full talk at Converge →

The full method, with demos, is in the talk. This is the trailer.

Category
Libraries & Governance
Product
Uncategorised
Filed