Repository navigation
chore(example): migrate to Effect v4 - #21
Merged
Merged
Conversation
- drop @effect/platform, use effect/http and effect/http-api - bump effect and @effect/platform-bun to 4.0.0 - use @spiko-tech/effect-react-query 2.0 - update mutation error handlers to v4 error types
Contributor
There was a problem hiding this comment.
Copilot review overview
🟢 Approval recommended
The migration is internally consistent and the stated build and smoke-test coverage validates the affected paths.
Review effort: Balanced
Findings: None
What changed in this PR
Migrates the example application to Effect v4 and effect-react-query 2.0.
Changes:
- Updates Effect dependencies, imports, schemas, and HTTP APIs.
- Migrates backend routing, CORS, and error handling.
- Updates configuration, lockfile, and frontend server logging.
| File | Description |
|---|---|
example/tsconfig.json |
Removes obsolete baseUrl. |
example/src/frontend.ts |
Logs the frontend server URL. |
example/src/client.ts |
Uses Effect v4 HTTP imports. |
example/src/backend.ts |
Migrates server and router composition. |
example/src/App.tsx |
Handles Effect v4 client errors. |
example/src/api.ts |
Migrates endpoint and schema declarations. |
example/package.json |
Updates and adds required dependencies. |
example/bun.lock |
Locks the migrated dependency graph. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
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.
Migrates
example/to Effect v4 and@spiko-tech/effect-react-query2.0.