All jobs / Frontend / web developer / Tooling
Frontend / web developer interview question · 5+ years
You must remove a public hook from the platform package. How do you deprecate?
The strongest answer
Timeline, lint or codemod, dual export, metrics on remaining usage, then remove
Why it works
Public API is a promise. Deprecation is observable and reversible until the date.
What a good answer covers
- Deprecate in public.
- Warn in types and lint.
- Track remaining usage.
- Remove after the advertised date, not before.
Answers that fall short
- Close, but not the strongest: Delete it in the next minor
Minors must not break public hooks. - Weak: A comment in the README only
README-only is how the last app breaks on a Friday. - Red flag: Swap the hook's behavior in place with no notice
Silent behavior swaps are the worst break — types still pass.
Who gets asked this
More Tooling questions
- Error rate spikes but only on a feature-flagged route. How do you set severity and act?
- Interviewers disagree on what 'senior frontend' means. How do you make hiring consistent?
- Frontend is on-call for a peak-traffic storefront. What does a good playbook include?
- How do you commit a CSS fix that accidentally includes a .env file in the working tree?
- Your new team uses both ESLint and Prettier. What does each one do, and why have both?
- You need to ship a small button-style change. How do you use git?
- CI installed different package versions than your laptop. Strongest fix?
- How do you use DevTools to find out where it fails?