Ports the upstream compliance-core audit fixes onto the kept core-dsr, core-consent, core-audit, core-cms and core-shared packages: - core-dsr: scope DSR operations to the caller's own subject (A11); include the subject's audit trail in exports; resolve the per-request binding from ctx instead of a throwing singleton proxy. - core-consent: build the consent router from the shared superjson transformer (A10); merge per-category on persist instead of replacing; validate migrated categories against an allow-list. - core-audit: keyed 128-bit pseudonyms + salted DSR certificate; add the audit-logs collection and the req-scoped GDPR audit-erasure afterDelete hook (A6). - core-shared: grace-purge soft-deleted rows via a retention-purge task + tombstone field and boot registration (A2/A3); add the require-authenticated tRPC helper; derive clientIp + resolve the session user in createTrpcContext (B2/A11). - core-cms: register audit-logs, wire the audit-erasure hook and retention-purge tasks; adapted to the clean-slate collection set (users only — no workspaces feature on this branch). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016j8z4VHjedXDTjEDNg7qHK
87 lines
3.0 KiB
JSON
87 lines
3.0 KiB
JSON
{
|
|
"name": "@repo/core-shared",
|
|
"private": true,
|
|
"version": "0.0.0",
|
|
"type": "module",
|
|
"exports": {
|
|
".": "./src/index.ts",
|
|
"./audit": "./src/audit/index.ts",
|
|
"./rate-limit": "./src/rate-limit/index.ts",
|
|
"./conformance": "./src/conformance/index.ts",
|
|
"./conformance/coverage": "./src/conformance/coverage.ts",
|
|
"./di": "./src/di/index.ts",
|
|
"./di/bind-protocols": "./src/di/bind-protocols.ts",
|
|
"./di/bind-context": "./src/di/bind-context.ts",
|
|
"./jobs": "./src/jobs/index.ts",
|
|
"./payload": "./src/payload/index.ts",
|
|
"./trpc/init": "./src/trpc/init.ts",
|
|
"./trpc/context": "./src/trpc/context.ts",
|
|
"./trpc/require-authenticated": "./src/trpc/require-authenticated.ts",
|
|
"./trpc/define-error-middleware": "./src/trpc/define-error-middleware.ts",
|
|
"./instrumentation": "./src/instrumentation/index.ts",
|
|
"./instrumentation/otel": "./src/instrumentation/otel/index.ts",
|
|
"./instrumentation/otel/init-server-node": "./src/instrumentation/otel/init-server-node.ts",
|
|
"./instrumentation/sentry/init-client": "./src/instrumentation/sentry/init-client.ts",
|
|
"./instrumentation/sentry/init-client-react": "./src/instrumentation/sentry/init-client-react.ts",
|
|
"./security": "./src/security/index.ts",
|
|
"./security/next": "./src/security/next/index.ts",
|
|
"./security/tanstack": "./src/security/tanstack/index.ts"
|
|
},
|
|
"scripts": {
|
|
"build": "tsc --noEmit",
|
|
"lint": "eslint .",
|
|
"test": "vitest run",
|
|
"typecheck": "tsc --noEmit"
|
|
},
|
|
"dependencies": {
|
|
"@opentelemetry/api": "^1.9.0",
|
|
"@opentelemetry/api-logs": "^0.55.0",
|
|
"@opentelemetry/instrumentation": "^0.55.0",
|
|
"@opentelemetry/instrumentation-http": "^0.55.0",
|
|
"@opentelemetry/instrumentation-pg": "^0.50.0",
|
|
"@opentelemetry/instrumentation-undici": "^0.10.0",
|
|
"@opentelemetry/resources": "^1.27.0",
|
|
"@opentelemetry/sdk-logs": "^0.55.0",
|
|
"@opentelemetry/sdk-metrics": "^1.27.0",
|
|
"@opentelemetry/sdk-node": "^0.55.0",
|
|
"@opentelemetry/sdk-trace-base": "^1.27.0",
|
|
"@opentelemetry/semantic-conventions": "^1.27.0",
|
|
"@sentry/nextjs": "^10.51.0",
|
|
"@sentry/opentelemetry": "^10.51.0",
|
|
"@trpc/server": "^11.18.0",
|
|
"payload": "^3.14.0",
|
|
"superjson": "^2.2.1",
|
|
"zod": "^3.24.0"
|
|
},
|
|
"peerDependencies": {
|
|
"@sentry/node": "^10.51.0",
|
|
"@sentry/react": "^10.51.0",
|
|
"next": ">=15.0.0"
|
|
},
|
|
"peerDependenciesMeta": {
|
|
"@sentry/node": {
|
|
"optional": true
|
|
},
|
|
"@sentry/react": {
|
|
"optional": true
|
|
},
|
|
"next": {
|
|
"optional": true
|
|
}
|
|
},
|
|
"devDependencies": {
|
|
"next": "^15.3.0",
|
|
"@opentelemetry/context-async-hooks": "^1.28.0",
|
|
"@repo/core-eslint": "workspace:*",
|
|
"@repo/core-testing": "workspace:*",
|
|
"@repo/core-typescript": "workspace:*",
|
|
"@sentry/node": "^10.51.0",
|
|
"@sentry/react": "^10.51.0",
|
|
"@types/node": "^22.0.0",
|
|
"@vitest/coverage-v8": "^3.2.4",
|
|
"inversify": "^6.2.0",
|
|
"reflect-metadata": "^0.2.2",
|
|
"vitest": "^3.1.0"
|
|
}
|
|
}
|