UNPKG

@trpc/next

Version:

The tRPC Next.js library

121 lines (120 loc) 3.17 kB
{ "name": "@trpc/next", "version": "11.3.1", "description": "The tRPC Next.js library", "author": "KATT", "license": "MIT", "main": "dist/index.js", "module": "dist/index.mjs", "typings": "dist/index.d.ts", "homepage": "https://trpc.io", "repository": { "type": "git", "url": "git+https://github.com/trpc/trpc.git", "directory": "packages/next" }, "eslintConfig": { "rules": { "react-hooks/exhaustive-deps": "error", "no-restricted-imports": [ "error", "@trpc/next" ] } }, "scripts": { "build": "rollup --config rollup.config.ts --configPlugin rollup-plugin-swc3", "dev": "pnpm build --watch", "codegen-entrypoints": "tsx entrypoints.script.ts", "ts-watch": "tsc --project tsconfig.watch.json --watch", "lint": "eslint --cache src" }, "exports": { "./package.json": "./package.json", ".": { "import": "./dist/index.mjs", "require": "./dist/index.js", "default": "./dist/index.js" }, "./app-dir/client": { "import": "./dist/app-dir/client.mjs", "require": "./dist/app-dir/client.js", "default": "./dist/app-dir/client.js" }, "./app-dir/links/nextCache": { "import": "./dist/app-dir/links/nextCache.mjs", "require": "./dist/app-dir/links/nextCache.js", "default": "./dist/app-dir/links/nextCache.js" }, "./app-dir/links/nextHttp": { "import": "./dist/app-dir/links/nextHttp.mjs", "require": "./dist/app-dir/links/nextHttp.js", "default": "./dist/app-dir/links/nextHttp.js" }, "./app-dir/server": { "import": "./dist/app-dir/server.mjs", "require": "./dist/app-dir/server.js", "default": "./dist/app-dir/server.js" }, "./ssrPrepass": { "import": "./dist/ssrPrepass.mjs", "require": "./dist/ssrPrepass.js", "default": "./dist/ssrPrepass.js" } }, "files": [ "dist", "src", "README.md", "package.json", "app-dir", "ssrPrepass", "!**/*.test.*", "!**/__tests__" ], "peerDependencies": { "@tanstack/react-query": "^5.59.15", "@trpc/client": "11.3.1", "@trpc/react-query": "11.3.1", "@trpc/server": "11.3.1", "next": "*", "react": ">=16.8.0", "react-dom": ">=16.8.0", "typescript": ">=5.7.2" }, "peerDependenciesMeta": { "@tanstack/react-query": { "optional": true }, "@trpc/react-query": { "optional": true } }, "devDependencies": { "@tanstack/react-query": "^5.80.3", "@trpc/client": "11.3.1", "@trpc/react-query": "11.3.1", "@trpc/server": "11.3.1", "@types/express": "^5.0.0", "@types/node": "^22.13.5", "@types/react": "^19.1.0", "@types/react-dom": "^19.1.1", "devalue": "^5.0.0", "eslint": "^9.26.0", "express": "^5.0.0", "next": "^15.3.1", "react": "^19.1.0", "react-dom": "^19.1.0", "rollup": "^4.34.8", "tsx": "^4.19.3", "typescript": "^5.8.2", "zod": "^3.25.51" }, "publishConfig": { "access": "public" }, "funding": [ "https://trpc.io/sponsor" ], "gitHead": "c97573dd72086529c3f26dcc5e96d8152337b7f7" }