Skip to content

fix(effect)!: migrate interop bridges to Effect 4 - #341

Merged
btravers merged 2 commits into
mainfrom
dependabot/npm_and_yarn/effect-4.0.1
Oct 17, 2026
Merged

btravers merged 2 commits into
mainfrom
dependabot/npm_and_yarn/effect-4.0.1

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

Migrate @unthrown/effect to Effect 4.0.1. The dependency update previously broke typecheck and 13 bridge tests because Effect 4 removed Either and changed Cause extraction.

  • Replace toEither / fromEither with toResult / fromResult, using Effect's two-channel Result. toResult still requires onDefect.
  • Read flattened causes with Cause.findDefect / Cause.findError, preserving defect dominance, interruptions, empty causes and undefined payloads.
  • Require effect@^4.0.1 and Node ^20.19.0 || >=22.12.0 so the CommonJS entry can load Effect's ESM distribution.
  • Include migration guidance and a major changeset. Applications staying on Effect 3 should keep @unthrown/effect 5.x; the existing fixed version group moves together.

Validation: all six local gates pass, including 1,109 tests and the documentation build. All six bridges were exercised through built ESM and CJS entries on exact Node 20.19.0 and 22.12.0. Inferred consumer exports emit declarations under TypeScript 6 for both module formats. The Effect bridge has 100% coverage.

@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Oct 13, 2026
@coderabbitai

coderabbitai Bot commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration
  • Configuration used: Repository: btravstack/unthrown/.coderabbit.yaml
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: e4cc9067-1a58-4515-b25e-3323a148d264

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@dependabot
dependabot Bot force-pushed the dependabot/npm_and_yarn/effect-4.0.1 branch 2 times, most recently from 09525eb to c149158 Compare October 13, 2026 06:04
@btravers btravers changed the title chore(deps): bump effect from 3.22.2 to 4.0.1 fix(effect)!: migrate interop bridges to Effect 4 Oct 17, 2026
dependabot Bot and others added 2 commits October 17, 2026 22:02
Bumps [effect](https://github.com/Effect-TS/effect/tree/HEAD/packages/effect) from 3.22.2 to 4.0.1.
- [Release notes](https://github.com/Effect-TS/effect/releases)
- [Changelog](https://github.com/Effect-TS/effect/blob/main/packages/effect/CHANGELOG.md)
- [Commits](https://github.com/Effect-TS/effect/commits/effect@4.0.1/packages/effect)

---
updated-dependencies:
- dependency-name: effect
  dependency-version: 4.0.1
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@btravers
btravers force-pushed the dependabot/npm_and_yarn/effect-4.0.1 branch from fb76f58 to 85212c6 Compare October 17, 2026 20:04
@btravers
btravers merged commit 7211584 into main Oct 17, 2026
15 checks passed
@btravers
btravers deleted the dependabot/npm_and_yarn/effect-4.0.1 branch October 17, 2026 20:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant