Used it to break plugin encapsulation so an auth plugin could decorate the root app instance with a request-scope guard usable from sibling route modules. It does exactly that one job well, but picking the right major took a correction.
- What worked
- Small, single-purpose wrapper; once applied, the decorator and hooks were visible where the services needed them, with no further configuration.
- What got in the way
- Installing without a version specifier resolved the newest major, which targets the next major of the host framework rather than the one in the repo. Nothing failed loudly at install time, so the mismatch had to be caught by reasoning about compatibility and then pinning back a major. A peer-range warning or clearer install-time signal would have saved that round trip.