The router previously created its own initTRPC without superjson while the app router uses the shared transformer-enabled instance — a wire transformer mismatch that corrupts inputs (audit finding A10). Procedures now build on @repo/core-shared/trpc/init's t; a real client+fetch-adapter round-trip test pins Date revival through appRouter-style mounting. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
50 lines
1.1 KiB
JSON
50 lines
1.1 KiB
JSON
{
|
|
"name": "@repo/core-consent",
|
|
"version": "0.0.1",
|
|
"private": true,
|
|
"type": "module",
|
|
"exports": {
|
|
".": "./src/index.ts",
|
|
"./di": "./src/di/bind-production.ts",
|
|
"./react": "./src/react/index.ts"
|
|
},
|
|
"scripts": {
|
|
"build": "tsc --noEmit",
|
|
"lint": "eslint .",
|
|
"typecheck": "tsc --noEmit",
|
|
"test": "vitest run --passWithNoTests"
|
|
},
|
|
"dependencies": {
|
|
"@repo/core-shared": "workspace:*",
|
|
"@trpc/server": "^11.18.0",
|
|
"zod": "^3.24.0"
|
|
},
|
|
"peerDependencies": {
|
|
"payload": "^3.0.0",
|
|
"react": "^18.0.0 || ^19.0.0"
|
|
},
|
|
"peerDependenciesMeta": {
|
|
"payload": {
|
|
"optional": true
|
|
},
|
|
"react": {
|
|
"optional": true
|
|
}
|
|
},
|
|
"devDependencies": {
|
|
"@repo/core-eslint": "workspace:*",
|
|
"@repo/core-testing": "workspace:*",
|
|
"@repo/core-typescript": "workspace:*",
|
|
"@testing-library/react": "^16.0.0",
|
|
"@trpc/client": "^11.18.0",
|
|
"@types/react": "^19.0.0",
|
|
"@vitest/coverage-v8": "^3.2.7",
|
|
"superjson": "^2.2.1",
|
|
"jsdom": "^25.0.0",
|
|
"payload": "^3.14.0",
|
|
"react": "^19.0.0",
|
|
"typescript": "^5.8.0",
|
|
"vitest": "^3.2.7"
|
|
}
|
|
}
|