Vector Pro 0.8.0 is out. All Vector Pro packages are at 0.8.0 on GitHub Packages. The one change is in @weber-development/vector-portal: the portal API now has ready-made adapters for two more frameworks.
The portal handler has always been a plain Fetch handler, which works in Next.js route handlers, Bun, Deno and Workers, and toNodeHandler covered Node and Express. Hono and Fastify users had to write the glue themselves. Now:
import {
createPortalHandler,
toFastifyHandler,
toHonoHandler,
} from "@weber-development/vector-portal"
const portal = createPortalHandler(vector, {
basePath: "/webhooks",
authorize: (request) => tenantFromSession(request),
})
hono.all("/webhooks/*", toHonoHandler(portal))
fastify.all("/webhooks/*", toFastifyHandler(portal))
The adapters use small structural types for the Hono context and the Fastify request and reply, so they add no dependency and keep working across framework versions. Fastify parses JSON bodies by default; the adapter serialises the parsed body again before it reaches the portal, so you do not need to change the content-type parser.
Update with your usual package manager. There are no breaking changes. The full portal documentation is at packages.sweber.dev/vector.