From 0337d0811ab42405255f84b883cf2c9b96233e95 Mon Sep 17 00:00:00 2001 From: github-actions Date: Tue, 1 Apr 2025 23:12:05 +0000 Subject: [PATCH 1/3] 3.2.0 --- CHANGELOG.md | 12 +++++++++++- package.json | 2 +- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ac947431..da403f83 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.2.0] + +### Uncategorized + +- feat: Add `exactOptional` struct ([#32](https://github.com/MetaMask/superstruct/pull/32)) +- Update workflows to use `MetaMask/action-checkout-and-setup` ([#33](https://github.com/MetaMask/superstruct/pull/33)) +- chore: update security-code-scanner@main to action-security-code-scanner@v1 ([#31](https://github.com/MetaMask/superstruct/pull/31)) +- chore: add workflow_dispatch to security-code-scanner ([#30](https://github.com/MetaMask/superstruct/pull/30)) + ## [3.1.0] ### Added @@ -629,7 +638,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Initial release. -[Unreleased]: https://github.com/MetaMask/superstruct/compare/v3.1.0...HEAD +[Unreleased]: https://github.com/MetaMask/superstruct/compare/v3.2.0...HEAD +[3.2.0]: https://github.com/MetaMask/superstruct/compare/v3.1.0...v3.2.0 [3.1.0]: https://github.com/MetaMask/superstruct/compare/v3.0.0...v3.1.0 [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 diff --git a/package.json b/package.json index 1e7efb7b..d3f0f7e3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@metamask/superstruct", - "version": "3.1.0", + "version": "3.2.0", "description": "A simple and composable way to validate data in JavaScript (and TypeScript).", "keywords": [ "api", From 0a8b57668221768659ba37c2afe8b8f0c65cc6b5 Mon Sep 17 00:00:00 2001 From: Erik Marks Date: Wed, 2 Apr 2025 09:20:25 -0700 Subject: [PATCH 2/3] Update changelog --- CHANGELOG.md | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index da403f83..fe621b22 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,12 +9,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [3.2.0] -### Uncategorized +### Added -- feat: Add `exactOptional` struct ([#32](https://github.com/MetaMask/superstruct/pull/32)) -- Update workflows to use `MetaMask/action-checkout-and-setup` ([#33](https://github.com/MetaMask/superstruct/pull/33)) -- chore: update security-code-scanner@main to action-security-code-scanner@v1 ([#31](https://github.com/MetaMask/superstruct/pull/31)) -- chore: add workflow_dispatch to security-code-scanner ([#30](https://github.com/MetaMask/superstruct/pull/30)) +- Newly exports the `exactOptional` struct ([#32](https://github.com/MetaMask/superstruct/pull/32)) + - This enables adding strictly optional fields to `object` structs when paired with TypeScript's + `exactOptionalPropertyTypes`. ## [3.1.0] From bc1298b463c7dbe564dea4ade561cc7dfaa1a518 Mon Sep 17 00:00:00 2001 From: Erik Marks <25517051+rekmarks@users.noreply.github.com> Date: Wed, 2 Apr 2025 09:27:57 -0700 Subject: [PATCH 3/3] Update CHANGELOG.md Co-authored-by: Maarten Zuidhoorn --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fe621b22..9cfd3628 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,7 +11,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Added -- Newly exports the `exactOptional` struct ([#32](https://github.com/MetaMask/superstruct/pull/32)) +- Add `exactOptional` struct ([#32](https://github.com/MetaMask/superstruct/pull/32)) - This enables adding strictly optional fields to `object` structs when paired with TypeScript's `exactOptionalPropertyTypes`.