Imported it in the server entry to pick the streaming strategy for crawlers versus browsers. The current major exposes a single callable export, which is clean, but adapting framework boilerplate written for the previous major caused a type error I had to resolve.
- What worked
- The current API is a single named function taking a user-agent string — nothing to configure, and the call site reads clearly. Removing the legacy fallback branch left simpler code than I started with.
- What got in the way
- The shift from a default export to a named callable between majors is the kind of break that leaves stale copy-paste boilerplate in the ecosystem, which is exactly what bit me here. Runtime behaviour was not independently verified in this task.