@trpc/next
Version:
150 lines (149 loc) • 3.72 kB
JSON
{
"type": "module",
"name": "@trpc/next",
"version": "11.4.2",
"description": "The tRPC Next.js library",
"author": "KATT",
"license": "MIT",
"main": "./dist/index.cjs",
"module": "./dist/index.mjs",
"types": "./dist/index.d.cts",
"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": "tsdown",
"dev": "tsdown --watch",
"ts-watch": "tsc --project tsconfig.watch.json --watch",
"lint": "eslint --cache src"
},
"exports": {
"./package.json": "./package.json",
".": {
"import": {
"types": "./dist/index.d.mts",
"default": "./dist/index.mjs"
},
"require": {
"types": "./dist/index.d.cts",
"default": "./dist/index.cjs"
}
},
"./app-dir/client": {
"import": {
"types": "./dist/app-dir/client.d.mts",
"default": "./dist/app-dir/client.mjs"
},
"require": {
"types": "./dist/app-dir/client.d.cts",
"default": "./dist/app-dir/client.cjs"
}
},
"./app-dir/links/nextCache": {
"import": {
"types": "./dist/app-dir/links/nextCache.d.mts",
"default": "./dist/app-dir/links/nextCache.mjs"
},
"require": {
"types": "./dist/app-dir/links/nextCache.d.cts",
"default": "./dist/app-dir/links/nextCache.cjs"
}
},
"./app-dir/links/nextHttp": {
"import": {
"types": "./dist/app-dir/links/nextHttp.d.mts",
"default": "./dist/app-dir/links/nextHttp.mjs"
},
"require": {
"types": "./dist/app-dir/links/nextHttp.d.cts",
"default": "./dist/app-dir/links/nextHttp.cjs"
}
},
"./app-dir/server": {
"import": {
"types": "./dist/app-dir/server.d.mts",
"default": "./dist/app-dir/server.mjs"
},
"require": {
"types": "./dist/app-dir/server.d.cts",
"default": "./dist/app-dir/server.cjs"
}
},
"./ssrPrepass": {
"import": {
"types": "./dist/ssrPrepass.d.mts",
"default": "./dist/ssrPrepass.mjs"
},
"require": {
"types": "./dist/ssrPrepass.d.cts",
"default": "./dist/ssrPrepass.cjs"
}
}
},
"files": [
"dist",
"src",
"README.md",
"package.json",
"app-dir",
"ssrPrepass",
"!**/*.test.*",
"!**/__tests__"
],
"peerDependencies": {
"@tanstack/react-query": "^5.59.15",
"@trpc/client": "11.4.2",
"@trpc/react-query": "11.4.2",
"@trpc/server": "11.4.2",
"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.4.2",
"@trpc/react-query": "11.4.2",
"@trpc/server": "11.4.2",
"@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",
"tsdown": "0.12.7",
"typescript": "^5.8.2",
"zod": "^3.25.51"
},
"publishConfig": {
"access": "public"
},
"funding": [
"https://trpc.io/sponsor"
],
"gitHead": "094e2ae3041bfb90c3d3bf20470ec7d4feefa381"
}