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 Oct 3, 2024
1 parent ddf8db7 commit 703b0c7
Show file tree
Hide file tree
Showing 52 changed files with 9,348 additions and 495 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 @@ -9,14 +9,14 @@
"preview": "vite preview"
},
"dependencies": {
"@xstate/vue": "^3.1.3",
"vue": "^3.5.4",
"xstate": "^5.18.1"
"@xstate/vue": "^3.1.4",
"vue": "^3.5.10",
"xstate": "^5.18.2"
},
"devDependencies": {
"@vitejs/plugin-vue": "^4.6.2",
"typescript": "^5.6.2",
"vite": "^5.4.5",
"vite": "^5.4.8",
"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 @@ -9,14 +9,14 @@
"preview": "vite preview"
},
"dependencies": {
"@xstate/vue": "^3.1.3",
"vue": "^3.5.4",
"xstate": "^5.18.1"
"@xstate/vue": "^3.1.4",
"vue": "^3.5.10",
"xstate": "^5.18.2"
},
"devDependencies": {
"@vitejs/plugin-vue": "^4.6.2",
"typescript": "^5.6.2",
"vite": "^5.4.5",
"vite": "^5.4.8",
"vue-tsc": "^1.8.27"
}
}
8 changes: 4 additions & 4 deletions examples/7guis-counter-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,17 @@
"serve": "vite preview"
},
"dependencies": {
"@xstate/react": "^4.1.2",
"@xstate/react": "^4.1.3",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"xstate": "^5.18.1"
"xstate": "^5.18.2"
},
"devDependencies": {
"@types/react": "^17.0.80",
"@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.5"
"vite": "^5.4.8"
},
"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 @@ -10,22 +10,22 @@
"preview": "vite preview"
},
"dependencies": {
"@xstate/react": "^4.1.2",
"@xstate/react": "^4.1.3",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"vite-tsconfig-paths": "^4.3.2",
"xstate": "^5.18.1"
"xstate": "^5.18.2"
},
"devDependencies": {
"@types/react": "^18.3.5",
"@types/react": "^18.3.10",
"@types/react-dom": "^18.3.0",
"@typescript-eslint/eslint-plugin": "^7.18.0",
"@typescript-eslint/parser": "^7.18.0",
"@vitejs/plugin-react": "^4.3.1",
"eslint": "^8.57.0",
"@vitejs/plugin-react": "^4.3.2",
"eslint": "^8.57.1",
"eslint-plugin-react-hooks": "^4.6.2",
"eslint-plugin-react-refresh": "^0.4.11",
"eslint-plugin-react-refresh": "^0.4.12",
"typescript": "^5.6.2",
"vite": "^5.4.5"
"vite": "^5.4.8"
}
}
8 changes: 4 additions & 4 deletions examples/7guis-temperature-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,17 @@
"serve": "vite preview"
},
"dependencies": {
"@xstate/react": "^4.1.2",
"@xstate/react": "^4.1.3",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"xstate": "^5.18.1"
"xstate": "^5.18.2"
},
"devDependencies": {
"@types/react": "^17.0.80",
"@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.5"
"vite": "^5.4.8"
},
"name": "@xstate/example-7guis-temperature-react"
}
4 changes: 2 additions & 2 deletions examples/counter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
},
"devDependencies": {
"typescript": "^5.6.2",
"vite": "^5.4.5"
"vite": "^5.4.8"
},
"dependencies": {
"xstate": "^5.18.1"
"xstate": "^5.18.2"
}
}
4 changes: 2 additions & 2 deletions examples/express-workflow/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
"express": "^4.21.0",
"prettier": "^3.3.3",
"ts-node": "^10.9.2",
"xstate": "^5.18.1"
"xstate": "^5.18.2"
},
"devDependencies": {
"@types/express": "^4.17.21",
"@types/node": "^20.16.5",
"@types/node": "^20.16.10",
"typescript": "^5.6.2"
}
}
2 changes: 1 addition & 1 deletion examples/fetch/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
},
"dependencies": {
"parcel-bundler": "^1.12.5",
"xstate": "^5.18.1"
"xstate": "^5.18.2"
},
"devDependencies": {
"typescript": "^5.6.2"
Expand Down
8 changes: 4 additions & 4 deletions examples/friends-list-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,17 @@
"serve": "vite preview"
},
"dependencies": {
"@xstate/react": "^4.1.2",
"@xstate/react": "^4.1.3",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"xstate": "^5.18.1"
"xstate": "^5.18.2"
},
"devDependencies": {
"@types/react": "^17.0.80",
"@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.5"
"vite": "^5.4.8"
},
"name": "@xstate/example-friends-list-react"
}
6 changes: 3 additions & 3 deletions examples/mongodb-credit-check-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@
"body-parser": "^1.20.3",
"express": "^4.21.0",
"mongodb": "^6.9.0",
"xstate": "^5.18.1",
"xstate": "^5.18.2",
"zod": "^3.23.8"
},
"devDependencies": {
"@types/express": "^4.17.21",
"@types/node": "^20.16.5",
"nodemon": "^3.1.4",
"@types/node": "^20.16.10",
"nodemon": "^3.1.7",
"ts-node": "^10.9.2",
"typescript": "^5.6.2"
}
Expand Down
4 changes: 2 additions & 2 deletions examples/mongodb-persisted-state/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
"devDependencies": {
"ts-node": "^10.9.2",
"typescript": "^5.6.2",
"vite": "^5.4.5",
"vite": "^5.4.8",
"vite-node": "^0.31.4"
},
"dependencies": {
"mongodb": "^6.9.0",
"xstate": "^5.18.1"
"xstate": "^5.18.2"
}
}
4 changes: 2 additions & 2 deletions examples/persisted-donut-maker/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
},
"devDependencies": {
"typescript": "^5.6.2",
"vite": "^5.4.5",
"vite": "^5.4.8",
"vite-node": "^0.31.4"
},
"dependencies": {
"xstate": "^5.18.1"
"xstate": "^5.18.2"
}
}
14 changes: 7 additions & 7 deletions examples/snake-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,21 @@
"preview": "vite preview"
},
"dependencies": {
"@xstate/react": "^4.1.2",
"@xstate/react": "^4.1.3",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"xstate": "^5.18.1"
"xstate": "^5.18.2"
},
"devDependencies": {
"@types/react": "^18.3.5",
"@types/react": "^18.3.10",
"@types/react-dom": "^18.3.0",
"@typescript-eslint/eslint-plugin": "^6.21.0",
"@typescript-eslint/parser": "^6.21.0",
"@vitejs/plugin-react": "^4.3.1",
"eslint": "^8.57.0",
"@vitejs/plugin-react": "^4.3.2",
"eslint": "^8.57.1",
"eslint-plugin-react-hooks": "^4.6.2",
"eslint-plugin-react-refresh": "^0.4.11",
"eslint-plugin-react-refresh": "^0.4.12",
"typescript": "^5.6.2",
"vite": "^5.4.5"
"vite": "^5.4.8"
}
}
4 changes: 2 additions & 2 deletions examples/stopwatch/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
},
"devDependencies": {
"typescript": "^5.6.2",
"vite": "^5.4.5"
"vite": "^5.4.8"
},
"dependencies": {
"xstate": "^5.18.1"
"xstate": "^5.18.2"
}
}
16 changes: 8 additions & 8 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.5.0",
"@xstate/store": "^2.6.0",
"react": "^18.3.1",
"react-dom": "^18.3.1"
},
"devDependencies": {
"@eslint/js": "^9.10.0",
"@types/react": "^18.3.8",
"@eslint/js": "^9.11.1",
"@types/react": "^18.3.10",
"@types/react-dom": "^18.3.0",
"@vitejs/plugin-react": "^4.3.1",
"eslint": "^9.10.0",
"@vitejs/plugin-react": "^4.3.2",
"eslint": "^9.11.1",
"eslint-plugin-react-hooks": "5.1.0-rc-fb9a90fa48-20240614",
"eslint-plugin-react-refresh": "^0.4.12",
"globals": "^15.9.0",
"globals": "^15.10.0",
"typescript": "^5.6.2",
"typescript-eslint": "^8.6.0",
"vite": "^5.4.6"
"typescript-eslint": "^8.8.0",
"vite": "^5.4.8"
}
}
8 changes: 4 additions & 4 deletions examples/tic-tac-toe-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@
"serve": "vite preview"
},
"dependencies": {
"@xstate/react": "^4.1.2",
"@xstate/react": "^4.1.3",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"xstate": "^5.18.1"
"xstate": "^5.18.2"
},
"devDependencies": {
"@types/react": "^17.0.80",
"@types/react": "^17.0.83",
"@types/react-dom": "^17.0.25",
"typescript": "^5.6.2",
"vite": "^5.4.5"
"vite": "^5.4.8"
},
"name": "@xstate/example-tic-tac-toe-react"
}
10 changes: 5 additions & 5 deletions examples/tiles/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@
"preview": "vite preview"
},
"dependencies": {
"@xstate/react": "^4.1.2",
"@xstate/react": "^4.1.3",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"xstate": "^5.18.1"
"xstate": "^5.18.2"
},
"devDependencies": {
"@types/react": "^18.3.5",
"@types/react": "^18.3.10",
"@types/react-dom": "^18.3.0",
"@vitejs/plugin-react": "^4.3.1",
"@vitejs/plugin-react": "^4.3.2",
"typescript": "^5.6.2",
"vite": "^5.4.5"
"vite": "^5.4.8"
}
}
10 changes: 5 additions & 5 deletions examples/timer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@
"preview": "vite preview"
},
"dependencies": {
"@xstate/react": "^4.1.2",
"@xstate/react": "^4.1.3",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"xstate": "^5.18.1"
"xstate": "^5.18.2"
},
"devDependencies": {
"@types/react": "^18.3.5",
"@types/react": "^18.3.10",
"@types/react-dom": "^18.3.0",
"@vitejs/plugin-react": "^4.3.1",
"@vitejs/plugin-react": "^4.3.2",
"typescript": "^5.6.2",
"vite": "^5.4.5"
"vite": "^5.4.8"
}
}
6 changes: 3 additions & 3 deletions examples/todomvc-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@
"build": "tsc && vite build"
},
"dependencies": {
"@xstate/react": "^4.1.2",
"@xstate/react": "^4.1.3",
"classnames": "^2.5.1",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"todomvc-app-css": "^2.4.3",
"todomvc-common": "^1.0.5",
"xstate": "^5.18.1"
"xstate": "^5.18.2"
},
"devDependencies": {
"@types/react": "^17.0.80",
"@types/react": "^17.0.83",
"@types/react-dom": "^17.0.25",
"typescript": "^5.6.2",
"vite": "1.0.0-rc.13",
Expand Down
4 changes: 2 additions & 2 deletions examples/toggle/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
},
"devDependencies": {
"typescript": "^5.6.2",
"vite": "^5.4.5"
"vite": "^5.4.8"
},
"dependencies": {
"xstate": "^5.18.1"
"xstate": "^5.18.2"
}
}
Loading

0 comments on commit 703b0c7

Please sign in to comment.