fix(deps): update dependency zustand to v4 - autoclosed #39
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^3.5.7
->^4.0.0
Release Notes
pmndrs/zustand (zustand)
v4.5.5
Compare Source
This improves the
persist
middleware behavior for an edge case.What's Changed
New Contributors
Full Changelog: pmndrs/zustand@v4.5.4...v4.5.5
v4.5.4
Compare Source
There was an issue in v4.5.3 with some bundlers.
What's Changed
Full Changelog: pmndrs/zustand@v4.5.3...v4.5.4
v4.5.3
Compare Source
v4.5.2
Compare Source
It should improve the compatibility with old browsers.
What's Changed
New Contributors
Full Changelog: pmndrs/zustand@v4.5.1...v4.5.2
v4.5.1
Compare Source
People might have misunderstood with
useStore
deprecation message. Hope this mitigates it.What's Changed
persist
middleware by @rafaeelaudibert in https://github.com/pmndrs/zustand/pull/2332New Contributors
Full Changelog: pmndrs/zustand@v4.5.0...v4.5.1
v4.5.0
Compare Source
This version adds a new capability for SSR/Hydration.
What's Changed
New Contributors
Full Changelog: pmndrs/zustand@v4.4.7...v4.5.0
v4.4.7
Compare Source
There's a small fix for a use case with an non-object value in store.
What's Changed
New Contributors
Full Changelog: pmndrs/zustand@v4.4.6...v4.4.7
v4.4.6
Compare Source
v4.4.5 has an issue with some TypeScript configs about module resolution. It should be fixed now. Thanks for the patience.
What's Changed
New Contributors
Full Changelog: pmndrs/zustand@v4.4.5...v4.4.6
v4.4.5
Compare Source
Hopefully, it should fix some issues with Node.js environment including Next.js.
What's Changed
New Contributors
Full Changelog: pmndrs/zustand@v4.4.4...v4.4.5
v4.4.4
Compare Source
There was a tiny issue in v4.4.3, which broke with some bundlers, which this version fixes.
What's Changed
Full Changelog: pmndrs/zustand@v4.4.3...v4.4.4
v4.4.3
Compare Source
The changes in v4.4.2 were troublesome for some users. This version should fix/mitigate such cases.
What's Changed
Full Changelog: pmndrs/zustand@v4.4.2...v4.4.3
v4.4.2
Compare Source
This adds
useShallow
hook to cover some use cases that are deprecated with v4.4.0 change. Check out the guide.Migration Guide
#1991 requires something like below if you are using the
devtools
middleware and TypeScript.import { devtools } from 'zustand/middleware' + import type {} from '@​redux-devtools/extension'
What's Changed
New Contributors
Full Changelog: pmndrs/zustand@v4.4.1...v4.4.2
v4.4.1
Compare Source
Fixes some issues reported with the deprecated feature in v4.4.0.
What's Changed
New Contributors
Full Changelog: pmndrs/zustand@v4.4.0...v4.4.1
v4.4.0
Compare Source
This adds new
zustand/traditional
entry point and deprecates equalityFn fromzustand
.Migration Guide
If you don't use custom
equalityFn
, nothing is required.For those who use custom equalityFn such as
shallow
:What's Changed
New Contributors
Full Changelog: pmndrs/zustand@v4.3.9...v4.4.0
v4.3.9
Compare Source
This includes a small improvement for production build mostly for Vite users. Docs have been improved too!
What's Changed
New Contributors
Full Changelog: pmndrs/zustand@v4.3.8...v4.3.9
v4.3.8
Compare Source
For persist middleware, a new option for createJSONStorage in introduced to support more cases. Note that createJSONStorage isn't a required function (and it's not very recommended as it's not type safe), and one should create a custom storage for more use cases.
What's Changed
New Contributors
Full Changelog: pmndrs/zustand@v4.3.7...v4.3.8
v4.3.7
Compare Source
This includes a couple of improvements in
persist
middleware.What's Changed
persist
does not drop updates inonRehydrateStorage
when using a synchronous storage API by @coffeebeats in https://github.com/pmndrs/zustand/pull/1689onRehydrateStorage
andonHydrate
is defined on first hydration by @coffeebeats in https://github.com/pmndrs/zustand/pull/1692New Contributors
Full Changelog: pmndrs/zustand@v4.3.6...v4.3.7
v4.3.6
Compare Source
This has a little improvement for library authors.
What's Changed
New Contributors
Full Changelog: pmndrs/zustand@v4.3.5...v4.3.6
v4.3.5
Compare Source
v4.3.4 has a regression in CJS build. Please use this version instead.
What's Changed
New Contributors
Full Changelog: pmndrs/zustand@v4.3.4...v4.3.5
v4.3.4
Compare Source
This version fixes some build configs for some edge cases.
What's Changed
New Contributors
Full Changelog: pmndrs/zustand@v4.3.3...v4.3.4
v4.3.3
Compare Source
This version includes some small fixes and internal improvements.
What's Changed
__DEV__
with ts-jest by @dai-shi in https://github.com/pmndrs/zustand/pull/1598New Contributors
Full Changelog: pmndrs/zustand@v4.3.2...v4.3.3
v4.3.2
Compare Source
There was a regression with default export (which is deprecated) in v4.3.0 and v4.3.1. This should fix it.
What's Changed
New Contributors
Full Changelog: pmndrs/zustand@v4.3.1...v4.3.2
v4.3.1
Compare Source
This version supersedes v4.3.0.
What's Changed
Full Changelog: pmndrs/zustand@v4.3.0...v4.3.1
v4.3.0
Compare Source
Throughout past years of development, we've learned the (mis)usage of the library. One of our goal is to provide smallest possible APIs. To go further, this version deprecates some features. They are still usable (with warnings), but will be removed in the future.
What's Changed
New Contributors
Full Changelog: pmndrs/zustand@v4.2.0...v4.3.0
v4.2.0
Compare Source
This version adds some new features in middleware.
What's Changed
New Contributors
Full Changelog: pmndrs/zustand@v4.1.5...v4.2.0
v4.1.5
Compare Source
This version has several small improvements.
What's Changed
module.exports
addition for named and default exports in CJS by @barelyhuman in https://github.com/pmndrs/zustand/pull/1460New Contributors
Full Changelog: pmndrs/zustand@v4.1.4...v4.1.5
v4.1.4
Compare Source
This should improve some importing problems. Uncertain if it fixes everything.
What's Changed
New Contributors
Full Changelog: pmndrs/zustand@v4.1.3...v4.1.4
v4.1.3
Compare Source
This improves store types for TS users. We also upgrade rollup. Please report issues if anyone finds any.
What's Changed
getState
andsetState
will always exist on the store by @devanshj in https://github.com/pmndrs/zustand/pull/1371StateCreator
subtyping by @devanshj in https://github.com/pmndrs/zustand/pull/1373New Contributors
Full Changelog: pmndrs/zustand@v4.1.2...v4.1.3
v4.1.2
Compare Source
This includes some fixes for edge cases. Most notably, supporting old TypeScript versions.
What's Changed
useStoreApi
by @exuanbo in https://github.com/pmndrs/zustand/pull/1258TakeTwo
,SkipTwo
andMutate
to make them work for older ts versions too by @devanshj in https://github.com/pmndrs/zustand/pull/1348New Contributors
Full Changelog: pmndrs/zustand@v4.1.1...v4.1.2
v4.1.1
Compare Source
In v4.1.0, there are some TypeScript type issues in
redux
anddevtools
middleware, which should be fixed.What's Changed
Full Changelog: pmndrs/zustand@v4.1.0...v4.1.1
v4.1.0
Compare Source
This supports non-object state. It's probably one of the biggest changes in API design throughout the zustand development history. But, probably 99.9% of users won't use it 😝 .
What's Changed
New Contributors
Full Changelog: pmndrs/zustand@v4.0.0...v4.1.0
v4.0.0
Compare Source
🎉 🎉 🎉 Zustand v4 is here 🎉 🎉 🎉
Backward compatible with v3 in JS
v4 API is completely backward compatible, so it's just nothing to update if you are JS users.
One note is v4 depends on use-sync-external-store.
There might be some bundling issues.
Please report them if you encounter such cases.
TypeScript types are rewritten
To better support types with middleware, v4 TypeScript code is rewritten.
Please find docs/typescript.md for more information.
New API for context usage
In v3,
zustand/context
is provided as a workaround.v4 API exposes
createStore
anduseStore
, which are more flexible.Please read this for usage.
If you are unsure about the usage, open a new discussion.
Counter example: https://codesandbox.io/s/polished-pond-4jn1e2
Deprecated APIs are removed
Some APIs are already deprecated in v3, and they are removed in v4. Please make sure to update to the latest version of v3 before migrating to v4.
What's Changed
enabled
option and show devtools warning only if enabled by @Aslemammad in https://github.com/pmndrs/zustand/pull/880Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.