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/jotai Loading
base: v2.7.2
Choose a base ref
...
head repository: pmndrs/jotai Loading
compare: v2.8.0
Choose a head ref
  • 17 commits
  • 37 files changed
  • 8 contributors

Commits on Apr 4, 2024

  1. [BREAKING] selectAtom does not resolve promises internally (#2435)

    * test: selectAtom should not return async value when the base atom curr and prev values are synchronous
    
    * selectAtom replaces promise with fulfilled value when promise resolves
    
    * replace refAtom with weakMap implementation
    
    * partition state by store
    
    * BREAKING: selectAtom does not internally resolve promises
    
    ---------
    
    Co-authored-by: David Maskasky <[email protected]>
    Co-authored-by: Daishi Kato <[email protected]>
    3 people committed Apr 4, 2024
    Configuration menu
    Copy the full SHA
    8847084 View commit details
    Browse the repository at this point in the history
  2. New store implementation as store2.ts (#2463)

    * wip
    
    * wip
    
    * wip
    
    * wip
    
    * wip
    
    * wip
    
    * wip
    
    * wip
    
    * wip
    
    * cherry-pick #2462
    
    * wip
    
    * wip
    
    * wip
    
    * wip
    
    * wip
    
    * wip
    
    * wip
    
    * wip
    
    * wip
    
    * wip
    
    * follow #2471
    
    * expose store2 so that we can experiment it
    
    * follow #2472
    
    * separate experimental export
    
    * Update src/vanilla/store2.ts
    
    Co-authored-by: Iwo Plaza <[email protected]>
    
    * refactor
    
    ---------
    
    Co-authored-by: Iwo Plaza <[email protected]>
    dai-shi and iwoplaza committed Apr 4, 2024
    Configuration menu
    Copy the full SHA
    bf075ef View commit details
    Browse the repository at this point in the history
  3. feat(utils): atomWithLazy for lazily initialized primitive atoms. (#2465

    )
    
    * feat(utils): atomWithLazy for lazily initialized primitive atoms.
    
    * tweak test for older ts versions
    
    * add `unstable_is` hack for use in `jotai-store`
    
    * add documentation for atomWithLazy
    
    * update lazy docs
    
    * remove semicolons in lazy docs
    
    * add more elegant implementation for atomWithLazy
    
    * clear type declarations
    
    ---------
    
    Co-authored-by: Daishi Kato <[email protected]>
    iwoplaza and dai-shi committed Apr 4, 2024
    Configuration menu
    Copy the full SHA
    c81246e View commit details
    Browse the repository at this point in the history
  4. deprecate useReducerAtom (#2467)

    * deprecate useReducerAtom
    
    * add deprecation warnings
    
    * fix the recipe
    dai-shi committed Apr 4, 2024
    Configuration menu
    Copy the full SHA
    13b515e View commit details
    Browse the repository at this point in the history
  5. new store dev methods (rev3) (#2474)

    * refactor types
    
    * rev3 methods
    
    * implement dev3 methods
    
    * exclude self
    
    * fix lint
    
    * dev3 methods in store2
    
    * test for dev3_*
    dai-shi committed Apr 4, 2024
    Configuration menu
    Copy the full SHA
    d625f32 View commit details
    Browse the repository at this point in the history

Commits on Apr 5, 2024

  1. fix: expose internal devstore types (#2481)

    * fix: expose internal devstore types
    
    * fix(vanialla.ts): export the store types
    
    * fix(vanialla.ts): export the store types
    
    * fix: avoid exporting types from `jotai/vanilla` entry point
    
    Co-authored-by: Daishi Kato <[email protected]>
    
    ---------
    
    Co-authored-by: Daishi Kato <[email protected]>
    arjunvegda and dai-shi committed Apr 5, 2024
    Configuration menu
    Copy the full SHA
    bae2107 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    11a798b View commit details
    Browse the repository at this point in the history
  3. docs: fix some typos (#2483)

    Signed-off-by: frameflare <[email protected]>
    frameflare committed Apr 5, 2024
    Configuration menu
    Copy the full SHA
    1049ae1 View commit details
    Browse the repository at this point in the history

Commits on Apr 6, 2024

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

Commits on Apr 7, 2024

  1. chore(deps): update dev dependencies (#2479)

    * chore(deps): update dev dependencies
    
    * downgrade user-evnet
    
    * fix type with vi.fn
    
    * for older ts
    
    * hack for older ts
    
    * hack for older ts 2
    
    * hack for older ts 3
    
    * hack for older ts 4
    
    * hack for older ts 5
    
    * hack for older ts 6
    
    * hack for older ts 7
    
    * hack for older ts 8
    
    * resolve replacement
    
    * update snapshots
    
    * do not use default export
    
    * Revert "do not use default export"
    
    This reverts commit 0a64673.
    
    * update package.json
    
    * wip: fix cjs
    
    * wip: for other builds
    
    * wip: fix previous commit
    
    * wip: esm and system
    
    * system cannot be tested
    
    * wip: fix esm
    
    * wip: RESET
    
    * wip: RESET 2
    
    * wip: tsconfig
    
    * revert it
    
    * wip: patch test
    
    * wip: fix regex
    
    * wip: patch dist
    
    * patch test with require
    
    * wip: fix path
    
    * fix cjs&umd
    
    * skip one test with umd
    
    * can we remove this?
    
    * Revert "can we remove this?"
    
    This reverts commit 1efc0b5.
    dai-shi committed Apr 7, 2024
    Configuration menu
    Copy the full SHA
    c09843a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    2ca8339 View commit details
    Browse the repository at this point in the history
  3. fix(vanilla): setters do not freeze new values (#2476)

    Co-authored-by: Daishi Kato <[email protected]>
    backbone87 and dai-shi committed Apr 7, 2024
    Configuration menu
    Copy the full SHA
    93a28f4 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    2abd51c View commit details
    Browse the repository at this point in the history
  5. add memory leak test (#2487)

    dai-shi committed Apr 7, 2024
    Configuration menu
    Copy the full SHA
    88303ac View commit details
    Browse the repository at this point in the history

Commits on Apr 8, 2024

  1. fix(store): remove dev3 methods and add dev4 methods only in store2 (#…

    …2484)
    
    * fix(store): combine dev3 methods
    
    * dev methods rev4
    
    * remove rev3 and add rev4
    
    * hack type
    
    * hack type 2
    
    * remove unusable types
    
    * fix test condition
    
    * format
    
    * fix dev store
    
    * export internal types
    dai-shi committed Apr 8, 2024
    Configuration menu
    Copy the full SHA
    a3be09e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    2d2f03a View commit details
    Browse the repository at this point in the history
  3. 2.8.0

    dai-shi committed Apr 8, 2024
    Configuration menu
    Copy the full SHA
    1b4eb45 View commit details
    Browse the repository at this point in the history
Loading