Skip to content

Commit b68ee52

Browse files
committedAug 14, 2024··
feat: new grammar, new themes, update deps
1 parent efbb7fb commit b68ee52

File tree

14 files changed

+1165
-1847
lines changed

14 files changed

+1165
-1847
lines changed
 

‎docs/package.json

+9-9
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,21 @@
77
"docs:preview": "vitepress preview"
88
},
99
"dependencies": {
10-
"@iconify-json/ph": "^1.1.13",
10+
"@iconify-json/ph": "^1.1.14",
1111
"fuse.js": "^7.0.0"
1212
},
1313
"devDependencies": {
14-
"@iconify-json/svg-spinners": "^1.1.2",
14+
"@iconify-json/svg-spinners": "^1.1.3",
1515
"@shikijs/transformers": "workspace:*",
1616
"@shikijs/twoslash": "workspace:*",
17-
"@unocss/reset": "^0.61.9",
18-
"@vueuse/core": "^10.11.0",
17+
"@unocss/reset": "^0.62.1",
18+
"@vueuse/core": "^10.11.1",
1919
"floating-vue": "^5.2.2",
20-
"pinia": "^2.2.0",
20+
"pinia": "^2.2.1",
2121
"shiki": "workspace:*",
22-
"unocss": "^0.61.9",
23-
"unplugin-vue-components": "^0.27.3",
24-
"vitepress": "^1.3.1",
25-
"vue": "^3.4.35"
22+
"unocss": "^0.62.1",
23+
"unplugin-vue-components": "^0.27.4",
24+
"vitepress": "^1.3.2",
25+
"vue": "^3.4.37"
2626
}
2727
}

‎package.json

+13-13
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"type": "module",
33
"version": "1.12.1",
44
"private": true,
5-
"packageManager": "pnpm@9.6.0",
5+
"packageManager": "pnpm@9.7.1",
66
"scripts": {
77
"lint": "eslint . --cache",
88
"release": "bumpp && pnpm -r publish",
@@ -14,8 +14,8 @@
1414
"prepare": "simple-git-hooks"
1515
},
1616
"devDependencies": {
17-
"@antfu/eslint-config": "^2.24.1",
18-
"@antfu/ni": "^0.22.0",
17+
"@antfu/eslint-config": "^2.25.1",
18+
"@antfu/ni": "^0.22.4",
1919
"@antfu/utils": "^0.7.10",
2020
"@rollup/plugin-alias": "^5.1.0",
2121
"@rollup/plugin-commonjs": "^26.0.1",
@@ -30,41 +30,41 @@
3030
"@shikijs/vitepress-twoslash": "workspace:*",
3131
"@types/fs-extra": "^11.0.4",
3232
"@types/hast": "^3.0.4",
33-
"@types/node": "^22.0.2",
33+
"@types/node": "^22.3.0",
3434
"@vitest/coverage-v8": "^2.0.5",
3535
"ansi-sequence-parser": "^1.1.1",
36-
"bumpp": "^9.4.1",
37-
"eslint": "^9.8.0",
36+
"bumpp": "^9.5.1",
37+
"eslint": "^9.9.0",
3838
"eslint-plugin-format": "^0.1.2",
3939
"esno": "^4.7.0",
4040
"fast-glob": "^3.3.2",
4141
"fs-extra": "^11.2.0",
4242
"jsonc-parser": "^3.3.1",
43-
"lint-staged": "^15.2.7",
43+
"lint-staged": "^15.2.9",
4444
"markdown-it": "^14.1.0",
4545
"mdast-util-from-markdown": "^2.0.1",
4646
"mdast-util-gfm": "^3.0.0",
4747
"mdast-util-to-hast": "^13.2.0",
4848
"ofetch": "^1.3.4",
49-
"pnpm": "^9.6.0",
49+
"pnpm": "^9.7.1",
5050
"prettier": "^3.3.3",
5151
"rimraf": "^6.0.1",
52-
"rollup": "^4.19.2",
52+
"rollup": "^4.20.0",
5353
"rollup-plugin-copy": "^3.5.0",
5454
"rollup-plugin-dts": "^6.1.1",
5555
"rollup-plugin-esbuild": "^6.1.1",
5656
"rollup-plugin-typescript2": "^0.36.0",
5757
"shiki": "workspace:*",
5858
"simple-git-hooks": "^2.11.1",
59-
"taze": "^0.16.3",
59+
"taze": "^0.16.6",
6060
"typescript": "^5.5.4",
6161
"unbuild": "^2.0.0",
62-
"vite": "^5.3.5",
63-
"vite-tsconfig-paths": "^4.3.2",
62+
"vite": "^5.4.0",
63+
"vite-tsconfig-paths": "^5.0.1",
6464
"vitepress-plugin-mermaid": "^2.0.16",
6565
"vitest": "^2.0.5",
6666
"vue-tsc": "^2.0.29",
67-
"wrangler": "^3.68.0"
67+
"wrangler": "^3.71.0"
6868
},
6969
"resolutions": {
7070
"@shikijs/compat": "workspace:*",

‎packages/monaco/playground/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@
88
},
99
"devDependencies": {
1010
"typescript": "^5.5.4",
11-
"vite": "^5.3.5"
11+
"vite": "^5.4.0"
1212
}
1313
}

