Skip to content

Releases: blitz-js/blitz

v2.0.0-beta.34

03 Oct 06:41
353af3f
Compare
Choose a tag to compare

🔥 Breaking Changes

  • 3ddb570:

    ⚠️ 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

  • 30fd613:

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

v2.0.0-beta.33

06 Sep 11:12
9a5ce2e
Compare
Choose a tag to compare

🚀 Features

  • 6811eab: Allow .tsx & .jsx file extensions to be used for resolvers

🐞 Patches

  • 19898a4: Fix for tslog error TypeError: Cannot read properties of undefined (reading 'map') while using custom errors.
  • 022392c:
    • Updates ts-log peer dependency to 4.9.0
    • Removes javascript from blitz new menu
    • Fix the Update Schema when using blitz generator

v2.0.0-beta.32

17 Aug 18:14
e1bffdf
Compare
Choose a tag to compare

🐞 Patches

  • 82649f3: Upgrade tslog to 4.9.0.
    This due a tslog issue that causes tslog to crash when attempting to log an error whose constructor expects more than one argument.
  • 8b01175: Updated useAuthenticatedBlitzContext to now return AuthenticatedCtx
  • 47c6b62: Update examples of generate all in docs to include one column in model.

v2.0.0-beta.31

20 Jul 20:25
8255172
Compare
Choose a tag to compare

🚀 Improvements

  • 90f1741: blitz-auth: Support for Prisma v5

    Internal: Make handle a required paramter while updating the session modal.

  • df3265b: blitz-rpc: Cleanup Event Listeners

    Fix potential memory leak by cleaning up any residual event listeners set by blitz.

v2.0.0-beta.30

05 Jul 15:19
da76acc
Compare
Choose a tag to compare

🐞 Patches

  • c5572be: blitz-auth: Fix webpack from following next-auth

🚀 New Features

  • 7277349: ### Now we can configure Blitz RPC in the following way,

    In your [[...blitz]].ts api file you can see the following settings

    logging?: {
      /**
       * allowList Represents the list of routes for which logging should be enabled
       * If whiteList is defined then only those routes will be logged
       */
      allowList?: string[]
      /**
       * blockList Represents the list of routes for which logging should be disabled
       * If blockList is defined then all routes except those will be logged
       */
      blockList?: string[]
      /**
       * verbose Represents the flag to enable/disable logging
       * If verbose is true then Blitz RPC will log the input and output of each resolver
       */
      verbose?: boolean
      /**
       * disablelevel Represents the flag to enable/disable logging for a particular level
       */
      disablelevel?: "debug" | "info"
    }
    import { rpcHandler } from "@blitzjs/rpc"
    import { api } from "src/blitz-server"
    
    export default api(
      rpcHandler({
        onError: console.log,
        formatError: (error) => {
          error.message = `FormatError handler: ${error.message}`
          return error
        },
       logging: {
    ...
    }
      })
    )

    Example:

    export default api(
      rpcHandler({
        onError: console.log,
        formatError: (error) => {
          error.message = `FormatError handler: ${error.message}`
          return error
        },
        logging: {
          verbose: true,
          blockList: ["getCurrentUser", ...], //just write the resolver name [which is the resolver file name]
        },
      })
    )

    This is enable verbose blitz rpc logging for all resolvers except the resolvers getCurrentUser and others mentioned in the blockList

v2.0.0-beta.29

14 Jun 18:15
831a493
Compare
Choose a tag to compare

🐞 Patches

blitz

  • b6b9a1c: Fix Next-Auth integration: Unable to use next-auth with provider: Error [ERR_PACKAGE_PATH_NOT_EXPORTED]
  • 61888d1: Fix log formatting to not show the path of blitz rpc

@blitzjs/auth

  • b6b9a1c: Fix Next-Auth integration: Unable to use next-auth with provider: Error [ERR_PACKAGE_PATH_NOT_EXPORTED]

@blitzjs/generator

  • 7aef610: Make Next.js version stick to 13.4.5 when generating a new app

v2.0.0-beta.28

09 Jun 18:27
d25c965
Compare
Choose a tag to compare

🚀 Features/Improvements

@blitzjs/auth

  • 1bb3a65: Stop exporting useAuthenticatedBlitzContext from @blitzjs/auth this must be imported from app/blitz-server.ts file in order to work correctly

  • 5166e5e: (feat) upgrade tslog to v4.8.2

@blitzjs/rpc

  • c7ac86b: Fixes enormous memory consumption of the dev server by changing the default import strategy to require instead of import which in webpack causes multiple chunks to be created for each import.

    Blitz Configuration

    To configure this behaviour, you can add the following to your next.config.js:

    /**
     * @type {import('@blitzjs/next').BlitzConfig}
     **/
    const config = {
      blitz: {
        resolversDynamicImport: true,
      },
    }

    When resolversDynamicImport is set to true, the import strategy will be "import" instead of "require".

    On Vercel

    If you are using Vercel, resolversDynamicImport will be set to true by default, since it is better for the separate chunks to be create for serverless lambdas.

🐞 Patches

blitz

  • 5166e5e: (feat) upgrade tslog to v4.8.2

@blitzjs/next

  • 5166e5e: (feat) upgrade tslog to v4.8.2

@blitzjs/rpc

  • 5166e5e: (feat) upgrade tslog to v4.8.2

  • 2533caf: Fix return type of requestMiddlewares in RpcServerPlugin

@blitzjs/generator

  • 5166e5e: (feat) upgrade tslog to v4.8.2

🎉 New Contributors

Full Changelog: v2.0.0-beta.27...v2.0.0-beta.28

v2.0.0-beta.27

01 May 18:06
5a64f1c
Compare
Choose a tag to compare

🚀 Features/Improvements

@blitzjs/next

  • eda14fa: Add ability to format the error on the server before returning it to the client.
  • 3d004dc: Fix the DYNAMIC_SERVER_USAGE error for Next.js 13.3.1+

@blitzjs/rpc

  • eda14fa: Add ability to format the error on the server before returning it to the client.

🐞 Patches

@blitzjs/auth

  • 29c2b02: Fix: Add missing entry to expose next-auth adapter in Blitz Auth

@blitzjs/generator

  • d814c2d: fix: add missing key prop to LabelSelectField

v2.0.0-beta.26

10 Apr 13:57
3e8f04e
Compare
Choose a tag to compare

🐞 Patches

  • e82a79b: Update the version of next in the new template from 13.2 to 13.3.0
  • 38d945a: The issue is that the version provided, "13.2", is not a valid SemVer version. A valid SemVer version must have three components: major, minor, and patch (e.g., "13.2.0").

v2.0.0-beta.25

03 Apr 13:59
9f316d7
Compare
Choose a tag to compare

🐞 Patches

  • f84d77a: Fix return type of the invoke method from returning type function to return the type of resolved data