diff --git a/.changeset/late-sloths-collect.md b/.changeset/late-sloths-collect.md deleted file mode 100644 index 7e99d7a058..0000000000 --- a/.changeset/late-sloths-collect.md +++ /dev/null @@ -1,5 +0,0 @@ ---- -'@xstate/react': patch ---- - -Allow React 17 in the specified peer dependency range. diff --git a/packages/xstate-react/CHANGELOG.md b/packages/xstate-react/CHANGELOG.md index 913e71382e..055f315fa0 100644 --- a/packages/xstate-react/CHANGELOG.md +++ b/packages/xstate-react/CHANGELOG.md @@ -1,5 +1,11 @@ # Changelog +## 1.0.3 + +### Patch Changes + +- [`27db2950`](https://github.com/davidkpiano/xstate/commit/27db295064d42cacb89ff10d55f39eb7609148e1) [#1636](https://github.com/davidkpiano/xstate/pull/1636) Thanks [@Andarist](https://github.com/Andarist)! - Allow React 17 in the specified peer dependency range. + ## 1.0.2 ### Patch Changes @@ -49,7 +55,7 @@ All notable changes to this project will be documented in this file. - The `useActor` hook now takes a second argument: `getSnapshot` which is a function that should return the last emitted value: ```js - const [state, send] = useActor(someActor, (actor) => actor.current); + const [state, send] = useActor(someActor, actor => actor.current); ``` ## [1.0.0-rc.6] diff --git a/packages/xstate-react/package.json b/packages/xstate-react/package.json index 627bf8af43..a958d67328 100644 --- a/packages/xstate-react/package.json +++ b/packages/xstate-react/package.json @@ -1,6 +1,6 @@ { "name": "@xstate/react", - "version": "1.0.2", + "version": "1.0.3", "description": "XState tools for React", "keywords": [ "state", diff --git a/packages/xstate-viz/example/package.json b/packages/xstate-viz/example/package.json index 0fa719ee52..132c67b79a 100644 --- a/packages/xstate-viz/example/package.json +++ b/packages/xstate-viz/example/package.json @@ -9,7 +9,7 @@ "build": "parcel build index.html" }, "dependencies": { - "@xstate/react": "^1.0.2", + "@xstate/react": "^1.0.3", "react-app-polyfill": "^1.0.0" }, "devDependencies": {