Skip to content

Fix warning about unmet peer dependencies - #3919

Merged
davidkpiano merged 1 commit into
statelyai:mainfrom
c-w:fix-install-warning-react-18
Mar 28, 2023
Merged

davidkpiano merged 1 commit into
statelyai:mainfrom
c-w:fix-install-warning-react-18

Conversation

@c-w

@c-w c-w commented Mar 24, 2023

Copy link
Copy Markdown
Contributor

When installing @xstate/react on a React 18 project, we get a warning that use-isomorphic-layout-effect@1.0.0 doesn't support this version of React. As such, this pull request bumps the required minimum version of the dependency to fix the warning. There were no breaking changes in the dependency between 1.0.0 and 1.1.2 so from what I can see, this can be released as a minor version bump.

@changeset-bot

changeset-bot Bot commented Mar 24, 2023

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 2a7560d

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@xstate/react Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@codesandbox-ci

Copy link
Copy Markdown

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 2a7560d:

Sandbox Source
XState Example Template Configuration
XState React Template Configuration

@ghost

ghost commented Mar 24, 2023

Copy link
Copy Markdown
👇 Click on the image for a new way to code review

Review these changes using an interactive CodeSee Map

Legend

CodeSee Map legend

@davidkpiano
davidkpiano requested a review from Andarist March 24, 2023 14:47
@davidkpiano
davidkpiano merged commit 6665f0a into statelyai:main Mar 28, 2023
@github-actions github-actions Bot mentioned this pull request Mar 28, 2023
@Andarist

Copy link
Copy Markdown
Collaborator

FYI, this has almost no effect on consuming projects. Dependencies are using ranges for a reason - 1.2.0 is compatible with ^1.0.0

@c-w
c-w deleted the fix-install-warning-react-18 branch March 28, 2023 17:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants