Skip to content

Version Packages - #814

Merged
borisno2 merged 1 commit into
mainfrom
changeset-release/main
Jul 24, 2026
Merged

Version Packages#814
borisno2 merged 1 commit into
mainfrom
changeset-release/main

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

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

@opensaas/stack-auth@0.32.0

Minor Changes

  • #813 5a6198c Thanks @borisno2! - Auth forms now submit through app-owned server actions instead of the browser authClient

    The pre-built auth forms (SignInForm, SignUpForm, ForgotPasswordForm, and the new
    ResetPasswordForm) no longer take an authClient prop that calls /api/auth/* from the
    browser. Instead each form takes server action props — 'use server' functions the app
    defines against its own auth instance. This keeps the auth network surface server-side and
    matches the app's existing lib/actions/* convention. createAuth now auto-adds
    better-auth's nextCookies plugin, so the session cookie set inside a server action persists.
    See ADR-0020.

    The package exports the action contract types (AuthActionResult, SignInInput,
    SignUpInput, RequestPasswordResetInput, ResetPasswordInput, and the action aliases).
    createClient is unchanged for client-side session reading (useSession).

    Migration — define the actions in your app and pass them to the forms:

    // lib/actions/auth.ts
    'use server'
    import { headers } from 'next/headers'
    import { auth } from '@/lib/auth'
    import type { AuthActionResult, SignInInput } from '@opensaas/stack-auth/ui'
    
    export async function signInAction(input: SignInInput): Promise<AuthActionResult> {
      try {
        await auth.api.signInEmail({
          body: { email: input.email, password: input.password },
          headers: await headers(),
        })
        return { success: true }
      } catch (err) {
        return { success: false, error: err instanceof Error ? err.message : 'Sign in failed' }
      }
    }
    // Before
    <SignInForm authClient={authClient} redirectTo="/admin" />
    
    // After
    <SignInForm signInAction={signInAction} redirectTo="/admin" />

    Social sign-in becomes a redirecting server action passed as signInSocialAction. The CLI
    feature-generator now scaffolds lib/actions/auth.ts and a reset-password page, and no
    longer emits lib/auth-client.ts.

@opensaas/stack-cli@0.32.0

Minor Changes

  • #813 5a6198c Thanks @borisno2! - Auth forms now submit through app-owned server actions instead of the browser authClient

    The pre-built auth forms (SignInForm, SignUpForm, ForgotPasswordForm, and the new
    ResetPasswordForm) no longer take an authClient prop that calls /api/auth/* from the
    browser. Instead each form takes server action props — 'use server' functions the app
    defines against its own auth instance. This keeps the auth network surface server-side and
    matches the app's existing lib/actions/* convention. createAuth now auto-adds
    better-auth's nextCookies plugin, so the session cookie set inside a server action persists.
    See ADR-0020.

    The package exports the action contract types (AuthActionResult, SignInInput,
    SignUpInput, RequestPasswordResetInput, ResetPasswordInput, and the action aliases).
    createClient is unchanged for client-side session reading (useSession).

    Migration — define the actions in your app and pass them to the forms:

    // lib/actions/auth.ts
    'use server'
    import { headers } from 'next/headers'
    import { auth } from '@/lib/auth'
    import type { AuthActionResult, SignInInput } from '@opensaas/stack-auth/ui'
    
    export async function signInAction(input: SignInInput): Promise<AuthActionResult> {
      try {
        await auth.api.signInEmail({
          body: { email: input.email, password: input.password },
          headers: await headers(),
        })
        return { success: true }
      } catch (err) {
        return { success: false, error: err instanceof Error ? err.message : 'Sign in failed' }
      }
    }
    // Before
    <SignInForm authClient={authClient} redirectTo="/admin" />
    
    // After
    <SignInForm signInAction={signInAction} redirectTo="/admin" />

    Social sign-in becomes a redirecting server action passed as signInSocialAction. The CLI
    feature-generator now scaffolds lib/actions/auth.ts and a reset-password page, and no
    longer emits lib/auth-client.ts.

Patch Changes

  • Updated dependencies []:
    • @opensaas/stack-core@0.32.0

@opensaas/stack-core@0.32.0

@opensaas/stack-rag@0.32.0

@opensaas/stack-storage@0.32.0

@opensaas/stack-storage-s3@0.32.0

@opensaas/stack-storage-vercel@0.32.0

@opensaas/stack-tiptap@0.32.0

@opensaas/stack-ui@0.32.0

@vercel

vercel Bot commented Jul 24, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
stack-docs Ready Ready Preview, Comment Jul 24, 2026 12:36pm

@borisno2
borisno2 enabled auto-merge (squash) July 24, 2026 23:00
@borisno2
borisno2 merged commit c62e7e5 into main Jul 24, 2026
6 checks passed
@borisno2
borisno2 deleted the changeset-release/main branch July 24, 2026 23:06
@github-actions

Copy link
Copy Markdown
Contributor Author

Coverage Report for Core Package Coverage (./packages/core)

Status Category Percentage Covered / Total
🟢 Lines 92.63% (🎯 65%) 1145 / 1236
🟢 Statements 91.11% (🎯 65%) 1221 / 1340
🟢 Functions 97.93% (🎯 62%) 190 / 194
🟢 Branches 81.91% (🎯 50%) 820 / 1001
File CoverageNo changed files found.
Generated in workflow #1520 for commit da9c4d7 by the Vitest Coverage Report Action

@github-actions

Copy link
Copy Markdown
Contributor Author

Coverage Report for UI Package Coverage (./packages/ui)

Status Category Percentage Covered / Total
🔵 Lines 76.72% 244 / 318
🔵 Statements 76.29% 251 / 329
🔵 Functions 69.15% 74 / 107
🔵 Branches 64.25% 160 / 249
File CoverageNo changed files found.
Generated in workflow #1520 for commit da9c4d7 by the Vitest Coverage Report Action

@github-actions

Copy link
Copy Markdown
Contributor Author

Coverage Report for CLI Package Coverage (./packages/cli)

Status Category Percentage Covered / Total
🔵 Lines 79.4% 1496 / 1884
🔵 Statements 79.1% 1556 / 1967
🔵 Functions 86.19% 206 / 239
🔵 Branches 67.31% 655 / 973
File CoverageNo changed files found.
Generated in workflow #1520 for commit da9c4d7 by the Vitest Coverage Report Action

@github-actions

Copy link
Copy Markdown
Contributor Author

Coverage Report for Auth Package Coverage (./packages/auth)

Status Category Percentage Covered / Total
🔵 Lines 97.45% 115 / 118
🔵 Statements 97.52% 118 / 121
🔵 Functions 100% 38 / 38
🔵 Branches 92.85% 78 / 84
File CoverageNo changed files found.
Generated in workflow #1520 for commit da9c4d7 by the Vitest Coverage Report Action

@github-actions

Copy link
Copy Markdown
Contributor Author

Coverage Report for Storage Package Coverage (./packages/storage)

Status Category Percentage Covered / Total
🔵 Lines 76.65% 197 / 257
🔵 Statements 78.13% 218 / 279
🔵 Functions 85.89% 67 / 78
🔵 Branches 72.98% 181 / 248
File CoverageNo changed files found.
Generated in workflow #1520 for commit da9c4d7 by the Vitest Coverage Report Action

@github-actions

Copy link
Copy Markdown
Contributor Author

Coverage Report for RAG Package Coverage (./packages/rag)

Status Category Percentage Covered / Total
🔵 Lines 47.97% 355 / 740
🔵 Statements 48.14% 377 / 783
🔵 Functions 54.26% 70 / 129
🔵 Branches 42.55% 180 / 423
File CoverageNo changed files found.
Generated in workflow #1520 for commit da9c4d7 by the Vitest Coverage Report Action

@github-actions

Copy link
Copy Markdown
Contributor Author

Coverage Report for Storage S3 Package Coverage (./packages/storage-s3)

Status Category Percentage Covered / Total
🔵 Lines 100% 40 / 40
🔵 Statements 100% 40 / 40
🔵 Functions 100% 9 / 9
🔵 Branches 100% 19 / 19
File CoverageNo changed files found.
Generated in workflow #1520 for commit da9c4d7 by the Vitest Coverage Report Action

@github-actions

Copy link
Copy Markdown
Contributor Author

Coverage Report for Storage Vercel Package Coverage (./packages/storage-vercel)

Status Category Percentage Covered / Total
🔵 Lines 100% 68 / 68
🔵 Statements 100% 71 / 71
🔵 Functions 100% 15 / 15
🔵 Branches 97.87% 46 / 47
File CoverageNo changed files found.
Generated in workflow #1520 for commit da9c4d7 by the Vitest Coverage Report Action

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant