From aebca6f1eee474e5e69bc31e3f24d0ed04431367 Mon Sep 17 00:00:00 2001 From: github-actions Date: Mon, 3 Jun 2024 19:04:37 +0000 Subject: [PATCH 1/2] 3.0.0 --- CHANGELOG.md | 12 +++++++++++- package.json | 2 +- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e2415815..bb8f3752 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [3.0.0] + +### Uncategorized + +- Revert "3.0.0 (#20)" ([#20](https://github.com/MetaMask/superstruct/pull/20)) +- 3.0.0 ([#20](https://github.com/MetaMask/superstruct/pull/20)) +- Use `ts-bridge` as build tool, set `moduleResolution` to `NodeNext` ([#18](https://github.com/MetaMask/superstruct/pull/18)) +- Export ObjectSchema, Optionalize, Simplify ([#17](https://github.com/MetaMask/superstruct/pull/17)) + ### Added - Newly exports the following types: `AnyStruct`, `EnumSchema`, `InferStructTuple`, `IsExactMatch`, `IsMatch`, `IsRecord`, `IsTuple`, `ObjectSchema`, `OmitBy`, `Optionalize`, `PickBy`, `Simplify`, `UnionToIntersection`. @@ -617,7 +626,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 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 dc97638afbd89110834a3c848ddc69f35f46594a Mon Sep 17 00:00:00 2001 From: Jongsun Suh Date: Mon, 3 Jun 2024 15:07:02 -0400 Subject: [PATCH 2/2] Update changelog --- CHANGELOG.md | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index bb8f3752..0420eacc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,16 +9,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [3.0.0] -### Uncategorized +### Added -- Revert "3.0.0 (#20)" ([#20](https://github.com/MetaMask/superstruct/pull/20)) -- 3.0.0 ([#20](https://github.com/MetaMask/superstruct/pull/20)) -- Use `ts-bridge` as build tool, set `moduleResolution` to `NodeNext` ([#18](https://github.com/MetaMask/superstruct/pull/18)) -- Export ObjectSchema, Optionalize, Simplify ([#17](https://github.com/MetaMask/superstruct/pull/17)) +- 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)). -### Added +### Fixed -- Newly exports the following types: `AnyStruct`, `EnumSchema`, `InferStructTuple`, `IsExactMatch`, `IsMatch`, `IsRecord`, `IsTuple`, `ObjectSchema`, `OmitBy`, `Optionalize`, `PickBy`, `Simplify`, `UnionToIntersection`. +- **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]