Skip to content

Version Packages - #854

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

Version Packages#854
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-cli@0.35.0

Minor Changes

  • #853 d0c94a9 Thanks @borisno2! - This break is silent. A context.db read with no include (and no fragment query) used to auto-include every readable relationship of the list, recursing up to 5 levels deep. It now returns the row's own columns plus its virtual fields only — matching Prisma's own semantics for a bare read — and relations arrive only when you name them. A read that used to return post.author now returns no author key at all: no error, no warning, just less data (ADR-0024). This applies uniformly to findUnique, findMany, and a singleton's get(), under sudo and under a session alike. Foreign-key columns (e.g. authorId) are unaffected and always returned, so a relation stays reachable by id without an include.

    Detect call sites that need updating:

    • Grep for bare reads: context.db.*.find* calls (or a singleton's .get()) with no include and no query argument, whose result is later used to access a relationship field.
    • Grep for resolveOutput hooks on virtual fields that read a relation off item (e.g. item.author, item.posts) — these silently degrade the same way, since a hook's own context.db read is subject to the same rule.

    Migrate by naming the relation explicitly, either via include:

    // Before — relied on the auto-include
    const post = await context.db.post.findUnique({ where: { id } })
    post.author // used to be populated
    
    // After — name it
    const post = await context.db.post.findUnique({
      where: { id },
      include: { author: true },
    })
    post.author // populated

    or via a fragment query:

    const post = await context.db.post.findUnique({
      where: { id },
      query: postWithAuthorFragment,
    })

    A resolveOutput hook that read item.<relation> should instead read through context.db with an explicit include, or its caller should pass one.

    Singleton get() gains caller-include support it never had — it can now be narrowed and widened like any other read:

    const settings = await context.db.settings.get({ include: { homepage: true } })

    Bare reads also stop evaluating operation-level query access on related lists (that walk previously ran for every relation at every level before fetching anything), so an access function relied on for a side effect will no longer fire on a bare read.

    See docs/adr/0024-a-read-with-no-include-fetches-scalars-not-relations.md for the full rationale.

Patch Changes

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

@opensaas/stack-core@0.35.0

Minor Changes

  • #853 d0c94a9 Thanks @borisno2! - This break is silent. A context.db read with no include (and no fragment query) used to auto-include every readable relationship of the list, recursing up to 5 levels deep. It now returns the row's own columns plus its virtual fields only — matching Prisma's own semantics for a bare read — and relations arrive only when you name them. A read that used to return post.author now returns no author key at all: no error, no warning, just less data (ADR-0024). This applies uniformly to findUnique, findMany, and a singleton's get(), under sudo and under a session alike. Foreign-key columns (e.g. authorId) are unaffected and always returned, so a relation stays reachable by id without an include.

    Detect call sites that need updating:

    • Grep for bare reads: context.db.*.find* calls (or a singleton's .get()) with no include and no query argument, whose result is later used to access a relationship field.
    • Grep for resolveOutput hooks on virtual fields that read a relation off item (e.g. item.author, item.posts) — these silently degrade the same way, since a hook's own context.db read is subject to the same rule.

    Migrate by naming the relation explicitly, either via include:

    // Before — relied on the auto-include
    const post = await context.db.post.findUnique({ where: { id } })
    post.author // used to be populated
    
    // After — name it
    const post = await context.db.post.findUnique({
      where: { id },
      include: { author: true },
    })
    post.author // populated

    or via a fragment query:

    const post = await context.db.post.findUnique({
      where: { id },
      query: postWithAuthorFragment,
    })

    A resolveOutput hook that read item.<relation> should instead read through context.db with an explicit include, or its caller should pass one.

    Singleton get() gains caller-include support it never had — it can now be narrowed and widened like any other read:

    const settings = await context.db.settings.get({ include: { homepage: true } })

    Bare reads also stop evaluating operation-level query access on related lists (that walk previously ran for every relation at every level before fetching anything), so an access function relied on for a side effect will no longer fire on a bare read.

    See docs/adr/0024-a-read-with-no-include-fetches-scalars-not-relations.md for the full rationale.

@opensaas/stack-auth@0.35.0

@opensaas/stack-rag@0.35.0

@opensaas/stack-storage@0.35.0

@opensaas/stack-storage-s3@0.35.0

@opensaas/stack-storage-vercel@0.35.0

@opensaas/stack-tiptap@0.35.0

@opensaas/stack-ui@0.35.0

@vercel

vercel Bot commented Jul 31, 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 Jul 31, 2026 11:58pm

@borisno2
borisno2 enabled auto-merge (squash) August 1, 2026 02:37
@borisno2
borisno2 merged commit e0fdfc2 into main Aug 1, 2026
6 checks passed
@borisno2
borisno2 deleted the changeset-release/main branch August 1, 2026 02:50
@github-actions

github-actions Bot commented Aug 1, 2026

Copy link
Copy Markdown
Contributor Author

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

Status Category Percentage Covered / Total
🟢 Lines 92.96% (🎯 65%) 1189 / 1279
🟢 Statements 91.44% (🎯 65%) 1272 / 1391
🟢 Functions 98.03% (🎯 62%) 200 / 204
🟢 Branches 82.43% (🎯 50%) 845 / 1025
File CoverageNo changed files found.
Generated in workflow #1565 for commit 8cc2bd4 by the Vitest Coverage Report Action

@github-actions

github-actions Bot commented Aug 1, 2026

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 #1565 for commit 8cc2bd4 by the Vitest Coverage Report Action

@github-actions

github-actions Bot commented Aug 1, 2026

Copy link
Copy Markdown
Contributor Author

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

Status Category Percentage Covered / Total
🔵 Lines 79.08% 1497 / 1893
🔵 Statements 78.75% 1557 / 1977
🔵 Functions 85.47% 206 / 241
🔵 Branches 67.14% 656 / 977
File CoverageNo changed files found.
Generated in workflow #1565 for commit 8cc2bd4 by the Vitest Coverage Report Action

@github-actions

github-actions Bot commented Aug 1, 2026

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 #1565 for commit 8cc2bd4 by the Vitest Coverage Report Action

@github-actions

github-actions Bot commented Aug 1, 2026

Copy link
Copy Markdown
Contributor Author

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

Status Category Percentage Covered / Total
🔵 Lines 78.57% 220 / 280
🔵 Statements 80.06% 245 / 306
🔵 Functions 86.07% 68 / 79
🔵 Branches 75.88% 214 / 282
File CoverageNo changed files found.
Generated in workflow #1565 for commit 8cc2bd4 by the Vitest Coverage Report Action

@github-actions

github-actions Bot commented Aug 1, 2026

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 #1565 for commit 8cc2bd4 by the Vitest Coverage Report Action

@github-actions

github-actions Bot commented Aug 1, 2026

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 #1565 for commit 8cc2bd4 by the Vitest Coverage Report Action

@github-actions

github-actions Bot commented Aug 1, 2026

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 #1565 for commit 8cc2bd4 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