Closed devmatteini closed 6 months ago
Schema 0.64.11 -> 0.66.14
After running the codemod schema-0.65, and using an import like
schema-0.65
import { formatError } from "@effect/schema/TreeFormatter"
is not transformed into
import { formatErrorSync } from "@effect/schema/TreeFormatter"
This bug leads to use the new effectful formatError that breaks the existing code that was expecting a string instead of an Effect
formatError
string
Effect
Schema 0.64
import { formatError } from "@effect/schema/TreeFormatter" formatError(ParseResult.parseError(...))
Schema 0.65+
import { formatErrorSync } from "@effect/schema/TreeFormatter" formatErrorSync(ParseResult.parseError(...))
No response
What version of Effect is running?
Schema 0.64.11 -> 0.66.14
What steps can reproduce the bug?
After running the codemod
schema-0.65
, and using an import likeis not transformed into
This bug leads to use the new effectful
formatError
that breaks the existing code that was expecting astring
instead of anEffect
What is the expected behavior?
Schema 0.64
Schema 0.65+
What do you see instead?
Additional information
No response