| 1 | "effect/ParseResult#Forbidden": |
| 2 | replacement: "SchemaIssue.Forbidden" |
| 3 | note: "Forbidden failures use the v4 SchemaIssue class; its constructor takes issue annotations plus optional input and parse options, retaining input only when reportInput is true." |
| 4 | "effect/ParseResult#ArrayFormatter": |
| 5 | replacement: "SchemaIssue.makeFormatterStandardSchemaV1" |
| 6 | note: "Format error.issue with the Standard Schema formatter." |
| 7 | example: "SchemaIssue.makeFormatterStandardSchemaV1()(error.issue).issues" |
| 8 | "effect/ParseResult#ArrayFormatterIssue": |
| 9 | replacement: "StandardSchemaV1.FailureResult[\"issues\"][number]" |
| 10 | note: "Use the Standard Schema issue shape returned by makeFormatterStandardSchemaV1." |
| 11 | "effect/ParseResult#Composite": |
| 12 | replacement: "SchemaIssue.Composite" |
| 13 | note: "Composite parse failures moved to SchemaIssue. The v4 constructor takes the failing AST and an array of nested issues; input is retained only when reportInput is enabled." |
| 14 | "effect/ParseResult#DeclarationDecodeUnknown": |
| 15 | replacement: "SchemaGetter.Getter" |
| 16 | note: "Custom declaration decoding now uses SchemaGetter values and Schema.declare annotations. Getter is a tagged union, not a constructor; use transformOptionalEffect for an Option-to-Effect decoder. Use standalone SchemaGetter.run, map, and compose instead of instance methods." |
| 17 | "effect/ParseResult#decodeEither": |
| 18 | replacement: "Schema.decodeExit" |
| 19 | note: "Either parsing was replaced by Exit parsing." |
| 20 | "effect/ParseResult#decodePromise": |
| 21 | replacement: "Schema.decodePromise" |
| 22 | note: "Parsing helpers moved onto Schema and now fail with SchemaError." |
| 23 | "effect/ParseResult#decodeSync": |
| 24 | replacement: "Schema.decodeSync" |
| 25 | note: "Parsing helpers moved onto Schema and now throw SchemaError." |
| 26 | "effect/ParseResult#DecodeUnknown": |
| 27 | replacement: "Schema.decodeUnknownEffect" |
| 28 | note: "Use the function type returned by Schema.decodeUnknownEffect." |
| 29 | "effect/ParseResult#decodeUnknownEither": |
| 30 | replacement: "Schema.decodeUnknownExit" |
| 31 | note: "Either parsing was replaced by Exit parsing." |
| 32 | "effect/ParseResult#decodeUnknownPromise": |
| 33 | replacement: "Schema.decodeUnknownPromise" |
| 34 | note: "Parsing helpers moved onto Schema and now reject with SchemaError." |
| 35 | "effect/ParseResult#decodeUnknownSync": |
| 36 | replacement: "Schema.decodeUnknownSync" |
| 37 | note: "Parsing helpers moved onto Schema and now throw SchemaError." |
| 38 | "effect/ParseResult#eitherOrUndefined": |
| 39 | replacement: "none" |
| 40 | note: "This ParseResult internal optimization was removed; use Effect, Exit, Option, or Result combinators directly." |
| 41 | "effect/ParseResult#encodeEither": |
| 42 | replacement: "Schema.encodeExit" |
| 43 | note: "Either encoding was replaced by Exit encoding." |
| 44 | "effect/ParseResult#encodeSync": |
| 45 | replacement: "Schema.encodeSync" |
| 46 | note: "Encoding helpers moved onto Schema and now throw SchemaError." |
| 47 | "effect/ParseResult#encodeUnknownEither": |
| 48 | replacement: "Schema.encodeUnknownExit" |
| 49 | note: "Either encoding was replaced by Exit encoding." |
| 50 | "effect/ParseResult#encodeUnknownSync": |
| 51 | replacement: "Schema.encodeUnknownSync" |
| 52 | note: "Encoding helpers moved onto Schema and now throw SchemaError." |
| 53 | "effect/ParseResult#fail": |
| 54 | replacement: "Effect.fail" |
| 55 | note: "Schema transformations now use Effect and fail with SchemaIssue.Issue." |
| 56 | "effect/ParseResult#flatMap": |
| 57 | replacement: "Effect.flatMap" |
| 58 | note: "Schema transformations now use Effect combinators." |
| 59 | "effect/ParseResult#isComposite": |
| 60 | replacement: "SchemaIssue.Composite" |
| 61 | note: "Narrow with instanceof SchemaIssue.Composite or inspect the issue _tag." |
| 62 | "effect/ParseResult#isParseError": |
| 63 | replacement: "Schema.isSchemaError" |
| 64 | note: "ParseError was replaced by SchemaError." |
| 65 | "effect/ParseResult#map": |
| 66 | replacement: "Effect.map" |
| 67 | note: "Schema transformations now use Effect combinators." |
| 68 | "effect/ParseResult#Missing": |
| 69 | replacement: "SchemaIssue.MissingKey" |
| 70 | note: "Missing-key failures use the v4 SchemaIssue class." |
| 71 | "effect/ParseResult#orElse": |
| 72 | replacement: "Effect.orElse" |
| 73 | note: "Schema transformations now use Effect combinators." |
| 74 | "effect/ParseResult#Pointer": |
| 75 | replacement: "SchemaIssue.Pointer" |
| 76 | note: "Path-qualified failures moved to SchemaIssue. Construct them with the property path and nested issue; rejected input belongs to the nested issue when reportInput is enabled." |
| 77 | "effect/ParseResult#parseError": |
| 78 | replacement: "Schema.SchemaError" |
| 79 | note: "Construct a SchemaError from a SchemaIssue.Issue." |
| 80 | example: "new Schema.SchemaError(issue)" |
| 81 | "effect/ParseResult#ParseErrorTypeId": |
| 82 | replacement: "none" |
| 83 | note: "The public symbol was removed; use Schema.isSchemaError for runtime narrowing." |
| 84 | "effect/ParseResult#ParseIssue": |
| 85 | replacement: "SchemaIssue.Issue" |
| 86 | note: "The structured parse issue union moved to SchemaIssue." |
| 87 | "effect/ParseResult#ParseResultFormatter": |
| 88 | replacement: "SchemaIssue.Formatter" |
| 89 | note: "Issue formatter types moved to SchemaIssue." |
| 90 | "effect/ParseResult#Refinement": |
| 91 | replacement: "SchemaIssue.Filter" |
| 92 | note: "Refinement failures are represented as filter issues in v4." |
| 93 | "effect/ParseResult#SingleOrNonEmpty": |
| 94 | replacement: "ReadonlyArray" |
| 95 | note: "This ParseResult helper type was removed; use an explicit value-or-non-empty-array type when still needed." |
| 96 | "effect/ParseResult#succeed": |
| 97 | replacement: "Effect.succeed" |
| 98 | note: "Schema transformations now use Effect." |
| 99 | "effect/ParseResult#TreeFormatter": |
| 100 | replacement: "SchemaIssue.defaultFormatter" |
| 101 | note: "Use the default SchemaIssue string formatter." |
| 102 | example: "SchemaIssue.defaultFormatter(issue)" |
| 103 | "effect/ParseResult#Transformation": |
| 104 | replacement: "SchemaIssue.Encoding" |
| 105 | note: "Transformation-stage failures are Encoding issues in v4. They retain the failing AST and nested issue; the old Encoded, Transformation, and Type kind discriminator was removed." |
| 106 | "effect/ParseResult#try": |
| 107 | replacement: "Effect.try" |
| 108 | note: "Schema transformations now use Effect and map thrown errors to SchemaIssue values." |
| 109 | "effect/ParseResult#Type": |
| 110 | replacement: "SchemaIssue.InvalidType" |
| 111 | note: "Type mismatches use the v4 SchemaIssue class." |
| 112 | "effect/ParseResult#Unexpected": |
| 113 | replacement: "SchemaIssue.UnexpectedKey" |
| 114 | note: "Unexpected object keys use the v4 SchemaIssue class." |
| 115 | "effect/ParseResult#validate": |
| 116 | replacement: "Schema.decodeEffect + Schema.toType" |
| 117 | note: "Validation-only parsers were removed; decode the type-side schema instead." |
| 118 | example: "Schema.decodeEffect(Schema.toType(schema))" |
| 119 | "effect/ParseResult#validateEither": |
| 120 | replacement: "Schema.decodeExit + Schema.toType" |
| 121 | note: "Validation-only parsers were removed; decode the type-side schema instead." |
| 122 | example: "Schema.decodeExit(Schema.toType(schema))" |
| 123 | "effect/ParseResult#validateOption": |
| 124 | replacement: "Schema.decodeOption + Schema.toType" |
| 125 | note: "Validation-only parsers were removed; decode the type-side schema instead." |
| 126 | example: "Schema.decodeOption(Schema.toType(schema))" |
| 127 | "effect/ParseResult#validatePromise": |
| 128 | replacement: "Schema.decodePromise + Schema.toType" |
| 129 | note: "Validation-only parsers were removed; decode the type-side schema instead." |
| 130 | example: "Schema.decodePromise(Schema.toType(schema))" |
| 131 | "effect/ParseResult#validateSync": |
| 132 | replacement: "Schema.decodeSync + Schema.toType" |
| 133 | note: "Validation-only parsers were removed; decode the type-side schema instead." |
| 134 | example: "Schema.decodeSync(Schema.toType(schema))" |