From 31fa9f7b85b79e9f98b44327fcef1b3283cccc4f Mon Sep 17 00:00:00 2001 From: Erik Arvidsson Date: Fri, 27 Feb 2026 15:06:08 +0100 Subject: [PATCH] chore: Fix peer dependencies version and exports --- package.json | 12 +++++++----- src/react/index.ts | 13 +++++++++++-- 2 files changed, 18 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index 2a0f4d5..8dbc54a 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,8 @@ "check-types": "tsgo -p src/tsconfig.json && tsgo -p demo/tsconfig.app.json && tsgo -p demo/tsconfig.node.json", "lint": "oxlint --type-aware", "format": "oxfmt", - "build": "tsgo -p src/tsconfig.json" + "build": "tsgo -p src/tsconfig.json", + "prepack": "rm -rf dist && pnpm run build" }, "devDependencies": { "@rocicorp/zero": "^0.25.12", @@ -44,10 +45,11 @@ "vite": "^7.3.1" }, "peerDependencies": { - "@tanstack/react-virtual": "^3.13.19", - "@tanstack/virtual-core": "^3.13.19", - "react": "^19.2.4", - "react-dom": "^19.2.4" + "@rocicorp/zero": ">=0.25", + "@tanstack/react-virtual": "^3.13.0", + "@tanstack/virtual-core": "^3.13.0", + "react": "^18.0.0 || ^19.0.0", + "react-dom": "^18.0.0 || ^19.0.0" }, "packageManager": "pnpm@10.30.2" } diff --git a/src/react/index.ts b/src/react/index.ts index 0d41f83..2c178c0 100644 --- a/src/react/index.ts +++ b/src/react/index.ts @@ -1,2 +1,11 @@ -export type {GetPageQuery, GetSingleQuery} from './use-rows.ts'; -export {useZeroVirtualizer} from './use-zero-virtualizer.ts'; +export type { + GetPageQuery, + GetQueryReturnType, + GetSingleQuery, +} from './use-rows.ts'; +export { + useZeroVirtualizer, + type PermalinkHistoryState, + type UseZeroVirtualizerOptions, + type ZeroVirtualizerResult, +} from './use-zero-virtualizer.ts';