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

fix(deps): Update dependency zustand to v4 #399

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented May 29, 2023

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
zustand ^3.5.1 -> ^4.0.0 age adoption passing confidence

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

New 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 from zustand.

Migration Guide

If you don't use custom equalityFn, nothing is required.

For those who use custom equalityFn such as shallow:

// previously
import { create } from 'zustand'
const useFooStore = create((set) => ...)

// now
import { createWithEqualityFn } from 'zustand/traditional'
const useFooStore = createWithEqualityFn((set) => ..., Object.is)
// Object.is the default equalityFn which can be changed to shallow or anything else

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

New 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.

⚠️ this version has an issue in CJS build. Please use v4.3.5.

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

New 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

New 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

New 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

New 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 and devtools 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 and useStore, 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

New Contributors


Configuration

📅 Schedule: Branch creation - "before 3am on Monday" (UTC), 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.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate using a curated preset maintained by Sanity. View repository job log here

@socket-security
Copy link

New dependency changes detected. Learn more about Socket for GitHub ↗︎


👍 No new dependency issues detected in pull request

Bot Commands

To ignore an alert, reply with a comment starting with @SocketSecurity ignore followed by a space separated list of package-name@version specifiers. e.g. @SocketSecurity ignore foo@1.0.0 bar@* or ignore all packages with @SocketSecurity ignore-all

Pull request alert summary
Issue Status
Install scripts ✅ 0 issues
Native code ✅ 0 issues
Bin script shell injection ✅ 0 issues
Unresolved require ✅ 0 issues
Invalid package.json ✅ 0 issues
HTTP dependency ✅ 0 issues
Git dependency ✅ 0 issues
Potential typo squat ✅ 0 issues
Known Malware ✅ 0 issues
Telemetry ✅ 0 issues
Protestware/Troll package ✅ 0 issues

📊 Modified Dependency Overview:

⬆️ Updated Package Version Diff Added Capability Access +/- Transitive Count Publisher
zustand@4.3.8 3.5.10...4.3.8 environment +2/-0 daishi

@renovate renovate bot changed the title fix(deps): update dependency zustand to v4 fix(deps): Update dependency zustand to v4 Aug 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants