diff --git a/.changeset/four-countries-serve.md b/.changeset/four-countries-serve.md new file mode 100644 index 0000000000..3a8c5f4b88 --- /dev/null +++ b/.changeset/four-countries-serve.md @@ -0,0 +1,6 @@ +--- +'@xstate/react': patch +'@xstate/store': patch +--- + +Add React 19 as a peer dependency diff --git a/packages/xstate-react/package.json b/packages/xstate-react/package.json index 9417648228..fa92bd0dd2 100644 --- a/packages/xstate-react/package.json +++ b/packages/xstate-react/package.json @@ -54,7 +54,7 @@ "url": "https://github.com/statelyai/xstate/issues" }, "peerDependencies": { - "react": "^16.8.0 || ^17.0.0 || ^18.0.0", + "react": "^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0-0", "xstate": "workspace:^" }, "peerDependenciesMeta": { diff --git a/packages/xstate-store/package.json b/packages/xstate-store/package.json index ef2b93cf34..45d3494253 100644 --- a/packages/xstate-store/package.json +++ b/packages/xstate-store/package.json @@ -69,7 +69,7 @@ "xstate": "workspace:^" }, "peerDependencies": { - "react": "^18.2.0", + "react": "^18.2.0 || ^19.0.0-0", "solid-js": "^1.7.6" }, "peerDependenciesMeta": {