Skip to content

Commit

Permalink
chore: update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Jul 25, 2024
1 parent c8c1468 commit d1ed74f
Show file tree
Hide file tree
Showing 51 changed files with 918 additions and 874 deletions.
2 changes: 1 addition & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@
"unocss": "^0.61.5",
"unplugin-vue-components": "^0.27.3",
"vitepress": "^1.3.1",
"vue": "^3.4.33"
"vue": "^3.4.34"
}
}
20 changes: 10 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"type": "module",
"version": "1.11.1",
"private": true,
"packageManager": "pnpm@9.5.0",
"packageManager": "pnpm@9.6.0",
"scripts": {
"lint": "eslint . --cache",
"release": "bumpp && pnpm -r publish",
Expand All @@ -14,7 +14,7 @@
"prepare": "simple-git-hooks"
},
"devDependencies": {
"@antfu/eslint-config": "^2.23.1",
"@antfu/eslint-config": "^2.23.2",
"@antfu/ni": "^0.22.0",
"@antfu/utils": "^0.7.10",
"@rollup/plugin-alias": "^5.1.0",
Expand All @@ -30,8 +30,8 @@
"@shikijs/vitepress-twoslash": "workspace:*",
"@types/fs-extra": "^11.0.4",
"@types/hast": "^3.0.4",
"@types/node": "^20.14.11",
"@vitest/coverage-v8": "^2.0.3",
"@types/node": "^20.14.12",
"@vitest/coverage-v8": "^2.0.4",
"ansi-sequence-parser": "^1.1.1",
"bumpp": "^9.4.1",
"eslint": "^9.7.0",
Expand All @@ -46,7 +46,7 @@
"mdast-util-gfm": "^3.0.0",
"mdast-util-to-hast": "^13.2.0",
"ofetch": "^1.3.4",
"pnpm": "^9.5.0",
"pnpm": "^9.6.0",
"prettier": "^3.3.3",
"rimraf": "^6.0.1",
"rollup": "^4.19.0",
Expand All @@ -57,14 +57,14 @@
"shiki": "workspace:*",
"simple-git-hooks": "^2.11.1",
"taze": "^0.16.1",
"typescript": "^5.5.3",
"typescript": "^5.5.4",
"unbuild": "^2.0.0",
"vite": "^5.3.4",
"vite": "^5.3.5",
"vite-tsconfig-paths": "^4.3.2",
"vitepress-plugin-mermaid": "^2.0.16",
"vitest": "^2.0.3",
"vue-tsc": "^2.0.26",
"wrangler": "^3.65.1"
"vitest": "^2.0.4",
"vue-tsc": "^2.0.29",
"wrangler": "^3.67.0"
},
"resolutions": {
"@shikijs/compat": "workspace:*",
Expand Down
2 changes: 1 addition & 1 deletion packages/markdown-it/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,6 @@
"shiki": "workspace:*"
},
"devDependencies": {
"@types/markdown-it": "^14.1.1"
"@types/markdown-it": "^14.1.2"
}
}
2 changes: 1 addition & 1 deletion packages/markdown-it/test/fixtures/a.out.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/markdown-it/test/fixtures/b.out.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/markdown-it/test/fixtures/c.out.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions packages/monaco/playground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"play": "vite"
},
"devDependencies": {
"typescript": "^5.5.3",
"vite": "^5.3.4"
"typescript": "^5.5.4",
"vite": "^5.3.5"
}
}
2 changes: 1 addition & 1 deletion packages/rehype/test/fixtures/a.core.out.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/rehype/test/fixtures/a.out.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/shiki/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@
},
"devDependencies": {
"tm-grammars": "^1.14.0",
"tm-themes": "^1.5.6",
"tm-themes": "^1.5.7",
"vscode-oniguruma": "^1.7.0"
}
}
4 changes: 2 additions & 2 deletions packages/shiki/test/color-replacement.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,11 @@ it('flat colorReplacements', async () => {
log</span>
<span style="color:#999999;--shiki-dark:#BABED8">
(</span>
<span style="color:#B5695999;--shiki-dark:#89DDFF">
<span style="color:#B5695977;--shiki-dark:#89DDFF">
"</span>
<span style="color:#B56959;--shiki-dark:#C3E88D">
hi</span>
<span style="color:#B5695999;--shiki-dark:#89DDFF">
<span style="color:#B5695977;--shiki-dark:#89DDFF">
"</span>
<span style="color:#999999;--shiki-dark:#BABED8">
)</span>
Expand Down
5 changes: 4 additions & 1 deletion packages/shiki/test/general.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,10 @@ describe('should', () => {
theme: 'vitesse-light',
lang: 'javascript',
tokenizeMaxLineLength: 100,
})).toMatchInlineSnapshot(`"<pre class="shiki vitesse-light" style="background-color:#ffffff;color:#393a34" tabindex="0"><code><span class="line"><span style="color:#AB5959">const</span><span style="color:#B07D48"> short</span><span style="color:#999999"> =</span><span style="color:#B5695999"> ""</span></span>\n<span class="line"><span>const long = ${longText}</span></span></code></pre>"`)
})).toMatchInlineSnapshot(`
"<pre class="shiki vitesse-light" style="background-color:#ffffff;color:#393a34" tabindex="0"><code><span class="line"><span style="color:#AB5959">const</span><span style="color:#B07D48"> short</span><span style="color:#999999"> =</span><span style="color:#B5695977"> ""</span></span>
<span class="line"><span>const long = foofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoofoo</span></span></code></pre>"
`)
})
})

