Skip to content

Commit

Permalink
chore: update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
segunadebayo committed Dec 19, 2024
1 parent 33d9d06 commit 2ccf762
Show file tree
Hide file tree
Showing 18 changed files with 460 additions and 485 deletions.
2 changes: 1 addition & 1 deletion examples/lit-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,6 @@
},
"devDependencies": {
"typescript": "^5.7.2",
"vite": "^6.0.2"
"vite": "^6.0.4"
}
}
8 changes: 4 additions & 4 deletions examples/next-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,9 @@
},
"devDependencies": {
"@types/form-serialize": "0.7.4",
"@types/node": "22.10.1",
"@types/react": "18.3.12",
"@types/react-dom": "18.3.1",
"@types/node": "22.10.2",
"@types/react": "19.0.2",
"@types/react-dom": "19.0.2",
"eslint-plugin-react": "7.37.2",
"eslint-plugin-react-hooks": "5.0.0",
"@atlaskit/pragmatic-drag-and-drop": "1.3.1",
Expand All @@ -112,4 +112,4 @@
"typescript": "5.7.2"
},
"license": "MIT"
}
}
2 changes: 1 addition & 1 deletion examples/nuxt-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
"devDependencies": {
"@nuxt/devtools": "latest",
"@types/form-serialize": "0.7.4",
"@types/node": "22.10.1",
"@types/node": "22.10.2",
"nuxt": "3.14.1592"
}
}
2 changes: 1 addition & 1 deletion examples/preact-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,6 @@
"eslint": "9.13.0",
"eslint-config-preact": "1.5.0",
"typescript": "5.7.2",
"vite": "6.0.2"
"vite": "6.0.4"
}
}
6 changes: 3 additions & 3 deletions examples/react-19/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,15 +91,15 @@
},
"devDependencies": {
"@eslint/js": "^9.11.1",
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1",
"@types/react": "^19.0.2",
"@types/react-dom": "^19.0.2",
"@vitejs/plugin-react": "^4.3.4",
"eslint": "^9.13.0",
"eslint-plugin-react-hooks": "^5.1.0-rc.0",
"eslint-plugin-react-refresh": "^0.4.14",
"globals": "^15.9.0",
"typescript": "^5.7.2",
"typescript-eslint": "^8.7.0",
"vite": "^6.0.2"
"vite": "^6.0.4"
}
}
4 changes: 2 additions & 2 deletions examples/svelte-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,11 @@
"@sveltejs/vite-plugin-svelte": "5.0.1",
"@tsconfig/svelte": "5.0.4",
"@types/form-serialize": "0.7.4",
"svelte": "5.4.0",
"svelte": "5.14.5",
"svelte-check": "4.1.0",
"tslib": "2.7.0",
"typescript": "5.7.2",
"vite": "6.0.2",
"vite": "6.0.4",
"vite-tsconfig-paths": "5.1.3"
}
}
2 changes: 1 addition & 1 deletion examples/vanilla-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
},
"devDependencies": {
"typescript": "^5.7.2",
"vite": "^6.0.2"
"vite": "^6.0.4"
},
"dependencies": {
"@internationalized/date": "3.6.0",
Expand Down
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,20 +60,20 @@
},
"dependencies": {
"@axe-core/playwright": "4.10.1",
"@babel/generator": "7.26.2",
"@babel/parser": "7.26.2",
"@babel/traverse": "7.25.9",
"@babel/types": "7.26.0",
"@babel/generator": "7.26.3",
"@babel/parser": "7.26.3",
"@babel/traverse": "7.26.4",
"@babel/types": "7.26.3",
"@changesets/changelog-github": "0.5.0",
"@changesets/cli": "2.27.10",
"@commitlint/cli": "19.6.0",
"@commitlint/config-conventional": "19.6.0",
"@octokit/rest": "21.0.2",
"@playwright/test": "1.49.0",
"@swc/core": "1.10.0",
"@playwright/test": "1.49.1",
"@swc/core": "1.10.1",
"@types/babel__generator": "7.6.8",
"@types/babel__traverse": "7.20.6",
"@types/node": "22.10.1",
"@types/node": "22.10.2",
"@types/signale": "1.4.7",
"@typescript-eslint/eslint-plugin": "8.18.0",
"@typescript-eslint/parser": "8.18.0",
Expand All @@ -99,7 +99,7 @@
"tsx": "4.19.2",
"typescript": "5.7.2",
"vercel-submodules": "1.0.10",
"vite": "6.0.2",
"vite": "6.0.4",
"vite-plugin-dts": "4.3.0",
"vitest": "2.1.8"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/anatomy-icons/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"clean-package": "../../clean-package.config.json",
"main": "src/index.ts",
"devDependencies": {
"@types/react": "18.3.12",
"@types/react": "19.0.2",
"clean-package": "2.2.0",
"react": "18.3.1"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/frameworks/preact/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"proxy-compare": "3.0.1"
},
"devDependencies": {
"@types/react-dom": "18.3.1",
"@types/react-dom": "19.0.2",
"@zag-js/utils": "workspace:*",
"preact": "10.25.2",
"clean-package": "2.2.0"
Expand Down
4 changes: 2 additions & 2 deletions packages/frameworks/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
"proxy-compare": "3.0.1"
},
"devDependencies": {
"@types/react": "18.3.12",
"@types/react-dom": "18.3.1",
"@types/react": "19.0.2",
"@types/react-dom": "19.0.2",
"@zag-js/utils": "workspace:*",
"react": "18.3.1",
"react-dom": "18.3.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/frameworks/react/src/use-constant.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { useRef } from "react"

export function useConstant<T>(fn: () => T): T {
const ref = useRef<{ v: T }>()
const ref = useRef<{ v: T }>(undefined)
if (!ref.current) ref.current = { v: fn() }
return ref.current.v
}
2 changes: 1 addition & 1 deletion packages/frameworks/react/src/use-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export function useService<
return instance
})

const snapshotRef = useRef<S.StateInit<TContext, TState>>()
const snapshotRef = useRef<S.StateInit<TContext, TState>>(undefined)

useSafeLayoutEffect(() => {
const stateInit = hydratedState ?? snapshotRef.current
Expand Down
4 changes: 2 additions & 2 deletions packages/frameworks/react/src/use-snapshot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ export function useSnapshot<
* Subscribe to the service state and create a snapshot of it
* -----------------------------------------------------------------------------*/

const lastSnapshot = useRef<Snapshot<State>>()
const lastAffected = useRef<WeakMap<object, unknown>>()
const lastSnapshot = useRef<Snapshot<State>>(undefined)
const lastAffected = useRef<WeakMap<object, unknown>>(undefined)

const currSnapshot = useSyncExternalStore(
useCallback((callback) => subscribe(service.state, callback, notifyInSync), [notifyInSync]),
Expand Down
2 changes: 1 addition & 1 deletion packages/frameworks/svelte/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"devDependencies": {
"@sveltejs/package": "2.3.7",
"clean-package": "2.2.0",
"svelte": "5.11.3"
"svelte": "5.14.5"
},
"peerDependencies": {
"svelte": "^5.0.0-next.1"
Expand Down
Loading

0 comments on commit 2ccf762

Please sign in to comment.