-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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 #2138
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
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. |
Size Change: -48.8 kB (-80.05%) 🏆 Total Size: 12.2 kB
ℹ️ View Unchanged
|
Maybe consider changing React Snowpack to React Vite on CodeSandbox? |
I think you can just add it, if you are talking about |
I'll see if I've got some time in the nearest future :) |
I'm a noob learning things and asking around. I noticed many libraries dropping default exports. may I ask why? |
@TheMikeyRoss Can you open a new discussion? https://github.com/pmndrs/zustand/discussions/new |
@dai-shi, I see the checklist in the PR description, could I help tackle some of the bullet points? Thanks |
@charkour I was wondering when we should start this, but if you are interested please go ahead. Note that I may have some hidden requirements which isn't described well in the bullet points, so bear with me. (I think I should work on the TS one on my own.) We do something like this pmndrs/valtio#810, so please open PRs for each point against |
Sounds great! I can start on dropping the default exports. No worries on the hidden requirements, I'm happy to help and let you take over if you disagree with one of my changes. |
* fix: drop default exports for v5 * chore: remove default from cjs build * refactor: export shallow in v5 * fix: remove `addModuleExport` option for cjs.
This is ready for quite a while. Let's merge it and ship |
🎉 Kudos to @charkour who has done most of initial work. |
Happy to help! |
Props to @charkour :D |
"./*"
in package.json exports and change Node.js requirement [v5] use "./*" in package.json exports and change Node.js requirement #2272getServerState
#2300setState
'sreplace
flag is set #2580