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.8.3
Choose a base ref
...
head repository: pmndrs/jotai
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref

Commits on Jun 5, 2024

  1. chore: fix some comments (#2602)

    Signed-off-by: tcpdumppy <847462026@qq.com>
    tcpdumppy authored Jun 5, 2024
    Copy the full SHA
    b5b9b77 View commit details

Commits on Jun 6, 2024

  1. Copy the full SHA
    26b99a4 View commit details

Commits on Jun 18, 2024

  1. English updates. (#2614)

    * Update family.mdx
    
    English improvements for clarity.
    
    * Update concepts.mdx
    
    Typos and derivated to derived.
    
    reference: https://word.tips/spelling/derived-vs-derivated/
    ideabrian authored Jun 18, 2024
    Copy the full SHA
    7613f8a View commit details

Commits on Jun 19, 2024

  1. chore: issue template

    dai-shi committed Jun 19, 2024
    Copy the full SHA
    8f2f97d View commit details

Commits on Jun 21, 2024

  1. Copy the full SHA
    cb877f2 View commit details
  2. Copy the full SHA
    bb836e3 View commit details

Commits on Jun 22, 2024

  1. chore: discussion template

    dai-shi committed Jun 22, 2024
    Copy the full SHA
    663e054 View commit details

Commits on Jun 28, 2024

  1. Copy the full SHA
    2c3c658 View commit details
  2. Copy the full SHA
    5051409 View commit details
  3. 2.8.4

    dai-shi committed Jun 28, 2024
    Copy the full SHA
    fcef1e4 View commit details
  4. chore(tests, docs): prefer user-event (#2638)

    * chore(tests): prefer user-event
    
    * revert some changes
    
    * revert async2 test completely
    
    * async and async2
    
    * fix async
    
    * update docs too
    
    * revert docs for RN
    dai-shi authored Jun 28, 2024
    Copy the full SHA
    2c021f9 View commit details

Commits on Jul 9, 2024

  1. ci: fix pnpm setup (#2646)

    * ci: fix pnpm setup
    
    * ci: update
    
    * ci: update
    himself65 authored Jul 9, 2024
    Copy the full SHA
    4db874c View commit details
  2. Copy the full SHA
    1a40452 View commit details
  3. chore(deps): update dev dependencies (#2651)

    * chore(deps): update dev dependencies
    
    * fix types
    
    * fix for older ts
    dai-shi authored Jul 9, 2024
    Copy the full SHA
    3a9d701 View commit details
  4. 2.9.0

    dai-shi committed Jul 9, 2024
    Copy the full SHA
    904cb39 View commit details

Commits on Jul 16, 2024

  1. Copy the full SHA
    ba9e8fe View commit details

Commits on Jul 17, 2024

  1. refactor(core): store with Object.assign (#2663)

    * refactor(core): store with Object.assign
    
    * fix a gh action
    dai-shi authored Jul 17, 2024
    Copy the full SHA
    debff8b View commit details

Commits on Jul 20, 2024

  1. chore: enable verbatimModuleSyntax in tsconfig (#2664)

    * chore: enable verbatimModuleSyntax in tsconfig
    
    * fix a workflow
    
    * fix title
    dai-shi authored Jul 20, 2024
    Copy the full SHA
    628aa3e View commit details

Commits on Jul 23, 2024

  1. atom toString includes debugLabel in dev mode (#2659)

    Co-authored-by: Daishi Kato <dai-shi@users.noreply.github.com>
    David Maskasky and dai-shi authored Jul 23, 2024
    Copy the full SHA
    27117bf View commit details
  2. fix(core): Unmount an atom that is no longer dependent within a deriv…

    …ed atom (#2660)
    
    * Add test
    
    * fix #2658
    
    * refactor
    
    ---------
    
    Co-authored-by: Daishi Kato <dai-shi@users.noreply.github.com>
    Co-authored-by: daishi <daishi@axlight.com>
    3 people authored Jul 23, 2024
    Copy the full SHA
    98e23c9 View commit details
  3. fix: add undefined initial value to primitive Atom definition (#2668)

    Co-authored-by: Daishi Kato <dai-shi@users.noreply.github.com>
    rtritto and dai-shi authored Jul 23, 2024
    Copy the full SHA
    2fbcc4d View commit details
  4. Copy the full SHA
    61af13a View commit details
  5. 2.9.1

    dai-shi committed Jul 23, 2024
    Copy the full SHA
    aeeb479 View commit details

Commits on Aug 5, 2024

  1. Copy the full SHA
    c76b224 View commit details

Commits on Aug 6, 2024

  1. Copy the full SHA
    9228a88 View commit details

Commits on Aug 7, 2024

  1. feat(utils): atomFamily supports getParams and unstable_listen api (#…

    …2685)
    
    * feat(atomFamily): support getParams and unstable_listen api
    
    * Update tests/vanilla/utils/atomFamily.test.ts
    
    * Update src/vanilla/utils/atomFamily.ts
    
    Co-authored-by: Daishi Kato <dai-shi@users.noreply.github.com>
    
    * call notifyListeners after adding to set
    
    * add jsdoc comment for CreatedAt
    
    ---------
    
    Co-authored-by: Daishi Kato <dai-shi@users.noreply.github.com>
    David Maskasky and dai-shi authored Aug 7, 2024
    Copy the full SHA
    b4565cb View commit details
  2. Copy the full SHA
    785d14a View commit details
  3. 2.9.2

    dai-shi committed Aug 7, 2024
    Copy the full SHA
    20e0cde View commit details

Commits on Aug 8, 2024

  1. chore: update typescript-eslint (#2698)

    * wip: update typescript-eslint
    
    * do not run lint on json files and add exceptions
    
    * avoid no-unused-expressions
    
    * use project level config override
    
    * remove unused rule
    dai-shi authored Aug 8, 2024
    Copy the full SHA
    7d4da51 View commit details

Commits on Aug 12, 2024

  1. fix(store): derived atom not updating when its value changes if anoth…

    …er atom is read it conditionally (#2700)
    
    * add a failing test
    
    * fix miss detection of epoch change that updated indirectly
    
    * refactor
    
    ---------
    
    Co-authored-by: daishi <daishi@axlight.com>
    yuneco and dai-shi authored Aug 12, 2024
    Copy the full SHA
    41158e6 View commit details

Commits on Aug 13, 2024

  1. experimental(core): expose unstable_derive (#2652)

    * experimental(core): expose unstable_derive instead of unstable_is
    
    * chore: remove empty line
    
    * chore types
    
    * follow resolveAtom in #2609
    
    * store test from #2609
    
    * adjust store.test.tsx for unstable_derive
    
    * limit atom state map type
    
    * add test with atom state map
    
    * update test using unstable_derive
    
    * drop resolveAtom, add derive atom test
    
    * simplify unstable_derive
    
    * wip: this works but i do not like it
    
    * separate atomstate and atomcontext
    
    * for old ts
    
    * fix
    
    * fix 2
    
    * simplify a bit with dev breaking changes
    
    * revert to bd9c6c0, except for new test
    
    * refactor (skipping the new test for now)
    
    * refactor 2
    
    * revert those refactors :-p
    
    * wip: hm, how is bundle size?
    
    * fix tests
    
    * add test for unstable_derive (#2665)
    
    * add a failing test
    
    * wip: failed attempt
    
    * split unstable_derive test
    
    * wip: failed attempt 2
    
    * revert failing tests
    
    * empty commit
    
    * restore unstable_is of now (we will remove it in the later version.)
    
    ---------
    
    Co-authored-by: David Maskasky <dmaskasky@gmail.com>
    Co-authored-by: David Maskasky <dmaskasky@otter.ai>
    3 people authored Aug 13, 2024
    Copy the full SHA
    6b91571 View commit details
  2. Copy the full SHA
    64012da View commit details
  3. 2.9.3

    dai-shi committed Aug 13, 2024
    Copy the full SHA
    148d876 View commit details

Commits on Aug 18, 2024

  1. Update split.mdx with keyExtractor info (#2653)

    * Update split.mdx with keyExtractor info
    
    * run prettier
    
    ---------
    
    Co-authored-by: Daishi Kato <dai-shi@users.noreply.github.com>
    Co-authored-by: daishi <daishi@axlight.com>
    3 people authored Aug 18, 2024
    Copy the full SHA
    c36f242 View commit details

Commits on Aug 23, 2024

  1. Copy the full SHA
    7ca4b27 View commit details

Commits on Aug 28, 2024

  1. docs(atom-with-broadcast): update example code to work with TypeScript (

    #2716)
    
    * docs(atom-with-broadcast): update example code to work with TypeScript
    
    * chore: run prettier
    
    * refactor(atom-with-broadcast): some types stuff
    
    * refactor(atom-with-broadcast): put types in update
    hoangvu12 authored Aug 28, 2024
    Copy the full SHA
    1deb5e0 View commit details

Commits on Sep 2, 2024

  1. add a test (#2722)

    dai-shi authored Sep 2, 2024
    Copy the full SHA
    5f2c4db View commit details
  2. Copy the full SHA
    7757552 View commit details

Commits on Sep 3, 2024

  1. Copy the full SHA
    cbbe4a0 View commit details
  2. Copy the full SHA
    ce9f820 View commit details
  3. Copy the full SHA
    cdc2225 View commit details

Commits on Sep 8, 2024

  1. Mention connections to functional programming in README and docs (#2726)

    * docs: add docs page "Functional programming and Jotai"
    
    * Briefly mention monads in README
    
    * pnpm run prettier
    probeiuscorp authored Sep 8, 2024
    3
    Copy the full SHA
    34794c0 View commit details
  2. Copy the full SHA
    74b3803 View commit details

Commits on Sep 11, 2024

  1. docs(functional): cover sequence (#2729)

    * docs(functional): cover sequence
    
    * docs(functional): add notes section
    probeiuscorp authored Sep 11, 2024
    Copy the full SHA
    9b83585 View commit details

Commits on Sep 15, 2024

  1. Copy the full SHA
    ab68d4d View commit details
  2. chore: enable isolatedDeclarations (#2687)

    * experimental: enable isolatedDeclarations
    
    * update typescript
    dai-shi authored Sep 15, 2024
    Copy the full SHA
    a26203e View commit details

Commits on Sep 16, 2024

  1. Copy the full SHA
    9699c17 View commit details
  2. feat(docs): update docs for jotai-effect (#2735)

    David Maskasky authored Sep 16, 2024
    Copy the full SHA
    b415826 View commit details

Commits on Sep 20, 2024

  1. breaking(core): avoid continuable promise in store api (#2695)

    * add failing test for #2682
    
    * wip: continuable promise in useAtomValue
    
    * wip: abortable promise
    
    * wip fix store test
    
    * wip: fix dependency test
    
    * wip: fix continuable promise
    
    * fix unwrap test
    
    * fix loadable tes
    
    * fix with attachPromiseMeta
    
    * refactor
    
    * eliminate abort controller for promise
    
    * small refactor
    
    * refactor
    
    * minor refactor
    
    * improvement: cancel handler receives next value
    dai-shi authored Sep 20, 2024
    Copy the full SHA
    e777f46 View commit details
  2. chore(deps): update dev dependencies (#2743)

    * chore(deps): update dev dependencies
    
    * patch for old ts
    
    * remove unused deps
    dai-shi authored Sep 20, 2024
    Copy the full SHA
    09b08a5 View commit details
Showing with 12,498 additions and 78,303 deletions.
  1. +0 −122 .eslintrc.json
  2. +17 −0 .github/DISCUSSION_TEMPLATE/bug-report.yml
  3. +2 −19 .github/ISSUE_TEMPLATE/bug_report.md
  4. +9 −3 .github/ISSUE_TEMPLATE/config.yml
  5. +2 −4 .github/pull_request_template.md
  6. +7 −10 .github/workflows/compressed-size-action.yml
  7. +17 −0 .github/workflows/cr.yml
  8. +44 −0 .github/workflows/ecosystem-ci.yml
  9. +8 −11 .github/workflows/lint-and-type.yml
  10. +7 −10 .github/workflows/livecodes-preview.yml
  11. +6 −10 .github/workflows/publish.yml
  12. +13 −14 .github/workflows/test-multiple-builds.yml
  13. +19 −23 .github/workflows/test-multiple-versions.yml
  14. +23 −13 .github/workflows/test-old-typescript.yml
  15. +5 −0 .gitignore
  16. +61 −45 CONTRIBUTING.md
  17. +7 −0 readme.md → README.md
  18. +1 −0 babel.config.js
  19. +1 −1 docs/basics/comparison.mdx
  20. +4 −4 docs/basics/concepts.mdx
  21. +134 −0 docs/basics/functional-programming-and-jotai.mdx
  22. +1 −1 docs/basics/showcase.mdx
  23. +2 −2 docs/core/atom.mdx
  24. +3 −3 docs/extensions/cache.mdx
  25. +190 −147 docs/extensions/effect.mdx
  26. +6 −6 docs/extensions/immer.mdx
  27. +8 −5 docs/extensions/location.mdx
  28. +3 −3 docs/extensions/optics.mdx
  29. +8 −6 docs/extensions/query.mdx
  30. +2 −2 docs/extensions/redux.mdx
  31. +2 −2 docs/extensions/relay.mdx
  32. +9 −9 docs/extensions/scope.mdx
  33. +2 −2 docs/extensions/trpc.mdx
  34. +3 −3 docs/extensions/urql.mdx
  35. +3 −3 docs/extensions/valtio.mdx
  36. +3 −3 docs/extensions/xstate.mdx
  37. +2 −2 docs/extensions/zustand.mdx
  38. +1 −1 docs/guides/async.mdx
  39. +1 −1 docs/guides/atoms-in-atom.mdx
  40. +1 −1 docs/guides/composing-atoms.mdx
  41. +1 −1 docs/guides/core-internals.mdx
  42. +5 −4 docs/guides/debugging.mdx
  43. +0 −15 docs/guides/gatsby.mdx
  44. +2 −2 docs/guides/initialize-atom-on-render.mdx
  45. +1 −1 docs/guides/migrating-to-v2-api.mdx
  46. +1 −1 docs/guides/nextjs.mdx
  47. +2 −61 docs/guides/performance.mdx
  48. +3 −3 docs/guides/persistence.mdx
  49. +1 −1 docs/guides/react-native.mdx
  50. +1 −1 docs/guides/remix.mdx
  51. +3 −3 docs/guides/resettable.mdx
  52. +7 −5 docs/guides/testing.mdx
  53. +1 −1 docs/guides/typescript.mdx
  54. +2 −2 docs/guides/using-store-outside-react.mdx
  55. +1 −1 docs/guides/vite.mdx
  56. +11 −0 docs/guides/waku.mdx
  57. +13 −7 docs/{introduction.mdx → index.mdx}
  58. +14 −7 docs/recipes/atom-with-broadcast.mdx
  59. +1 −1 docs/recipes/atom-with-compare.mdx
  60. +2 −2 docs/recipes/atom-with-debounce.mdx
  61. +1 −1 docs/recipes/atom-with-listeners.mdx
  62. +3 −3 docs/recipes/atom-with-refresh-and-default.mdx
  63. +1 −1 docs/recipes/atom-with-refresh.mdx
  64. +1 −1 docs/recipes/atom-with-toggle-and-storage.mdx
  65. +1 −1 docs/recipes/atom-with-toggle.mdx
  66. +15 −10 docs/recipes/custom-useatom-hooks.mdx
  67. +5 −5 docs/recipes/large-objects.mdx
  68. +2 −2 docs/recipes/use-atom-effect.mdx
  69. +2 −2 docs/recipes/use-reducer-atom.mdx
  70. +208 −0 docs/third-party/bunja.mdx
  71. +145 −0 docs/third-party/derive.mdx
  72. +110 −0 docs/third-party/history.mdx
  73. +10 −4 docs/tools/babel.mdx
  74. +5 −5 docs/tools/devtools.mdx
  75. +2 −2 docs/tools/swc.mdx
  76. +2 −2 docs/utilities/async.mdx
  77. +2 −2 docs/utilities/callback.mdx
  78. +7 −7 docs/utilities/family.mdx
  79. +3 −1 docs/utilities/reducer.mdx
  80. +3 −3 docs/utilities/resettable.mdx
  81. +2 −2 docs/utilities/select.mdx
  82. +35 −10 docs/utilities/split.mdx
  83. +4 −0 docs/utilities/ssr.mdx
  84. +4 −3 docs/utilities/storage.mdx
  85. +102 −0 eslint.config.mjs
  86. +6 −6 examples/hacker_news/README.md
  87. +13 −0 examples/hacker_news/index.html
  88. +15 −28 examples/hacker_news/package.json
  89. +2 −3 examples/hacker_news/src/index.tsx
  90. +0 −1 examples/hacker_news/src/react-app-env.d.ts
  91. +1 −0 examples/hacker_news/src/vite-env.d.ts
  92. +6 −0 examples/hacker_news/vite.config.ts
  93. +0 −11,393 examples/hacker_news/yarn.lock
  94. +0 −1 examples/hello/.gitignore
  95. +8 −6 examples/hello/README.md
  96. +18 −0 examples/hello/index.html
  97. +15 −34 examples/hello/package.json
  98. +5 −4 examples/hello/src/index.tsx
  99. +0 −1 examples/hello/src/react-app-env.d.ts
  100. +0 −1 examples/hello/src/style.css
  101. +1 −0 examples/hello/src/vite-env.d.ts
  102. +6 −0 examples/hello/vite.config.ts
  103. +0 −11,423 examples/hello/yarn.lock
  104. +0 −3 examples/mega-form/.gitignore
  105. +8 −6 examples/mega-form/README.md
  106. +13 −0 examples/mega-form/index.html
  107. +13 −27 examples/mega-form/package.json
  108. +1 −1 examples/mega-form/src/App.tsx
  109. +2 −2 examples/mega-form/src/index.tsx
  110. +0 −1 examples/mega-form/src/react-app-env.d.ts
  111. +1 −0 examples/mega-form/src/vite-env.d.ts
  112. +6 −0 examples/mega-form/vite.config.ts
  113. +0 −11,412 examples/mega-form/yarn.lock
  114. +20 −0 examples/starter/README.md
  115. +15 −0 examples/starter/index.html
  116. +23 −0 examples/starter/package.json
  117. BIN examples/starter/src/assets/jotai-mascot.png
  118. +14 −0 examples/starter/src/index.css
  119. +53 −0 examples/starter/src/index.tsx
  120. +1 −0 examples/starter/src/vite-env.d.ts
  121. +22 −0 examples/starter/tsconfig.json
  122. +7 −0 examples/starter/vite.config.ts
  123. +6 −6 examples/text_length/README.md
  124. +34 −0 examples/text_length/index.html
  125. +13 −26 examples/text_length/package.json
  126. +2 −3 examples/text_length/src/index.tsx
  127. +6 −0 examples/text_length/vite.config.ts
  128. +0 −11,289 examples/text_length/yarn.lock
  129. +6 −6 examples/todos/README.md
  130. +13 −0 examples/todos/index.html
  131. +17 −29 examples/todos/package.json
  132. +3 −2 examples/todos/src/index.tsx
  133. +0 −1 examples/todos/src/react-app-env.d.ts
  134. +1 −0 examples/todos/src/vite-env.d.ts
  135. +6 −0 examples/todos/vite.config.ts
  136. +0 −11,846 examples/todos/yarn.lock
  137. +6 −6 examples/todos_with_atomFamily/README.md
  138. +13 −0 examples/todos_with_atomFamily/index.html
  139. +17 −33 examples/todos_with_atomFamily/package.json
  140. +2 −2 examples/todos_with_atomFamily/src/index.tsx
  141. +0 −1 examples/todos_with_atomFamily/src/react-app-env.d.ts
  142. +1 −0 examples/todos_with_atomFamily/src/vite-env.d.ts
  143. +6 −0 examples/todos_with_atomFamily/vite.config.ts
  144. +0 −11,846 examples/todos_with_atomFamily/yarn.lock
  145. +56 −58 package.json
  146. +5,148 −4,316 pnpm-lock.yaml
  147. +20 −23 rollup.config.js → rollup.config.mjs
  148. +2 −1 src/babel/plugin-debug-label.ts
  149. +2 −1 src/babel/plugin-react-refresh.ts
  150. +1 −1 src/babel/preset.ts
  151. +1 −1 src/babel/utils.ts
  152. +0 −11 src/experimental.ts
  153. +8 −3 src/react/Provider.ts
  154. +76 −18 src/react/useAtomValue.ts
  155. +0 −1 src/types.d.ts
  156. +1 −11 src/vanilla.ts
  157. +18 −3 src/vanilla/atom.ts
  158. +950 −0 src/vanilla/internals.ts
  159. +82 −830 src/vanilla/store.ts
  160. +0 −734 src/vanilla/store2.ts
  161. +47 −6 src/vanilla/utils/atomFamily.ts
  162. +2 −1 src/vanilla/utils/atomWithLazy.ts
  163. +1 −1 src/vanilla/utils/constants.ts
  164. +13 −27 src/vanilla/utils/loadable.ts
  165. +11 −19 src/vanilla/utils/unwrap.ts
  166. +73 −61 tests/react/abortable.test.tsx
  167. +339 −303 tests/react/async.test.tsx
  168. +187 −36 tests/react/async2.test.tsx
  169. +165 −147 tests/react/basic.test.tsx
  170. +173 −158 tests/react/dependency.test.tsx
  171. +84 −74 tests/react/error.test.tsx
  172. +21 −20 tests/react/items.test.tsx
  173. +84 −73 tests/react/onmount.test.tsx
  174. +95 −96 tests/react/optimization.test.tsx
  175. +7 −7 tests/react/provider.test.tsx
  176. +13 −14 tests/react/transition.test.tsx
  177. +7 −6 tests/react/types.test.tsx
  178. +7 −5 tests/react/useAtomValue.test.tsx
  179. +20 −17 tests/react/useSetAtom.test.tsx
  180. +2 −2 tests/react/utils/types.test.tsx
  181. +20 −19 tests/react/utils/useAtomCallback.test.tsx
  182. +65 −54 tests/react/utils/useHydrateAtoms.test.tsx
  183. +22 −21 tests/react/utils/useReducerAtom.test.tsx
  184. +46 −45 tests/react/utils/useResetAtom.test.tsx
  185. +50 −42 tests/react/vanilla-utils/atomFamily.test.tsx
  186. +90 −58 tests/react/vanilla-utils/atomWithDefault.test.tsx
  187. +224 −192 tests/react/vanilla-utils/atomWithObservable.test.tsx
  188. +16 −15 tests/react/vanilla-utils/atomWithReducer.test.tsx
  189. +38 −32 tests/react/vanilla-utils/atomWithRefresh.test.tsx
  190. +105 −55 tests/react/vanilla-utils/atomWithStorage.test.tsx
  191. +10 −9 tests/react/vanilla-utils/freezeAtom.test.tsx
  192. +47 −38 tests/react/vanilla-utils/loadable.test.tsx
  193. +35 −33 tests/react/vanilla-utils/selectAtom.test.tsx
  194. +95 −122 tests/react/vanilla-utils/splitAtom.test.tsx
  195. +1 −0 tests/setup.ts
  196. +5 −0 tests/vanilla/basic.test.tsx
  197. +198 −39 tests/vanilla/dependency.test.tsx
  198. +208 −0 tests/vanilla/derive.test.tsx
  199. +266 −0 tests/vanilla/effect.test.ts
  200. +26 −0 tests/vanilla/internals.test.tsx
  201. +72 −27 tests/vanilla/memoryleaks.test.ts
  202. +818 −14 tests/vanilla/store.test.tsx
  203. +24 −135 tests/vanilla/storedev.test.tsx
  204. +13 −3 tests/vanilla/types.test.tsx
  205. +95 −0 tests/vanilla/utils/atomFamily.test.ts
  206. +35 −0 tests/vanilla/utils/atomWithReset.test.ts
  207. +16 −0 tests/vanilla/utils/loadable.test.ts
  208. +28 −0 tests/vanilla/utils/unwrap.test.ts
  209. +4 −0 tsconfig.json
  210. +19 −2 vitest.config.ts → vitest.config.mts
  211. +19 −3 website/gatsby-node.js
  212. +1 −1 website/gatsby-shared.js
  213. +1 −0 website/package.json
  214. +15 −5 website/pnpm-lock.yaml
  215. +7 −0 website/reach-router.js
  216. +1 −1 website/src/components/button.js
  217. +55 −34 website/src/components/docs.js
  218. +2 −2 website/src/components/icon.js
  219. +3 −3 website/src/components/jotai.js
  220. +5 −3 website/src/components/layout.js
  221. +34 −53 website/src/components/menu.js
  222. +44 −0 website/src/components/shelf.js
  223. +33 −18 website/src/components/sidebar.js
  224. +1 −1 website/src/components/stackblitz.js
  225. +4 −4 website/src/components/toc.js
  226. +1 −1 website/src/components/wrapper.js
  227. +20 −0 website/src/hooks/index.js
  228. +4 −2 website/src/pages/docs/{Mdx.slug}.js
  229. +8 −4 website/src/pages/index.js
  230. +2 −2 website/vercel.json
122 changes: 0 additions & 122 deletions .eslintrc.json

This file was deleted.

17 changes: 17 additions & 0 deletions .github/DISCUSSION_TEMPLATE/bug-report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
labels: ["bug"]
body:
- type: markdown
attributes:
value: If you don't have a reproduction link, please choose a different category.
- type: textarea
attributes:
label: Bug Description
description: Describe the bug you encountered
validations:
required: true
- type: input
attributes:
label: Reproduction Link
description: A link to a [TypeScript Playground](https://www.typescriptlang.org/play), a [StackBlitz Project](https://stackblitz.com/) or something else with a minimal reproduction.
validations:
required: true
21 changes: 2 additions & 19 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -1,26 +1,9 @@
---
name: Confirmed bug report
about: Create a confirmed bug report. Please open a discussion otherwise.
name: Assigned issue
about: This is to create a new issue that already has an assignee. Please open a new discussion otherwise.
title: ''
labels: ''
assignees: ''

---

## Summary



## Link to reproduction



## Check List

Please do not ask questions in issues.

- [ ] I've already opened a [discussion](https://github.com/pmndrs/jotai/discussions) before opening this issue, or already discussed in other media.

Please include a minimal reproduction.

- [ ] I've added a link to a [typescript playground](https://www.typescriptlang.org/play) or [codesandbox](https://codesandbox.io) with a minimal reproduction.
12 changes: 9 additions & 3 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
contact_links:
- name: Questions, unconfirmed bugs and ideas
url: https://github.com/pmndrs/jotai/discussions/new
about: Please post questions, unconfirmed bugs and ideas in discussions.
- name: Bug Reports
url: https://github.com/pmndrs/jotai/discussions/new?category=bug-report
about: Please post bug reports here.
- name: Questions
url: https://github.com/pmndrs/jotai/discussions/new?category=q-a
about: Please post questions here.
- name: Other Discussions
url: https://github.com/pmndrs/jotai/discussions/new/choose
about: Please post ideas and general discussions here.
6 changes: 2 additions & 4 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
## Related Issues or Discussions
## Related Bug Reports or Discussions

Fixes #

## Summary



## Check List

- [ ] `pnpm run prettier` for formatting code and docs
- [ ] `pnpm run fix` for formatting and linting code and docs
17 changes: 7 additions & 10 deletions .github/workflows/compressed-size-action.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,17 @@
name: Compressed Size

on: [ pull_request ]
on: [pull_request]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
version: 8.2.0
- uses: actions/setup-node@v3
with:
node-version: 18
node-version: 'lts/*'
cache: 'pnpm'
cache-dependency-path: '**/pnpm-lock.yaml'
- uses: preactjs/compressed-size-action@v2
with:
pattern: './dist/**/*.{js,mjs}'
17 changes: 17 additions & 0 deletions .github/workflows/cr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Publish Any Commit

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: 'lts/*'
cache: 'pnpm'
- run: pnpm install
- run: pnpm run build
- run: pnpm dlx pkg-pr-new publish './dist' --compact --template './examples/*'
44 changes: 44 additions & 0 deletions .github/workflows/ecosystem-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Ecosystem CI

on:
issue_comment:
types: [created]

jobs:
trigger:
runs-on: ubuntu-latest
if: ${{ github.event.issue.pull_request && startsWith(github.event.comment.body, '/ecosystem-ci run') }}
steps:
- uses: actions/checkout@v4
with:
repository: 'jotaijs/jotai-ecosystem-ci'
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: 22
cache: 'pnpm'
- run: pnpm install
- name: Get Short SHA
id: short_sha
run: |
api="https://api.github.com/repos/${{ github.repository }}/pulls/${{ github.event.issue.number }}"
sha=$(curl -s -H "Authorization: token $GITHUB_TOKEN" $api | jq -r '.head.sha' | cut -c1-8)
echo "x=$sha" >> $GITHUB_OUTPUT
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Run Ecosystem CI
id: run_command
run: |
echo "x<<EOF" >> $GITHUB_OUTPUT
pnpm run ecosystem-ci | grep -A999 -- '---- Jotai Ecosystem CI Results ----' >> $GITHUB_OUTPUT
echo "EOF" >> $GITHUB_OUTPUT
env:
JOTAI_PKG: https://pkg.csb.dev/pmndrs/jotai/commit/${{ steps.short_sha.outputs.x }}/jotai
- uses: peter-evans/create-or-update-comment@v4
with:
issue-number: ${{ github.event.issue.number }}
body: |
## Ecosystem CI Output
```
${{ steps.run_command.outputs.x }}
```
19 changes: 8 additions & 11 deletions .github/workflows/lint-and-type.yml
Original file line number Diff line number Diff line change
@@ -10,16 +10,13 @@ jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
version: 8.2.0
- uses: actions/setup-node@v3
with:
node-version: 18
node-version: 'lts/*'
cache: 'pnpm'
cache-dependency-path: '**/pnpm-lock.yaml'
- run: pnpm install --frozen-lockfile
- run: pnpm test:format
- run: pnpm test:types
- run: pnpm test:lint
- run: pnpm install
- run: pnpm run test:format
- run: pnpm run test:types
- run: pnpm run test:lint
17 changes: 7 additions & 10 deletions .github/workflows/livecodes-preview.yml
Original file line number Diff line number Diff line change
@@ -6,17 +6,14 @@ jobs:
build_and_prepare:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
version: 8.2.0
- uses: actions/setup-node@v3
with:
node-version: 18
node-version: 'lts/*'
cache: 'pnpm'
cache-dependency-path: '**/pnpm-lock.yaml'
- uses: live-codes/preview-in-livecodes@v1
with:
install-command: "pnpm install --frozen-lockfile"
build-command: "pnpm build"
base-url: "https://{{LC::REF}}.preview-in-livecodes-demo.pages.dev"
install-command: pnpm install
build-command: pnpm run build
base-url: 'https://{{LC::REF}}.preview-in-livecodes-demo.pages.dev'
16 changes: 6 additions & 10 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -8,19 +8,15 @@ jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
version: 8.2.0
- uses: actions/setup-node@v3
with:
node-version: 18
node-version: 'lts/*'
registry-url: 'https://registry.npmjs.org'
cache: 'pnpm'
cache-dependency-path: '**/pnpm-lock.yaml'
- run: pnpm install --frozen-lockfile
- run: pnpm test
- run: pnpm build
- run: pnpm install
- run: pnpm run build
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
Loading