Releases: blitz-js/blitz
Releases · blitz-js/blitz
v2.2.1
v2.2.0
v2.1.4
🐞 Patches
-
ce23d4e: fix: Update
turbopack-empty.js
syntax to support latest turbopack and next.js versions -
38d320f: chore: Upgrade to prisma v6. Read more about migration in https://www.prisma.io/docs/orm/more/upgrade-guides/upgrading-versions/upgrading-to-prisma-6
v2.1.3
v2.1.2
v2.1.1
v2.1.0
Releases
Minor Changes
-
3b10b13: feat: add blitz auth support for the Web
Request
API standardUsage using the new
withBlitzAuth
adapter in the App Router:import {withBlitzAuth} from "app/blitz-server" export const {POST} = withBlitzAuth({ POST: async (_request, _params, ctx) => { const session = ctx.session await session.$revoke() return new Response( JSON.stringify({ userId: session.userId, }), {status: 200}, ) }, })
feat: New Blitz RPC handler meant to with the next.js app router
route.ts
filesUsage using the new
rpcAppHandler
function// app/api/rpc/[[...blitz]]/route.ts import {rpcAppHandler} from "@blitzjs/rpc" import {withBlitzAuth} from "app/blitz-server" // Usage with blitz auth export const {GET, POST, HEAD} = withBlitzAuth(rpcAppHandler()) // Standalone usage export const {GET, POST, HEAD} = rpcAppHandler()
chore: Update the app directory starter
Patch Changes
- d53da39: Improved parsing of default export names to handle higher-order components (HOCs) in the
parseDefaultExportName
function.
v2.0.10
🔒 Security
- 318e974: support latest v4 next-auth release that solves GHSA-7r7x-4c4q-c4qf and GHSA-v64w-49xw-qq89