Skip to content

Commit 4d86fcc

Browse files
committed
upgrade deps
1 parent 5ab732e commit 4d86fcc

File tree

8 files changed

+3558
-3953
lines changed

8 files changed

+3558
-3953
lines changed

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# vue-markdown-viewer
22

3-
![npm](https://img.shields.io/npm/v/vue-markdown-viewer) ![npm](https://img.shields.io/npm/dw/vue-markdown-viewer)
3+
![npm](https://img.shields.io/npm/v/vue-markdown-viewer)
4+
![npm](https://img.shields.io/npm/dm/vue-markdown-viewer)
45

56
Vue component to render markdown with [remark](https://github.com/remarkjs/remark).
67

package.json

+21-12
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"name": "vue-markdown-viewer",
33
"type": "module",
4-
"version": "2.0.0",
5-
"packageManager": "pnpm@9.0.6",
4+
"version": "2.0.1",
5+
"packageManager": "pnpm@9.14.2",
66
"license": "MIT",
77
"repository": "hojas/vue-markdown-viewer",
88
"bugs": "https://github.com/hojas/vue-markdown-viewer/issues",
@@ -27,7 +27,9 @@
2727
"main": "./dist/vue-markdown-viewer.cjs",
2828
"module": "./dist/vue-markdown-viewer.js",
2929
"types": "./dist/index.d.ts",
30-
"files": ["dist"],
30+
"files": [
31+
"dist"
32+
],
3133
"scripts": {
3234
"dev:vue": "node ./scripts/dev.cjs --demo=vue",
3335
"dev:nuxt": "node ./scripts/dev.cjs --demo=nuxt",
@@ -36,18 +38,25 @@
3638
"push": "pnpm build && npm publish"
3739
},
3840
"dependencies": {
39-
"rehype-stringify": "^10.0.0",
41+
"rehype-stringify": "^10.0.1",
4042
"remark-parse": "^11.0.0",
41-
"remark-rehype": "^11.1.0",
42-
"unified": "^11.0.4"
43+
"remark-rehype": "^11.1.1",
44+
"unified": "^11.0.5"
4345
},
4446
"devDependencies": {
45-
"@antfu/eslint-config": "^2.16.1",
46-
"@types/node": "^20.12.8",
47-
"eslint": "^9.2.0",
47+
"@antfu/eslint-config": "^3.9.2",
48+
"@rollup/plugin-commonjs": "^28.0.1",
49+
"@rollup/plugin-json": "^6.1.0",
50+
"@rollup/plugin-node-resolve": "^15.3.0",
51+
"@types/node": "^22.9.3",
52+
"eslint": "^9.15.0",
53+
"rollup": "^4.27.4",
54+
"rollup-plugin-typescript2": "^0.36.0",
55+
"rollup-plugin-vue": "^6.0.0",
4856
"shelljs": "^0.8.5",
49-
"typescript": "^5.4.5",
50-
"vite": "^5.2.11",
51-
"vue-tsc": "^2.0.16"
57+
"typescript": "^5.7.2",
58+
"unplugin-vue": "^5.1.5",
59+
"vite": "^5.4.11",
60+
"vue-tsc": "^2.1.10"
5261
}
5362
}

packages/demo/package.json

+11-11
Original file line numberDiff line numberDiff line change
@@ -7,23 +7,23 @@
77
"build": "vite build"
88
},
99
"dependencies": {
10-
"github-markdown-css": "^5.5.1",
11-
"highlight.js": "^11.9.0",
12-
"katex": "^0.16.10",
13-
"mermaid": "^10.9.0",
14-
"rehype-highlight": "^7.0.0",
15-
"rehype-katex": "^7.0.0",
10+
"github-markdown-css": "^5.8.0",
11+
"highlight.js": "^11.10.0",
12+
"katex": "^0.16.11",
13+
"mermaid": "^11.4.0",
14+
"rehype-highlight": "^7.0.1",
15+
"rehype-katex": "^7.0.1",
1616
"rehype-slug": "^6.0.0",
1717
"remark-gfm": "^4.0.0",
1818
"remark-math": "^6.0.0",
1919
"remark-toc": "^9.0.0",
20-
"vue": "^3.4.26",
20+
"vue": "^3.5.13",
2121
"vue-markdown-viewer": "workspace:*"
2222
},
2323
"devDependencies": {
24-
"@vitejs/plugin-vue": "^5.0.4",
25-
"typescript": "^5.4.5",
26-
"vite": "^5.2.11",
27-
"vue-tsc": "^2.0.16"
24+
"@vitejs/plugin-vue": "^5.2.0",
25+
"typescript": "^5.7.2",
26+
"vite": "^5.4.11",
27+
"vue-tsc": "^2.1.10"
2828
}
2929
}

packages/nuxt-demo/components/MermaidRender.vue

+6-6
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,17 @@ import mermaid from 'mermaid'
44
55
const pre = ref()
66
7-
onMounted(async () => {
8-
mermaid.initialize({ startOnLoad: false })
9-
await mermaid.run({
7+
onMounted(() => {
8+
mermaid.initialize({ startOnLoad: true, theme: 'dark' })
9+
mermaid.run({
1010
nodes: [pre.value],
1111
suppressErrors: true
1212
})
1313
})
1414
</script>
1515

1616
<template>
17-
<div>
18-
<div ref="pre" class="mermaid"><slot /></div>
19-
</div>
17+
<ClientOnly>
18+
<pre ref="pre" class="mermaid"><slot /></pre>
19+
</ClientOnly>
2020
</template>

packages/nuxt-demo/package.json

+9-9
Original file line numberDiff line numberDiff line change
@@ -10,21 +10,21 @@
1010
"postinstall": "nuxt prepare"
1111
},
1212
"dependencies": {
13-
"github-markdown-css": "^5.5.1",
14-
"highlight.js": "^11.9.0",
15-
"katex": "^0.16.10",
16-
"mermaid": "^10.9.0",
17-
"nuxt": "^3.11.2",
18-
"parse5": "^7.1.2",
19-
"rehype-highlight": "^7.0.0",
20-
"rehype-katex": "^7.0.0",
13+
"github-markdown-css": "^5.8.0",
14+
"highlight.js": "^11.10.0",
15+
"katex": "^0.16.11",
16+
"mermaid": "^11.4.0",
17+
"nuxt": "^3.14.1592",
18+
"parse5": "^7.2.1",
19+
"rehype-highlight": "^7.0.1",
20+
"rehype-katex": "^7.0.1",
2121
"rehype-raw": "^7.0.0",
2222
"rehype-slug": "^6.0.0",
2323
"remark-gfm": "^4.0.0",
2424
"remark-math": "^6.0.0",
2525
"remark-toc": "^9.0.0",
2626
"vue": "*",
2727
"vue-markdown-viewer": "workspace:*",
28-
"vue-router": "^4.3.2"
28+
"vue-router": "^4.4.5"
2929
}
3030
}

packages/vue-markdown-viewer/package.json

+7-7
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,15 @@
2222
"unified": "*"
2323
},
2424
"devDependencies": {
25-
"@rollup/plugin-json": "^6.1.0",
26-
"@rollup/plugin-node-resolve": "^15.2.3",
25+
"@rollup/plugin-commonjs": "*",
26+
"@rollup/plugin-json": "*",
27+
"@rollup/plugin-node-resolve": "*",
2728
"@types/node": "*",
28-
"rollup": "^4.17.2",
29-
"rollup-plugin-commonjs": "^10.1.0",
30-
"rollup-plugin-typescript2": "^0.36.0",
31-
"rollup-plugin-vue": "^6.0.0",
29+
"rollup": "*",
30+
"rollup-plugin-typescript2": "*",
31+
"rollup-plugin-vue": "*",
3232
"typescript": "*",
33-
"unplugin-vue": "^5.0.5",
33+
"unplugin-vue": "*",
3434
"vue": "*"
3535
}
3636
}

packages/vue-markdown-viewer/rollup.config.js

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
1+
import { createRequire } from 'node:module'
2+
import commonjs from '@rollup/plugin-commonjs'
13
import { nodeResolve } from '@rollup/plugin-node-resolve'
2-
import commonjs from 'rollup-plugin-commonjs'
34
import typescript from 'rollup-plugin-typescript2'
45
import vue from 'rollup-plugin-vue'
5-
import packageJson from './package.json' assert { type: 'json' }
6+
7+
const require = createRequire(import.meta.url)
8+
9+
const packageJson = require('./package.json')
610

711
export default {
812
input: 'src/index.ts',

0 commit comments

Comments
 (0)