Skip to content

Conversation

@Artur-
Copy link
Contributor

@Artur- Artur- commented Dec 10, 2024

This allows using @lit/react with React 19

For #4857

@Artur- Artur- requested a review from kevinpschaaf as a code owner December 10, 2024 10:53
@changeset-bot
Copy link

changeset-bot bot commented Dec 10, 2024

🦋 Changeset detected

Latest commit: d4c471c

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

This PR includes changesets to release 3 packages
Name Type
@lit/react Patch
@lit-labs/ssr-react Patch
@lit-internal/test-elements-react Patch

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

This allows using @lit/react with React 19

For lit#4857
@kyubisation
Copy link
Contributor

Should this also widen the dependency range in the ssr-react package?
https://github.com/lit/lit/blob/main/packages/labs/ssr-react/package.json#L54-L55

@OvidijusParsiunas
Copy link

Hi, is there an estimated date when this will be reviewed? Thanks!

@Artur-
Copy link
Contributor Author

Artur- commented Dec 17, 2024

Should this also widen the dependency range in the ssr-react package?

Looks like it should, I added it.

@Artur-
Copy link
Contributor Author

Artur- commented Dec 17, 2024

Is @justinfagnani still working on this project or is it somebody else?

@kyubisation
Copy link
Contributor

I'll bring it up during the community call on Thursday.

},
"peerDependencies": {
"@types/react": "17 || 18"
"@types/react": "17 || 18 || 19"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would expect a few more changes here. Does the package lock need to be regenerated?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The lock change for ssr-react was apparently missing, added what "npm install" updates

Copy link
Member

@augustjk augustjk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! I do want to explore detect React version and passing props directly to React for >= 19 as described in #4857 (comment) but that can be done as a separate improvement.

@augustjk augustjk merged commit dd2fdc9 into lit:main Dec 21, 2024
7 checks passed
@Artur- Artur- deleted the widen-react-range branch December 27, 2024 17:17
@lit-robot lit-robot mentioned this pull request Jan 2, 2025
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.

6 participants