Conversation
Set effect, @effect/platform-node, @effect/vitest, @effect/sql-pg to 4.0.0-beta.78 in all packages; bump effect/@effect/platform-node peer ranges to ^4.0.0-beta.78. Remove @effect/platform, @effect/cli, @effect/sql (merged into core effect in v4). Bump @effect/language-service to ^0.86.2. Per-package source migration follows; tsc -b stays red until it completes. Generated with AI Co-Authored-By: AI <ai@example.com>
Context.Tag→Context.Service (+ Tag.Service type → ["Service"]); TaggedError→ TaggedErrorClass; Schema.Defect→Schema.Defect(); Schema.transform→decodeTo+ SchemaTransformation.transform (Schema.Schema<A,E>→Schema.Codec<A,E>); Layer.scoped→Layer.effect; Stream.asyncPush→Stream.callback (Queue emit). Tests: it.scoped→it.effect, Stream.runCollect now returns Array, Chunk.unsafeGet →getUnsafe, Schema.Schema.Encoded→Schema.Codec.Encoded. Generated with AI Co-Authored-By: AI <ai@example.com>
TaggedError→TaggedErrorClass; Schema.Defect→Schema.Defect(); Context.Tag→Context.Service; Layer.scoped→Layer.effect. Generated with AI Co-Authored-By: AI <ai@example.com>
Layer.scoped→Layer.effect. Generated with AI Co-Authored-By: AI <ai@example.com>
Doc comment it.scoped→it.effect; no API changes (Layer/ManagedRuntime stable). Generated with AI Co-Authored-By: AI <ai@example.com>
Context.Tag→Context.Service; FileSystem from effect barrel; optionalWith(default) →withDecodingDefaultType+withConstructorDefault; Schema.Schema.Any→Schema.Top. SchemaAST walkers updated for v4: TypeLiteral→Objects, *Keyword→bare tags, TupleType→Arrays (rest holds ASTs), ps.isOptional→ps.type.context.isOptional, field annotations on ps.type.annotations. Tests: .annotations→.annotate, NodeContext→NodeServices, Effect.either→Effect.result (Left→Failure). Generated with AI Co-Authored-By: AI <ai@example.com>
CLI: @effect/cli→effect/unstable/cli, Options→Flag (text→string), Command.run
now returns the effect directly (reads args from Stdio; config {version} only),
provided via NodeServices.layer. NodeContext→NodeServices. Either→Result
(no Result.try → inline try/catch; onLeft/onRight→onFailure/onSuccess).
TaggedError→TaggedErrorClass; Literal(multi)→Literals; Union(multi)→Union([]);
Schema.Schema.Any→Schema.Top. Codegen templates now emit v4 Schema
(transform→decodeTo+SchemaTransformation.transform, compose→pipe(decodeTo));
unit-test assertions updated to match. Tests: it.scoped→it.effect.
Generated with AI
Co-Authored-By: AI <ai@example.com>
Either→Result-free restructure: Schema.EitherFromUnion → plain Schema.Union + branch on status discriminant (behavior preserved). decodeUnknown→ decodeUnknownEffect; .annotations→.annotate; catchTag ParseError→SchemaError, NoSuchElementException→NoSuchElementError; Effect.zipRight→andThen, Effect.flatten→flatMap(fromOption); Option.fromNullable→fromNullishOr; FileSystem/Path from effect barrel. Tests: it.scoped→it.effect, NodeContext→NodeServices. Generated with AI Co-Authored-By: AI <ai@example.com>
The shared-transform-emitted-once assertion matched the old Schema.transform string; update to the v4 Schema.Unknown.pipe(Schema.decodeTo form. Generated with AI Co-Authored-By: AI <ai@example.com>
jbmusso
added a commit
that referenced
this pull request
Jun 4, 2026
Generated with AI Co-Authored-By: AI <ai@example.com>
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.
Summary
Migrates all
@evryg/effect-*packages in this monorepo from Effect v3 to Effect v4 (beta).Changes
4.0.0-beta.78) across the monorepo, updating shared dependencies and tooling config.@evryg/effect-neo4jto Effect v4.@evryg/effect-testcontainersto Effect v4.@evryg/effect-testcontainers-neo4jto Effect v4.@evryg/effect-vitest-neo4jto Effect v4.@evryg/effect-neo4j-schemato Effect v4.@evryg/effect-cypher-codegento Effect v4 (including a fix to the barrel test regex for the v4 generated transform).@evryg/effect-integresqlto Effect v4.Notes
pnpm-lock.yamlis regenerated to resolve the v4 beta dependency tree.