fix(deps)!: upgrade to effect 4.0.0-beta.104 - #1124
Open
Mkassabov wants to merge 2 commits into
Open
Conversation
The peer range `>=4.0.0-beta.102 || >=4.0.0` admitted beta.104, which renamed `Schema.TaggedErrorClass` to `Schema.TaggedError` — so a fresh install could resolve to a version where the CLI died at import with `TypeError: Schema.TaggedErrorClass is not a function`. Migrates the four APIs beta.104 removed: - `Schema.TaggedErrorClass` -> `Schema.TaggedError` - `Command.withHidden` -> `Command.unlisted` - `HttpPlatform` gained required `platform` + `compression` members - `Sse.decode` now surfaces `SseError`, mapped through `toAiError` Also adds `@effect/sql-mysql2` and `@effect/sql-sqlite-do` to `minimumReleaseAgeExcludes`; `effect` and the other `@effect/sql-*` packages were already listed. BREAKING CHANGE: effect >=4.0.0-beta.104 is now the minimum peer.
Mkassabov
force-pushed
the
chore/effect-beta-104
branch
from
August 6, 2026 17:23
1c76c06 to
ab635eb
Compare
Pins the submodules to the merged effect beta.104 migrations: - distilled -> 9fe73ad02 (alchemy-run/distilled#431, v1.0.0-rc.3) - cloudflare-tools -> 0fb3689 (alchemy-run/cloudflare-tools#111)
Mkassabov
force-pushed
the
chore/effect-beta-104
branch
from
August 6, 2026 17:43
ab635eb to
386f8d9
Compare
sam-goodwin
approved these changes
Aug 6, 2026
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.
The peer range
>=4.0.0-beta.102 || >=4.0.0admitted effect beta.104, which renamedSchema.TaggedErrorClasstoSchema.TaggedError. A fresh install could therefore resolve to a version where the CLI died at import:This migrates to beta.104 and raises the floor so the range can no longer resolve to an incompatible version.
API changes
beta.104 removed four things we used:
HttpPlatformgained two required members, so the worker stubs now declare them (matching effect's own web layer, and what workerd'sCompressionStreamsupports):const HttpPlatformStub = Layer.succeed(HttpPlatform.HttpPlatform, { + platform: "web", + compression: HttpPlatform.makeCompressionWeb({ + algorithms: ["gzip", "deflate"], + transform: (algorithm) => HttpPlatform.compressionTransformWeb(algorithm), + }), fileResponse: () => Effect.die("HttpPlatform.fileResponse not supported"),And
Sse.decodenow surfacesSseError, which was escaping the declared error channel:Stream.catchTag("Retry", (retry) => Stream.die(retry)), +Stream.catchTag("SseError", (cause) => + Stream.fail(toAiError(cause, "streamText")), +),Also
@effect/sql-mysql2and@effect/sql-sqlite-doare added tominimumReleaseAgeExcludes—effectand the other@effect/sql-*packages were already listed, so their absence was an oversight.Submodules are pinned to the merged migrations: distilled alchemy-run/distilled#431 (v1.0.0-rc.3), cloudflare-tools alchemy-run/cloudflare-tools#111.
Breaking
effect >=4.0.0-beta.104is now the minimum peer. Consumers on beta.102/103 must upgrade in lockstep.