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
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v2.0.4
Choose a base ref
...
head repository: pmndrs/jotai
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v2.1.0
Choose a head ref
  • 16 commits
  • 71 files changed
  • 12 contributors

Commits on Apr 10, 2023

  1. 1

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    4f8a6ed View commit details
  2. fix workflow yaml

    dai-shi committed Apr 10, 2023
    1
    Copy the full SHA
    03e595a View commit details
  3. fix workflow file for old ts (#1872)

    * fix workflow file for old ts
    
    * wip: debugging
    
    * fix workflow
    dai-shi authored Apr 10, 2023
    1
    Copy the full SHA
    385124f View commit details

Commits on Apr 13, 2023

  1. 1
    Copy the full SHA
    536dd3b View commit details

Commits on Apr 24, 2023

  1. 1
    Copy the full SHA
    94c1a20 View commit details

Commits on May 1, 2023

  1. fix(examples): import issue and upgrade to v2 (#1903)

    * fix: hacker_news showcase
    
    * fix: todos showcase
    
    * fix: hello showcase
    
    * fix: todos_with_atomFamily showcase
    
    * fix: text_length showcase
    
    * chore: upgrade example to jotai@ 2.0.4
    
    * revert: tsconfig format
    
    * chore: upgrade todos_with_atomFamily to v2
    
    * feat: ignore examples directory on lint
    
    * refactor: extract action type
    
    * fix: prevent merging eslint configs
    milhamm authored May 1, 2023
    1
    Copy the full SHA
    48b33f7 View commit details
  2. 1
    Copy the full SHA
    fbfe21e View commit details
  3. Update urql.mdx (#1907)

    Update urql documentation to align with current version
    RIP21 authored May 1, 2023
    1
    Copy the full SHA
    3385f8c View commit details
  4. docs(react): iterator type on es5 target (#1900) (#1906)

    * fix(react): iterator type on es5 target (#1900)
    
    * Revert "fix(react): iterator type on es5 target (#1900)"
    
    This reverts commit e3bdb23.
    
    * docs: update doc
    
    * docs: fix type
    himself65 authored May 1, 2023
    1
    Copy the full SHA
    1967bba View commit details

Commits on May 4, 2023

  1. fix(vanilla): better promise handling (#1851)

    * add failing test
    
    * add more tests
    
    * revisit store tests
    
    * fix for one of tests
    
    * wip: nextDependencies instead of depSet
    
    * fix test with resolving pending promises
    
    * lint
    
    * wait some ticks instead of resolveMap
    
    * add test for #1905
    
    * fix test for #1905
    
    * simplify test
    
    * fix test for react usage
    
    * fix store to pass the test
    
    ---------
    
    Co-authored-by: M. Bagher Abiat <zorofight94@gmail.com>
    dai-shi and Aslemammad authored May 4, 2023
    1
    Copy the full SHA
    85dba6b View commit details
  2. fix(atomWithStorage): handle RESET/removeItem from cross-tab storage …

    …updates (#1882)
    
    * fix(atomWithStorage): handle RESET/removeItem from cross-tab storage updates
    
    BREAKING CHANGE: `SyncStorage` and `AsyncStorage` now receive `initialValue` as an argument to `getItem` and `subscribe`
    BREAKING CHANGE: Removed export `unstable_NO_STORAGE_VALUE`
    
    * docs: ensure subscribe method uses callback in validated storage example
    nderscore authored May 4, 2023
    1
    Copy the full SHA
    aa9859f View commit details
  3. breaking(vanilla): remove deprecated store dev methods (#1893)

    * breaking: remove deprecated store dev methods
    
    * remove corresponding tests
    dai-shi authored May 4, 2023
    1
    Copy the full SHA
    c42e7c7 View commit details
  4. fix(react): Infer useHydrateAtoms value types from atom.read ReturnTy…

    …pe (#1898)
    
    * Exporting AnyWritableAtom for external usage.
    
    * Updating test title.
    
    * Removing duplicate test.
    
    * Inferring type for useHydrateAtoms values based on generic.
    
    * Update src/react/utils/useHydrateAtoms.ts
    
    * Creating recursive type InferAtoms.
    
    * Updating test to use two different atoms.
    
    * Updating test to pass.
    
    * Reworking InferAtoms to work with Iterable.
    
    * Switching from 'never' to 'any', continue support for 'Map'.
    
    * Adding test to confirm continued support for 'Map'.
    
    * Removing newline between types.
    
    * Moving test to see if that cleans up diff readability.
    
    * Overloading function to include Map/Array.
    
    * Updating test for Map to include two atoms.
    
    * Adding types test for useHydrateAtoms.
    
    * Exporting all possible overloaded types.
    
    * Updating type test to include a few other atom type mismatches.
    
    * Adding ts-ignore for ts 3.8 support.
    
    ---------
    
    Co-authored-by: Daishi Kato <dai-shi@users.noreply.github.com>
    ericdowell and dai-shi authored May 4, 2023
    1
    Copy the full SHA
    1c08b20 View commit details

Commits on May 5, 2023

  1. chore(tests): migrate to vitest (#1839)

    * chore: initial vitest setup
    
    * test(vanilla): migrate vanilla tests
    
    * test(babel): migrate babel tests
    
    * chore: react-testing library vitest setup
    
    * test(react): migrate tests
    
    * test: deprecate legacy tests + update scripts
    
    * test: remove unnecessary changes
    
    * ci: remove references to jest update scripts
    
    * chore: remove extra test setup
    
    * ci(test-old-typescript): update command
    
    * test: try removing pretty-format override
    
    * test: use named imports for vitest
    
    * test: revert stylistic changes
    
    * test: fix react transition test
    
    * chore(package.json): revert react experimental version
    
    * chore: bump react experimental versions
    
    * chore: add types for babel-core
    
    * test(atomWithObservable): use shouldAdvanceTime to bring mock time in parity with real time
    
    * chore: update old typescript file
    
    * chore: update old typescript file
    
    * test: add type + keep parse5 in old tests
    
    * chore: remove extra test scripts
    
    Co-authored-by: Daishi Kato <dai-shi@users.noreply.github.com>
    
    * test(types.test.tsx): import it from vitest
    
    ---------
    
    Co-authored-by: Daishi Kato <dai-shi@users.noreply.github.com>
    arjunvegda and dai-shi authored May 5, 2023
    1
    Copy the full SHA
    cc35d1d View commit details

Commits on May 6, 2023

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

    * chore(deps): update dev dependencies
    
    * use node 18
    
    * fix rollup error
    
    * fix test old ts workflow
    
    * use userEvent instead of fireEvent for some
    
    * use fake timers
    
    * Revert "use fake timers"
    
    This reverts commit b7f7d76.
    
    * test: fix some async tests
    
    * chore: use node v16 for react 16.x
    
    * chore: use node v16 for react 16.x attempt 2
    
    * revert invalid if/else syntax
    
    * revert invalid if/else syntax
    
    * test(async): use vi.useFakeTimer when using set timeouts
    
    * test(async.test.tsx): revert additional check
    
    * test(async): use fake timers when working with promises
    
    * test(async): use fake timers when working with promises attempt 2
    
    * refactor for consistency
    
    * test(test-multiple-versions.yml): downgrade to node 14 for react@16.9.0
    
    * using the same hack in other tests in async.test.tsx
    
    * test(async.test.tsx): avoid using faketimers
    
    * fix act warning in async.test.tsx
    
    * fix act warning in tests
    
    * test: patch jsdom for react@16.9.0
    
    * test: bump react 16 version
    
    * test: remove old jsdom patch
    
    * a workaround for missing performance.mark
    
    * consistent comments
    
    ---------
    
    Co-authored-by: Arjun <14841132+arjunvegda@users.noreply.github.com>
    dai-shi and arjunvegda authored May 6, 2023
    1
    Copy the full SHA
    9e64092 View commit details
  2. 2.1.0

    dai-shi committed May 6, 2023
    1
    Copy the full SHA
    b38d44c View commit details
Loading