Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range 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: a4865f931ac31b11218f9fee21e4d084d576fffc
Choose a base ref
..
head repository: pmndrs/jotai
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: f9c3966ce0d5f7111a2fe5fcdf161612d07c4e93
Choose a head ref
Showing with 7,546 additions and 70,281 deletions.
  1. +17 −0 .github/workflows/cr.yml
  2. +2 −2 .github/workflows/test-multiple-versions.yml
  3. +1 −1 .github/workflows/test-old-typescript.yml
  4. +13 −0 examples/hacker_news/index.html
  5. +14 −27 examples/hacker_news/package.json
  6. +911 −0 examples/hacker_news/pnpm-lock.yaml
  7. +6 −0 examples/hacker_news/vite.config.ts
  8. +0 −11,393 examples/hacker_news/yarn.lock
  9. +0 −1 examples/hello/.gitignore
  10. +18 −0 examples/hello/index.html
  11. +14 −32 examples/hello/package.json
  12. +809 −0 examples/hello/pnpm-lock.yaml
  13. +6 −0 examples/hello/vite.config.ts
  14. +0 −11,423 examples/hello/yarn.lock
  15. +0 −3 examples/mega-form/.gitignore
  16. +13 −0 examples/mega-form/index.html
  17. +13 −27 examples/mega-form/package.json
  18. +806 −0 examples/mega-form/pnpm-lock.yaml
  19. +1 −1 examples/mega-form/src/App.tsx
  20. +6 −0 examples/mega-form/vite.config.ts
  21. +0 −11,412 examples/mega-form/yarn.lock
  22. +34 −0 examples/text_length/index.html
  23. +12 −25 examples/text_length/package.json
  24. +768 −0 examples/text_length/pnpm-lock.yaml
  25. +6 −0 examples/text_length/vite.config.ts
  26. +0 −11,289 examples/text_length/yarn.lock
  27. +13 −0 examples/todos/index.html
  28. +16 −28 examples/todos/package.json
  29. +1,585 −0 examples/todos/pnpm-lock.yaml
  30. +6 −0 examples/todos/vite.config.ts
  31. +0 −11,846 examples/todos/yarn.lock
  32. +13 −0 examples/todos_with_atomFamily/index.html
  33. +16 −32 examples/todos_with_atomFamily/package.json
  34. +1,587 −0 examples/todos_with_atomFamily/pnpm-lock.yaml
  35. +6 −0 examples/todos_with_atomFamily/vite.config.ts
  36. +0 −11,846 examples/todos_with_atomFamily/yarn.lock
  37. +21 −21 package.json
  38. +800 −858 pnpm-lock.yaml
  39. +6 −3 src/react/Provider.ts
  40. +1 −5 src/react/useAtomValue.ts
  41. +4 −4 tests/react/vanilla-utils/atomWithObservable.test.tsx
  42. +2 −2 tests/vanilla/store.test.tsx
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
- run: corepack enable
- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'
- run: pnpm install
- run: pnpm build
- run: pnpm dlx pkg-pr-new publish './dist' --compact --template './examples/*'
4 changes: 2 additions & 2 deletions .github/workflows/test-multiple-versions.yml
Original file line number Diff line number Diff line change
@@ -34,8 +34,8 @@ jobs:
- 18.2.0
- 18.3.1
- 19.0.0
- 19.0.0-rc-e1ef8c95-20241115
- 0.0.0-experimental-e1ef8c95-20241115
- 19.1.0-canary-4dff0e62-20241213
- 0.0.0-experimental-4dff0e62-20241213
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
2 changes: 1 addition & 1 deletion .github/workflows/test-old-typescript.yml
Original file line number Diff line number Diff line change
@@ -92,7 +92,7 @@ jobs:
if: ${{ matrix.typescript == '4.0.5' || startsWith(matrix.typescript, '3.') }}
run: |
pnpm json -I -f package.json -e "this.pnpm.patchedDependencies={};"
pnpm add -D @testing-library/user-event@12.1.7 @testing-library/react@11.0.4
pnpm add -D @testing-library/user-event@12.1.7 @testing-library/react@11.0.4 @types/react-dom@18.3.1
rm node_modules/vitest/dist/*.d.ts
echo "declare module 'vitest'" >> ./src/types.d.ts
- name: Test ${{ matrix.typescript }}
13 changes: 13 additions & 0 deletions examples/hacker_news/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="theme-color" content="#000000" />
<title>Jotai Examples | Hacker News</title>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/index.tsx"></script>
</body>
</html>
41 changes: 14 additions & 27 deletions examples/hacker_news/package.json
Original file line number Diff line number Diff line change
@@ -2,37 +2,24 @@
"name": "hacker_news",
"version": "2.0.0",
"description": "Demonstrate a news articles with jotai, hit next to see more articles.",
"keywords": [],
"main": "src/index.tsx",
"type": "module",
"scripts": {
"dev": "vite",
"build": "tsc && vite build",
"serve": "vite preview"
},
"dependencies": {
"@react-spring/web": "^9.2.3",
"html-react-parser": "^1.2.6",
"jotai": "^2.0.4",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-scripts": "^4.0.3"
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
"devDependencies": {
"@types/react": "^17.0.11",
"@types/react-dom": "^17.0.7",
"typescript": "^4.3.2"
},
"eslintConfig": {
"extends": [
"react-app",
"react-app/jest"
]
},
"scripts": {
"start": "SKIP_PREFLIGHT_CHECK=true react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test --env=jsdom",
"eject": "react-scripts eject"
},
"browserslist": [
">0.2%",
"not dead",
"not ie <= 11",
"not op_mini all"
]
"@types/react": "^18.2.0",
"@types/react-dom": "^18.2.0",
"@vitejs/plugin-react": "^4.0.0",
"typescript": "^5.0.0",
"vite": "^4.0.0"
}
}
Loading