mirror of
https://github.com/Effect-TS/effect.git
synced 2026-11-22 03:25:35 +08:00
37 lines
1.9 KiB
YAML
37 lines
1.9 KiB
YAML
"effect/Data#array":
|
|
replacement: "none"
|
|
note: "Use a normal copied array such as [...values]; v4 compares plain arrays structurally."
|
|
"effect/Data#case":
|
|
replacement: "none"
|
|
note: "Use an ordinary typed object or identity constructor; plain objects are structurally equal in v4."
|
|
"effect/Data#Case":
|
|
replacement: "Data.TaggedEnum.ConstructorFrom"
|
|
note: "The Case namespace was removed; its constructor helper moved under TaggedEnum."
|
|
"effect/Data#Case.Constructor":
|
|
replacement: "Data.TaggedEnum.ConstructorFrom"
|
|
note: "Use the v4 tagged-enum constructor-function type."
|
|
"effect/Data#struct":
|
|
replacement: "none"
|
|
note: "Use an ordinary object or {...value}; plain objects are structurally equal in v4."
|
|
"effect/Data#Structural":
|
|
replacement: "Data.Class"
|
|
note: "Extend Data.Class instead of the removed Structural constructor alias."
|
|
"effect/Data#TaggedEnum":
|
|
replacement: "Data.TaggedEnum"
|
|
note: "Still exported with the same record-to-discriminated-union role."
|
|
"effect/Data#TaggedEnum.Constructor":
|
|
replacement: "Data.TaggedEnum.Constructor"
|
|
note: "Still the type of the object Data.taggedEnum returns for a non-generic enum, now a named intersection instead of a flattened object type. $match no longer rejects extra case keys at compile time. Annotate constructors for generic enums with Data.TaggedEnum.GenericConstructor."
|
|
"effect/Data#TaggedEnum.GenericMatchers":
|
|
replacement: "Data.TaggedEnum.GenericMatchers"
|
|
note: "Still exported with $is and $match helpers."
|
|
"effect/Data#tuple":
|
|
replacement: "none"
|
|
note: "Use a normal tuple literal; plain tuples are structurally equal in v4."
|
|
"effect/Data#unsafeArray":
|
|
replacement: "none"
|
|
note: "Use the array directly; v4 no longer needs prototype mutation for structural equality."
|
|
"effect/Data#unsafeStruct":
|
|
replacement: "none"
|
|
note: "Use the object directly; v4 no longer needs prototype mutation for structural equality."
|