From c9e8fc12e2d77cec5644c3c2f15c98b56c5f14ae Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Tue, 28 Nov 2023 22:29:36 +0000 Subject: [PATCH] Version Packages --- .changeset/giant-lies-help.md | 20 -------------------- CHANGELOG.md | 22 ++++++++++++++++++++++ package.json | 2 +- 3 files changed, 23 insertions(+), 21 deletions(-) delete mode 100644 .changeset/giant-lies-help.md create mode 100644 CHANGELOG.md diff --git a/.changeset/giant-lies-help.md b/.changeset/giant-lies-help.md deleted file mode 100644 index 372c8ce..0000000 --- a/.changeset/giant-lies-help.md +++ /dev/null @@ -1,20 +0,0 @@ ---- -"@wethegit/react-modal": major ---- - -# V2 - -## Breaking changes - -Seriously, everything. - -## Why - -The old design of the modal was good but it had an achilles heel, it used an internal context to handle the transition and syncing that with the state which caused: - -1. Actions to be tied to a context, adding custom components to close the modal for example was a bit annoying -2. Animation and state were too tightly coupled and not exposed for further customization - -## What's new - -The modal is now a controlled component, you can control the state of the modal from outside using the hook `useModal` which also exposes the state so you can use further customize the Modal and even the child components. diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..0015789 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,22 @@ +# @wethegit/react-modal + +## 2.0.0 + +### Major Changes + +- [#7](https://github.com/wethegit/react-modal/pull/7) [`4512c52`](https://github.com/wethegit/react-modal/commit/4512c52e7c2baca133fa03e33762639a04b46938) Thanks [@marlonmarcello](https://github.com/marlonmarcello)! - # V2 + + ## Breaking changes + + Seriously, everything. + + ## Why + + The old design of the modal was good but it had an achilles heel, it used an internal context to handle the transition and syncing that with the state which caused: + + 1. Actions to be tied to a context, adding custom components to close the modal for example was a bit annoying + 2. Animation and state were too tightly coupled and not exposed for further customization + + ## What's new + + The modal is now a controlled component, you can control the state of the modal from outside using the hook `useModal` which also exposes the state so you can use further customize the Modal and even the child components. diff --git a/package.json b/package.json index de6af42..1b92622 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@wethegit/react-modal", - "version": "1.0.2", + "version": "2.0.0", "description": "A customizable, accessible modal window component for React projects.", "files": [ "dist"