chore: upgrade dependencies for nuxt 3.2.2

This commit is contained in:
CRBroughton
2023-03-27 21:48:14 +01:00
parent fa6ba65d35
commit 1defbe5954
5 changed files with 1752 additions and 711 deletions

View File

@@ -35,21 +35,21 @@
"update-deps": "taze -w && pnpm i"
},
"peerDependencies": {
"@trpc/client": "^10.12.0",
"@trpc/server": "^10.12.0"
"@trpc/client": "^10.18.0",
"@trpc/server": "^10.18.0"
},
"dependencies": {
"h3": "^1.5.0",
"h3": "^1.6.2",
"ofetch": "^1.0.1",
"ohash": "^1.0.0",
"ufo": "^1.1.0"
"ufo": "^1.1.1"
},
"devDependencies": {
"@nuxt/eslint-config": "^0.1.1",
"@trpc/client": "^10.12.0",
"@trpc/server": "^10.12.0",
"@trpc/client": "^10.18.0",
"@trpc/server": "^10.18.0",
"bumpp": "^8.2.1",
"eslint": "^8.33.0",
"eslint": "^8.36.0",
"taze": "^0.8.5",
"tsup": "6.6.3",
"typescript": "^4.9.5"
@@ -75,7 +75,7 @@
],
"pnpm": {
"overrides": {
"nuxt": "3.0.0"
"nuxt": "3.2.2"
}
},
"engines": {

View File

@@ -9,13 +9,13 @@
"postinstall": "nuxt prepare"
},
"dependencies": {
"@trpc/client": "^10.8.1",
"@trpc/server": "^10.8.1",
"superjson": "^1.12.1",
"@trpc/client": "^10.18.0",
"@trpc/server": "^10.18.0",
"superjson": "^1.12.2",
"trpc-nuxt": "workspace:*",
"zod": "^3.20.2"
"zod": "^3.21.4"
},
"devDependencies": {
"nuxt": "^3.0.0"
"nuxt": "^3.2.2"
}
}

View File

@@ -8,8 +8,8 @@ const { data: todo, pending, error } = await useAsyncData(() => $client.todo.get
<div v-if="pending">
Loading...
</div>
<div v-else-if="error?.data?.code">
{{ error.data.code }}
<div v-else-if="error">
{{ error.message }} - {{ error.cause }}
</div>
<div v-else>
ID: {{ todo?.id }} <br>

2431
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

View File

@@ -6,7 +6,7 @@ import { useRequestHeaders } from '#imports'
import { type HTTPLinkOptions as _HTTPLinkOptions } from '@trpc/client/dist/links/internals/httpUtils'
import { type FetchEsque } from '@trpc/client/dist/internals/types'
function customFetch(input: RequestInfo | URL, init?: RequestInit) {
function customFetch(input: RequestInfo | URL, init?: RequestInit & { method: 'GET' }) {
return globalThis.$fetch.raw(input.toString(), init)
.catch((e) => {
if (e instanceof FetchError && e.response) { return e.response }