From d69e40642420c95aeac2557c3adcdbc4d37128bf Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Fri, 25 Feb 2022 16:01:08 +0000 Subject: [PATCH] chore(release): 13.0.0 [skip ci] # [13.0.0](https://github.com/react-hookz/web/compare/v12.3.0...v13.0.0) (2022-02-25) ### Features * **`useMediaQuery`:** add synchronous mql state fetch ([0e0be56](https://github.com/react-hookz/web/commit/0e0be5626bbe3ab0815e25f9aef49dbb1be681b1)) * implement new hook - `useScreenOrientation` ([107cc21](https://github.com/react-hookz/web/commit/107cc2116f09d44757495d688f41eeb5cad11760)) ### BREAKING CHANGES * **`useMediaQuery`:** `useMediaQuery` now does synchronous fetch, this means that in browser it will return final state on first render, while SSR mode still return `undefined`. SSR users should set second parameter of this hook to `true`, to postpone state fetch until effects phase. --- CHANGELOG.md | 17 +++++++++++++++++ package.json | 2 +- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9536ff6f..6ea55c30 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,20 @@ +# [13.0.0](https://github.com/react-hookz/web/compare/v12.3.0...v13.0.0) (2022-02-25) + + +### Features + +* **`useMediaQuery`:** add synchronous mql state fetch ([0e0be56](https://github.com/react-hookz/web/commit/0e0be5626bbe3ab0815e25f9aef49dbb1be681b1)) +* implement new hook - `useScreenOrientation` ([107cc21](https://github.com/react-hookz/web/commit/107cc2116f09d44757495d688f41eeb5cad11760)) + + +### BREAKING CHANGES + +* **`useMediaQuery`:** `useMediaQuery` now does synchronous fetch, this means +that in browser it will return final state on first render, while SSR +mode still return `undefined`. +SSR users should set second parameter of this hook to `true`, to +postpone state fetch until effects phase. + # [12.3.0](https://github.com/react-hookz/web/compare/v12.2.0...v12.3.0) (2022-01-17) diff --git a/package.json b/package.json index 06d1241c..0c9c617c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@react-hookz/web", - "version": "12.3.0", + "version": "13.0.0", "description": "React hooks done right, for browser and SSR.", "keywords": [ "react",