Expand Down
6 changes: 3 additions & 3 deletions packages/shiki/test/grammar-state.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -194,13 +194,13 @@ it('grammarContextCode', async () => {
})

expect(highlightedHtml)
.toMatchInlineSnapshot(`"<span style="color:#999999">&#x3C;</span><span style="color:#1E754F">div</span><span style="color:#B07D48"> :value</span><span style="color:#999999">=</span><span style="color:#B5695999">"</span><span style="color:#B56959">1 + 2</span><span style="color:#B5695999">"</span><span style="color:#999999">>&#x3C;</span><span style="color:#1E754F">button</span><span style="color:#999999;font-style:italic"> /</span><span style="color:#999999">>&#x3C;/</span><span style="color:#1E754F">div</span><span style="color:#999999">></span>"`)
.toMatchInlineSnapshot(`"<span style="color:#999999">&#x3C;</span><span style="color:#1E754F">div</span><span style="color:#B07D48"> :value</span><span style="color:#999999">=</span><span style="color:#B5695977">"</span><span style="color:#B56959">1 + 2</span><span style="color:#B5695977">"</span><span style="color:#999999">>&#x3C;</span><span style="color:#1E754F">button</span><span style="color:#999999;font-style:italic"> /</span><span style="color:#999999">>&#x3C;/</span><span style="color:#1E754F">div</span><span style="color:#999999">></span>"`)

expect(highlightedVueTemplate)
.toMatchInlineSnapshot(`"<span style="color:#999999">&#x3C;</span><span style="color:#1E754F">div</span><span style="color:#999999"> :</span><span style="color:#59873A">value</span><span style="color:#999999">=</span><span style="color:#B5695999">"</span><span style="color:#2F798A">1</span><span style="color:#AB5959"> +</span><span style="color:#2F798A"> 2</span><span style="color:#B5695999">"</span><span style="color:#999999">>&#x3C;</span><span style="color:#1E754F">button</span><span style="color:#999999;font-style:italic"> /</span><span style="color:#999999">>&#x3C;/</span><span style="color:#1E754F">div</span><span style="color:#999999">></span>"`)
.toMatchInlineSnapshot(`"<span style="color:#999999">&#x3C;</span><span style="color:#1E754F">div</span><span style="color:#999999"> :</span><span style="color:#59873A">value</span><span style="color:#999999">=</span><span style="color:#999999">"</span><span style="color:#2F798A">1</span><span style="color:#AB5959"> +</span><span style="color:#2F798A"> 2</span><span style="color:#999999">"</span><span style="color:#999999">>&#x3C;</span><span style="color:#1E754F">button</span><span style="color:#999999;font-style:italic"> /</span><span style="color:#999999">>&#x3C;/</span><span style="color:#1E754F">div</span><span style="color:#999999">></span>"`)

