Skip to content

Commit

Permalink
chore: update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Aug 28, 2023
1 parent de9baa3 commit 3995657
Show file tree
Hide file tree
Showing 19 changed files with 2,604 additions and 2,102 deletions.
2 changes: 1 addition & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@
"devDependencies": {
"@nuxt-themes/docus": "^1.14.6",
"@nuxtjs/plausible": "^0.2.1",
"nuxt": "^3.6.5"
"nuxt": "^3.7.0"
}
}
33 changes: 18 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"type": "module",
"version": "0.8.0",
"private": true,
"packageManager": "pnpm@8.6.12",
"packageManager": "pnpm@8.7.0",
"scripts": {
"build": "pnpm -r --filter=\"./packages/**/*\" run build",
"stub": "pnpm -r run stub",
Expand All @@ -18,37 +18,40 @@
"prepare": "pnpm -r --filter=\"./packages/*\" run dev:prepare"
},
"devDependencies": {
"@antfu/eslint-config": "^0.40.2",
"@antfu/ni": "^0.21.5",
"@antfu/eslint-config": "^0.41.0",
"@antfu/ni": "^0.21.6",
"@nuxt/devtools": "workspace:*",
"@nuxt/devtools-ui-kit": "workspace:*",
"@nuxt/module-builder": "^0.4.0",
"@nuxt/schema": "^3.6.5",
"@types/markdown-it": "^13.0.0",
"@types/node": "^20.4.9",
"@nuxt/schema": "^3.7.0",
"@types/markdown-it": "^13.0.1",
"@types/node": "^20.5.7",
"@types/pacote": "^11.1.5",
"@types/wait-on": "^5.3.1",
"@types/which": "^3.0.0",
"@types/ws": "^8.5.5",
"@unocss/eslint-config": "^0.55.0",
"bumpp": "^9.1.1",
"conventional-changelog-cli": "^3.0.0",
"eslint": "8.46.0",
"@unocss/eslint-config": "^0.55.3",
"bumpp": "^9.2.0",
"conventional-changelog-cli": "^4.0.0",
"eslint": "8.48.0",
"esno": "^0.17.0",
"execa": "^7.2.0",
"gray-matter": "^4.0.3",
"lint-staged": "^13.2.3",
"nuxt": "^3.6.5",
"lint-staged": "^14.0.1",
"nuxt": "^3.7.0",
"pathe": "^1.1.1",
"simple-git-hooks": "^2.9.0",
"taze": "^0.11.2",
"tiged": "^2.12.5",
"typescript": "^5.1.6",
"typescript": "^5.2.2",
"ua-parser-js": "^1.0.35",
"unocss": "^0.55.0",
"vite-hot-client": "^0.2.1",
"unocss": "^0.55.3",
"vite-hot-client": "^0.2.2",
"vue-tsc": "^1.8.8"
},
"resolutions": {
"unbuild": "^1.2.1"
},
"simple-git-hooks": {
"pre-commit": "pnpm lint-staged"
},
Expand Down
12 changes: 6 additions & 6 deletions packages/devtools-kit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,16 @@
"vite": "*"
},
"dependencies": {
"@nuxt/kit": "^3.6.5",
"@nuxt/schema": "^3.6.5",
"@nuxt/kit": "^3.7.0",
"@nuxt/schema": "^3.7.0",
"execa": "^7.2.0"
},
"devDependencies": {
"birpc": "^0.2.12",
"error-stack-parser-es": "^0.1.0",
"birpc": "^0.2.13",
"error-stack-parser-es": "^0.1.1",
"hookable": "^5.5.3",
"unbuild": "^1.2.1",
"unimport": "^3.1.3",
"unbuild": "^2.0.0",
"unimport": "^3.2.0",
"vite-plugin-vue-inspector": "^3.6.0",
"vue-router": "^4.2.4"
}
Expand Down
4 changes: 2 additions & 2 deletions packages/devtools-kit/src/_types/client-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import type { AppConfig } from 'nuxt/schema'
import type { NuxtApp } from 'nuxt/dist/app/nuxt'
import type { Hookable } from 'hookable'
import type { BirpcReturn } from 'birpc'
import type { BuiltinLanguages } from 'shikiji'
import type { BuiltinLanguage } from 'shikiji'
import type { ServerFunctions } from './rpc'
import type { HookInfo, LoadingTimeMetric, PluginMetric, VueInspectorClient, VueInspectorData } from './integrations'
import type { TimelineMetrics } from './timeline-metrics'
Expand Down Expand Up @@ -112,7 +112,7 @@ export interface NuxtDevtoolsHostClient {

export interface NuxtDevtoolsClient {
rpc: BirpcReturn<ServerFunctions>
renderCodeHighlight: (code: string, lang?: BuiltinLanguages) => {
renderCodeHighlight: (code: string, lang?: BuiltinLanguage) => {
code: string
supported: boolean
}
Expand Down
28 changes: 14 additions & 14 deletions packages/devtools-ui-kit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,30 +33,30 @@
"@nuxt/devtools": "workspace:*"
},
"dependencies": {
"@iconify-json/carbon": "^1.1.19",
"@iconify-json/carbon": "^1.1.20",
"@iconify-json/logos": "^1.1.34",
"@iconify-json/ri": "^1.1.12",
"@iconify-json/tabler": "^1.1.87",
"@iconify-json/tabler": "^1.1.89",
"@nuxt/devtools": "workspace:*",
"@nuxt/devtools-kit": "workspace:*",
"@nuxt/kit": "^3.6.5",
"@nuxt/kit": "^3.7.0",
"@nuxtjs/color-mode": "^3.3.0",
"@unocss/core": "^0.55.0",
"@unocss/nuxt": "^0.55.0",
"@unocss/preset-attributify": "^0.55.0",
"@unocss/preset-icons": "^0.55.0",
"@unocss/preset-mini": "^0.55.0",
"@unocss/reset": "^0.55.0",
"@vueuse/core": "^10.3.0",
"@vueuse/integrations": "^10.3.0",
"@vueuse/nuxt": "^10.3.0",
"@unocss/core": "^0.55.3",
"@unocss/nuxt": "^0.55.3",
"@unocss/preset-attributify": "^0.55.3",
"@unocss/preset-icons": "^0.55.3",
"@unocss/preset-mini": "^0.55.3",
"@unocss/reset": "^0.55.3",
"@vueuse/core": "^10.4.1",
"@vueuse/integrations": "^10.4.1",
"@vueuse/nuxt": "^10.4.1",
"defu": "^6.1.2",
"focus-trap": "^7.5.2",
"unocss": "^0.55.0",
"unocss": "^0.55.3",
"v-lazy-show": "^0.2.3"
},
"devDependencies": {
"nuxt": "^3.6.5"
"nuxt": "^3.7.0"
},
"publishConfig": {
"access": "public"
Expand Down
4 changes: 2 additions & 2 deletions packages/devtools-ui-kit/src/components/NCodeBlock.vue
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<script setup lang="ts">
// This components requires to run in DevTools to render correctly
import { computed, nextTick } from 'vue'
import type { BuiltinLanguages } from 'shikiji'
import type { BuiltinLanguage } from 'shikiji'
import { devToolsClient } from '../runtime/client'
const props = withDefaults(
defineProps<{
code: string
lang?: BuiltinLanguages | 'text'
lang?: BuiltinLanguage | 'text'
lines?: boolean
transformRendered?: (code: string) => string
}>(), {
Expand Down
2 changes: 1 addition & 1 deletion packages/devtools-wizard/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@
"devDependencies": {
"@types/diff": "^5.0.3",
"@types/prompts": "^2.4.4",
"unbuild": "^1.2.1"
"unbuild": "^2.0.0"
}
}
6 changes: 3 additions & 3 deletions packages/devtools/client/components/DataSchemaDrawer.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<script setup lang="ts">
import { InputData, jsonInputForTargetLanguage, quicktype } from 'quicktype-core'
import { all as languages } from 'quicktype-core/dist/language/All'
import type { BuiltinLanguages } from 'shikiji'
import type { BuiltinLanguage } from 'shikiji'
const input = useSchemaInput()
Expand Down Expand Up @@ -43,7 +43,7 @@ const generatedJson = computedAsync(async () => {
return result.lines.join('\n')
})
const shikiLanguage = computed<BuiltinLanguages>(() => {
const shikiLanguage = computed<BuiltinLanguage>(() => {
const lang = selectedLang.value.toLocaleLowerCase()
if (lang.startsWith('javascript'))
return 'javascript'
Expand All @@ -52,7 +52,7 @@ const shikiLanguage = computed<BuiltinLanguages>(() => {
else if (lang.startsWith('typescript'))
return 'typescript'
else
return lang as BuiltinLanguages
return lang as BuiltinLanguage
})
watch(options, () => {
Expand Down
4 changes: 2 additions & 2 deletions packages/devtools/client/composables/client-services/shiki.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import type { BuiltinLanguages, HighlighterCore } from 'shikiji'
import type { BuiltinLanguage, HighlighterCore } from 'shikiji'
import { getHighlighterCore } from 'shikiji/core'
import { getWasmInlined } from 'shikiji/wasm'

export const shiki = shallowRef<HighlighterCore>()

let promise: Promise<any> | null = null

export function renderCodeHighlight(code: string, lang: BuiltinLanguages | 'text' = 'text') {
export function renderCodeHighlight(code: string, lang: BuiltinLanguage | 'text' = 'text') {
const mode = useColorMode()

if (!promise && !shiki.value) {
Expand Down
6 changes: 2 additions & 4 deletions packages/devtools/client/composables/rpc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,8 @@ export const rpc = createBirpc<ServerFunctions>(clientFunctions, {
})

async function connectVite() {
// @ts-expect-error no types

let base = window.parent.__NUXT__.config?.app?.baseURL
const buildAssetsDir = window.parent.__NUXT__?.config?.app.buildAssetsDir.replace(/^\/|\/$/g, '') ?? '_nuxt'
let base = window.parent?.__NUXT__?.config?.app?.baseURL
const buildAssetsDir = window.parent?.__NUXT__?.config?.app.buildAssetsDir.replace(/^\/|\/$/g, '') ?? '_nuxt'
if (base && !base.endsWith('/'))
base += '/'
const hot = await tryCreateHotContext(undefined, [
Expand Down
4 changes: 2 additions & 2 deletions packages/devtools/client/modules/markdown.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { defineNuxtModule } from '@nuxt/kit'
import Markdown from 'vite-plugin-vue-markdown'
import LinkAttributes from 'markdown-it-link-attributes'
import type { BuiltinLanguages } from 'shikiji'
import type { BuiltinLanguage } from 'shikiji'
import { getHighlighter } from 'shikiji'

export default defineNuxtModule({
Expand Down Expand Up @@ -38,7 +38,7 @@ export default defineNuxtModule({
},
})
md.options.highlight = (code, lang) => {
const _lang = (highlighter.getLoadedLanguages().includes(lang) ? lang : 'text') as BuiltinLanguages
const _lang = (highlighter.getLoadedLanguages().includes(lang) ? lang : 'text') as BuiltinLanguage
const dark = highlighter.codeToHtml(code, { lang: _lang || 'text', theme: 'vitesse-dark' })
.replace('<pre class="shiki"', '<pre class="shiki shiki-dark"')
const light = highlighter.codeToHtml(code, { lang: _lang || 'text', theme: 'vitesse-light' })
Expand Down
63 changes: 31 additions & 32 deletions packages/devtools/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@
"require": "./module.cjs"
},
"./types": {
"types": "./dist/types.d.ts",
"import": "./dist/types.mjs"
"types": "./dist/types.d.ts"
},
"./*": "./*"
},
Expand All @@ -39,83 +38,83 @@
"vite": "*"
},
"dependencies": {
"@antfu/utils": "^0.7.6",
"@nuxt/devtools-kit": "workspace:*",
"@nuxt/devtools-wizard": "workspace:*",
"@nuxt/kit": "^3.6.5",
"birpc": "^0.2.12",
"@nuxt/kit": "^3.7.0",
"birpc": "^0.2.13",
"boxen": "^7.1.1",
"consola": "^3.2.3",
"error-stack-parser-es": "^0.1.0",
"error-stack-parser-es": "^0.1.1",
"execa": "^7.2.0",
"fast-folder-size": "^2.1.0",
"fast-folder-size": "^2.2.0",
"fast-glob": "^3.3.1",
"get-port-please": "^3.0.1",
"flatted": "^3.2.7",
"get-port-please": "^3.0.2",
"global-dirs": "^3.0.1",
"h3": "^1.7.1",
"h3": "^1.8.1",
"hookable": "^5.5.3",
"image-meta": "^0.1.1",
"is-installed-globally": "^0.4.0",
"launch-editor": "^2.6.0",
"local-pkg": "^0.4.3",
"magicast": "^0.2.10",
"nypm": "^0.2.2",
"pacote": "^15.2.0",
"nypm": "^0.3.1",
"ofetch": "^1.3.3",
"ohash": "^1.1.3",
"pacote": "^17.0.3",
"pathe": "^1.1.1",
"perfect-debounce": "^1.0.0",
"picocolors": "^1.0.0",
"pkg-types": "^1.0.3",
"rc9": "^2.1.1",
"semver": "^7.5.4",
"simple-git": "^3.19.1",
"sirv": "^2.0.3",
"unimport": "^3.1.3",
"vite-plugin-inspect": "^0.7.35",
"unimport": "^3.2.0",
"vite-plugin-inspect": "^0.7.38",
"vite-plugin-vue-inspector": "^3.6.0",
"wait-on": "^7.0.1",
"which": "^3.0.1",
"ws": "^8.13.0"
},
"devDependencies": {
"@antfu/utils": "^0.7.5",
"@iconify-json/bxl": "^1.1.7",
"@iconify-json/carbon": "^1.1.19",
"@iconify-json/carbon": "^1.1.20",
"@iconify-json/logos": "^1.1.34",
"@iconify-json/ri": "^1.1.12",
"@iconify-json/simple-icons": "^1.1.65",
"@iconify-json/tabler": "^1.1.87",
"@iconify-json/simple-icons": "^1.1.68",
"@iconify-json/tabler": "^1.1.89",
"@nuxt/content": "^2.7.2",
"@nuxt/devtools": "workspace:*",
"@nuxtjs/color-mode": "^3.3.0",
"@parcel/watcher": "^2.2.0",
"@parcel/watcher": "^2.3.0",
"@types/markdown-it-link-attributes": "^3.0.1",
"@types/ua-parser-js": "^0.7.36",
"@unocss/nuxt": "^0.55.0",
"@unocss/preset-icons": "^0.55.0",
"@unocss/preset-uno": "^0.55.0",
"@unocss/runtime": "^0.55.0",
"@vueuse/nuxt": "^10.3.0",
"@unocss/nuxt": "^0.55.3",
"@unocss/preset-icons": "^0.55.3",
"@unocss/preset-uno": "^0.55.3",
"@unocss/runtime": "^0.55.3",
"@vueuse/nuxt": "^10.4.1",
"esno": "^0.17.0",
"flatted": "^3.2.7",
"floating-vue": "2.0.0-beta.24",
"fuse.js": "^6.6.2",
"json-editor-vue": "^0.10.6",
"markdown-it": "^13.0.1",
"markdown-it-link-attributes": "^4.0.1",
"nanoid": "^4.0.2",
"nuxt": "^3.6.5",
"nuxt": "^3.7.0",
"nuxt-vitest": "^0.10.2",
"ofetch": "^1.1.1",
"ohash": "^1.1.2",
"quicktype-core": "^23.0.64",
"shikiji": "^0.2.2",
"simple-git": "^3.19.1",
"quicktype-core": "^23.0.71",
"shikiji": "^0.6.3",
"splitpanes": "^3.1.5",
"theme-vitesse": "^0.7.2",
"ua-parser-js": "^1.0.35",
"unocss": "^0.55.0",
"vanilla-jsoneditor": "^0.17.8",
"unocss": "^0.55.3",
"vanilla-jsoneditor": "^0.18.2",
"vis-data": "^7.1.6",
"vis-network": "^9.1.6",
"vite-plugin-vue-markdown": "^0.23.7",
"vite-plugin-vue-markdown": "^0.23.8",
"vue-tsc": "^1.8.8",
"vue-virtual-scroller": "2.0.0-beta.8",
"xterm": "^5.2.1",
Expand Down
4 changes: 2 additions & 2 deletions playgrounds/empty/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"preview": "nuxt preview"
},
"devDependencies": {
"@types/node": "^20.4.9",
"nuxt": "^3.6.5"
"@types/node": "^20.5.7",
"nuxt": "^3.7.0"
}
}
Loading

0 comments on commit 3995657

Please sign in to comment.