Skip to content

Commit 4a751bc

Browse files
committed
chore: update deps and lint
1 parent 86feeff commit 4a751bc

File tree

97 files changed

+2474
-3560
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

97 files changed

+2474
-3560
lines changed

docs/content/2.module/0.guide.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,8 @@ export interface ClientFunctions {
128128
And then in your module code:
129129

130130
```ts
131-
import { defineNuxtModule } from '@nuxt/kit'
132131
import { extendServerRpc, onDevToolsInitialized } from '@nuxt/devtools-kit'
132+
import { defineNuxtModule } from '@nuxt/kit'
133133
import type { ClientFunctions, ServerFunctions } from './rpc-types'
134134

135135
const RPC_NAMESPACE = 'my-module-rpc'

docs/package.json

+7-7
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,21 @@
88
"preview": "nuxi preview"
99
},
1010
"dependencies": {
11-
"@iconify-json/ph": "^1.1.14",
12-
"@iconify-json/simple-icons": "^1.1.114",
11+
"@iconify-json/ph": "^1.2.0",
12+
"@iconify-json/simple-icons": "^1.2.2",
1313
"@nuxt/content": "^2.13.2",
14-
"@nuxt/devtools": "^1.4.0",
14+
"@nuxt/devtools": "^1.4.1",
1515
"@nuxt/fonts": "^0.7.2",
16-
"@nuxt/image": "1.7.0",
16+
"@nuxt/image": "1.8.0",
1717
"@nuxt/ui-pro": "^1.4.1",
1818
"@nuxthq/studio": "^2.0.3",
1919
"@nuxtjs/plausible": "^1.0.2",
2020
"@vueuse/core": "^11.0.3",
2121
"@vueuse/nuxt": "^11.0.3",
22-
"nuxt": "^3.13.0",
23-
"nuxt-og-image": "^3.0.0-rc.65"
22+
"nuxt": "^3.13.1",
23+
"nuxt-og-image": "^3.0.0-rc.66"
2424
},
2525
"resolutions": {
26-
"@nuxt/ui": "2.15.2"
26+
"@nuxt/ui": "2.18.4"
2727
}
2828
}

docs/pnpm-lock.yaml

+845-1,907
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

local.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@
1818
* ```
1919
*/
2020
import { defineNuxtModule, logger } from '@nuxt/kit'
21-
import { resolve } from 'pathe'
2221
import { getPort } from 'get-port-please'
22+
import { resolve } from 'pathe'
2323
import { searchForWorkspaceRoot } from 'vite'
2424
import { defaultOptions } from './packages/devtools/src/constant'
25-
import type { ModuleOptions } from './packages/devtools/src/types'
2625
import { packageDir } from './packages/devtools/src/dirs'
2726
import { enableModule } from './packages/devtools/src/module-main'
2827
import { startSubprocess } from './packages/devtools-kit/src/index'
28+
import type { ModuleOptions } from './packages/devtools/src/types'
2929

3030
export type { ModuleOptions }
3131

package.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"type": "module",
44
"version": "1.4.1",
55
"private": true,
6-
"packageManager": "pnpm@9.9.0",
6+
"packageManager": "pnpm@9.10.0",
77
"repository": {
88
"type": "git",
99
"url": "git+https://github.com/nuxt/devtools.git"
@@ -29,6 +29,7 @@
2929
"@nuxt/devtools-ui-kit": "workspace:*",
3030
"@nuxt/module-builder": "catalog:",
3131
"@nuxt/schema": "catalog:",
32+
"@opentelemetry/api": "catalog:",
3233
"@types/markdown-it": "catalog:",
3334
"@types/node": "catalog:",
3435
"@types/which": "catalog:",
@@ -54,7 +55,7 @@
5455
"vue-tsc": "catalog:"
5556
},
5657
"resolutions": {
57-
"esbuild": "^0.21.5"
58+
"esbuild": "^0.23.1"
5859
},
5960
"simple-git-hooks": {
6061
"pre-commit": "npx lint-staged"

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

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
import type {} from '@nuxt/schema'
2-
import type { Ref } from 'vue'
3-
import type { AppConfig } from 'nuxt/schema'
4-
import type { NuxtApp } from 'nuxt/app'
5-
import type { Hookable } from 'hookable'
62
import type { BirpcReturn } from 'birpc'
7-
import type { BuiltinLanguage } from 'shiki'
3+
import type { Hookable } from 'hookable'
4+
import type { NuxtApp } from 'nuxt/app'
5+
import type { AppConfig } from 'nuxt/schema'
86
import type { $Fetch } from 'ofetch'
9-
import type { ClientFunctions, ServerFunctions } from './rpc'
7+
import type { BuiltinLanguage } from 'shiki'
8+
import type { Ref } from 'vue'
109
import type { HookInfo, LoadingTimeMetric, PluginMetric, VueInspectorClient, VueInspectorData } from './integrations'
10+
import type { ClientFunctions, ServerFunctions } from './rpc'
1111
import type { TimelineMetrics } from './timeline-metrics'
1212

1313
export interface DevToolsFrameState {
+6-6
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
import './hooks'
22

3-
export * from './custom-tabs'
4-
export * from './terminals'
3+
export * from './analyze-build'
54
export * from './client-api'
5+
export * from './common'
6+
export * from './custom-tabs'
67
export * from './integrations'
7-
export * from './wizard'
8+
export * from './options'
89
export * from './rpc'
910
export * from './server-ctx'
10-
export * from './analyze-build'
11-
export * from './options'
12-
export * from './common'
11+
export * from './terminals'
1312
export * from './timeline-metrics'
13+
export * from './wizard'

packages/devtools-kit/src/_types/integrations.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import type { RouteRecordNormalized } from 'vue-router'
2-
import type { Import, UnimportMeta } from 'unimport'
31
import type { Component } from 'nuxt/schema'
2+
import type { Import, UnimportMeta } from 'unimport'
3+
import type { RouteRecordNormalized } from 'vue-router'
44

55
export interface HookInfo {
66
name: string

packages/devtools-kit/src/_types/options.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import type { VitePluginInspectorOptions } from 'vite-plugin-vue-inspector'
21
import type { Import } from 'unimport'
2+
import type { VitePluginInspectorOptions } from 'vite-plugin-vue-inspector'
33
import type { ModuleCustomTab } from './custom-tabs'
44
import type { ServerRouteInfo, ServerRouteInput, ServerTaskInfo } from './integrations'
55

packages/devtools-kit/src/_types/rpc.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
import type { Component, NuxtApp, NuxtLayout, NuxtOptions, NuxtPage } from 'nuxt/schema'
21
import type { StorageMounts } from 'nitropack'
2+
import type { Component, NuxtApp, NuxtLayout, NuxtOptions, NuxtPage } from 'nuxt/schema'
33
import type { StorageValue } from 'unstorage'
4-
import type { ModuleOptions, NuxtDevToolsOptions } from './options'
4+
import type { AnalyzeBuildsInfo } from './analyze-build'
55
import type { ModuleCustomTab } from './custom-tabs'
66
import type { AssetEntry, AssetInfo, AutoImportsWithMetadata, ComponentRelationship, HookInfo, ImageMeta, NpmCommandOptions, NpmCommandType, PackageUpdateInfo, ScannedNitroTasks, ServerRouteInfo } from './integrations'
7+
import type { ModuleOptions, NuxtDevToolsOptions } from './options'
8+
import type { InstallModuleReturn } from './server-ctx'
79
import type { TerminalAction, TerminalInfo } from './terminals'
810
import type { GetWizardArgs, WizardActions } from './wizard'
9-
import type { AnalyzeBuildsInfo } from './analyze-build'
10-
import type { InstallModuleReturn } from './server-ctx'
1111

1212
export interface ServerFunctions {
1313
// Static RPCs (can be provide on production build in the future)

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type { BirpcGroup } from 'birpc'
22
import type { Nuxt } from 'nuxt/schema'
3-
import type { ClientFunctions, ServerFunctions } from './rpc'
43
import type { ModuleOptions } from './options'
4+
import type { ClientFunctions, ServerFunctions } from './rpc'
55

66
/**
77
* @internal

packages/devtools-kit/src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { useNuxt } from '@nuxt/kit'
2-
import type { BirpcGroup } from 'birpc'
32
import { execa } from 'execa'
3+
import type { BirpcGroup } from 'birpc'
44
import type { ModuleCustomTab, NuxtDevtoolsInfo, NuxtDevtoolsServerContext, SubprocessOptions, TerminalState } from './types'
55

66
/**

packages/devtools-kit/src/runtime/host-client.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import type { Ref } from 'vue'
21
import { shallowRef } from 'vue'
2+
import type { Ref } from 'vue'
33
import type { NuxtDevtoolsHostClient } from '../types'
44

55
let clientRef: Ref<NuxtDevtoolsHostClient | undefined> | undefined

packages/devtools-kit/src/runtime/iframe-client.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import type { Ref } from 'vue'
21
import { shallowRef, triggerRef } from 'vue'
2+
import type { Ref } from 'vue'
33
import type { NuxtDevtoolsIframeClient } from '../types'
44

55
let clientRef: Ref<NuxtDevtoolsIframeClient | undefined> | undefined

packages/devtools-ui-kit/playground/nuxt.config.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { defineNuxtConfig } from 'nuxt/config'
22
import { createResolver } from 'nuxt/kit'
3-
import '@unocss/nuxt'
43
import DevtoolsUIKit from '../src/module'
4+
import '@unocss/nuxt'
55

66
const resolver = createResolver(import.meta.url)
77

packages/devtools-ui-kit/src/components/NDarkToggle.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<script setup lang="ts">
2-
import { computed, nextTick } from 'vue'
3-
42
import { useColorMode } from '@vueuse/core'
53
4+
import { computed, nextTick } from 'vue'
5+
66
const mode = useColorMode({
77
storageKey: 'nuxt-devtools-color-mode',
88
})

packages/devtools-ui-kit/src/components/NDialog.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<script setup lang="ts">
2-
import { computed, nextTick, ref, watchEffect } from 'vue'
32
import { onClickOutside, useVModel } from '@vueuse/core'
43
import { useFocusTrap } from '@vueuse/integrations/useFocusTrap'
4+
import { computed, nextTick, ref, watchEffect } from 'vue'
55
66
const props = withDefaults(
77
defineProps<{

packages/devtools-ui-kit/src/components/NDrawer.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script setup lang="ts">
2-
import { ref } from 'vue'
32
import { onClickOutside, useElementSize } from '@vueuse/core'
3+
import { ref } from 'vue'
44
55
const props = withDefaults(defineProps<{
66
modelValue?: boolean

packages/devtools-ui-kit/src/components/NDropdown.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script setup lang="ts">
2-
import { ref } from 'vue'
32
import { onClickOutside, useVModel } from '@vueuse/core'
3+
import { ref } from 'vue'
44
55
const props = withDefaults(defineProps<{
66
modelValue?: boolean

packages/devtools-ui-kit/src/components/NNotification.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<script setup lang='ts'>
22
import { ref } from 'vue'
33
4-
import type { DevtoolsUiShowNotificationPosition } from '../composables/notification'
54
import { devtoolsUiProvideNotificationFn } from '../composables/notification'
5+
import type { DevtoolsUiShowNotificationPosition } from '../composables/notification'
66
77
const show = ref(false)
88
const icon = ref<string>()

packages/devtools-ui-kit/src/components/NSplitPane.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<script setup lang="ts">
2-
import { computed, ref } from 'vue'
32
import { useLocalStorage } from '@vueuse/core'
43
import { Pane, Splitpanes } from 'splitpanes'
4+
import { computed, ref } from 'vue'
55
66
import 'splitpanes/dist/splitpanes.css'
77

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

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
1-
import type { Preset, RuleContext } from '@unocss/core'
2-
import type { UnocssNuxtOptions } from '@unocss/nuxt'
3-
import type { Theme } from '@unocss/preset-uno'
4-
import { parseColor } from '@unocss/preset-mini/utils'
51
import { theme as unoTheme } from '@unocss/preset-mini'
62
import { fonts } from '@unocss/preset-mini/rules'
3+
import { parseColor } from '@unocss/preset-mini/utils'
74
import {
85
mergeDeep,
96
presetAttributify,
@@ -14,6 +11,9 @@ import {
1411
transformerDirectives,
1512
transformerVariantGroup,
1613
} from 'unocss'
14+
import type { Preset, RuleContext } from '@unocss/core'
15+
import type { UnocssNuxtOptions } from '@unocss/nuxt'
16+
import type { Theme } from '@unocss/preset-uno'
1717

1818
// @unocss-include
1919

packages/devtools-wizard/src/builtin.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import fsp from 'node:fs/promises'
33
import { relative } from 'node:path'
44
import { consola } from 'consola'
55
import { colors } from 'consola/utils'
6-
import { parseModule } from 'magicast'
76
import { diffLines } from 'diff'
7+
import { parseModule } from 'magicast'
88
import { join } from 'pathe'
99
import prompts from 'prompts'
1010

packages/devtools-wizard/src/global.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
* Since Nuxt v3.4, Nuxt DevTools is shipped with Nuxt so we only using this for Nuxt below v3.4.
55
*/
66
import fs from 'node:fs'
7-
import { readUser, writeUser } from 'rc9'
8-
import globalDirs from 'global-directory'
9-
import { resolve } from 'pathe'
107
import { consola } from 'consola'
118
import { execa } from 'execa'
9+
import globalDirs from 'global-directory'
10+
import { resolve } from 'pathe'
11+
import { readUser, writeUser } from 'rc9'
1212

1313
const moduleName = '@nuxt/devtools'
1414

packages/devtools-wizard/src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { consola } from 'consola'
2-
import { readPackageJSON } from 'pkg-types'
32
import { colors } from 'consola/utils'
3+
import { readPackageJSON } from 'pkg-types'
44
import semver from 'semver'
55
import { name as moduleName, version } from '../package.json'
66

packages/devtools/client/app.vue

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
<script setup lang="ts">
2+
import { useEyeDropper } from '@vueuse/core'
3+
import { splitScreenAvailable } from '~/composables/storage'
4+
import { setupClientRPC } from './setup/client-rpc'
5+
import { setupVueDevTools } from './setup/vue-devtools'
6+
27
import 'floating-vue/dist/style.css'
38
import '@vue/devtools-applet/style.css'
49
import 'vanilla-jsoneditor/themes/jse-theme-dark.css'
510
import 'vue-virtual-scroller/dist/vue-virtual-scroller.css'
611
import './styles/global.css'
7-
import { useEyeDropper } from '@vueuse/core'
8-
import { setupClientRPC } from './setup/client-rpc'
9-
import { setupVueDevTools } from './setup/vue-devtools'
10-
import { splitScreenAvailable } from '~/composables/storage'
1112
1213
if (import.meta.client)
1314
import('./setup/unocss-runtime')

packages/devtools/client/components/AssetDropZone.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ useEventListener('drop', onDrop)
189189
n="xs"
190190
h-full flex-auto
191191
:model-value="file.name"
192-
@update:model-value="changeName(file, ($event.target as HTMLInputElement).value)"
192+
@update:model-value="changeName(file, (($event as any).target as HTMLInputElement).value)"
193193
/>
194194
<NButton
195195
n="red"

packages/devtools/client/components/BuildAnalyzeDetails.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<script setup lang="ts">
2+
import { useRuntimeConfig } from '#imports'
23
import { formatTimeAgo } from '@vueuse/core'
34
import type { AnalyzeBuildMeta } from '../../src/types'
4-
import { useRuntimeConfig } from '#imports'
55
66
const props = defineProps<{
77
current: AnalyzeBuildMeta

packages/devtools/client/components/CodeDiff.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script setup lang="ts">
2-
import { diffLines } from 'diff'
32
import { unrefElement } from '@vueuse/core'
3+
import { diffLines } from 'diff'
44
import type { BuiltinLanguage } from 'shiki'
55
66
const props = defineProps<{

packages/devtools/client/components/ComponentDetails.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script setup lang="ts">
2-
import type { Component } from 'nuxt/schema'
32
import { pascalCase } from 'scule'
3+
import type { Component } from 'nuxt/schema'
44
55
const props = defineProps<{
66
component: Component

packages/devtools/client/components/ComponentName.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script setup lang="ts">
2-
import type { Component } from 'nuxt/schema'
32
import { pascalCase } from 'scule'
3+
import type { Component } from 'nuxt/schema'
44
55
const props = defineProps<{
66
component: Component

packages/devtools/client/components/ComponentsGraph.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<script setup lang="ts">
2-
import type { Component, NuxtLayout, NuxtPage } from 'nuxt/schema'
3-
import type { Data, Node, Options } from 'vis-network'
42
import { Network } from 'vis-network'
53
import type { ComponentRelationship } from '~/../src/types'
4+
import type { Component, NuxtLayout, NuxtPage } from 'nuxt/schema'
5+
import type { Data, Node, Options } from 'vis-network'
66
77
const props = defineProps<{
88
components: Component[]

packages/devtools/client/components/ComponentsList.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script setup lang="ts">
2-
import type { Component } from 'nuxt/schema'
32
import Fuse from 'fuse.js'
3+
import type { Component } from 'nuxt/schema'
44
import type { ComponentRelationship, ComponentWithRelationships } from '../../types'
55
66
const props = defineProps<{

packages/devtools/client/components/ModuleInstallList.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<script setup lang="ts">
2+
import Fuse from 'fuse.js'
23
// @ts-expect-error missing types
34
import { RecycleScroller } from 'vue-virtual-scroller'
4-
import Fuse from 'fuse.js'
55
import type { ModuleStaticInfo } from '../../src/types'
66
77
type SortingFunction<T> = (a: T, b: T) => number

0 commit comments

Comments
 (0)