diff --git a/.changeset/blue-moons-impress.md b/.changeset/blue-moons-impress.md deleted file mode 100644 index e1fac5b..0000000 --- a/.changeset/blue-moons-impress.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'react-collapsed': patch ---- - -Do not call window.matchMedia if it does not exist. Fixes errors thrown in environments like JSDOM. diff --git a/packages/react-collapsed/CHANGELOG.md b/packages/react-collapsed/CHANGELOG.md index 445d0d8..677ec12 100644 --- a/packages/react-collapsed/CHANGELOG.md +++ b/packages/react-collapsed/CHANGELOG.md @@ -1,5 +1,11 @@ # react-collapsed +## 4.1.1 + +### Patch Changes + +- a12f2e4: Do not call window.matchMedia if it does not exist. Fixes errors thrown in environments like JSDOM. + ## 4.1.0 ### Minor Changes diff --git a/packages/react-collapsed/package.json b/packages/react-collapsed/package.json index c928f28..7376da4 100644 --- a/packages/react-collapsed/package.json +++ b/packages/react-collapsed/package.json @@ -1,6 +1,6 @@ { "name": "react-collapsed", - "version": "4.1.0", + "version": "4.1.1", "author": "Rogin Farrer ", "description": "A React custom-hook for creating flexible and accessible expand/collapse components.", "license": "MIT",