Skip to content

Commit 00241ac

Browse files
committed
chore: update deps, lint
1 parent 7d8dfc0 commit 00241ac

36 files changed

+668
-515
lines changed

demo/vue-runner/setup/code-runners.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export default defineCodeRunnersSetup(() => {
1818

1919
// Replace Vue imports to object destructuring
2020
// Only for simple demo, it doesn't work with imports from other packages
21-
scripts = scripts.replace(/import ({[^}]+}) from ['"]vue['"]/g, (_, imports) => `const ${imports.replace(/\sas\s/g, ':')} = Vue`)
21+
scripts = scripts.replace(/import (\{[^}]+\}) from ['"]vue['"]/g, (_, imports) => `const ${imports.replace(/\sas\s/g, ':')} = Vue`)
2222
scripts += '\nreturn __Component'
2323

2424
// Create function to evaluate the script and get the component

docs/addons/use.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ Or in your `package.json` file:
3939

4040
## Examples
4141

42-
[slidev-addon-qrcode](https://github.com/kravetsone/slidev-addon-qrcode) is an addon that allows you to embed QR codes in your slides.
42+
- [slidev-addon-qrcode](https://github.com/kravetsone/slidev-addon-qrcode) is an addon that allows you to embed QR codes in your slides.
4343

44-
45-
[slidev-addon-remoji](https://github.com/twitwi/slidev-addon-remoji) is an addon that replaces emoji with icons in your slides for consistency / printing purposes.
44+
- [slidev-addon-remoji](https://github.com/twitwi/slidev-addon-remoji) is an addon that replaces emoji with icons in your slides for consistency / printing purposes.

docs/package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "docs",
33
"type": "module",
44
"private": true,
5-
"packageManager": "pnpm@9.1.0",
5+
"packageManager": "pnpm@9.1.1",
66
"scripts": {
77
"dev": "vitepress",
88
"build": "vitepress build",
@@ -14,20 +14,20 @@
1414
"typeit": "^8.8.3"
1515
},
1616
"devDependencies": {
17-
"@iconify/json": "^2.2.208",
18-
"@shikijs/vitepress-twoslash": "^1.5.1",
17+
"@iconify/json": "^2.2.211",
18+
"@shikijs/vitepress-twoslash": "^1.5.2",
1919
"@slidev/client": "0.34.3",
2020
"@slidev/parser": "0.34.3",
2121
"@slidev/theme-default": "0.21.2",
2222
"@slidev/types": "0.34.3",
2323
"@types/fs-extra": "^11.0.4",
24-
"@types/node": "^20.12.11",
25-
"@unocss/reset": "^0.60.0",
24+
"@types/node": "^20.12.12",
25+
"@unocss/reset": "^0.60.2",
2626
"fs-extra": "^11.2.0",
2727
"markdown-it": "^14.1.0",
28-
"shiki": "^1.5.1",
28+
"shiki": "^1.5.2",
2929
"typescript": "^5.4.5",
30-
"unocss": "^0.60.0",
30+
"unocss": "^0.60.2",
3131
"unplugin-icons": "^0.19.0",
3232
"unplugin-vue-components": "^0.27.0",
3333
"vite-plugin-inspect": "^0.8.4",

docs/vite.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export default defineConfig({
5151
transform(code, id) {
5252
if (!id.endsWith('.md'))
5353
return
54-
return code.replace(/\/\/```/mg, '```')
54+
return code.replace(/\/\/```/g, '```')
5555
},
5656
},
5757
{

package.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"type": "module",
33
"version": "0.49.2",
44
"private": true,
5-
"packageManager": "pnpm@9.1.0",
5+
"packageManager": "pnpm@9.1.1",
66
"engines": {
77
"node": ">=18.0.0"
88
},
@@ -17,7 +17,7 @@
1717
"demo:dev": "pnpm -C demo/starter run dev",
1818
"play": "pnpm demo:dev",
1919
"dev": "pnpm -r --filter=./packages/** --parallel run dev",
20-
"lint": "eslint .",
20+
"lint": "eslint . --cache",
2121
"lint:fix": "nr lint --fix",
2222
"typecheck": "vue-tsc --noEmit",
2323
"docs": "pnpm -C docs run dev",
@@ -26,10 +26,10 @@
2626
"test": "vitest test"
2727
},
2828
"devDependencies": {
29-
"@antfu/eslint-config": "^2.17.0",
29+
"@antfu/eslint-config": "^2.18.0",
3030
"@antfu/ni": "^0.21.12",
3131
"@antfu/utils": "^0.7.8",
32-
"@shikijs/markdown-it": "^1.5.1",
32+
"@shikijs/markdown-it": "^1.5.2",
3333
"@slidev/cli": "workspace:*",
3434
"@slidev/parser": "workspace:*",
3535
"@slidev/types": "workspace:*",
@@ -42,7 +42,7 @@
4242
"@types/js-yaml": "^4.0.9",
4343
"@types/katex": "^0.16.7",
4444
"@types/markdown-it": "^14.1.1",
45-
"@types/node": "^20.12.11",
45+
"@types/node": "^20.12.12",
4646
"@types/prismjs": "^1.26.4",
4747
"@types/prompts": "^2.4.9",
4848
"@types/recordrtc": "^5.6.14",
@@ -58,20 +58,20 @@
5858
"esno": "^4.7.0",
5959
"katex": "^0.16.10",
6060
"lint-staged": "^15.2.2",
61-
"mermaid": "^10.9.0",
61+
"mermaid": "^10.9.1",
6262
"playwright-chromium": "^1.44.0",
63-
"pnpm": "^9.1.0",
63+
"pnpm": "^9.1.1",
6464
"prettier-plugin-slidev": "^1.0.5",
65-
"rimraf": "^5.0.5",
66-
"shiki": "^1.5.1",
65+
"rimraf": "^5.0.7",
66+
"shiki": "^1.5.2",
6767
"simple-git-hooks": "^2.11.1",
6868
"taze": "^0.13.8",
6969
"tsup": "^8.0.2",
7070
"typescript": "^5.4.5",
7171
"vite": "^5.2.11",
7272
"vitest": "^1.6.0",
73-
"vue-tsc": "^2.0.17",
74-
"zx": "^8.0.2"
73+
"vue-tsc": "^2.0.19",
74+
"zx": "^8.1.0"
7575
},
7676
"pnpm": {
7777
"patchedDependencies": {

packages/client/composables/useDragElements.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export function useDragElementsUpdater(no: number) {
6868
let replaced = false
6969

7070
section = type === 'prop'
71-
? section.replace(/<(v-?drag)(.*?)>/ig, (full, tag, attrs, index) => {
71+
? section.replace(/<(v-?drag)(.*?)>/gi, (full, tag, attrs, index) => {
7272
if (index === idx) {
7373
replaced = true
7474
const posMatch = attrs.match(/pos=".*?"/)
@@ -80,7 +80,7 @@ export function useDragElementsUpdater(no: number) {
8080
}
8181
return full
8282
})
83-
: section.replace(/(?<![</\w])v-drag(?:=".*?")?/ig, (full, index) => {
83+
: section.replace(/(?<![</\w])v-drag(?:=".*?")?/gi, (full, index) => {
8484
if (index === idx) {
8585
replaced = true
8686
return `v-drag="${posStr}"`

packages/client/internals/NoteDisplay.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import type { ClicksContext } from '@slidev/types'
44
import { CLICKS_MAX } from '../constants'
55
66
const props = defineProps<{
7-
class?: string
7+
class?: string | string[]
88
noteHtml?: string
99
note?: string
1010
placeholder?: string

packages/client/internals/QuickOverview.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ useEventListener('keypress', (e) => {
6363
}
6464
return
6565
}
66-
const num = Number.parseInt(e.key.replace(/[^0-9]/g, ''))
66+
const num = Number.parseInt(e.key.replace(/\D/g, ''))
6767
if (Number.isNaN(num)) {
6868
keyboardBuffer.value = ''
6969
return

packages/client/package.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,17 +29,17 @@
2929
},
3030
"dependencies": {
3131
"@antfu/utils": "^0.7.8",
32-
"@iconify-json/carbon": "^1.1.32",
32+
"@iconify-json/carbon": "^1.1.33",
3333
"@iconify-json/ph": "^1.1.13",
3434
"@iconify-json/svg-spinners": "^1.1.2",
35-
"@shikijs/monaco": "^1.5.1",
36-
"@shikijs/vitepress-twoslash": "^1.5.1",
35+
"@shikijs/monaco": "^1.5.2",
36+
"@shikijs/vitepress-twoslash": "^1.5.2",
3737
"@slidev/parser": "workspace:*",
3838
"@slidev/rough-notation": "^0.1.0",
3939
"@slidev/types": "workspace:*",
4040
"@typescript/ata": "^0.9.4",
4141
"@unhead/vue": "^1.9.10",
42-
"@unocss/reset": "^0.60.0",
42+
"@unocss/reset": "^0.60.2",
4343
"@vueuse/core": "^10.9.0",
4444
"@vueuse/math": "^10.9.0",
4545
"@vueuse/motion": "^2.1.0",
@@ -50,14 +50,14 @@
5050
"fuse.js": "^7.0.0",
5151
"katex": "^0.16.10",
5252
"lz-string": "^1.5.0",
53-
"mermaid": "^10.9.0",
53+
"mermaid": "^10.9.1",
5454
"monaco-editor": "^0.48.0",
5555
"prettier": "^3.2.5",
5656
"recordrtc": "^5.6.2",
57-
"shiki": "^1.5.1",
57+
"shiki": "^1.5.2",
5858
"shiki-magic-move": "^0.4.2",
5959
"typescript": "^5.4.5",
60-
"unocss": "^0.60.0",
60+
"unocss": "^0.60.2",
6161
"vue": "^3.4.27",
6262
"vue-router": "^4.3.2",
6363
"yaml": "^2.4.2"

packages/client/pages/overview.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ function getSlideClicks(route: SlideRoute) {
4141
}
4242
4343
function wordCount(str: string) {
44-
return str.match(/[\w\d\’\'-]+/gi)?.length || 0
44+
return str.match(/[\w'-]+/g)?.length || 0
4545
}
4646
4747
function isElementInViewport(el: HTMLElement) {

0 commit comments

Comments
 (0)