Skip to content

Commit

Permalink
Update examples and templates
Browse files Browse the repository at this point in the history
  • Loading branch information
davidkpiano committed Nov 28, 2024
1 parent 65088b6 commit 8980f4a
Show file tree
Hide file tree
Showing 52 changed files with 10,313 additions and 408 deletions.
8 changes: 4 additions & 4 deletions examples/7guis-1-counter-vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@
},
"dependencies": {
"@xstate/vue": "^3.1.4",
"vue": "^3.5.10",
"xstate": "^5.18.2"
"vue": "^3.5.13",
"xstate": "^5.19.0"
},
"devDependencies": {
"@vitejs/plugin-vue": "^4.6.2",
"typescript": "^5.6.2",
"vite": "^5.4.8",
"typescript": "^5.7.2",
"vite": "^5.4.11",
"vue-tsc": "^1.8.27"
}
}
8 changes: 4 additions & 4 deletions examples/7guis-2-temperature-vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@
},
"dependencies": {
"@xstate/vue": "^3.1.4",
"vue": "^3.5.10",
"xstate": "^5.18.2"
"vue": "^3.5.13",
"xstate": "^5.19.0"
},
"devDependencies": {
"@vitejs/plugin-vue": "^4.6.2",
"typescript": "^5.6.2",
"vite": "^5.4.8",
"typescript": "^5.7.2",
"vite": "^5.4.11",
"vue-tsc": "^1.8.27"
}
}
6 changes: 3 additions & 3 deletions examples/7guis-counter-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@
"@xstate/react": "^4.1.3",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"xstate": "^5.18.2"
"xstate": "^5.19.0"
},
"devDependencies": {
"@types/react": "^17.0.83",
"@types/react-dom": "^17.0.25",
"@vitejs/plugin-react-refresh": "^1.3.6",
"typescript": "^5.6.2",
"vite": "^5.4.8"
"typescript": "^5.7.2",
"vite": "^5.4.11"
},
"name": "@xstate/example-7guis-counter-react"
}
14 changes: 7 additions & 7 deletions examples/7guis-flight-booker-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,18 @@
"react": "^18.3.1",
"react-dom": "^18.3.1",
"vite-tsconfig-paths": "^4.3.2",
"xstate": "^5.18.2"
"xstate": "^5.19.0"
},
"devDependencies": {
"@types/react": "^18.3.10",
"@types/react-dom": "^18.3.0",
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1",
"@typescript-eslint/eslint-plugin": "^7.18.0",
"@typescript-eslint/parser": "^7.18.0",
"@vitejs/plugin-react": "^4.3.2",
"@vitejs/plugin-react": "^4.3.4",
"eslint": "^8.57.1",
"eslint-plugin-react-hooks": "^4.6.2",
"eslint-plugin-react-refresh": "^0.4.12",
"typescript": "^5.6.2",
"vite": "^5.4.8"
"eslint-plugin-react-refresh": "^0.4.14",
"typescript": "^5.7.2",
"vite": "^5.4.11"
}
}
6 changes: 3 additions & 3 deletions examples/7guis-temperature-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@
"@xstate/react": "^4.1.3",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"xstate": "^5.18.2"
"xstate": "^5.19.0"
},
"devDependencies": {
"@types/react": "^17.0.83",
"@types/react-dom": "^17.0.25",
"@vitejs/plugin-react-refresh": "^1.3.6",
"typescript": "^5.6.2",
"vite": "^5.4.8"
"typescript": "^5.7.2",
"vite": "^5.4.11"
},
"name": "@xstate/example-7guis-temperature-react"
}
6 changes: 3 additions & 3 deletions examples/counter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
"preview": "vite preview"
},
"devDependencies": {
"typescript": "^5.6.2",
"vite": "^5.4.8"
"typescript": "^5.7.2",
"vite": "^5.4.11"
},
"dependencies": {
"xstate": "^5.18.2"
"xstate": "^5.19.0"
}
}
10 changes: 5 additions & 5 deletions examples/express-workflow/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@
"dependencies": {
"@types/body-parser": "^1.19.5",
"body-parser": "^1.20.3",
"express": "^4.21.0",
"prettier": "^3.3.3",
"express": "^4.21.1",
"prettier": "^3.4.1",
"ts-node": "^10.9.2",
"xstate": "^5.18.2"
"xstate": "^5.19.0"
},
"devDependencies": {
"@types/express": "^4.17.21",
"@types/node": "^20.16.10",
"typescript": "^5.6.2"
"@types/node": "^20.17.8",
"typescript": "^5.7.2"
}
}
4 changes: 2 additions & 2 deletions examples/fetch/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
},
"dependencies": {
"parcel-bundler": "^1.12.5",
"xstate": "^5.18.2"
"xstate": "^5.19.0"
},
"devDependencies": {
"typescript": "^5.6.2"
"typescript": "^5.7.2"
}
}
6 changes: 3 additions & 3 deletions examples/friends-list-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@
"@xstate/react": "^4.1.3",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"xstate": "^5.18.2"
"xstate": "^5.19.0"
},
"devDependencies": {
"@types/react": "^17.0.83",
"@types/react-dom": "^17.0.25",
"@vitejs/plugin-react-refresh": "^1.3.6",
"typescript": "^5.6.2",
"vite": "^5.4.8"
"typescript": "^5.7.2",
"vite": "^5.4.11"
},
"name": "@xstate/example-friends-list-react"
}
10 changes: 5 additions & 5 deletions examples/mongodb-credit-check-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,16 @@
"dependencies": {
"@types/body-parser": "^1.19.5",
"body-parser": "^1.20.3",
"express": "^4.21.0",
"mongodb": "^6.9.0",
"xstate": "^5.18.2",
"express": "^4.21.1",
"mongodb": "^6.11.0",
"xstate": "^5.19.0",
"zod": "^3.23.8"
},
"devDependencies": {
"@types/express": "^4.17.21",
"@types/node": "^20.16.10",
"@types/node": "^20.17.8",
"nodemon": "^3.1.7",
"ts-node": "^10.9.2",
"typescript": "^5.6.2"
"typescript": "^5.7.2"
}
}
8 changes: 4 additions & 4 deletions examples/mongodb-persisted-state/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@
},
"devDependencies": {
"ts-node": "^10.9.2",
"typescript": "^5.6.2",
"vite": "^5.4.8",
"typescript": "^5.7.2",
"vite": "^5.4.11",
"vite-node": "^0.31.4"
},
"dependencies": {
"mongodb": "^6.9.0",
"xstate": "^5.18.2"
"mongodb": "^6.11.0",
"xstate": "^5.19.0"
}
}
6 changes: 3 additions & 3 deletions examples/persisted-donut-maker/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
"preview": "vite preview"
},
"devDependencies": {
"typescript": "^5.6.2",
"vite": "^5.4.8",
"typescript": "^5.7.2",
"vite": "^5.4.11",
"vite-node": "^0.31.4"
},
"dependencies": {
"xstate": "^5.18.2"
"xstate": "^5.19.0"
}
}
14 changes: 7 additions & 7 deletions examples/snake-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,18 @@
"@xstate/react": "^4.1.3",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"xstate": "^5.18.2"
"xstate": "^5.19.0"
},
"devDependencies": {
"@types/react": "^18.3.10",
"@types/react-dom": "^18.3.0",
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1",
"@typescript-eslint/eslint-plugin": "^6.21.0",
"@typescript-eslint/parser": "^6.21.0",
"@vitejs/plugin-react": "^4.3.2",
"@vitejs/plugin-react": "^4.3.4",
"eslint": "^8.57.1",
"eslint-plugin-react-hooks": "^4.6.2",
"eslint-plugin-react-refresh": "^0.4.12",
"typescript": "^5.6.2",
"vite": "^5.4.8"
"eslint-plugin-react-refresh": "^0.4.14",
"typescript": "^5.7.2",
"vite": "^5.4.11"
}
}
6 changes: 3 additions & 3 deletions examples/stopwatch/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
"preview": "vite preview"
},
"devDependencies": {
"typescript": "^5.6.2",
"vite": "^5.4.8"
"typescript": "^5.7.2",
"vite": "^5.4.11"
},
"dependencies": {
"xstate": "^5.18.2"
"xstate": "^5.19.0"
}
}
22 changes: 11 additions & 11 deletions examples/store-counter-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,21 @@
},
"dependencies": {
"@statelyai/inspect": "^0.4.0",
"@xstate/store": "^2.6.0",
"@xstate/store": "^2.6.1",
"react": "^18.3.1",
"react-dom": "^18.3.1"
},
"devDependencies": {
"@eslint/js": "^9.11.1",
"@types/react": "^18.3.10",
"@types/react-dom": "^18.3.0",
"@vitejs/plugin-react": "^4.3.2",
"eslint": "^9.11.1",
"@eslint/js": "^9.15.0",
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1",
"@vitejs/plugin-react": "^4.3.4",
"eslint": "^9.15.0",
"eslint-plugin-react-hooks": "5.1.0-rc-fb9a90fa48-20240614",
"eslint-plugin-react-refresh": "^0.4.12",
"globals": "^15.10.0",
"typescript": "^5.6.2",
"typescript-eslint": "^8.8.0",
"vite": "^5.4.8"
"eslint-plugin-react-refresh": "^0.4.14",
"globals": "^15.12.0",
"typescript": "^5.7.2",
"typescript-eslint": "^8.16.0",
"vite": "^5.4.11"
}
}
6 changes: 3 additions & 3 deletions examples/tic-tac-toe-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
"@xstate/react": "^4.1.3",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"xstate": "^5.18.2"
"xstate": "^5.19.0"
},
"devDependencies": {
"@types/react": "^17.0.83",
"@types/react-dom": "^17.0.25",
"typescript": "^5.6.2",
"vite": "^5.4.8"
"typescript": "^5.7.2",
"vite": "^5.4.11"
},
"name": "@xstate/example-tic-tac-toe-react"
}
12 changes: 6 additions & 6 deletions examples/tiles/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@
"@xstate/react": "^4.1.3",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"xstate": "^5.18.2"
"xstate": "^5.19.0"
},
"devDependencies": {
"@types/react": "^18.3.10",
"@types/react-dom": "^18.3.0",
"@vitejs/plugin-react": "^4.3.2",
"typescript": "^5.6.2",
"vite": "^5.4.8"
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1",
"@vitejs/plugin-react": "^4.3.4",
"typescript": "^5.7.2",
"vite": "^5.4.11"
}
}
12 changes: 6 additions & 6 deletions examples/timer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@
"@xstate/react": "^4.1.3",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"xstate": "^5.18.2"
"xstate": "^5.19.0"
},
"devDependencies": {
"@types/react": "^18.3.10",
"@types/react-dom": "^18.3.0",
"@vitejs/plugin-react": "^4.3.2",
"typescript": "^5.6.2",
"vite": "^5.4.8"
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1",
"@vitejs/plugin-react": "^4.3.4",
"typescript": "^5.7.2",
"vite": "^5.4.11"
}
}
4 changes: 2 additions & 2 deletions examples/todomvc-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@
"react-dom": "^17.0.2",
"todomvc-app-css": "^2.4.3",
"todomvc-common": "^1.0.5",
"xstate": "^5.18.2"
"xstate": "^5.19.0"
},
"devDependencies": {
"@types/react": "^17.0.83",
"@types/react-dom": "^17.0.25",
"typescript": "^5.6.2",
"typescript": "^5.7.2",
"vite": "1.0.0-rc.13",
"vite-plugin-react": "^4.0.1"
}
Expand Down
6 changes: 3 additions & 3 deletions examples/toggle/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
"preview": "vite preview"
},
"devDependencies": {
"typescript": "^5.6.2",
"vite": "^5.4.8"
"typescript": "^5.7.2",
"vite": "^5.4.11"
},
"dependencies": {
"xstate": "^5.18.2"
"xstate": "^5.19.0"
}
}
Loading

0 comments on commit 8980f4a

Please sign in to comment.