Skip to content

Releases: blitz-js/blitz

v2.1.4

23 Dec 12:05
ae04524
Compare
Choose a tag to compare

🐞 Patches

v2.1.3

21 Oct 17:30
b6c9c4a
Compare
Choose a tag to compare

🐞 Patches

  • 0b32864: chore: bump next.js and zod versions
  • 50f17d2: Update prisma-ast dependency to prevent Blitz generator from failing when Prisma keywords are used as model names

v2.1.2

08 Oct 13:54
Compare
Choose a tag to compare

🐞 Patches

blitz

@blitzjs/auth

@blitzjs/next

@blitzjs/rpc

@blitzjs/codemod

@blitzjs/generator

  • 2711291: Remove views property from Session.PublicData in types.ts file again
  • 56bd32b: Fix Zod schema generation for datetime fields by removing extra parentheses.

v2.1.1

14 Aug 14:04
Compare
Choose a tag to compare

🐞 Patches

  • 9a0ba87: fix: make sure blitz superjson custom error registers in rpc handler

v2.1.0

14 Aug 14:07
Compare
Choose a tag to compare

Releases

Minor Changes

  • 3b10b13: feat: add blitz auth support for the Web Request API standard

    Usage 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 files

    Usage 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

04 Jun 17:27
Compare
Choose a tag to compare

🔒 Security

⚠️ Upgrade to next-auth > v4.25.1 to use the adapter from this release

v2.0.9

09 May 15:39
ad94bee
Compare
Choose a tag to compare

🐞 Patches

  • 5a14306: fix export of enhancePrisma in client bundle

v2.0.8

17 Apr 14:16
6e8eeb1
Compare
Choose a tag to compare

🐞 Patches

  • 5e61a16: bug: merge existing and custom blitz turbo configs
  • 7755546: fix: add missing host while initialising the next-auth adapter

v2.0.7

05 Apr 15:36
22e402a
Compare
Choose a tag to compare

🐞 Patches

  • ee7bf87: Turbopack support for Blitz

    This PR includes the changes required to make the Blitz loaders work with Turbopack.

    ⚠️ Upgrade to latest next canary to use this feature: >14.2.0-canary.25.
    ℹ️ While using turbopack currently few invalid config warnings will be shown, which can be ignored and should be fixed upstream in next.js. For more context: #4314

    Usage:

    pnpm blitz dev --turbo
  • 178c152: fix: patch next.js to hide intentional throws of DYNAMIC_SERVER_USAGE

v2.0.6

02 Apr 06:40
bbe1a54
Compare
Choose a tag to compare

🐞 Patches

  • 76a2544: Use SIGINT signal instead of SIGABRT to stop the process, when using custom server for better compatibility with operative systems
  • 5a587a6: Fix bundling issue that occurs in vercel due to the way imports were handled internally