Skip to content

Update Effect dependencies and fix error handling in schema - #34

Merged
julia-script merged 1 commit into
mainfrom
claude/effect-package-beta-update-h3ese3
Jul 29, 2026
Merged

Update Effect dependencies and fix error handling in schema#34
julia-script merged 1 commit into
mainfrom
claude/effect-package-beta-update-h3ese3

Conversation

@julia-script

Copy link
Copy Markdown
Owner

Summary

This PR updates Effect-related dependencies to version 4.0.0-beta.102 and fixes error handling in the EntriesFromRecord schema to align with the updated API.

Key Changes

  • Dependency Updates: Upgraded effect, @effect/opentelemetry, and @effect/platform-node from 4.0.0-beta.66 to 4.0.0-beta.102
  • Error Handling Fix: Updated error propagation in EntriesFromRecord to use decodedKey.failure.issue and encodedKey.failure.issue instead of accessing failure directly, reflecting changes in the Effect library's error structure

Implementation Details

The changes in packages/ethereum-types/src/schemas/base-types.ts address a breaking change in how the Effect library structures failure results. The failure property now wraps the actual error in an issue field, requiring consumers to access failure.issue to get the underlying error value when calling Effect.fail().

https://claude.ai/code/session_017dgyyEPVeFEH9QthPgtq8Y

Bump effect, @effect/opentelemetry, and @effect/platform-node from
4.0.0-beta.66 to 4.0.0-beta.102 in the pnpm catalog.

Adapt EntriesFromRecord transforms in ethereum-types: Schema.decodeResult/
encodeResult now fail with SchemaError wrapping the Issue, so unwrap
.issue before failing the transform.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017dgyyEPVeFEH9QthPgtq8Y
@cursor

cursor Bot commented Jul 29, 2026

Copy link
Copy Markdown

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

@julia-script
julia-script merged commit 381b062 into main Jul 29, 2026
2 checks passed
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.

2 participants