@preact-signals/query
Version:
A reactive utility for React/Preact that simplifies the handling of data fetching and state management. Powered by Preact Signals, it provides hooks and functions to create reactive resources and manage their state seamlessly.
112 lines • 3.07 kB
JSON
{
"name": "@preact-signals/query",
"version": "2.1.2",
"private": false,
"publishConfig": {
"access": "public"
},
"description": "A reactive utility for React/Preact that simplifies the handling of data fetching and state management. Powered by Preact Signals, it provides hooks and functions to create reactive resources and manage their state seamlessly.",
"sideEffects": false,
"repository": {
"directory": "packages/query",
"url": "https://github.com/XantreDev/preact-signals",
"type": "git"
},
"homepage": "https://github.com/XantreDev/preact-signals/blob/main/packages/query/README.md",
"author": {
"email": "valerik007.vs@gmail.com",
"name": "Valerii Smirnov",
"url": "https://github.com/XantreDev"
},
"type": "module",
"module": "./dist/esm/index.js",
"main": "./dist/cjs/index.js",
"types": "./dist/esm/index.d.ts",
"source": "./src/index.ts",
"react-native": "./src/index.ts",
"exports": {
".": {
"types": "./dist/esm/index.d.ts",
"import": "./dist/esm/index.js",
"require": "./dist/cjs/index.js",
"react-native": "./src/index.ts"
}
},
"peerDependencies": {
"@preact/signals": ">=1.2.0",
"@preact/signals-core": ">=1.5.0",
"@preact/signals-react": ">=2.0.0",
"@preact-signals/safe-react": ">=0.8.1",
"react": "17.*.* || 18.*.* || 19.x",
"react-dom": "^18.2.0"
},
"peerDependenciesMeta": {
"react": {
"optional": true
},
"react-dom": {
"optional": true
},
"@preact/signals-react": {
"optional": true
},
"@preact/signals": {
"optional": true
},
"@preact/signals-core": {
"optional": true
},
"@preact-signals/safe-react": {
"optional": true
}
},
"devDependencies": {
"@preact/signals-react": ">=1.2.0",
"@testing-library/jest-dom": "^6.5.0",
"@testing-library/react": "^13.4.0",
"@types/jsdom": "^21.1.5",
"@types/react": "^18.2.37",
"@types/react-dom": "^18.2.15",
"@types/use-sync-external-store": "^0.0.3",
"concurrently": "^8.2.2",
"jsdom": "^24.0.0",
"react": "18.2.0",
"react-dom": "^18.2.0",
"react-error-boundary": "^4.0.13",
"webdriverio": "^8.22.1"
},
"dependencies": {
"@tanstack/query-core": "4.29.23",
"type-fest": "^4.41.0",
"use-sync-external-store": "^1.2.0",
"@preact-signals/unified-signals": "0.3.1",
"@preact-signals/utils": "0.23.1"
},
"keywords": [
"preact",
"react",
"solid",
"reactive",
"data fetching",
"state management",
"preact signals",
"reactivity",
"resources",
"reactive programming",
"hooks",
"async",
"fetch",
"api",
"frontend"
],
"license": "MIT",
"scripts": {
"clean": "rimraf dist",
"build:esm": "tsc",
"build:cjs": "tsc -p ./tsconfig.cjs.json",
"lint": "tsc --noEmit",
"test": "vitest",
"watch": "concurrently \"pnpm build:esm -w\" \"pnpm build:cjs -w\"",
"build": "pnpm clean && concurrently \"pnpm build:esm\" \"pnpm build:cjs\""
}
}