Releases: blitz-js/blitz
Releases · blitz-js/blitz
v2.0.4
🐞 Patches
- dd604c7: perf: add filter to select only non expired sessions
- 28a7904: fix: export
BlitzServerMiddleware
from blitz-next with next-js specific type - f25aac0: fix: add support to codemod upgrade-legacy for projects that have their pages folder nested in a src/ folder
- 71b9950: fix: ajv dependency was not installed with blitz new
v2.0.3
🐞 Patches
- 2f5c8a3: fix: missing sodium native prebuilds required to use secure-password during server rendering
- 956a739: fix: codemod now uses the correct paths corresponding to the changes to new templates
- 47722e0: fix: search inside any subdirectory to inside
src|app
directories to findblitz-server.ts
to use theBlitzCliConfig
configurations. - 595f400: fix: add missing
prettier
,pretty-quick
and other missing dev dependencies in the new app template
v2.0.2
v2.0.1
v2.0.0
v2.0.0-beta.37
v2.0.0-beta.36
🐞 Patches
- 09e0c68: Automatically authorize role with usage of
redirectAuthenticatedTo
inuseAuthenticatedBlitzContext
and persist internal function definition ofgetBlitzContext
v2.0.0-beta.35
🚀 Features
-
3bcbad1: - Introduce Blitz RPC's logging system to the
invoke
function which is the recommended way to call resolvers in nextjsapp
directory's react server components.- This refactor also removes the re-introduced dependency between
blitz-auth
andblitz-rpc
, allowing independent usage ofblitz-rpc
- This refactor also removes the re-introduced dependency between
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
-
b97366c: 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
v2.0.0-beta.34
🔥 Breaking Changes
-
⚠️ 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.