Skip to content

Releases: MetaMask/superstruct

3.4.0

Choose a tag to compare

@github-actions github-actions released this 15 Jul 11:01
0b70784

Added

  • Add sensitive struct for redacting secret values from validation errors (#41)

3.3.0

Choose a tag to compare

@github-actions github-actions released this 02 Jul 10:04
4cb082d

Added

  • Add exactOptional support in type struct (#38)

3.2.1

Choose a tag to compare

@github-actions github-actions released this 03 Apr 16:04
96cacfb

Fixed

  • Fix ExactOptionalize changing never to undefined (#35)

3.2.0

Choose a tag to compare

@github-actions github-actions released this 02 Apr 16:36
5ebc3db

Added

  • Add exactOptional struct (#32)
    • This enables adding strictly optional fields to object structs when paired with TypeScript's
      exactOptionalPropertyTypes.

3.1.0

Choose a tag to compare

@github-actions github-actions released this 27 Jun 17:15
3cd308f

Added

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

3.0.0

Choose a tag to compare

@github-actions github-actions released this 03 Jun 20:19
4a2a7b0

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

Choose a tag to compare

@github-actions github-actions released this 08 Mar 11:38
106ccc8

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.