Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[v5] breaking: make use-sync-external-store an optional peer dependency #2237

Merged
merged 3 commits into from
Dec 17, 2023

Conversation

charkour
Copy link
Collaborator

@charkour charkour commented Dec 9, 2023

Summary

Check List

  • yarn run prettier for formatting code and docs

Copy link

vercel bot commented Dec 9, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
zustand-demo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 17, 2023 6:21pm

Copy link

codesandbox-ci bot commented Dec 9, 2023

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 c62f55c:

Sandbox Source
React Configuration
React TypeScript Configuration
React Browserify Configuration
React Snowpack Configuration
React Parcel Configuration
Next.js Configuration
@pavlobu/zustand demo Configuration

"optional": true
},
"react": {
"optional": true
},
"use-sync-external-store": {
"optional": true
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I opted to make this optional because it is only used with react which is also optional.

Copy link
Member

Choose a reason for hiding this comment

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

Yes, that was my intention. I forgot react was already optional.

@charkour charkour marked this pull request as draft December 10, 2023 15:50
Copy link
Member

@dai-shi dai-shi left a comment

Choose a reason for hiding this comment

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

LGTM

"optional": true
},
"react": {
"optional": true
},
"use-sync-external-store": {
"optional": true
Copy link
Member

Choose a reason for hiding this comment

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

Yes, that was my intention. I forgot react was already optional.

@dai-shi dai-shi mentioned this pull request Dec 17, 2023
15 tasks
@dai-shi dai-shi merged commit 2059586 into pmndrs:v5 Dec 17, 2023
27 checks passed
@charkour charkour deleted the v5-use-sync-external-store-peer-dep branch December 17, 2023 23:24
@dai-shi
Copy link
Member

dai-shi commented Jan 20, 2024

Oooops, we forgot to remove use-sync-external-store from react.ts.

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.

None yet

2 participants