diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..d067910 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,4 @@ +{ + "typescript.tsdk": "node_modules/typescript/lib", + "typescript.enablePromptUseWorkspaceTsdk": true +} \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 850201d..046ab2b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -21,7 +21,6 @@ "next-axiom": "0.15.1", "react": "18.2.0", "react-dom": "18.2.0", - "superjson": "^1.11.0", "zod": "^3.19.1" }, "devDependencies": { @@ -3882,20 +3881,6 @@ "node": ">= 0.6" } }, - "node_modules/copy-anything": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/copy-anything/-/copy-anything-3.0.2.tgz", - "integrity": "sha512-CzATjGXzUQ0EvuvgOCI6A4BGOo2bcVx8B+eC2nF862iv9fopnPQwlrbACakNCHRIJbCSBj+J/9JeDf60k64MkA==", - "dependencies": { - "is-what": "^4.1.6" - }, - "engines": { - "node": ">=12.13" - }, - "funding": { - "url": "https://github.com/sponsors/mesqueeb" - } - }, "node_modules/core-js-pure": { "version": "3.19.3", "dev": true, @@ -6903,17 +6888,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/is-what": { - "version": "4.1.7", - "resolved": "https://registry.npmjs.org/is-what/-/is-what-4.1.7.tgz", - "integrity": "sha512-DBVOQNiPKnGMxRMLIYSwERAS5MVY1B7xYiGnpgctsOFvVDz9f9PFXXxMcTOHuoqYp4NK9qFYQaIC1NRRxLMpBQ==", - "engines": { - "node": ">=12.13" - }, - "funding": { - "url": "https://github.com/sponsors/mesqueeb" - } - }, "node_modules/is-windows": { "version": "1.0.2", "dev": true, @@ -10973,17 +10947,6 @@ "postcss": "^8.2.15" } }, - "node_modules/superjson": { - "version": "1.11.0", - "resolved": "https://registry.npmjs.org/superjson/-/superjson-1.11.0.tgz", - "integrity": "sha512-6PfAg1FKhqkwWvPb2uXhH4MkMttdc17eJ91+Aoz4s1XUEDZFmLfFx/xVA3wgkPxAGy5dpozgGdK6V/n20Wj9yg==", - "dependencies": { - "copy-anything": "^3.0.2" - }, - "engines": { - "node": ">=10" - } - }, "node_modules/supports-color": { "version": "7.2.0", "dev": true, @@ -14532,14 +14495,6 @@ "cookie": { "version": "0.4.2" }, - "copy-anything": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/copy-anything/-/copy-anything-3.0.2.tgz", - "integrity": "sha512-CzATjGXzUQ0EvuvgOCI6A4BGOo2bcVx8B+eC2nF862iv9fopnPQwlrbACakNCHRIJbCSBj+J/9JeDf60k64MkA==", - "requires": { - "is-what": "^4.1.6" - } - }, "core-js-pure": { "version": "3.19.3", "dev": true @@ -16510,11 +16465,6 @@ "call-bind": "^1.0.2" } }, - "is-what": { - "version": "4.1.7", - "resolved": "https://registry.npmjs.org/is-what/-/is-what-4.1.7.tgz", - "integrity": "sha512-DBVOQNiPKnGMxRMLIYSwERAS5MVY1B7xYiGnpgctsOFvVDz9f9PFXXxMcTOHuoqYp4NK9qFYQaIC1NRRxLMpBQ==" - }, "is-windows": { "version": "1.0.2", "dev": true @@ -19194,14 +19144,6 @@ "postcss-selector-parser": "^6.0.4" } }, - "superjson": { - "version": "1.11.0", - "resolved": "https://registry.npmjs.org/superjson/-/superjson-1.11.0.tgz", - "integrity": "sha512-6PfAg1FKhqkwWvPb2uXhH4MkMttdc17eJ91+Aoz4s1XUEDZFmLfFx/xVA3wgkPxAGy5dpozgGdK6V/n20Wj9yg==", - "requires": { - "copy-anything": "^3.0.2" - } - }, "supports-color": { "version": "7.2.0", "dev": true, diff --git a/package.json b/package.json index 305b399..d3469cb 100644 --- a/package.json +++ b/package.json @@ -37,7 +37,6 @@ "next-axiom": "0.15.1", "react": "18.2.0", "react-dom": "18.2.0", - "superjson": "^1.11.0", "zod": "^3.19.1" }, "devDependencies": { diff --git a/src/app/layout.tsx b/src/app/layout.tsx index bc77481..d26dc9b 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -9,7 +9,12 @@ type Props = { } const RootLayout: FC = ({children}) => ( - {children} + + + + {children} + + ) export default RootLayout diff --git a/src/datasources/trpc.tsx b/src/datasources/trpc.tsx index 591b965..5d674ec 100644 --- a/src/datasources/trpc.tsx +++ b/src/datasources/trpc.tsx @@ -1,13 +1,12 @@ "use client" // based on https://github.com/trpc/next-13/blob/main/client/trpcClient.tsx -// TODO wait for complete Next 13 support in tRPC and migrate +// TODO wait for complete Next 13 support in tRPC and migrate to @trpc/next-layout import {FC, ReactNode, useState} from "react" import {httpBatchLink} from "@trpc/client" import {createTRPCReact} from "@trpc/react-query" import {QueryClient, QueryClientProvider} from "@tanstack/react-query" -import superjson from "superjson" import type {AppRouter} from "server/routers" @@ -50,7 +49,6 @@ const TRPCClientProvider: FC = ({children}) => { const links = [httpBatchLink({url: trpcUrl})] return trpc.createClient({ - transformer: superjson, links }) })