Releases: MetaMask/superstruct
Releases · MetaMask/superstruct
Release list
3.4.0
3.3.0
Added
- Add
exactOptionalsupport intypestruct (#38)
3.2.1
Fixed
- Fix
ExactOptionalizechangingnevertoundefined(#35)
3.2.0
Added
- Add
exactOptionalstruct (#32)- This enables adding strictly optional fields to
objectstructs when paired with TypeScript's
exactOptionalPropertyTypes.
- This enables adding strictly optional fields to
3.1.0
Added
- Newly exports the following types:
Assign,If,IsUnion,ObjectType,PartialObjectSchema,StructSchema,TupleSchema(#25)
3.0.0
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
Changed
- Prepare package for releasing under
@metamaskorganisation (#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.
- The package name is now
Fixed
- BREAKING: Expose CommonJS and ESM builds via package manifest
exports(#5)- It's no longer possible to import files from the
distfolder directly.
- It's no longer possible to import files from the