Connect, collaborate, and grow with a community of TypeScript developers
Cleanup uwu request (#205)
Filip Pitus10f2155221cb
diff --git a/package.json b/package.jsonindex 62ea8074..f2a8940d 100644--- a/package.json+++ b/package.json@@ -18,7 +18,6 @@},"type": "module","dependencies": {- "@clerk/nextjs": "^4.19.0","@hookform/resolvers": "^3.1.1","@monaco-editor/loader": "^1.3.3","@monaco-editor/react": "^4.5.1",@@ -40,10 +39,6 @@"@radix-ui/react-tooltip": "^1.0.6","@t3-oss/env-nextjs": "^0.3.1","@tanstack/react-query": "^4.29.7",- "@trpc/client": "^10.26.0",- "@trpc/next": "^10.26.0",- "@trpc/react-query": "^10.26.0",- "@trpc/server": "^10.26.0","@types/lodash": "^4.14.195","@uiw/react-md-editor": "^3.23.3","@vercel/edge-config": "^0.2.1",diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 23e7d134..03b3d4ca 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -13,9 +13,6 @@ patchedDependencies:path: patches/[email protected]dependencies:- '@clerk/nextjs':- specifier: ^4.19.0'@hookform/resolvers':specifier: ^3.1.1version: 3.1.1([email protected])@@ -79,18 +76,6 @@ dependencies:'@tanstack/react-query':specifier: ^4.29.7version: 4.29.7([email protected])([email protected])- '@trpc/client':- specifier: ^10.26.0- version: 10.26.0(@trpc/[email protected])- '@trpc/next':- specifier: ^10.26.0- version: 10.26.0(@tanstack/[email protected])(@trpc/[email protected])(@trpc/[email protected])(@trpc/[email protected])([email protected])([email protected])([email protected])- '@trpc/react-query':- specifier: ^10.26.0- version: 10.26.0(@tanstack/[email protected])(@trpc/[email protected])(@trpc/[email protected])([email protected])([email protected])- '@trpc/server':- specifier: ^10.26.0- version: 10.26.0'@types/lodash':specifier: ^4.14.195version: 4.14.195@@ -258,97 +243,6 @@ packages:dependencies:regenerator-runtime: 0.13.11- /@clerk/[email protected]:- resolution: {integrity: sha512-SJr5M6ZM4d9lPK63LFMjU8cDoEmSRIsKXVwl4A0oBMNmxrZ62tZQj6l79nElRObB8jzomq0U/YzqccRSP4/8Sg==}- engines: {node: '>=14'}- dependencies:- '@clerk/types': 3.41.1- '@peculiar/webcrypto': 1.4.1- '@types/node': 16.18.6- deepmerge: 4.2.2- node-fetch-native: 1.0.1- snakecase-keys: 5.4.4- tslib: 2.4.1- dev: false-- /@clerk/[email protected]:- resolution: {integrity: sha512-EiCBLxImSPmamP1GwPviALgnwin/hN1pWhThwAQNyyDfOuiV8f7G1qEcZ3mS82W4aX+sdtxsl/wuNTOjBbzVRA==}- engines: {node: '>=14'}- dependencies:- '@clerk/types': 3.41.1- '@peculiar/webcrypto': 1.4.1- '@types/node': 16.18.6- deepmerge: 4.2.2- node-fetch-native: 1.0.1- snakecase-keys: 5.4.4- tslib: 2.4.1- dev: false-- /@clerk/[email protected]([email protected]):- resolution: {integrity: sha512-yhz+fdkqtg2uUrjWc2u1EVRMdONbGd7yFyzeJ5myayJN1FyDtGRCawo1mKDbDMOHUnyESiwOy3HN1vMgzyXjaw==}- engines: {node: '>=14'}- peerDependencies:- react: '>=16'- dependencies:- '@clerk/shared': 0.18.0([email protected])- '@clerk/types': 3.41.1- react: 18.2.0- swr: 1.3.0([email protected])- tslib: 2.4.1- dev: false-- /@clerk/[email protected]:- resolution: {integrity: sha512-P6P5r7QyfVMyrqgwVZcfyGtbv2ihWeN5C++E10W3ZTNjeg0NY3y4CrW4vh0Q7Sziwzp/6DF1c50nH48RRIEKNg==}- engines: {node: '>=14'}- dependencies:- '@clerk/backend': 0.22.0- '@clerk/types': 3.41.1- '@types/cookies': 0.7.7- '@types/express': 4.17.14- '@types/node-fetch': 2.6.2- camelcase-keys: 6.2.2- cookie: 0.5.0- snakecase-keys: 3.2.1- tslib: 2.4.1- dev: false-- resolution: {integrity: sha512-k7BUhu2hV924UOf3bzS/3KnNJWONzUQtWxaeJMHnd8AgS2X2j7iP32Sp5aPL5Jg2+n9h2lyI5A5obgbQhLeo5g==}- engines: {node: '>=14'}- peerDependencies:- next: '>=10'- react: ^17.0.2 || ^18.0.0-0- react-dom: ^17.0.2 || ^18.0.0-0- dependencies:- '@clerk/backend': 0.20.1- '@clerk/clerk-react': 4.19.0([email protected])- '@clerk/clerk-sdk-node': 4.10.4- '@clerk/types': 3.41.1- next: 13.4.9([email protected])([email protected])- path-to-regexp: 6.2.1- react: 18.2.0- react-dom: 18.2.0([email protected])- tslib: 2.4.1- dev: false-- /@clerk/[email protected]([email protected]):- resolution: {integrity: sha512-B1RbvrPjtCPDrBL11qM1CwtOrRcI3Op7tYbG4ucjrYNX8PmKgYqD4t5o6Xks12P0vkkf5dRDHVhoplarHTmxOw==}- peerDependencies:- react: '>=16'- dependencies:- glob-to-regexp: 0.4.1- js-cookie: 3.0.1- react: 18.2.0- swr: 1.3.0([email protected])- dev: false-- /@clerk/[email protected]:- resolution: {integrity: sha512-T/uNTfrsSmlJgDPA0Teo3wdQ2R3bGoCZ3I3TUaUmxSq1QuOkEEB/NfujPiHqJU4oOOtHWZTKLd9vkEse+L7c1A==}- engines: {node: '>=14'}- dependencies:- csstype: 3.1.1- dev: false-/@esbuild-kit/[email protected]:resolution: {integrity: sha512-BDXFbYOJzT/NBEtp71cvsrGPwGAMGRB/349rwKuoxNSiKjPraNNnlK6MIIabViCjqZugu6j+xeMDlEkWdHHJSg==}dependencies:@@ -828,32 +722,6 @@ packages:resolution: {integrity: sha512-dhPeilub1NuIG0X5Kvhh9lH4iW3ZsHlnzwgwbOlgwQ2wG1IqFzsgHqmKPk3WzsdWAeaxKJxgM0+W433RmN45GA==}dev: false- /@peculiar/[email protected]:- resolution: {integrity: sha512-izNRxPoaeJeg/AyH8hER6s+H7p4itk+03QCa4sbxI3lNdseQYCuxzgsuNK8bTXChtLTjpJz6NmXKA73qLa3rCA==}- dependencies:- asn1js: 3.0.5- pvtsutils: 1.3.2- tslib: 2.5.3- dev: false-- /@peculiar/[email protected]:- resolution: {integrity: sha512-coUfuoMeIB7B8/NMekxaDzLhaYmp0HZNPEjYRm9goRou8UZIC3z21s0sL9AWoCw4EG876QyO3kYrc61WNF9B/w==}- engines: {node: '>=8.0.0'}- dependencies:- tslib: 2.5.3- dev: false-- /@peculiar/[email protected]:- resolution: {integrity: sha512-eK4C6WTNYxoI7JOabMoZICiyqRRtJB220bh0Mbj5RwRycleZf9BPyZoxsTvpP0FpmVS2aS13NKOuh5/tN3sIRw==}- engines: {node: '>=10.12.0'}- dependencies:- '@peculiar/asn1-schema': 2.3.6- '@peculiar/json-schema': 1.1.12- pvtsutils: 1.3.2- tslib: 2.5.3- webcrypto-core: 1.7.7- dev: false-/@pkgr/[email protected]:resolution: {integrity: sha512-JOqwkgFEyi+OROIyq7l4Jy28h/WwhDnG/cPkXG2Z1iFbubB6jsHW1NDvmyOzTBxHr3yg68YGirmh1JUgMqa+9w==}engines: {node: ^12.20.0 || ^14.18.0 || >=16.0.0}@@ -2013,77 +1881,6 @@ packages:use-sync-external-store: 1.2.0([email protected])dev: false- /@trpc/[email protected](@trpc/[email protected]):- resolution: {integrity: sha512-ojHxQFIE97rBEGPK8p1ijbzo0T1IdEBoJ9fFSgWWL9FMuEEA/DNQ9s0uuiOrDKhCCdTFT1unfRharoJhB2/O2w==}- peerDependencies:- '@trpc/server': 10.26.0- dependencies:- '@trpc/server': 10.26.0- dev: false-- /@trpc/[email protected](@tanstack/[email protected])(@trpc/[email protected])(@trpc/[email protected])(@trpc/[email protected])([email protected])([email protected])([email protected]):- resolution: {integrity: sha512-p328crXBH6C228LKxjqbpDEXdLmy4+LdgsZuYK3oFMqaJEmCT22b+zcQ9IvQrcPfDxhKOpJym0QpuDNaWpG2qg==}- peerDependencies:- '@tanstack/react-query': ^4.18.0- '@trpc/client': 10.26.0- '@trpc/react-query': 10.26.0- '@trpc/server': 10.26.0- next: '*'- react: '>=16.8.0'- react-dom: '>=16.8.0'- dependencies:- '@tanstack/react-query': 4.29.7([email protected])([email protected])- '@trpc/client': 10.26.0(@trpc/[email protected])- '@trpc/react-query': 10.26.0(@tanstack/[email protected])(@trpc/[email protected])(@trpc/[email protected])([email protected])([email protected])- '@trpc/server': 10.26.0- next: 13.4.9([email protected])([email protected])- react: 18.2.0- react-dom: 18.2.0([email protected])- react-ssr-prepass: 1.5.0([email protected])- dev: false-- /@trpc/[email protected](@tanstack/[email protected])(@trpc/[email protected])(@trpc/[email protected])([email protected])([email protected]):- resolution: {integrity: sha512-n+enpalaCZhd3A/mbZmXeydRZHsAJo7mzc2ncgHn5S+C3SrfOM897uQdbHdj02Li25ULxzP1O92w+vZzmFbgkA==}- peerDependencies:- '@tanstack/react-query': ^4.18.0- '@trpc/client': 10.26.0- '@trpc/server': 10.26.0- react: '>=16.8.0'- react-dom: '>=16.8.0'- dependencies:- '@tanstack/react-query': 4.29.7([email protected])([email protected])- '@trpc/client': 10.26.0(@trpc/[email protected])- '@trpc/server': 10.26.0- react: 18.2.0- react-dom: 18.2.0([email protected])- dev: false-- /@trpc/[email protected]:- resolution: {integrity: sha512-+Wt0NFAeflVSNiUnHIDNN3C8jP7XIRmYrcgJ6IsAnm0lK4p/FkpCpeu1aig5qxrgZx30PHNDLZ/3FttVSEW2aQ==}- dev: false-- /@types/[email protected]:- resolution: {integrity: sha512-ALYone6pm6QmwZoAgeyNksccT9Q4AWZQ6PvfwR37GT6r6FWUPguq6sUmNGSMV2Wr761oQoBxwGGa6DR5o1DC9g==}- dependencies:- '@types/connect': 3.4.35- '@types/node': 18.16.0- dev: false-- /@types/[email protected]:- resolution: {integrity: sha512-cdeYyv4KWoEgpBISTxWvqYsVy444DOqehiF3fM3ne10AmJ62RSyNkUnxMJXHQWRQQX2eR94m5y1IZyDwBjV9FQ==}- dependencies:- '@types/node': 18.16.0- dev: false-- /@types/[email protected]:- resolution: {integrity: sha512-h7BcvPUogWbKCzBR2lY4oqaZbO3jXZksexYJVFvkrFeLgbZjQkU4x8pRq6eg2MHXQhY0McQdqmmsxRWlVAHooA==}- dependencies:- '@types/connect': 3.4.35- '@types/express': 4.17.14- '@types/keygrip': 1.0.2- '@types/node': 18.16.0- dev: false-/@types/[email protected]:resolution: {integrity: sha512-Qk7fpJ6qFp+26VeQ47WY0mkwXaiq8+76RJcncDEfMc2ocRzXLO67bLFRNI4OX1aGBoPzsM5Y2T+/m1pldOgD+A==}dev: false@@ -2143,24 +1940,6 @@ packages:resolution: {integrity: sha512-LG4opVs2ANWZ1TJoKc937iMmNstM/d0ae1vNbnBvBhqCSezgVUOzcLCqbI5elV8Vy6WKwKjaqR+zO9VKirBBCA==}dev: true- /@types/[email protected]:- resolution: {integrity: sha512-wALWQwrgiB2AWTT91CB62b6Yt0sNHpznUXeZEcnPU3DRdlDIz74x8Qg1UUYKSVFi+va5vKOLYRBI1bRKiLLKIg==}- dependencies:- '@types/node': 18.16.0- '@types/qs': 6.9.7- '@types/range-parser': 1.2.4- '@types/send': 0.17.1- dev: false-- /@types/[email protected]:- resolution: {integrity: sha512-TEbt+vaPFQ+xpxFLFssxUDXj5cWCxZJjIcB7Yg0k0GMHGtgtQgpvx/MUQUeAkNbA9AAGrwkAsoeItdTgS7FMyg==}- dependencies:- '@types/body-parser': 1.19.2- '@types/express-serve-static-core': 4.17.35- '@types/qs': 6.9.7- '@types/serve-static': 1.15.1- dev: false-/@types/[email protected]:resolution: {integrity: sha512-wLEm0QvaoawEDoTRwzTXp4b4jpwiJDvR5KMnFnVodm3scufTlBOWRD6N1OBf9TZMhjlNsSfcO5V+7AF4+Vy+9g==}dependencies:@@ -2175,10 +1954,6 @@ packages:resolution: {integrity: sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ==}dev: true- /@types/[email protected]:- resolution: {integrity: sha512-GJhpTepz2udxGexqos8wgaBx4I/zWIDPh/KOGEwAqtuGDkOUJu5eFvwmdBX4AmB8Odsr+9pHCQqiAqDL/yKMKw==}- dev: false-/@types/[email protected]:resolution: {integrity: sha512-Hwx9EUgdwf2GLarOjQp5ZH8ZmblzcbTBC2wtQWNKARBSxM9ezRIAUpeDTgoQRAFB0+8CNWXVA9+MaSOzOF3nPg==}dev: false@@ -2189,31 +1964,13 @@ packages:'@types/unist': 3.0.0dev: false- /@types/[email protected]:- resolution: {integrity: sha512-YATxVxgRqNH6nHEIsvg6k2Boc1JHI9ZbH5iWFFv/MTkchz3b1ieGDa5T0a9RznNdI0KhVbdbWSN+KWWrQZRxTw==}- dev: false-- /@types/[email protected]:- resolution: {integrity: sha512-Y4XFY5VJAuw0FgAqPNd6NNoV44jbq9Bz2L7Rh/J6jLTiHBSBJa9fxqQIvkIld4GsoDOcCbvzOUAbLPsSKKg+uA==}- dev: false-/@types/[email protected]:resolution: {integrity: sha512-iiUgKzV9AuaEkZqkOLDIvlQiL6ltuZd9tGcW3gwpnX8JbuiuhFlEGmmFXEXkN50Cvq7Os88IY2v0dkDqXYWVgA==}dev: false- /@types/[email protected]:- resolution: {integrity: sha512-DHqhlq5jeESLy19TYhLakJ07kNumXWjcDdxXsLUMJZ6ue8VZJj4kLPQVE/2mdHh3xZziNF1xppu5lwmS53HR+A==}- dependencies:- '@types/node': 18.16.0- form-data: 3.0.1- dev: false-- /@types/[email protected]:- resolution: {integrity: sha512-vmYJF0REqDyyU0gviezF/KHq/fYaUbFhkcNbQCuPGFQj6VTbXuHZoxs/Y7mutWe73C8AC6l9fFu8mSYiBAqkGA==}- dev: false-/@types/[email protected]:resolution: {integrity: sha512-BsAaKhB+7X+H4GnSjGhJG9Qi8Tw+inU9nJDwmD5CgOmBLEI6ArdhikpLX7DjbjDRDTbqZzU2LSQNZg8WGPiSZQ==}+ dev: true/@types/[email protected]:resolution: {integrity: sha512-SuT16Q1K51EAVPz1K29DJ/sXjhSQ0zjvsypYJ6tlwVsRV9jwW5Adq2ch8Dq8kDBCkYnELS7N7VNCSB5nC56t/g==}@@ -2230,14 +1987,6 @@ packages:/@types/[email protected]:resolution: {integrity: sha512-JCB8C6SnDoQf0cNycqd/35A7MjcnK+ZTqE7judS6o7utxUCg6imJg3QK2qzHKszlTjcj2cn+NwMB2i96ubpj7w==}- /@types/[email protected]:- resolution: {integrity: sha512-FGa1F62FT09qcrueBA6qYTrJPVDzah9a+493+o2PCXsesWHIn27G98TsSMs3WPNbZIEj4+VJf6saSFpvD+3Zsw==}- dev: false-- /@types/[email protected]:- resolution: {integrity: sha512-EEhsLsD6UsDM1yFhAvy0Cjr6VwmpMWqFBCb9w07wVugF7w9nfajxLuVmngTIpgS6svCnm6Vaw+MZhoDCKnOfsw==}- dev: false-/@types/[email protected]:resolution: {integrity: sha512-G2mHoTMTL4yoydITgOGwWdWMVd8sNgyEP85xVmMKAPUBwQWm9wBPQUmvbeF4V3WBY1P7mmL4BkjQ0SqUpf1snw==}dependencies:@@ -2263,20 +2012,6 @@ packages:resolution: {integrity: sha512-G8hZ6XJiHnuhQKR7ZmysCeJWE08o8T0AXtk5darsCaTVsYZhhgUrq53jizaR2FvsoeCwJhlmwTjkXBY5Pn/ZHw==}dev: true- /@types/[email protected]:- resolution: {integrity: sha512-Cwo8LE/0rnvX7kIIa3QHCkcuF21c05Ayb0ZfxPiv0W8VRiZiNW/WuRupHKpqqGVGf7SUA44QSOUKaEd9lIrd/Q==}- dependencies:- '@types/mime': 1.3.2- '@types/node': 18.16.0- dev: false-- /@types/[email protected]:- resolution: {integrity: sha512-NUo5XNiAdULrJENtJXZZ3fHtfMolzZwczzBbnAeBbqBwG+LaG6YaJtuwzwGSQZ2wsCrxjEhNNjAkKigy3n8teQ==}- dependencies:- '@types/mime': 3.0.1- '@types/node': 18.16.0- dev: false-/@types/[email protected]:resolution: {integrity: sha512-PBjIUxZHOuj0R15/xuwJYjFi+KZdNFrehocChv4g5hu6aFroHue8m0lBP0POdK2nKzbw0cgV1mws8+V/JAcEkQ==}dev: false@@ -2614,15 +2349,6 @@ packages:get-intrinsic: 1.2.1dev: true- resolution: {integrity: sha512-FVnvrKJwpt9LP2lAMl8qZswRNm3T4q9CON+bxldk2iwk3FFpuwhx2FfinyitizWHsVYyaY+y5JzDR0rCMV5yTQ==}- engines: {node: '>=12.0.0'}- dependencies:- pvtsutils: 1.3.2- pvutils: 1.1.3- tslib: 2.5.3- dev: false-resolution: {integrity: sha512-eBvWn1lvIApYMhzQMsu9ciLfkBY499mFZlNqG+/9WR7PVlroQw0vG30cOQQbaKz3sCEc44TAOu2ykzqXSNnwag==}dev: true@@ -2632,10 +2358,6 @@ packages:engines: {node: '>=8'}dev: true- resolution: {integrity: sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==}- dev: false-resolution: {integrity: sha512-FQzyfOsTlwVzjHxKEqRIAdJx9niO6VCBCoEwax/VLSoQF29ggECcPuBqUMZ+u8jCZOPSy8b8/8KnuFbp0SaFZQ==}engines: {node: ^10 || ^12 || >=14}@@ -2756,20 +2478,6 @@ packages:resolution: {integrity: sha512-QOSvevhslijgYwRx6Rv7zKdMF8lbRmx+uQGx2+vDc+KI/eBnsy9kit5aj23AgGu3pa4t9AgwbnXWqS+iOY+2aA==}engines: {node: '>= 6'}- resolution: {integrity: sha512-YrwaA0vEKazPBkn0ipTiMpSajYDSe+KjQfrjhcBMxJt/znbvlHd8Pw/Vamaz5EB4Wfhs3SUR3Z9mwRu/P3s3Yg==}- engines: {node: '>=8'}- dependencies:- camelcase: 5.3.1- map-obj: 4.3.0- quick-lru: 4.0.1- dev: false-- resolution: {integrity: sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==}- engines: {node: '>=6'}- dev: false-resolution: {integrity: sha512-I4/duVK4wL6rAK/aKZl3HXB4g+lIZvaT4VLAn2rCgJ38jVLb0lv2Xug6QuqmxXFVRJMF74SPPWPJ/1Sdm3vCzw==}@@ -2913,13 +2621,6 @@ packages:resolution: {integrity: sha512-IfEDxwoWIjkeXL1eXcDiow4UbKjhLdq6/EuSVR9GMN7KVH3r9gQ83e73hsz1Nd1T3ijd5xv1wcWRYO+D6kCI2w==}dev: true- resolution: {integrity: sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==}- engines: {node: '>= 0.8'}- dependencies:- delayed-stream: 1.0.0- dev: false-resolution: {integrity: sha512-GHuDRO12Sypu2cV70d1dkA2EUmXHgntrzbpvOB+Qy+49ypNfGgFQIC2fhhXbnyrJRynDCAARsT7Ou0M6hirpfw==}dev: false@@ -2978,10 +2679,6 @@ packages:engines: {node: '>=4'}hasBin: true- resolution: {integrity: sha512-DJR/VvkAvSZW9bTouZue2sSxDwdTN92uHjqeKVm+0dAqdfNykRzQ95tay8aXMBAAPpUiq4Qcug2L7neoRh2Egw==}- dev: false-resolution: {integrity: sha512-I7K1Uu0MBPzaFKg4nI5Q7Vs2t+3gWWW648spaF+Rg7pI9ds18Ugn+lvg4SHczUdKlHI5LWBXyqfS8+DufyBsgQ==}@@ -3126,11 +2823,6 @@ packages:resolution: {integrity: sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==}dev: true- resolution: {integrity: sha512-FJ3UgI4gIl+PHZm53knsuSFpE+nESMr7M4v9QcgB7S63Kj/6WqMiFQJpBBYz1Pt+66bZpP3Q7Lye0Oo9MPKEdg==}- engines: {node: '>=0.10.0'}- dev: false-resolution: {integrity: sha512-OZ1y3y0SqSICtE8DE4S8YOE9UZOJ8wO16fKWVP5J1Qz42kV9jcnMVFrEE/noXb/ss3Q4pZIH79kxofzyNNtUNA==}engines: {node: '>=12'}@@ -3162,11 +2854,6 @@ packages:object-keys: 1.1.1dev: true- resolution: {integrity: sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==}- engines: {node: '>=0.4.0'}- dev: false-resolution: {integrity: sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==}engines: {node: '>=6'}@@ -3219,13 +2906,6 @@ packages:'@babel/runtime': 7.22.5dev: false- resolution: {integrity: sha512-Kv5nKlh6yRrdrGvxeJ2e5y2eRUpkUosIW4A2AS38zwSz27zu7ufDwQPi5Jhs3XAlGNetl3bmnGhQsMtkKJnj3w==}- dependencies:- no-case: 3.0.4- tslib: 2.5.3- dev: false-resolution: {integrity: sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==}dev: true@@ -3776,15 +3456,6 @@ packages:is-callable: 1.2.7dev: true- resolution: {integrity: sha512-RHkBKtLWUVwd7SqRIvCZMEvAMoGUp0XU+seQiZejj0COz3RI3hWP4sCv3gZWWLjJTd7rGwcsF5eKZGii0r/hbg==}- engines: {node: '>= 6'}- dependencies:- asynckit: 0.4.0- combined-stream: 1.0.8- mime-types: 2.1.35- dev: false-resolution: {integrity: sha512-wzsgA6WOq+09wrU1tsJ09udeR/YZRaeArL9e1wPbFg3GG2yDnC2ldKpxs4xunpFF9DgqCqOIra3bc1HWrJ37Ww==}engines: {node: '>=0.4.x'}@@ -4470,11 +4141,6 @@ packages:resolution: {integrity: sha512-j8GhLiKmUAh+dsFXlX1aJCbt5KMibuKb+d7j1JaOJG6s2UjX1PQlW+OKB/sD4a/5ZYF4RcmYmLSndOoU3Lt/3g==}dev: false- resolution: {integrity: sha512-+0rgsUXZu4ncpPxRL+lNEptWMOWl9etvPHc/koSRp6MPwpRYAhmk0dUG00J4bxVV3r9uUzfo24wW0knS07SKSw==}- engines: {node: '>=12'}- dev: false-resolution: {integrity: sha512-ZC41vPSTLKGwIRjqDh8DfXoCrdQIyBgspJVPXHBGu4nZlAEvG3nf+jO9avM9RmLiGakg7vz974ms99nEV0tmTQ==}dev: false@@ -4635,12 +4301,6 @@ packages:dependencies:js-tokens: 4.0.0- resolution: {integrity: sha512-7fm3l3NAF9WfN6W3JOmf5drwpVqX78JtoGJ3A6W0a6ZnldM41w2fV5D490psKFTpMds8TJse/eHLFFsNHHjHgg==}- dependencies:- tslib: 2.5.3- dev: false-resolution: {integrity: sha512-8Ktj+prEb1RoCPkEOrPMYUN/nCggB7qAWe3a7OpMjWQkh3l2RD5wKRQ+o8Q8YuI9RG/xs95waaI/E6ym/7NsTw==}dependencies:@@ -4662,11 +4322,6 @@ packages:react: 18.2.0dev: false- resolution: {integrity: sha512-hdN1wVrZbb29eBGiGjJbeP8JbKjq1urkHJ/LIP/NY48MZ1QVXUsQBV1G1zvYFHn1XE06cwjBsOI2K3Ulnj1YXQ==}- engines: {node: '>=8'}- dev: false-resolution: {integrity: sha512-Z1NL3Tb1M9wH4XESsCDEksWoKTdlUafKc4pt0GRwjUyXaCFZ+dc3g2erqB6zm3szA2IUSi7VnPI+o/9jnxh9hw==}dev: false@@ -5064,18 +4719,6 @@ packages:braces: 3.0.2picomatch: 2.3.1- resolution: {integrity: sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==}- engines: {node: '>= 0.6'}- dev: false-- resolution: {integrity: sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==}- engines: {node: '>= 0.6'}- dependencies:- mime-db: 1.52.0- dev: false-resolution: {integrity: sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==}engines: {node: '>=6'}@@ -5220,17 +4863,6 @@ packages:- babel-plugin-macrosdev: false- resolution: {integrity: sha512-fgAN3jGAh+RoxUGZHTSOLJIqUc2wmoBwGR4tbpNAKmmovFoWq0OdRkb0VkldReO2a2iBT/OEulG9XSUc10r3zg==}- dependencies:- lower-case: 2.0.2- tslib: 2.5.3- dev: false-- resolution: {integrity: sha512-VzW+TAk2wE4X9maiKMlT+GsPU4OMmR1U9CrHSmd3DFLn2IcZ9VJ6M6BBugGfYUnPCLSYxXdZy17M0BEJyhUTwg==}- dev: false-resolution: {integrity: sha512-QzsYKWhXTWx8h1kIvqfnC++o0pEmpRQA/aenALsL2F4pqNVr7YzcdMlDij5WBnwftRbJCNJL/O7zdKaxKPHqgQ==}dev: true@@ -5483,10 +5115,6 @@ packages:resolution: {integrity: sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==}- resolution: {integrity: sha512-JLyh7xT1kizaEvcaXOQwOc2/Yhw6KZOvPf1S8401UyLk86CU79LN3vl7ztXGm/pZ+YjoyAJ4rxmHwbkBXJX+yw==}- dev: false-resolution: {integrity: sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==}engines: {node: '>=8'}@@ -5717,25 +5345,9 @@ packages:engines: {node: '>=6'}dev: true- resolution: {integrity: sha512-+Ipe2iNUyrZz+8K/2IOo+kKikdtfhRKzNpQbruF2URmqPtoqAs8g3xS7TJvFF2GcPXjh7DkqMnpVveRFq4PgEQ==}- dependencies:- tslib: 2.5.3- dev: false-- resolution: {integrity: sha512-pMpnA0qRdFp32b1sJl1wOJNxZLQ2cbQx+k6tjNtZ8CpvVhNqEPRgivZ2WOUev2YMajecdH7ctUPDvEe87nariQ==}- engines: {node: '>=6.0.0'}- dev: false-resolution: {integrity: sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==}- resolution: {integrity: sha512-ARhCpm70fzdcvNQfPoy49IaanKkTlRWF2JMzqhcJbhSFRZv7nPTvZJdcY7301IPmvW+/p0RgIWnQDLJxifsQ7g==}- engines: {node: '>=8'}- dev: false-resolution: {integrity: sha512-WuyALRjWPDGtt/wzJiadO5AXY+8hZ80hVpe6MyivgraREW751X3SbhRvG3eLKOYN+8VEvqLcf3wdnt44Z4S4SA==}engines: {node: '>=10'}@@ -5886,14 +5498,6 @@ packages:react-transition-group: 2.9.0([email protected])([email protected])dev: false- resolution: {integrity: sha512-yFNHrlVEReVYKsLI5lF05tZoHveA5pGzjFbFJY/3pOqqjGOmMmqx83N4hIjN2n6E1AOa+eQEUxs3CgRnPmT0RQ==}- peerDependencies:- react: ^16.8.0 || ^17.0.0 || ^18.0.0- dependencies:- react: 18.2.0- dev: false-resolution: {integrity: sha512-ZWj0fHEMyWkHzKYUr2Bs/4zU6XLmq9HsgBURm7g5pAVfyn49DgUiNgY2d4lXRlYSiCif9YBGpQleewkcqddc7g==}engines: {node: '>=10'}@@ -6306,30 +5910,6 @@ packages:is-fullwidth-code-point: 4.0.0dev: true- resolution: {integrity: sha512-LAOh4z89bGQvl9pFfNF8V146i7o7/CqFPbqzYgP+yYzDIDeS9HaNFtXABamRW+AQzEVODcvE79ljJ+8a9YSdMg==}- dependencies:- dot-case: 3.0.4- tslib: 2.5.3- dev: false-- resolution: {integrity: sha512-CjU5pyRfwOtaOITYv5C8DzpZ8XA/ieRsDpr93HI2r6e3YInC6moZpSQbmUtg8cTk58tq2x3jcG2gv+p1IZGmMA==}- engines: {node: '>=8'}- dependencies:- map-obj: 4.3.0- to-snake-case: 1.0.0- dev: false-- resolution: {integrity: sha512-YTywJG93yxwHLgrYLZjlC75moVEX04LZM4FHfihjHe1FCXm+QaLOFfSf535aXOAd0ArVQMWUAe8ZPm4VtWyXaA==}- engines: {node: '>=12'}- dependencies:- map-obj: 4.3.0- snake-case: 3.0.4- type-fest: 2.19.0- dev: false-resolution: {integrity: sha512-R0XvVJ9WusLiqTCEiGCmICCMplcCkIwwR11mOSD9CR5u+IXYdiseeEuXCVAjS54zqwkLcPNnmU4OeJ6tUrWhDw==}engines: {node: '>=0.10.0'}@@ -6526,14 +6106,6 @@ packages:resolution: {integrity: sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==}engines: {node: '>= 0.4'}- resolution: {integrity: sha512-dkghQrOl2ORX9HYrMDtPa7LTVHJjCTeZoB1dqTbnnEDlSvN8JEKpYIYurDfvbQFUUS8Cg8PceFVZNkW0KNNYPw==}- peerDependencies:- react: ^16.11.0 || ^17.0.0 || ^18.0.0- dependencies:- react: 18.2.0- dev: false-resolution: {integrity: sha512-L1dapNV6vu2s/4Sputv8xGsCdAVlb5nRDMFU/E27D44l5U6cw1g0dGd45uLc+OXjNMmF4ntiMdCimzcjFKQI8Q==}engines: {node: ^14.18.0 || >=16.0.0}@@ -6617,28 +6189,12 @@ packages:engines: {node: '>=12'}dev: true- resolution: {integrity: sha512-Z3g735FxuZY8rodxV4gH7LxClE4H0hTIyHNIHdk+vpQxjLm0cwnKXq/OFVZ76SOQmto7txVcwSCwkU5kqp+FKg==}- dev: false-resolution: {integrity: sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==}engines: {node: '>=8.0'}dependencies:is-number: 7.0.0- resolution: {integrity: sha512-joRpzBAk1Bhi2eGEYBjukEWHOe/IvclOkiJl3DtA91jV6NwQ3MwXA4FHYeqk8BNp/D8bmi9tcNbRu/SozP0jbQ==}- dependencies:- to-space-case: 1.0.0- dev: false-- resolution: {integrity: sha512-rLdvwXZ39VOn1IxGL3V6ZstoTbwLRckQmn/U8ZDLuWwIXNpuZDhQ3AiRUlhTbOXFVE9C+dR51wM0CBDhk31VcA==}- dependencies:- to-no-case: 1.0.2- dev: false-resolution: {integrity: sha512-kRj8B+YHZCc9kQYdWfJB2/oUl9rA99qbowYYBtr4ui4mZyAQ2JpvVBd/6U2YloATfqBhBTSMhTpgBHtU0Mf3Rg==}dev: false@@ -6663,10 +6219,6 @@ packages:resolution: {integrity: sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==}dev: true- resolution: {integrity: sha512-tGyy4dAjRIEwI7BzsB0lynWgOpfqjUdq91XXAlIWD2OwKBH7oCl/GZG/HT4BOHrTlPMOASlMQ7veyTqpmRcrNA==}- dev: false-resolution: {integrity: sha512-mSxlJJwl3BMEQCUNnxXBU9jP4JBktcEGhURcPR6VQVlnP0FdDEsIaz0C35dXNGLyRfrATNofF0F5p2KPxQgB+w==}@@ -6708,11 +6260,6 @@ packages:engines: {node: '>=10'}dev: true- resolution: {integrity: sha512-RAH822pAdBgcNMAfWnCBU3CFZcfZ/i1eZjwFU/dsLKumyuuP3niueg2UAukXYF0E2AAoc82ZSSf9J0WQBinzHA==}- engines: {node: '>=12.20'}- dev: false-resolution: {integrity: sha512-KjZypGq+I/H7HI5HlOoGHkWUUGq+Q0TPhQurLbyrVrvnKTBgzLhIJ7j6J/XTQOi0d1RjyZ0wdas8bKs2p0x3Ng==}dependencies:@@ -6954,16 +6501,6 @@ packages:resolution: {integrity: sha512-bKr1DkiNa2krS7qxNtdrtHAmzuYGFQLiQ13TsorsdT6ULTkPLKuu5+GsFpDlg6JFjUTwX2DyhMPG2be8uPrqsQ==}dev: false- resolution: {integrity: sha512-7FjigXNsBfopEj+5DV2nhNpfic2vumtjjgPmeDKk45z+MJwXKKfhPB7118Pfzrmh4jqOMST6Ch37iPAHoImg5g==}- dependencies:- '@peculiar/asn1-schema': 2.3.6- '@peculiar/json-schema': 1.1.12- asn1js: 3.0.5- pvtsutils: 1.3.2- tslib: 2.5.3- dev: false-resolution: {integrity: sha512-bwZdv0AKLpplFY2KZRX6TvyuN7ojjr7lwkg6ml0roIy9YeuSr7JS372qlNW18UQYzgYK9ziGcerWqZOmEn9VNg==}dependencies:diff --git a/src/server/api/root.ts b/src/server/api/root.tsdeleted file mode 100644index e8586077..00000000--- a/src/server/api/root.ts+++ /dev/null@@ -1,16 +0,0 @@-import { exampleRouter } from '~/server/api/routers/example';-import { createTRPCRouter } from '~/server/api/trpc';-import { userRouter } from './routers/user';--/**- * This is the primary router for your server.- *- * All routers added in /api/routers should be manually added here.- */-export const appRouter = createTRPCRouter({- example: exampleRouter,- user: userRouter,-});--// export type definition of API-export type AppRouter = typeof appRouter;diff --git a/src/server/api/routers/example.ts b/src/server/api/routers/example.tsdeleted file mode 100644index 10296466..00000000--- a/src/server/api/routers/example.ts+++ /dev/null@@ -1,14 +0,0 @@-import { z } from 'zod';-import { createTRPCRouter, protectedProcedure, publicProcedure } from '~/server/api/trpc';--export const exampleRouter = createTRPCRouter({- hello: publicProcedure.input(z.object({ text: z.string() })).query(({ input }) => {- return {- greeting: `Hello ${input.text}`,- };- }),-- getSecretMessage: protectedProcedure.query(() => {- return 'you can now see this secret message!';- }),-});diff --git a/src/server/api/routers/user.ts b/src/server/api/routers/user.tsdeleted file mode 100644index fe4145e8..00000000--- a/src/server/api/routers/user.ts+++ /dev/null@@ -1,68 +0,0 @@-import { z } from 'zod';-import { createTRPCRouter, protectedProcedure, publicProcedure } from '~/server/api/trpc';--export const userRouter = createTRPCRouter({- all: publicProcedure.query(({ ctx }) => {- return ctx.prisma.user.findMany();- }),- byId: publicProcedure- .input(- z.object({- id: z.string(),- }),- )- .query(({ ctx, input }) => {- const { id } = input;- return ctx.prisma.user.findUnique({- where: { id },- });- }),- byName: publicProcedure- .input(- z.object({- name: z.string(),- }),- )- .query(({ ctx, input }) => {- const { name } = input;- return ctx.prisma.user.findFirst({- where: {- name: {- equals: name,- },- },- });- }),- edit: protectedProcedure- .input(- z.object({- id: z.string(),- data: z.object({- // email: z.string().min(1).max(32).optional(),- name: z.string().min(1).optional(),- // image: z.string().min(1).optional(),- }),- }),- )- .mutation(async ({ ctx, input }) => {- const { id, data } = input;- const post = await ctx.prisma.user.update({- where: { id },- data,- });- return post;- }),- delete: protectedProcedure- .input(- z.object({- id: z.string(),- }),- )- .mutation(async ({ ctx, input }) => {- const { id } = input;- await ctx.prisma.user.delete({ where: { id } });- return {- id,- };- }),-});diff --git a/src/server/api/trpc.ts b/src/server/api/trpc.tsdeleted file mode 100644index 6ad3ee45..00000000--- a/src/server/api/trpc.ts+++ /dev/null@@ -1,109 +0,0 @@-/**- * YOU PROBABLY DON'T NEED TO EDIT THIS FILE, UNLESS:- * 1. You want to modify request context (see Part 1).- * 2. You want to create a new middleware or type of procedure (see Part 3).- *- * TL;DR - This is where all the tRPC server stuff is created and plugged in. The pieces you will- * need to use are documented accordingly near the end.- */--import { initTRPC, TRPCError } from '@trpc/server';-import { type CreateNextContextOptions } from '@trpc/server/adapters/next';-import { getServerSession } from 'next-auth';-import superjson from 'superjson';-import { ZodError } from 'zod';-import { authOptions } from '~/server/auth';-import { prisma } from '~/server/db';--/**- * 1. CONTEXT- *- * This section defines the "contexts" that are available in the backend API.- *- * These allow you to access things when processing a request, like the database, the session, etc.- */--/**- * This is the actual context you will use in your router. It will be used to process every request- * that goes through your tRPC endpoint.- *- * @see https://trpc.io/docs/context- */-export const createTRPCContext = async (opts: CreateNextContextOptions) => {- const { req, res } = opts;-- // Get the session from the server using the getServerAuthSession wrapper function- const session = await getServerSession(req, res, authOptions);-- return {- session,- prisma,- };-};--/**- * 2. INITIALIZATION- *- * This is where the tRPC API is initialized, connecting the context and transformer. We also parse- * ZodErrors so that you get typesafety on the frontend if your procedure fails due to validation- * errors on the backend.- */--const t = initTRPC.context<typeof createTRPCContext>().create({- transformer: superjson,- errorFormatter({ shape, error }) {- return {- ...shape,- data: {- ...shape.data,- zodError: error.cause instanceof ZodError ? error.cause.flatten() : null,- },- };- },-});--/**- * 3. ROUTER & PROCEDURE (THE IMPORTANT BIT)- *- * These are the pieces you use to build your tRPC API. You should import these a lot in the- * "/src/server/api/routers" directory.- */--/**- * This is how you create new routers and sub-routers in your tRPC API.- *- * @see https://trpc.io/docs/router- */-export const createTRPCRouter = t.router;--/**- * Public (unauthenticated) procedure- *- * This is the base piece you use to build new queries and mutations on your tRPC API. It does not- * guarantee that a user querying is authorized, but you can still access user session data if they- * are logged in.- */-export const publicProcedure = t.procedure;--/** Reusable middleware that enforces users are logged in before running the procedure. */-const enforceUserIsAuthed = t.middleware(({ ctx, next }) => {- if (!ctx.session || !ctx.session.user) {- throw new TRPCError({ code: 'UNAUTHORIZED' });- }- return next({- ctx: {- // infers the `session` as non-nullable- session: { ...ctx.session, user: ctx.session.user },- },- });-});--/**- * Protected (authenticated) procedure- *- * If you want a query or mutation to ONLY be accessible to logged in users, use this. It verifies- * the session is valid and guarantees `ctx.session.user` is not null.- *- * @see https://trpc.io/docs/procedures- */-export const protectedProcedure = t.procedure.use(enforceUserIsAuthed);diff --git a/src/utils/api.ts b/src/utils/api.tsdeleted file mode 100644index 0e00d408..00000000--- a/src/utils/api.ts+++ /dev/null@@ -1,67 +0,0 @@-/**- * This is the client-side entrypoint for your tRPC API. It is used to create the `api` object which- * contains the Next.js App-wrapper, as well as your type-safe React Query hooks.- *- * We also create a few inference helpers for input and output types.- */-import { httpBatchLink, loggerLink } from '@trpc/client';-import { createTRPCNext } from '@trpc/next';-import { type inferRouterInputs, type inferRouterOutputs } from '@trpc/server';-import superjson from 'superjson';-import { type AppRouter } from '~/server/api/root';--const getBaseUrl = () => {- if (typeof window !== 'undefined') return ''; // browser should use relative url- if (process.env.VERCEL_URL) return `https://${process.env.VERCEL_URL}`; // SSR should use vercel url- return `http://localhost:${process.env.PORT ?? 3000}`; // dev SSR should use localhost-};--/** A set of type-safe react-query hooks for your tRPC API. */-export const api = createTRPCNext<AppRouter>({- config() {- return {- /**- * Transformer used for data de-serialization from the server.- *- * @see https://trpc.io/docs/data-transformers- */- transformer: superjson,-- /**- * Links used to determine request flow from client to server.- *- * @see https://trpc.io/docs/links- */- links: [- loggerLink({- enabled: (opts) =>- process.env.NODE_ENV === 'development' ||- (opts.direction === 'down' && opts.result instanceof Error),- }),- httpBatchLink({- url: `${getBaseUrl()}/api/trpc`,- }),- ],- };- },- /**- * Whether tRPC should await queries when server rendering pages.- *- * @see https://trpc.io/docs/nextjs#ssr-boolean-default-false- */- ssr: false,-});--/**- * Inference helper for inputs.- *- * @example type HelloInput = RouterInputs['example']['hello']- */-export type RouterInputs = inferRouterInputs<AppRouter>;--/**- * Inference helper for outputs.- *- * @example type HelloOutput = RouterOutputs['example']['hello']- */-export type RouterOutputs = inferRouterOutputs<AppRouter>;