Skip to content

Commit 5f2cfd6

Browse files
committed
chore: update deps
1 parent 4bbdfca commit 5f2cfd6

File tree

11 files changed

+2528
-3356
lines changed

11 files changed

+2528
-3356
lines changed

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"type": "module",
44
"version": "3.1.1",
55
"private": true,
6-
"packageManager": "pnpm@10.23.0",
6+
"packageManager": "pnpm@10.27.0",
77
"repository": {
88
"type": "git",
99
"url": "git+https://github.com/nuxt/devtools.git"
@@ -59,8 +59,10 @@
5959
},
6060
"resolutions": {
6161
"@nuxt/devtools": "workspace:*",
62+
"chokidar": "catalog:buildtools",
6263
"esbuild": "catalog:buildtools",
6364
"rollup": "catalog:buildtools",
65+
"semver": "catalog:prod",
6466
"typescript": "catalog:cli",
6567
"vite": "catalog:buildtools",
6668
"vue-tsc": "catalog:cli"

packages/devtools-kit/src/_types/client-api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ export interface NuxtDevtoolsClient {
126126
renderMarkdown: (markdown: string) => string
127127
colorMode: string
128128

129-
extendClientRpc: <ServerFunctions = Record<string, never>, ClientFunctions = Record<string, never>>(name: string, functions: ClientFunctions) => BirpcReturn<ServerFunctions, ClientFunctions>
129+
extendClientRpc: <ServerFunctions extends object = Record<string, unknown>, ClientFunctions extends object = Record<string, unknown>>(name: string, functions: ClientFunctions) => BirpcReturn<ServerFunctions, ClientFunctions>
130130
}
131131

132132
export interface NuxtDevtoolsIframeClient {

packages/devtools-kit/src/_types/server-ctx.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export interface NuxtDevtoolsServerContext {
2727
*/
2828
ensureDevAuthToken: (token: string) => Promise<void>
2929

30-
extendServerRpc: <ClientFunctions = Record<string, never>, ServerFunctions = Record<string, never>>(name: string, functions: ServerFunctions) => BirpcGroup<ClientFunctions, ServerFunctions>
30+
extendServerRpc: <ClientFunctions extends object = Record<string, unknown>, ServerFunctions extends object = Record<string, unknown>>(name: string, functions: ServerFunctions) => BirpcGroup<ClientFunctions, ServerFunctions>
3131
}
3232

3333
export interface NuxtDevtoolsInfo {

packages/devtools-kit/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ export function startSubprocess(
122122
}
123123
}
124124

125-
export function extendServerRpc<ClientFunctions = Record<string, never>, ServerFunctions = Record<string, never>>(
125+
export function extendServerRpc<ClientFunctions extends object = Record<string, unknown>, ServerFunctions extends object = Record<string, unknown>>(
126126
namespace: string,
127127
functions: ServerFunctions,
128128
nuxt = useNuxt(),

packages/devtools-ui-kit/src/unocss.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import type { Preset, RuleContext } from '@unocss/core'
21
import type { UnocssNuxtOptions } from '@unocss/nuxt'
32
import type { Theme } from '@unocss/preset-uno'
3+
import type { Preset, RuleContext } from 'unocss'
44
import { theme as unoTheme } from '@unocss/preset-mini'
55
import { fonts } from '@unocss/preset-mini/rules'
66
import { parseColor } from '@unocss/preset-mini/utils'
@@ -167,7 +167,7 @@ export function extendUnocssOptions(user: UnocssNuxtOptions = {}): UnocssNuxtOpt
167167
...user,
168168
preflight: true,
169169
presets: [
170-
presetWind3(),
170+
presetWind3() as any,
171171
presetAttributify(),
172172
presetTypography(),
173173
presetIcons({
@@ -191,6 +191,6 @@ export function extendUnocssOptions(user: UnocssNuxtOptions = {}): UnocssNuxtOpt
191191
transformers: [
192192
transformerDirectives(),
193193
transformerVariantGroup(),
194-
],
194+
] as any,
195195
}
196196
}

packages/devtools/client/components/ServerRouteInputs.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const keysObject = computed(() => {
2929
3030
const inputTypes = ['string', 'number', 'boolean', 'file', 'date', 'time', 'datetime-local']
3131
32-
function onFileInputChange(index: number, event: Event) {
32+
function onFileInputChange(index: number | string, event: Event) {
3333
const target = event.target as HTMLInputElement
3434
if (target.files && target.files[0]) {
3535
const file = target.files[0]

packages/devtools/client/composables/client-services/shiki.bundle.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import type {
77
HighlighterGeneric,
88
} from '@shikijs/types'
99
import {
10+
createBundledHighlighter,
1011
createSingletonShorthands,
11-
createdBundledHighlighter,
1212
} from '@shikijs/core'
1313
import { createJavaScriptRegexEngine } from '@shikijs/engine-javascript'
1414

@@ -66,7 +66,7 @@ const bundledThemes = {
6666
'vitesse-light': () => import('@shikijs/themes/vitesse-light'),
6767
} as Record<BundledTheme, DynamicImportThemeRegistration>
6868

69-
const createHighlighter = /* @__PURE__ */ createdBundledHighlighter<
69+
const createHighlighter = /* @__PURE__ */ createBundledHighlighter<
7070
BundledLanguage,
7171
BundledTheme
7272
>({

packages/devtools/client/uno.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { defineConfig, presetAttributify, presetIcons, presetTypography, presetUno, presetWebFonts, transformerDirectives } from 'unocss'
1+
import { defineConfig, presetAttributify, presetIcons, presetTypography, presetWebFonts, presetWind3, transformerDirectives } from 'unocss'
22
import { unocssPreset as uiKit } from '../../devtools-ui-kit/src/unocss'
33

44
export default defineConfig({
@@ -17,7 +17,7 @@ export default defineConfig({
1717
[/^theme-card-(\w+)$/, $ => `p2 flex gap2 border border-base bg-base items-center rounded min-w-40 min-h-25 justify-center transition-all saturate-0 op50 shadow hover:(op100 bg-${$[1]}/10 text-${$[1]}6 saturate-100)`],
1818
],
1919
presets: [
20-
presetUno(),
20+
presetWind3(),
2121
presetAttributify(),
2222
presetTypography(),
2323
presetIcons({

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export function setupRPC(nuxt: Nuxt, options: ModuleOptions) {
4242
const [namespace, fnName] = name.split(':')
4343
return extendedRpcMap.get(namespace!)?.[fnName!]
4444
},
45-
onError(error, name) {
45+
onFunctionError(error, name) {
4646
logger.error(
4747
colors.yellow(`[nuxt-devtools] RPC error on executing "${colors.bold(name)}":\n`)
4848
+ colors.red(error?.message || ''),

0 commit comments

Comments
 (0)