Skip to content

fix(query): keep tag-aware guard on projectComputed only - #847

Merged
omegent-app[bot] merged 1 commit into
mainfrom
fix/projectable-guard-project-compat
Aug 4, 2026
Merged

fix(query): keep tag-aware guard on projectComputed only#847
omegent-app[bot] merged 1 commit into
mainfrom
fix/projectable-guard-project-compat

Conversation

@omegent-app

@omegent-app omegent-app Bot commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

Why

4.0.0-beta.306 applied tag-aware ProjectableFromDomain to both project and projectComputed. project() is widely used for view DTOs that reshape domain fields (toEncoded(ViewUnion), extra view-only keys, narrowed package views). That broke typecheck in macs-scanner on bump.

What

  • project() uses a loose ProjectableKeyGuard (key present on some domain member).
  • projectComputed keeps tag-aware ProjectableFromDomain (the MACS-SCANNER-API-KS guard).

Remarks

Follow-up to #845 / #846.

Co-authored-by: @patroza


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need. Autofix is disabled.

`project()` is used for view DTOs that intentionally reshape domain fields.
Tag-scoped ProjectableFromDomain stays on projectComputed (overview path).

Co-authored-by: Patrick Roza <42661+patroza@users.noreply.github.com>
@pkg-pr-new

pkg-pr-new Bot commented Aug 4, 2026

Copy link
Copy Markdown

Open in StackBlitz

@effect-app/cli

npm i https://pkg.pr.new/effect-app/libs/@effect-app/cli@847

effect-app

npm i https://pkg.pr.new/effect-app/libs/effect-app@847

@effect-app/eslint-codegen-model

npm i https://pkg.pr.new/effect-app/libs/@effect-app/eslint-codegen-model@847

@effect-app/eslint-shared-config

npm i https://pkg.pr.new/effect-app/libs/@effect-app/eslint-shared-config@847

@effect-app/infra

npm i https://pkg.pr.new/effect-app/libs/@effect-app/infra@847

@effect-app/vue

npm i https://pkg.pr.new/effect-app/libs/@effect-app/vue@847

@effect-app/vue-components

npm i https://pkg.pr.new/effect-app/libs/@effect-app/vue-components@847

commit: 845ebe5

@omegent-app
omegent-app Bot merged commit 40585ca into main Aug 4, 2026
6 checks passed
@omegent-app
omegent-app Bot deleted the fix/projectable-guard-project-compat branch August 4, 2026 10:34
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.

0 participants