Repository navigation
Report missed pipeable calls used as method receivers - #777
Merged
mattiamanzati merged 3 commits intoOct 6, 2026
Merged
Conversation
`pipingFlows` queued only the argument of a single-argument call, so a call
used as a method receiver, as in `Schema.NullishOr(Inner).annotations({...})`,
and everything nested inside it was never visited. `missedPipeableOpportunity`
now reports those calls on Effect v3 and v4.
Refs Effect-TS#776
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
🦋 Changeset detectedLatest commit: 527d24b The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
CasperEngl
marked this pull request as ready for review
October 6, 2026 13:09
Contributor
Author
|
@mattiamanzati this fixes #776. It's a one-line traversal change in |
Contributor
|
Thanks for the PR! |
Merged
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.
missedPipeableOpportunitynow reports calls whose result is used as a method receiver, and the calls nested inside them, on Effect v3 and v4. Fixes #776flowchart LR subgraph Before A1["Schema.NullishOr(Inner).annotations({...})"] --> B1["only the argument {...} is visited ❌"] end subgraph After A2["Schema.NullishOr(Inner).annotations({...})"] --> B2["the argument and the callee are visited ✅"] B2 --> C2["Schema.NullishOr(Inner) reported as Inner.pipe(...)"] endTypeParser.pipingFlowsqueued only the argument of a single-argument call. ForX.annotations({...})the calleeX.annotationswas never traversed, soXand everything nested inside it was skipped..pipe(...)calls already traverse their arguments; single-argument calls now traverse their callee the same way:missedPipeableOpportunity_receiver.tsfixture in both harnesses (.annotationson v3,.annotateon v4)pipingFlowsnow also see calls in these positions; none of their existing snapshots changedpnpm check· ✅pnpm test· ✅pnpm test:v4· ✅pnpm codegenandpnpm lint-fix(no changes)pipe, React hooks). They change what the rule reports, so they're left for a separate discussion.🤖 Generated with Claude Code