Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: pmndrs/zustand
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v5.0.12
Choose a base ref
...
head repository: pmndrs/zustand
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v5.0.13
Choose a head ref
  • 11 commits
  • 13 files changed
  • 12 contributors

Commits on Mar 30, 2026

  1. refactor(devtools): remove duplicate module augmentation (#3443)

    The StoreMutators module augmentation for 'zustand/devtools' was
    declared twice in devtools.ts (at the top of the file and again after
    the Devtools type). Remove the duplicate declaration.
    mahmoodhamdi authored Mar 30, 2026
    Configuration menu
    Copy the full SHA
    f0252e5 View commit details
    Browse the repository at this point in the history
  2. test: expand React subscribe test coverage (#3442)

    The React-level subscribe.test.tsx only had a single test checking that
    subscribe is a function. This adds comprehensive tests mirroring the
    vanilla subscribe tests, covering state change notifications,
    subscribeWithSelector integration, equality functions, unsubscription,
    fireImmediately, and multiple subscriber behavior.
    
    Co-authored-by: Danilo Britto <[email protected]>
    mahmoodhamdi and dbritto-dev authored Mar 30, 2026
    Configuration menu
    Copy the full SHA
    6330044 View commit details
    Browse the repository at this point in the history
  3. chore(deps): bump actions/deploy-pages from 4.0.5 to 5.0.0 (#3447)

    Bumps [actions/deploy-pages](https://github.com/actions/deploy-pages) from 4.0.5 to 5.0.0.
    - [Release notes](https://github.com/actions/deploy-pages/releases)
    - [Commits](actions/deploy-pages@d6db901...cd2ce8f)
    
    ---
    updated-dependencies:
    - dependency-name: actions/deploy-pages
      dependency-version: 5.0.0
      dependency-type: direct:production
      update-type: version-update:semver-major
    ...
    
    Signed-off-by: dependabot[bot] <[email protected]>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Mar 30, 2026
    Configuration menu
    Copy the full SHA
    00f96a3 View commit details
    Browse the repository at this point in the history

Commits on Apr 14, 2026

  1. Configuration menu
    Copy the full SHA
    3201328 View commit details
    Browse the repository at this point in the history

Commits on Apr 21, 2026

  1. test(middleware/immer): add runtime tests for immer middleware (#3471)

    * test(middleware/immer): add runtime tests for immer middleware
    
    * test(middleware/immer): rename non-function-updater test to describe produce bypass
    
    The previous name ("should merge state when given a non-function updater")
    implied merge semantics, which is vanilla setState's behavior. What the test
    actually exercises is immer.ts:79, where a non-function updater bypasses
    `produce`. Renaming to "should not apply produce when updater is not a
    function" per @sukvvon's review feedback.
    KimHyeongRae0 authored Apr 21, 2026
    Configuration menu
    Copy the full SHA
    95d3f33 View commit details
    Browse the repository at this point in the history

Commits on Apr 27, 2026

  1. Configuration menu
    Copy the full SHA
    1b04af1 View commit details
    Browse the repository at this point in the history

Commits on May 4, 2026

  1. Configuration menu
    Copy the full SHA
    c7516c1 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4b96f4e View commit details
    Browse the repository at this point in the history
  3. fix(devtools): support Firefox/Safari stack format in findCallerName (#…

    …3469)
    
    * fix(devtools): support Firefox/Safari stack format in findCallerName
    
    The previous regex only matched V8-style frames ("at name (source)").
    SpiderMonkey (Firefox) and JavaScriptCore (Safari) use "name@source"
    with no spaces, causing the regex to fail and fall back to "anonymous".
    
    Now tries V8 regex first, then Gecko/JSC regex. Regexes extracted to
    module-level constants to avoid recompilation on every setState call.
    
    Co-Authored-By: Claude Sonnet 4.6 (1M context) <[email protected]>
    
    * fix(devtools): keep findCallerName internal; test Gecko stack via Error stub
    
    - Use function declaration without export so helpers stay private
    - Drop redundant || undefined after regex fallback chain
    - Replace direct findCallerName import with integration test that stubs
      Error.stack to SpiderMonkey shape and asserts devtools send payload
    - Avoids pulling src into old-TypeScript test:types and widening public API
    
    ---------
    
    Co-authored-by: Claude Sonnet 4.6 (1M context) <[email protected]>
    Co-authored-by: Daishi Kato <[email protected]>
    3 people authored May 4, 2026
    Configuration menu
    Copy the full SHA
    4e9bcf0 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    8ec2169 View commit details
    Browse the repository at this point in the history
  5. 5.0.13

    dai-shi committed May 4, 2026
    Configuration menu
    Copy the full SHA
    6bc451e View commit details
    Browse the repository at this point in the history
Loading