Blitz Versions Save

⚡️ The Missing Fullstack Toolkit for Next.js

v2.0.5

1 month ago

🐞 Patches

v2.0.4

1 month ago

🐞 Patches

  • dd604c767: perf: add filter to select only non expired sessions
  • 28a79040e: fix: export BlitzServerMiddleware from blitz-next with next-js specific type
  • f25aac08c: fix: add support to codemod upgrade-legacy for projects that have their pages folder nested in a src/ folder
  • 71b995003: fix: ajv dependency was not installed with blitz new

v2.0.3

2 months ago

🐞 Patches

  • 2f5c8a3a0: fix: missing sodium native prebuilds required to use secure-password during server rendering
  • 956a739e8: fix: codemod now uses the correct paths corresponding to the changes to new templates
  • 47722e045: fix: search inside any subdirectory to inside src|app directories to find blitz-server.ts to use the BlitzCliConfig configurations.
  • 595f400e9: fix: add missing prettier, pretty-quick and other missing dev dependencies in the new app template

v2.0.2

2 months ago

🐞 Patches

  • e8fd12e4f: Fix bug causing rpc resolvers to fail compilation in windows

v2.0.1

2 months ago

🐞 Patches

  • 8782aae64: Fix outdated code in npm caused in during migration to stable release

v2.0.0-stable

2 months ago

🚀 Features/Improvements

  • e5cd2c862: Expose ctx to rpcHandler error callbacks in [[...blitz]].ts files
  • 6d5f9efe1: Blitz app directory starter
  • 86e8eb7c8: Add helpful error message when RPC resolvers have the same path
  • b84c5bedb: Next 14 Compatibility

v2.0.0-beta.37

2 months ago

🚀 Features/Improvements

  • e5cd2c862: Expose ctx to rpcHandler error callbacks in [[...blitz]].ts files
  • 6d5f9efe1: Blitz app directory starter
  • 86e8eb7c8: Add helpful error message when RPC resolvers have the same path
  • b84c5bedb: Next 14 Compatibility

v2.0.0-beta.36

4 months ago

🐞 Patches

  • 09e0c68db: Automatically authorize role with usage of redirectAuthenticatedTo in useAuthenticatedBlitzContext and persist internal function definition of getBlitzContext

v2.0.0-beta.35

4 months ago

🚀 Features

  • 3bcbad1a9: - Introduce Blitz RPC's logging system to the invoke function which is the recommended way to call resolvers in nextjs app directory's react server components.

    • This refactor also removes the re-introduced dependency between blitz-auth and blitz-rpc, allowing independent usage of blitz-rpc

You can now configure the usage of invoke in the app directory with custom error handling logic and controlling the verbosity of the logger in the following way:

// blitz-server.ts
import { notFound } from "next/navigation"
...
RpcServerPlugin({
  logging: {
    allowList: [] // if allowList is defined then only those routes will be logged
    blockList: [] // If blockList is defined then all routes except those will be logged
    disablelevel: "info|debug" // Represents the flag to enable/disable logging for a particular level
    verbose: true, // enable/disable logging If verbose is true then Blitz RPC will log the input and output of each resolver
  },
  onInvokeError(error) {
    if(error instanceof NotFoundError) {
      notFound()
    }
  },
}),

⚠️ Breaking Change

  • b97366c42: Remove unintended dependency on next-auth by removing it from the core build of @blitzjs/auth

    Update your import in next.config.js in the following way

    -const { withNextAuthAdapter } = require("@blitzjs/auth")
    +const { withNextAuthAdapter } = require("@blitzjs/auth/next-auth")
    

🐞 Patches

  • cee2dec17: Fix bug that did not allow Page.authenicate = {role: "" } to correctly work

  • aec1bb076: blitz-next: Fix next/head used in app directory warning

  • c89cb943b: Upgrade next, prisma and zod to latest versions in a newly created app

v2.0.0-beta.34

5 months ago

🔥 Breaking Changes

  • 3ddb57072:

    ⚠️ Important: Next.js version 13.5 or above is now required to use @blitzjs/next

    Fix Error: Cannot find module 'next/dist/shared/lib/router/utils/resolve-href' by updating the location of next.js internal function.

🐞 Patches

  • 30fd61316:

    • Removes language selection step from blitz new menu
    • Make formik the default/recommended form library
  • fe8c937d2: Remove rouge console.log during start