Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version Packages #4353

Merged
merged 13 commits into from
Aug 14, 2024
Merged

Version Packages #4353

merged 13 commits into from
Aug 14, 2024

Conversation

github-actions[bot]
Copy link
Contributor

@github-actions github-actions bot commented Jul 1, 2024

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

[email protected]

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.
  • Updated dependencies [3b10b13]

@blitzjs/[email protected]

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

@blitzjs/[email protected]

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

@blitzjs/[email protected]

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

@blitzjs/[email protected]

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

@blitzjs/[email protected]

Patch Changes

[email protected]

Patch Changes

@blitzjs/[email protected]

@github-actions github-actions bot force-pushed the changeset-release/main branch from 0ca80f8 to 6c7ff42 Compare July 30, 2024 13:04
@siddhsuresh siddhsuresh merged commit 4494662 into main Aug 14, 2024
29 of 30 checks passed
@siddhsuresh siddhsuresh deleted the changeset-release/main branch August 14, 2024 13:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants