Skip to content

Releases: MetaMask/superstruct

3.1.0

27 Jun 17:15
3cd308f
Compare
Choose a tag to compare

Added

  • Newly exports the following types: Assign, If, IsUnion, ObjectType, PartialObjectSchema, StructSchema, TupleSchema (#25)

3.0.0

03 Jun 20:19
4a2a7b0
Compare
Choose a tag to compare

Added

  • Newly exports the following types: AnyStruct, EnumSchema, InferStructTuple, IsExactMatch, IsMatch, IsRecord, IsTuple, ObjectSchema, OmitBy, Optionalize, PickBy, Simplify, UnionToIntersection (#18).

Fixed

  • BREAKING: Expose separate build entry points and type declarations for CommonJS and ESM via package manifest exports. (#18)

2.0.0

08 Mar 11:38
106ccc8
Compare
Choose a tag to compare

Changed

  • Prepare package for releasing under @metamask organisation (#1, #3, #4, #5, #6, #7, #8, #12, #15)
    • The package name is now @metamask/superstruct.
    • The changelog file has been renamed to CHANGELOG.md, and the format has changed to fit MetaMask's changelog style.

Fixed

  • BREAKING: Expose CommonJS and ESM builds via package manifest exports (#5)
    • It's no longer possible to import files from the dist folder directly.