Skip to content

Version Packages#617

Merged
borisno2 merged 1 commit into
mainfrom
changeset-release/main
Jun 28, 2026
Merged

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

Conversation

@github-actions

@github-actions github-actions Bot commented Jun 28, 2026

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-core@0.26.0

Minor Changes

  • #616 322d5b6 Thanks @borisno2! - Add context.transaction() — an interactive, hook-firing transaction

    You can now run multiple access-checked context.db.* operations atomically in one transaction while preserving the access/hook boundary (unlike raw prisma.$transaction, which bypasses both). The callback receives a full context whose db.* operations enforce access control and run list/field hooks, but persist against a single interactive transaction — so a throw anywhere rolls the whole transaction back.

    Options (notably isolationLevel, plus maxWait/timeout) pass through to Prisma, and serialization failures (Prisma P2034) propagate to the caller so you own the retry loop. This makes concurrency-sensitive invariants such as a capacity gate enforceable:

    async function bookSlot(context, slotId) {
      for (let attempt = 0; attempt < 5; attempt++) {
        try {
          return await context.transaction(
            async (tx) => {
              const count = await tx.db.booking.count({ where: { slotId } })
              if (count >= CAPACITY) return { booked: false }
              return { booked: true, item: await tx.db.booking.create({ data: { slotId } }) }
            },
            { isolationLevel: 'Serializable' },
          )
        } catch (err) {
          // Serialization failures propagate — retry is caller-owned.
          if (err && typeof err === 'object' && 'code' in err && err.code === 'P2034') continue
          throw err
        }
      }
      throw new Error('exceeded retry budget')
    }

    Nested context.db writes inside the callback join the outer transaction. New StackContext, TransactionOptions, and TransactionIsolationLevel types are exported from @opensaas/stack-core. See ADR-0012.

Patch Changes

  • #620 0be254e Thanks @borisno2! - Apply a field's defaultValue to omitted inputs before create validation (resolve-then-validate, matching Keystone), so isRequired + defaultValue no longer fails on create.

    Note: because an omitted-but-defaulted field is now filled into resolvedData before validation, that field's create-side field-level beforeOperation/afterOperation hooks (gated on the field key being present in resolvedData) now fire for defaulted fields where they previously would not.

@opensaas/stack-cli@0.26.0

Patch Changes

  • Updated dependencies [322d5b6, 0be254e]:
    • @opensaas/stack-core@0.26.0

@opensaas/stack-storage@0.26.0

Patch Changes

  • #619 29ca3a9 Thanks @borisno2! - Fix file()/image() fields being required on create/update: their Zod schema now uses key-optionality (.nullish()) so an omitted field validates and stores null (Zod 4).

@opensaas/stack-auth@0.26.0

@opensaas/stack-rag@0.26.0

@opensaas/stack-storage-s3@0.26.0

@opensaas/stack-storage-vercel@0.26.0

@opensaas/stack-tiptap@0.26.0

@opensaas/stack-ui@0.26.0

@vercel

vercel Bot commented Jun 28, 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 Jun 28, 2026 4:58am

@github-actions github-actions Bot force-pushed the changeset-release/main branch from a9b176d to 2290501 Compare June 28, 2026 04:57
@borisno2 borisno2 enabled auto-merge (squash) June 28, 2026 04:59
@borisno2 borisno2 merged commit 6df14c6 into main Jun 28, 2026
6 checks passed
@borisno2 borisno2 deleted the changeset-release/main branch June 28, 2026 05:04
@github-actions

Copy link
Copy Markdown
Contributor Author

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

Status Category Percentage Covered / Total
🔵 Lines 91.63% (🎯 65%) 855 / 933
🔵 Statements 90.91% (🎯 65%) 891 / 980
🔵 Functions 97.95% (🎯 62%) 144 / 147
🔵 Branches 79.72% (🎯 50%) 574 / 720
File CoverageNo changed files found.
Generated in workflow #1218 for commit 2290501 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.03% 92 / 121
🔵 Statements 75.39% 95 / 126
🔵 Functions 75.6% 31 / 41
🔵 Branches 65.78% 75 / 114
File CoverageNo changed files found.
Generated in workflow #1218 for commit 2290501 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.21% 1490 / 1881
🔵 Statements 78.92% 1550 / 1964
🔵 Functions 84.45% 201 / 238
🔵 Branches 67.25% 653 / 971
File CoverageNo changed files found.
Generated in workflow #1218 for commit 2290501 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 74.64% 159 / 213
🔵 Statements 69.74% 166 / 238
🔵 Functions 83.11% 64 / 77
🔵 Branches 70.67% 94 / 133
File CoverageNo changed files found.
Generated in workflow #1218 for commit 2290501 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 74.8% 190 / 254
🔵 Statements 76.44% 211 / 276
🔵 Functions 85.89% 67 / 78
🔵 Branches 70.73% 174 / 246
File CoverageNo changed files found.
Generated in workflow #1218 for commit 2290501 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 #1218 for commit 2290501 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 #1218 for commit 2290501 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% 38 / 38
🔵 Statements 100% 38 / 38
🔵 Functions 100% 8 / 8
🔵 Branches 100% 22 / 22
File CoverageNo changed files found.
Generated in workflow #1218 for commit 2290501 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