Version Packages - #854
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
Author
Coverage Report for Core Package Coverage (./packages/core)
File CoverageNo changed files found. |
Contributor
Author
Coverage Report for UI Package Coverage (./packages/ui)
File CoverageNo changed files found. |
Contributor
Author
Coverage Report for CLI Package Coverage (./packages/cli)
File CoverageNo changed files found. |
Contributor
Author
Coverage Report for Auth Package Coverage (./packages/auth)
File CoverageNo changed files found. |
Contributor
Author
Coverage Report for Storage Package Coverage (./packages/storage)
File CoverageNo changed files found. |
Contributor
Author
Coverage Report for RAG Package Coverage (./packages/rag)
File CoverageNo changed files found. |
Contributor
Author
Coverage Report for Storage S3 Package Coverage (./packages/storage-s3)
File CoverageNo changed files found. |
Contributor
Author
Coverage Report for Storage Vercel Package Coverage (./packages/storage-vercel)
File CoverageNo changed files found. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
d0c94a9Thanks @borisno2! - This break is silent. Acontext.dbread with noinclude(and no fragmentquery) 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 returnpost.authornow returns noauthorkey at all: no error, no warning, just less data (ADR-0024). This applies uniformly tofindUnique,findMany, and a singleton'sget(), 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 aninclude.Detect call sites that need updating:
context.db.*.find*calls (or a singleton's.get()) with noincludeand noqueryargument, whose result is later used to access a relationship field.resolveOutputhooks onvirtualfields that read a relation offitem(e.g.item.author,item.posts) — these silently degrade the same way, since a hook's owncontext.dbread is subject to the same rule.Migrate by naming the relation explicitly, either via
include:or via a fragment
query:A
resolveOutputhook that readitem.<relation>should instead read throughcontext.dbwith an explicitinclude, or its caller should pass one.Singleton
get()gains caller-includesupport it never had — it can now be narrowed and widened like any other read:Bare reads also stop evaluating operation-level
queryaccess 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.mdfor the full rationale.Patch Changes
d0c94a9]:@opensaas/stack-core@0.35.0
Minor Changes
#853
d0c94a9Thanks @borisno2! - This break is silent. Acontext.dbread with noinclude(and no fragmentquery) 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 returnpost.authornow returns noauthorkey at all: no error, no warning, just less data (ADR-0024). This applies uniformly tofindUnique,findMany, and a singleton'sget(), 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 aninclude.Detect call sites that need updating:
context.db.*.find*calls (or a singleton's.get()) with noincludeand noqueryargument, whose result is later used to access a relationship field.resolveOutputhooks onvirtualfields that read a relation offitem(e.g.item.author,item.posts) — these silently degrade the same way, since a hook's owncontext.dbread is subject to the same rule.Migrate by naming the relation explicitly, either via
include:or via a fragment
query:A
resolveOutputhook that readitem.<relation>should instead read throughcontext.dbwith an explicitinclude, or its caller should pass one.Singleton
get()gains caller-includesupport it never had — it can now be narrowed and widened like any other read:Bare reads also stop evaluating operation-level
queryaccess 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.mdfor 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