expect(highlightedVueBare)
.toMatchInlineSnapshot(`"<span style="color:#999999">&#x3C;</span><span style="color:#1E754F">div</span><span style="color:#999999"> :</span><span style="color:#59873A">value</span><span style="color:#999999">=</span><span style="color:#B5695999">"</span><span style="color:#2F798A">1</span><span style="color:#AB5959"> +</span><span style="color:#2F798A"> 2</span><span style="color:#B5695999">"</span><span style="color:#999999">></span><span style="color:#393A34">&#x3C;button /></span><span style="color:#999999">&#x3C;/</span><span style="color:#1E754F">div</span><span style="color:#999999">></span>"`)
.toMatchInlineSnapshot(`"<span style="color:#999999">&#x3C;</span><span style="color:#1E754F">div</span><span style="color:#999999"> :</span><span style="color:#59873A">value</span><span style="color:#999999">=</span><span style="color:#999999">"</span><span style="color:#2F798A">1</span><span style="color:#AB5959"> +</span><span style="color:#2F798A"> 2</span><span style="color:#999999">"</span><span style="color:#999999">></span><span style="color:#393A34">&#x3C;button /></span><span style="color:#999999">&#x3C;/</span><span style="color:#1E754F">div</span><span style="color:#999999">></span>"`)

expect(highlightedVueTemplate)
.not.toEqual(highlightedVueBare)
Expand Down
6 changes: 3 additions & 3 deletions packages/shiki/test/hast.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ it('hasfocus support', async () => {

expect(code)
.toMatchInlineSnapshot(`
"<pre class="shiki vitesse-light" style="background-color:#ffffff;color:#393a34" tabindex="0"><code class="language-php"><span class="line"><span style="color:#999999">$</span><span style="color:#B07D48">foo</span><span style="color:#999999"> =</span><span style="color:#B5695999"> "</span><span style="color:#B56959">bar</span><span style="color:#B5695999">"</span><span style="color:#999999">;</span></span>
<span class="line" data-has-focus="true"><span style="color:#999999">$</span><span style="color:#B07D48">test</span><span style="color:#999999"> =</span><span style="color:#B5695999"> "</span><span style="color:#B56959">owo</span><span style="color:#B5695999">"</span><span style="color:#999999">;</span><span style="color:#A0ADA0"></span></span>
<span class="line"><span style="color:#999999">$</span><span style="color:#B07D48">bar</span><span style="color:#999999"> =</span><span style="color:#B5695999"> "</span><span style="color:#B56959">baz</span><span style="color:#B5695999">"</span><span style="color:#999999">;</span></span></code></pre>"
"<pre class="shiki vitesse-light" style="background-color:#ffffff;color:#393a34" tabindex="0"><code class="language-php"><span class="line"><span style="color:#999999">$</span><span style="color:#B07D48">foo</span><span style="color:#999999"> =</span><span style="color:#B5695977"> "</span><span style="color:#B56959">bar</span><span style="color:#B5695977">"</span><span style="color:#999999">;</span></span>
<span class="line" data-has-focus="true"><span style="color:#999999">$</span><span style="color:#B07D48">test</span><span style="color:#999999"> =</span><span style="color:#B5695977"> "</span><span style="color:#B56959">owo</span><span style="color:#B5695977">"</span><span style="color:#999999">;</span><span style="color:#A0ADA0"></span></span>
<span class="line"><span style="color:#999999">$</span><span style="color:#B07D48">bar</span><span style="color:#999999"> =</span><span style="color:#B5695977"> "</span><span style="color:#B56959">baz</span><span style="color:#B5695977">"</span><span style="color:#999999">;</span></span></code></pre>"
`)
})

Expand Down
Loading

0 comments on commit d1ed74f

Please sign in to comment.