Skip to content

Commit 3633053

Browse files
committed
Revert "chore: update demo deps"
This reverts commit e918cbd.
1 parent e918cbd commit 3633053

File tree

6 files changed

+1713
-1668
lines changed

6 files changed

+1713
-1668
lines changed

demo/package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"@use-gesture/react": "^10.2.24",
2020
"@vitejs/plugin-react-refresh": "^1.3.6",
2121
"easing-coordinates": "2.0.2",
22-
"leva": "0.9.35",
22+
"leva": "0.9.34",
2323
"lodash-move": "1.1.1",
2424
"lodash.clamp": "^4.0.3",
2525
"lodash.shuffle": "^4.2.0",
@@ -30,15 +30,15 @@
3030
"react-use-gesture": "^9.1.3",
3131
"react-use-measure": "^2.1.1",
3232
"react95": "^4.0.0",
33-
"sass": "^1.69.5",
34-
"styled-components": "^5.3.11",
35-
"three": "^0.159.0",
36-
"three-stdlib": "^2.28.7",
33+
"sass": "^1.58.3",
34+
"styled-components": "^5.3.8",
35+
"three": "^0.150.1",
36+
"three-stdlib": "^2.21.8",
3737
"vec-la": "^1.5.0",
38-
"wouter": "^2.12.1"
38+
"wouter": "^2.10.0"
3939
},
4040
"devDependencies": {
41-
"@types/lodash.clamp": "^4.0.9",
42-
"@types/lodash.shuffle": "^4.2.9"
41+
"@types/lodash.clamp": "^4.0.7",
42+
"@types/lodash.shuffle": "^4.2.7"
4343
}
4444
}

docs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
"devDependencies": {
5454
"chokidar": "^3.5.3",
5555
"concurrently": "^8.2.2",
56-
"ts-node": "^10.9.2"
56+
"ts-node": "^10.9.1"
5757
},
5858
"sideEffects": false
5959
}

docs/scripts/docs/docs.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import fs from 'fs/promises'
1+
import fs from 'fs-extra'
22
import chokidar from 'chokidar'
33
import path from 'path'
44

@@ -152,15 +152,15 @@ const processDoc = ({ content, source, docPath }: DocFile): ProcessedDoc => {
152152
const writeData = async (data: GeneratedDataFromDocs) => {
153153
const generatedDataPath = path.resolve(__dirname, '../../app/data')
154154
try {
155-
await fs.mkdir(generatedDataPath, { recursive: true })
155+
await fs.mkdirs(generatedDataPath)
156156

157157
const dataEntries = Object.entries(data)
158158

159159
await Promise.all(
160160
dataEntries.map(([key, datum]) => {
161-
return fs.writeFile(
161+
fs.writeJson(
162162
path.join(generatedDataPath, `${key}.generated.json`),
163-
JSON.stringify(datum)
163+
datum
164164
)
165165
})
166166
)

package.json

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -75,16 +75,17 @@
7575
"@testing-library/cypress": "^10.0.1",
7676
"@testing-library/jest-dom": "^6.1.5",
7777
"@testing-library/react": "^14.1.2",
78+
"@types/fs-extra": "^11.0.1",
7879
"@types/jest": "^29.5.11",
79-
"@types/lodash.clamp": "^4.0.9",
80-
"@types/lodash.shuffle": "^4.2.9",
80+
"@types/lodash.clamp": "^4.0.7",
81+
"@types/lodash.shuffle": "^4.2.7",
8182
"@types/mdx-js__react": "^1.5.5",
82-
"@types/react": "^18.2.43",
83-
"@types/react-dom": "^18.2.17",
84-
"@types/react-lazyload": "^3.2.3",
85-
"@types/react-native": "^0.72.8",
86-
"@types/styled-components": "^5.1.34",
87-
"@types/three": "^0.159.0",
83+
"@types/react": "^18.0.28",
84+
"@types/react-dom": "^18.0.11",
85+
"@types/react-lazyload": "^3.2.0",
86+
"@types/react-native": "^0.71.3",
87+
"@types/styled-components": "^5.1.26",
88+
"@types/three": "^0.149.0",
8889
"cypress": "^13.6.1",
8990
"eslint": "^8.55.0",
9091
"flush-microtasks": "^1.0.1",
@@ -97,12 +98,12 @@
9798
"pretty-quick": "^3.1.3",
9899
"react": "^18.2.0",
99100
"react-dom": "^18.2.0",
100-
"react-konva": "^18.2.10",
101-
"react-native": "^0.73.0",
102-
"react-zdog": "^1.2.2",
101+
"react-konva": "^18.2.5",
102+
"react-native": "^0.71.3",
103+
"react-zdog": "^1.0.11",
103104
"spec.ts": "^1.1.3",
104105
"start-server-and-test": "^2.0.3",
105-
"three": "^0.159.0",
106+
"three": "^0.150.1",
106107
"tsup": "^6.7.0",
107108
"turbo": "^1.11.1",
108109
"typescript": "5.3.3",

packages/core/src/hooks/useSprings.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export function useSprings<Props extends UseSpringsProps>(
7474
export function useSprings(
7575
length: number,
7676
props: any[] | ((i: number, ctrl: Controller) => any),
77-
deps: readonly any[] = []
77+
deps?: readonly any[]
7878
): any {
7979
const propsFn = is.fun(props) && props
8080
if (propsFn && !deps) deps = []

0 commit comments

Comments
 (0)