‎packages/shiki/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,8 @@
104104
"@types/hast": "^3.0.4"
105105
},
106106
"devDependencies": {
107-
"tm-grammars": "^1.16.2",
108-
"tm-themes": "^1.6.0",
107+
"tm-grammars": "^1.17.1",
108+
"tm-themes": "^1.7.0",
109109
"vscode-oniguruma": "^1.7.0"
110110
}
111111
}

‎packages/shiki/src/assets/langs-bundle-full.ts

+10
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,11 @@ export const bundledLanguagesInfo: BundledLanguageInfo[] = [
181181
],
182182
'import': (() => import('./langs/common-lisp')) as DynamicImportLanguageRegistration
183183
},
184+
{
185+
'id': 'coq',
186+
'name': 'Coq',
187+
'import': (() => import('./langs/coq')) as DynamicImportLanguageRegistration
188+
},
184189
{
185190
'id': 'cpp',
186191
'name': 'C++',
@@ -820,6 +825,9 @@ export const bundledLanguagesInfo: BundledLanguageInfo[] = [
820825
{
821826
'id': 'proto',
822827
'name': 'Protocol Buffer 3',
828+
'aliases': [
829+
'protobuf'
830+
],
823831
'import': (() => import('./langs/proto')) as DynamicImportLanguageRegistration
824832
},
825833
{
@@ -1310,6 +1318,7 @@ export type BundledLanguage =
13101318
| 'coffeescript'
13111319
| 'common-lisp'
13121320
| 'console'
1321+
| 'coq'
13131322
| 'cpp'
13141323
| 'cql'
13151324
| 'crystal'
@@ -1460,6 +1469,7 @@ export type BundledLanguage =
14601469
| 'prolog'
14611470
| 'properties'
14621471
| 'proto'
1472+
| 'protobuf'
14631473
| 'ps'
14641474
| 'ps1'
14651475
| 'pug'

‎packages/shiki/src/assets/themes.ts

+14
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,12 @@ export const bundledThemesInfo: BundledThemeInfo[] = [
9292
"type": "dark",
9393
"import": (() => import('./themes/github-dark-dimmed')) as unknown as DynamicImportThemeRegistration
9494
},
95+
{
96+
"id": "github-dark-high-contrast",
97+
"displayName": "GitHub Dark High Contrast",
98+
"type": "dark",
99+
"import": (() => import('./themes/github-dark-high-contrast')) as unknown as DynamicImportThemeRegistration
100+
},
95101
{
96102
"id": "github-light",
97103
"displayName": "GitHub Light",
@@ -104,6 +110,12 @@ export const bundledThemesInfo: BundledThemeInfo[] = [
104110
"type": "light",
105111
"import": (() => import('./themes/github-light-default')) as unknown as DynamicImportThemeRegistration
106112
},
113+
{
114+
"id": "github-light-high-contrast",
115+
"displayName": "GitHub Light High Contrast",
116+
"type": "light",
117+
"import": (() => import('./themes/github-light-high-contrast')) as unknown as DynamicImportThemeRegistration
118+
},
107119
{
108120
"id": "houston",
109121
"displayName": "Houston",
@@ -308,8 +320,10 @@ export type BundledTheme =
308320
| 'github-dark'
309321
| 'github-dark-default'
310322
| 'github-dark-dimmed'
323+
| 'github-dark-high-contrast'
311324
| 'github-light'
312325
| 'github-light-default'
326+
| 'github-light-high-contrast'
313327
| 'houston'
314328
| 'laserwave'
315329
| 'light-plus'

‎packages/shiki/test/bundle.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ it('bundle-full', async () => {
77
}))
88

99
expect(highlighter.getLoadedLanguages().length)
10-
.toMatchInlineSnapshot(`307`)
10+
.toMatchInlineSnapshot(`309`)
1111
})
1212

1313
it('bundle-web', async () => {

‎packages/twoslash/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,8 @@
5959
"twoslash": "^0.2.9"
6060
},
6161
"devDependencies": {
62-
"@iconify-json/carbon": "^1.1.36",
63-
"@iconify-json/codicon": "^1.1.50",
62+
"@iconify-json/carbon": "^1.1.37",
63+
"@iconify-json/codicon": "^1.1.51",
6464
"@shikijs/twoslash": "^3.1.2",
6565
"hast-util-from-html": "^2.0.1",
6666
"typescript": "^5.5.4"

‎packages/twoslash/test/out/import-vue.ts.html

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

0 commit comments

Comments
 (0)
Please sign in to comment.