Skip to content

Commit 18aa97e

Browse files
committedSep 12, 2024·
chore: upgrade deps
1 parent d8653a6 commit 18aa97e

File tree

12 files changed

+1912
-2076
lines changed

12 files changed

+1912
-2076
lines changed
 

Diff for: ‎docs/editor/Monaco.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ onMounted(
2828
)
2929
3030
emit('change', props.value)
31-
} catch (_) {
31+
} catch {
3232
editorState.value = 'error'
3333
}
3434
}

Diff for: ‎package.json

+17-17
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
"test:unit": "nuxi prepare test/fixtures/basic && nuxi prepare test/fixtures/document-driven && vitest run"
4646
},
4747
"dependencies": {
48-
"@nuxt/kit": "^3.12.4",
48+
"@nuxt/kit": "^3.13.1",
4949
"@nuxtjs/mdc": "^0.8.3",
5050
"@vueuse/core": "^11.0.3",
5151
"@vueuse/head": "^2.0.0",
@@ -61,44 +61,44 @@
6161
"micromark": "^4.0.0",
6262
"micromark-util-sanitize-uri": "^2.0.0",
6363
"micromark-util-types": "^2.0.0",
64-
"minisearch": "^7.0.2",
64+
"minisearch": "^7.1.0",
6565
"ohash": "^1.1.3",
6666
"pathe": "^1.1.2",
6767
"scule": "^1.3.0",
68-
"shiki": "^1.10.3",
68+
"shiki": "^1.17.0",
6969
"slugify": "^1.6.6",
7070
"socket.io-client": "^4.7.5",
7171
"ufo": "^1.5.4",
7272
"unist-util-stringify-position": "^4.0.0",
73-
"unstorage": "^1.10.2",
73+
"unstorage": "^1.12.0",
7474
"ws": "^8.18.0"
7575
},
7676
"devDependencies": {
7777
"@nuxt/content": "link:.",
78-
"@nuxt/eslint-config": "^0.3.13",
79-
"@nuxt/module-builder": "^0.8.1",
80-
"@nuxt/schema": "3.12.4",
81-
"@nuxt/test-utils": "3.13.1",
82-
"@nuxthq/studio": "^2.0.3",
78+
"@nuxt/eslint-config": "^0.5.7",
79+
"@nuxt/module-builder": "^0.8.4",
80+
"@nuxt/schema": "3.13.1",
81+
"@nuxt/test-utils": "3.14.2",
82+
"@nuxthq/studio": "^2.1.0",
8383
"@nuxtjs/tailwindcss": "^6.12.1",
84-
"@types/ws": "^8.5.11",
84+
"@types/ws": "^8.5.12",
8585
"c8": "^10.1.2",
8686
"csvtojson": "^2.0.10",
87-
"eslint": "^9.7.0",
87+
"eslint": "^9.10.0",
8888
"globby": "^14.0.2",
89-
"husky": "^9.1.1",
89+
"husky": "^9.1.6",
9090
"jiti": "^1.21.6",
91-
"lint-staged": "^15.2.7",
92-
"nuxt": "3.12.4",
91+
"lint-staged": "^15.2.10",
92+
"nuxt": "3.13.1",
9393
"rehype-figure": "^1.0.1",
9494
"rehype-wrap-all": "^1.1.0",
9595
"release-it": "^17.6.0",
9696
"remark-oembed": "^1.2.2",
97-
"vitest": "^2.0.3",
97+
"vitest": "^2.0.5",
9898
"vue-docgen-web-types": "^0.1.8",
99-
"vue-tsc": "2.0.26"
99+
"vue-tsc": "2.1.6"
100100
},
101-
"packageManager": "pnpm@9.5.0",
101+
"packageManager": "pnpm@9.10.0",
102102
"release-it": {
103103
"git": {
104104
"commitMessage": "chore(release): release v${version}"

Diff for: ‎playground/shared/components/NuxtLoadingBar.vue

+8-3
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,14 @@ let _cut
2626
2727
// Functions
2828
const clear = () => {
29-
_timer && clearInterval(_timer)
30-
_throttle && clearTimeout(_throttle)
31-
_timer = null
29+
if (_timer) {
30+
clearInterval(_timer)
31+
_timer = null
32+
}
33+
if (_throttle) {
34+
clearTimeout(_throttle)
35+
_throttle = null
36+
}
3237
}
3338
const start = () => {
3439
clear()

Diff for: ‎pnpm-lock.yaml

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

Diff for: ‎src/runtime/composables/web-socket.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export function useContentWebSocket () {
2222
if (!data) { return }
2323

2424
refreshNuxtData()
25-
} catch (err) {
25+
} catch {
2626
// Do nothing
2727
}
2828
}
@@ -61,7 +61,7 @@ export function useContentWebSocket () {
6161
if (ws) {
6262
try {
6363
ws.close()
64-
} catch (err) {
64+
} catch {
6565
// Do nothing
6666
}
6767
ws = undefined

Diff for: ‎src/runtime/legacy/server.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { serverQueryContent as _serverQueryContent } from '../server/storage'
2-
import { type serverQueryContent as legacyServerQueryContent } from './types'
2+
import type { serverQueryContent as legacyServerQueryContent } from './types'
33

44
export { parseContent } from '../server/storage'
55

Diff for: ‎src/runtime/server/plugins/refresh-cache.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ export default defineNitroPlugin(async (nitro) => {
1313
}
1414
});
1515
nitro.hooks.hook('close', async () => {
16-
typeof unwatch === 'function' && await unwatch()
16+
if (typeof unwatch === 'function') {
17+
await unwatch()
18+
}
1719
})
1820
})

Diff for: ‎src/runtime/transformers/markdown.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { parseMarkdown } from '@nuxtjs/mdc/runtime'
2-
import { type State } from 'mdast-util-to-hast'
2+
import type { State } from 'mdast-util-to-hast'
33
import { normalizeUri } from 'micromark-util-sanitize-uri'
4-
import { type Properties, type Element } from 'hast'
5-
import { type Link } from 'mdast'
4+
import type { Properties, Element } from 'hast'
5+
import type { Link } from 'mdast'
66
import { isRelative } from 'ufo'
77
import type { MarkdownOptions, MarkdownPlugin, MarkdownParsedContent } from '@nuxt/content'
88
import { defineTransformer } from './utils'

Diff for: ‎src/runtime/utils/query.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { jsonParse, jsonStringify } from './json'
55
const parseJSONQueryParams = (body: string) => {
66
try {
77
return jsonParse(body)
8-
} catch (e) {
8+
} catch {
99
throw createError({ statusCode: 400, message: 'Invalid _params query' })
1010
}
1111
}

Diff for: ‎src/types/content.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ export interface MarkdownHtmlNode extends MarkdownNode {
8484
value: string
8585
}
8686

87-
export interface MarkdownPlugin extends Record<string, any> {}
87+
export type MarkdownPlugin = Record<string, any>
8888

8989
export interface MarkdownOptions {
9090
/**

Diff for: ‎src/types/module.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { type Options as MiniSearchOptions } from 'minisearch'
1+
import type { Options as MiniSearchOptions } from 'minisearch'
22
import type { ListenOptions } from 'listhen'
33
import type { MarkdownPlugin, QueryBuilderParams, QueryBuilderWhere } from './content'
44
import type { BuiltinLanguage as ShikiLang, BuiltinTheme as ShikiTheme, LanguageRegistration, ThemeRegistrationAny } from 'shiki'

Diff for: ‎src/utils.ts

+2-3
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,7 @@ export async function getMountDriver (mount: MountOptions) {
6464

6565
try {
6666
return (await import(mount.driver)).default(mount as any)
67-
} catch (e) {
68-
67+
} catch {
6968
console.error("Couldn't load driver", mount.driver)
7069
}
7170
}
@@ -135,7 +134,7 @@ export function createWebSocket () {
135134
for (const client of wss.clients) {
136135
try {
137136
client.send(data)
138-
} catch (err) {
137+
} catch {
139138
/* Ignore error (if client not ready to receive event) */
140139
}
141140
}

0 commit comments

Comments
 (0)
Please sign in to comment.