@falcondev-oss/nuxt-layers-base 0.9.0 → 0.10.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,7 @@
1
1
  import type { DehydratedState, QueryClientConfig, VueQueryPluginOptions } from '@tanstack/vue-query'
2
2
  import type { AnyTRPCRouter } from '@trpc/server'
3
3
  import type { ObjectPlugin } from 'nuxt/app'
4
+ import { typedFormDataLink } from '@falcondev-oss/trpc-typed-form-data/client'
4
5
  import { createTRPCVueQueryClient } from '@falcondev-oss/trpc-vue-query'
5
6
  import {
6
7
  dehydrate,
@@ -128,10 +129,15 @@ export function trpcPlugin<Router extends AnyTRPCRouter>(opts: TrpcNuxtPluginOpt
128
129
  }),
129
130
  false: splitLink({
130
131
  condition: (op) => op.type === 'mutation',
131
- true: httpLink({
132
- transformer: superjson,
133
- url: opts.url,
134
- }),
132
+ true: [
133
+ typedFormDataLink<AnyTRPCRouter>({
134
+ transformer: superjson,
135
+ }),
136
+ httpLink({
137
+ transformer: superjson,
138
+ url: opts.url,
139
+ }),
140
+ ],
135
141
  false: httpBatchLink({
136
142
  transformer: superjson,
137
143
  url: opts.url,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@falcondev-oss/nuxt-layers-base",
3
3
  "type": "module",
4
- "version": "0.9.0",
4
+ "version": "0.10.1",
5
5
  "description": "Nuxt layer with lots of useful helpers and @nuxt/ui components",
6
6
  "license": "MIT",
7
7
  "repository": "github:falcondev-oss/nuxt-layers",
@@ -16,6 +16,7 @@
16
16
  "peerDependencies": {
17
17
  "@falcondev-oss/form-core": "^0.18.5",
18
18
  "@falcondev-oss/form-vue": "^0.18.5",
19
+ "@falcondev-oss/trpc-typed-form-data": "^0.2.0",
19
20
  "@falcondev-oss/trpc-vue-query": "^0.5.2",
20
21
  "@iconify-json/lucide": "^1.2.2",
21
22
  "@internationalized/date": "^3.10.1",
@@ -46,7 +47,7 @@
46
47
  "devDependencies": {
47
48
  "@falcondev-oss/configs": "^5.0.2",
48
49
  "eslint": "^9.39.2",
49
- "prettier": "^3.7.4",
50
+ "prettier": "^3.8.0",
50
51
  "typescript": "^5.9.3",
51
52
  "vue-tsc": "^3.2.2",
52
53
  "zod": "^4.3.5"