mirror of
https://github.com/ArthurDanjou/trpc-nuxt.git
synced 2026-01-14 12:14:40 +01:00
feat(deps): bump @trpc/client and @trpc/server to 10.10.0
This commit is contained in:
10
package.json
10
package.json
@@ -25,7 +25,7 @@
|
||||
"client.d.ts"
|
||||
],
|
||||
"scripts": {
|
||||
"dev": "concurrently \"pnpm build --watch\" \"pnpm --filter playground dev\"",
|
||||
"dev": "tsup --watch --onSuccess \"pnpm --filter playground dev\"",
|
||||
"dev:prepare": "pnpm build && nuxt prepare playground",
|
||||
"prepublishOnly": "pnpm build",
|
||||
"build": "tsup",
|
||||
@@ -35,8 +35,8 @@
|
||||
"update-deps": "taze -w && pnpm i"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@trpc/client": "^10.8.0",
|
||||
"@trpc/server": "^10.8.0"
|
||||
"@trpc/client": "^10.10.0",
|
||||
"@trpc/server": "^10.10.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"h3": "^1.0.2",
|
||||
@@ -46,8 +46,8 @@
|
||||
},
|
||||
"devDependencies": {
|
||||
"@nuxt/eslint-config": "^0.1.1",
|
||||
"@trpc/client": "^10.8.1",
|
||||
"@trpc/server": "^10.8.1",
|
||||
"@trpc/client": "^10.10.0",
|
||||
"@trpc/server": "^10.10.0",
|
||||
"bumpp": "^8.2.1",
|
||||
"concurrently": "^7.6.0",
|
||||
"eslint": "^8.30.0",
|
||||
|
||||
22
pnpm-lock.yaml
generated
22
pnpm-lock.yaml
generated
@@ -8,8 +8,8 @@ importers:
|
||||
.:
|
||||
specifiers:
|
||||
'@nuxt/eslint-config': ^0.1.1
|
||||
'@trpc/client': ^10.8.1
|
||||
'@trpc/server': ^10.8.1
|
||||
'@trpc/client': ^10.10.0
|
||||
'@trpc/server': ^10.10.0
|
||||
bumpp: ^8.2.1
|
||||
concurrently: ^7.6.0
|
||||
eslint: ^8.30.0
|
||||
@@ -27,8 +27,8 @@ importers:
|
||||
ufo: 1.0.1
|
||||
devDependencies:
|
||||
'@nuxt/eslint-config': 0.1.1_eslint@8.30.0
|
||||
'@trpc/client': 10.8.1_@trpc+server@10.8.1
|
||||
'@trpc/server': 10.8.1
|
||||
'@trpc/client': 10.10.0_@trpc+server@10.10.0
|
||||
'@trpc/server': 10.10.0
|
||||
bumpp: 8.2.1
|
||||
concurrently: 7.6.0
|
||||
eslint: 8.30.0
|
||||
@@ -1304,15 +1304,29 @@ packages:
|
||||
engines: {node: '>= 10'}
|
||||
dev: true
|
||||
|
||||
/@trpc/client/10.10.0_@trpc+server@10.10.0:
|
||||
resolution: {integrity: sha512-HRVGkOsR4FIYpyQILP84HLbj6pRnLKgxy4AIelTf9d9TxD60M5bNhbR2Uz3hqNSb9a2ppaRJBLv7twlV9b4qHQ==}
|
||||
peerDependencies:
|
||||
'@trpc/server': 10.10.0
|
||||
dependencies:
|
||||
'@trpc/server': 10.10.0
|
||||
dev: true
|
||||
|
||||
/@trpc/client/10.8.1_@trpc+server@10.8.1:
|
||||
resolution: {integrity: sha512-DQ+Y3ek/rjCYaI8ifeeVPVW/KIO6ryye32Xdm9VAkdhd1humYD/4rN2CQ7K1zPTeNpbIpuckEAMEadeB4ItcMQ==}
|
||||
peerDependencies:
|
||||
'@trpc/server': 10.8.1
|
||||
dependencies:
|
||||
'@trpc/server': 10.8.1
|
||||
dev: false
|
||||
|
||||
/@trpc/server/10.10.0:
|
||||
resolution: {integrity: sha512-tCTqcqBT+3nebYFTHtwM877qo5xQPtVlptxKdUzMVWleWT4lFTL4oddk45qVURToci2iMbVJjd4jQU9y9/XwlQ==}
|
||||
dev: true
|
||||
|
||||
/@trpc/server/10.8.1:
|
||||
resolution: {integrity: sha512-oSNYgFNJbjki4jBByJ/SKHasB/X7kTsEbVGaONNH1DHMz638xlYXPQucV+2bWbhCm5HlXhQTaVN7Or0lsCuUUQ==}
|
||||
dev: false
|
||||
|
||||
/@trysound/sax/0.2.0:
|
||||
resolution: {integrity: sha512-L7z9BgrNEcYyUYtF+HaEfiS5ebkh9jXqbszz7pC0hRBPaatV0XjSD3+eHrpqFemQfgwiFF0QPIarnIihIDn7OA==}
|
||||
|
||||
@@ -69,7 +69,7 @@ export function createTRPCNuxtClient<TRouter extends AnyRouter> (opts: CreateTRP
|
||||
const client = createTRPCProxyClient<TRouter>(opts)
|
||||
|
||||
const decoratedClient = createFlatProxy((key) => {
|
||||
return createNuxtProxyDecoration(key, client)
|
||||
return createNuxtProxyDecoration(key, client as any)
|
||||
}) as DecoratedProcedureRecord<TRouter['_def']['record'], TRouter>
|
||||
|
||||
return decoratedClient
|
||||
|
||||
@@ -4,6 +4,7 @@ import { FetchError } from 'ofetch'
|
||||
// @ts-expect-error: Nuxt auto-imports
|
||||
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) {
|
||||
return globalThis.$fetch.raw(input.toString(), init)
|
||||
@@ -43,7 +44,7 @@ export function httpLink<TRouter extends AnyRouter>(opts?: HTTPLinkOptions) {
|
||||
headers () {
|
||||
return headers
|
||||
},
|
||||
fetch: customFetch,
|
||||
fetch: customFetch as FetchEsque,
|
||||
...opts,
|
||||
})
|
||||
}
|
||||
@@ -72,7 +73,7 @@ export function httpBatchLink<TRouter extends AnyRouter>(opts?: HttpBatchLinkOpt
|
||||
headers () {
|
||||
return headers
|
||||
},
|
||||
fetch: customFetch,
|
||||
fetch: customFetch as FetchEsque,
|
||||
...opts,
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user