Skip to content

Commit 403fef8

Browse files
committed
feat!: switch from flatted to structured-clone-es
1 parent e68b27c commit 403fef8

File tree

5 files changed

+22
-17
lines changed

5 files changed

+22
-17
lines changed

packages/devtools/client/composables/rpc.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { ClientFunctions, ServerFunctions } from '../../src/types'
22
import { useDebounce } from '@vueuse/core'
33
import { createBirpc } from 'birpc'
4-
import { parse, stringify } from 'flatted'
4+
import { parse, stringify } from 'structured-clone-es'
55
import { tryCreateHotContext } from 'vite-hot-client'
66
import { ref, shallowRef } from 'vue'
77
import { WS_EVENT_NAME } from '../../src/constant'

packages/devtools/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@
5454
"error-stack-parser-es": "catalog:",
5555
"execa": "catalog:",
5656
"fast-npm-meta": "catalog:",
57-
"flatted": "catalog:",
5857
"get-port-please": "catalog:",
5958
"hookable": "catalog:",
6059
"image-meta": "catalog:",
@@ -70,6 +69,7 @@
7069
"semver": "catalog:",
7170
"simple-git": "catalog:",
7271
"sirv": "catalog:",
72+
"structured-clone-es": "catalog:",
7373
"tinyglobby": "catalog:",
7474
"vite-plugin-inspect": "catalog:",
7575
"vite-plugin-vue-inspector": "catalog:",

packages/devtools/src/server-rpc/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import type { ClientFunctions, ModuleOptions, NuxtDevtoolsServerContext, ServerF
77
import { logger } from '@nuxt/kit'
88
import { createBirpcGroup } from 'birpc'
99
import { colors } from 'consola/utils'
10-
import { parse, stringify } from 'flatted'
10+
import { parse, stringify } from 'structured-clone-es'
1111
import { WS_EVENT_NAME } from '../constant'
1212
import { getDevAuthToken } from '../dev-auth'
1313
import { setupAnalyzeBuildRPC } from './analyze-build'

pnpm-lock.yaml

Lines changed: 18 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pnpm-workspace.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ catalog:
6767
esno: ^4.8.0
6868
execa: ^9.5.2
6969
fast-npm-meta: ^0.2.2
70-
flatted: ^3.3.2
70+
structured-clone-es: ^1.0.0
7171
floating-vue: ^5.2.2
7272
focus-trap: ^7.6.4
7373
fuse.js: ^7.0.0

0 commit comments

Comments
 (0)