From a0568b3fdda031285939d7005121d0c5ee5ab8ea Mon Sep 17 00:00:00 2001 From: Jongsun Suh Date: Wed, 29 May 2024 18:39:43 -0400 Subject: [PATCH 1/3] Initialize release 3.0.0 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 842da800..501b9177 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@metamask/superstruct", - "version": "2.0.0", + "version": "3.0.0", "description": "A simple and composable way to validate data in JavaScript (and TypeScript).", "keywords": [ "api", From b1c820d34615bcc7316b2a0164d2066069806e65 Mon Sep 17 00:00:00 2001 From: Jongsun Suh Date: Wed, 29 May 2024 18:46:23 -0400 Subject: [PATCH 2/3] Update changelog --- CHANGELOG.md | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e2415815..3d132a8f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,9 +7,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [3.0.0] + ### Added -- Newly exports the following types: `AnyStruct`, `EnumSchema`, `InferStructTuple`, `IsExactMatch`, `IsMatch`, `IsRecord`, `IsTuple`, `ObjectSchema`, `OmitBy`, `Optionalize`, `PickBy`, `Simplify`, `UnionToIntersection`. +- Newly exports the following types: `AnyStruct`, `EnumSchema`, `InferStructTuple`, `IsExactMatch`, `IsMatch`, `IsRecord`, `IsTuple`, `ObjectSchema`, `OmitBy`, `Optionalize`, `PickBy`, `Simplify`, `UnionToIntersection` ([#18](https://github.com/MetaMask/superstruct/pull/18)) + +### Changed + +- **BREAKING:** Expose separate build entry points and type declarations for CommonJS and ESM via package manifest `exports`. ([#18](https://github.com/MetaMask/superstruct/pull/18)) + - When imported as a module, this package can now resolve as both CommonJS and ESM. ## [2.0.0] @@ -617,7 +624,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Initial release. -[Unreleased]: https://github.com/MetaMask/superstruct/compare/v2.0.0...HEAD +[Unreleased]: https://github.com/MetaMask/superstruct/compare/v3.0.0...HEAD +[3.0.0]: https://github.com/MetaMask/superstruct/compare/v2.0.0...v3.0.0 [2.0.0]: https://github.com/MetaMask/superstruct/compare/v1.0.0...v2.0.0 [1.0.0]: https://github.com/MetaMask/superstruct/compare/v0.16.0...v1.0.0 [0.16.0]: https://github.com/MetaMask/superstruct/compare/v0.15.0...v0.16.0 From b0a7d5d958d8813dc8f296a3650e2871a7e90217 Mon Sep 17 00:00:00 2001 From: Jongsun Suh Date: Mon, 3 Jun 2024 11:58:18 -0400 Subject: [PATCH 3/3] Update CHANGELOG.md --- CHANGELOG.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3d132a8f..11e28aa8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,10 +13,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Newly exports the following types: `AnyStruct`, `EnumSchema`, `InferStructTuple`, `IsExactMatch`, `IsMatch`, `IsRecord`, `IsTuple`, `ObjectSchema`, `OmitBy`, `Optionalize`, `PickBy`, `Simplify`, `UnionToIntersection` ([#18](https://github.com/MetaMask/superstruct/pull/18)) -### Changed +### Fixed -- **BREAKING:** Expose separate build entry points and type declarations for CommonJS and ESM via package manifest `exports`. ([#18](https://github.com/MetaMask/superstruct/pull/18)) - - When imported as a module, this package can now resolve as both CommonJS and ESM. +- **BREAKING:** Expose separate build entry points and type declarations for CommonJS and ESM via package manifest `exports` ([#18](https://github.com/MetaMask/superstruct/pull/18)). ## [2.0.0]