Skip to content

Commit

Permalink
feat: upgrade deps, new lang Gleam, new theme Houston
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Mar 15, 2024
1 parent 56d1a48 commit 163d83b
Show file tree
Hide file tree
Showing 15 changed files with 1,128 additions and 636 deletions.
10 changes: 5 additions & 5 deletions docs/package.json
Expand Up @@ -13,14 +13,14 @@
"@iconify-json/svg-spinners": "^1.1.2",
"@shikijs/transformers": "workspace:*",
"@shikijs/twoslash": "workspace:*",
"@unocss/reset": "^0.58.5",
"@vueuse/core": "^10.8.0",
"@unocss/reset": "^0.58.6",
"@vueuse/core": "^10.9.0",
"floating-vue": "^5.2.2",
"pinia": "^2.1.7",
"shiki": "workspace:*",
"unocss": "^0.58.5",
"unocss": "^0.58.6",
"unplugin-vue-components": "^0.26.0",
"vitepress": "^1.0.0-rc.44",
"vue": "^3.4.19"
"vitepress": "^1.0.0-rc.45",
"vue": "^3.4.21"
}
}
30 changes: 15 additions & 15 deletions package.json
Expand Up @@ -2,7 +2,7 @@
"type": "module",
"version": "1.1.7",
"private": true,
"packageManager": "pnpm@8.15.3",
"packageManager": "pnpm@8.15.4",
"scripts": {
"lint": "eslint . --cache",
"release": "bumpp && pnpm -r publish",
Expand All @@ -14,7 +14,7 @@
"prepare": "simple-git-hooks"
},
"devDependencies": {
"@antfu/eslint-config": "^2.6.4",
"@antfu/eslint-config": "^2.8.3",
"@antfu/ni": "^0.21.12",
"@antfu/utils": "^0.7.7",
"@rollup/plugin-alias": "^5.1.0",
Expand All @@ -30,14 +30,14 @@
"@shikijs/vitepress-twoslash": "workspace:*",
"@types/fs-extra": "^11.0.4",
"@types/hast": "^3.0.4",
"@types/node": "^20.11.20",
"@vitest/coverage-v8": "^1.3.1",
"@types/node": "^20.11.28",
"@vitest/coverage-v8": "^1.4.0",
"ansi-sequence-parser": "^1.1.1",
"bumpp": "^9.3.0",
"bumpp": "^9.4.0",
"eslint": "npm:eslint-ts-patch@8.56.0-0",
"eslint-plugin-format": "^0.1.0",
"eslint-ts-patch": "8.56.0-0",
"esno": "^4.0.0",
"esno": "^4.7.0",
"fast-glob": "^3.3.2",
"fs-extra": "^11.2.0",
"jsonc-parser": "^3.2.1",
Expand All @@ -47,25 +47,25 @@
"mdast-util-gfm": "^3.0.0",
"mdast-util-to-hast": "^13.1.0",
"ofetch": "^1.3.3",
"pnpm": "^8.15.3",
"pnpm": "^8.15.4",
"prettier": "^3.2.5",
"rimraf": "^5.0.5",
"rollup": "^4.12.0",
"rollup": "^4.13.0",
"rollup-plugin-copy": "^3.5.0",
"rollup-plugin-dts": "^6.1.0",
"rollup-plugin-esbuild": "^6.1.1",
"rollup-plugin-typescript2": "^0.36.0",
"shiki": "workspace:*",
"simple-git-hooks": "^2.9.0",
"simple-git-hooks": "^2.10.0",
"taze": "^0.13.3",
"typescript": "^5.3.3",
"typescript": "^5.4.2",
"unbuild": "^2.0.0",
"vite": "^5.1.4",
"vite-tsconfig-paths": "^4.3.1",
"vite": "^5.1.6",
"vite-tsconfig-paths": "^4.3.2",
"vitepress-plugin-mermaid": "^2.0.16",
"vitest": "^1.3.1",
"vue-tsc": "^1.8.27",
"wrangler": "^3.29.0"
"vitest": "^1.4.0",
"vue-tsc": "^2.0.6",
"wrangler": "^3.34.2"
},
"resolutions": {
"@shikijs/compat": "workspace:*",
Expand Down
2 changes: 1 addition & 1 deletion packages/monaco/package.json
Expand Up @@ -49,6 +49,6 @@
"@shikijs/core": "workspace:*"
},
"devDependencies": {
"monaco-editor-core": "^0.46.0"
"monaco-editor-core": "^0.47.0"
}
}
4 changes: 2 additions & 2 deletions packages/monaco/playground/package.json
Expand Up @@ -7,7 +7,7 @@
"play": "vite"
},
"devDependencies": {
"typescript": "^5.3.3",
"vite": "^5.1.4"
"typescript": "^5.4.2",
"vite": "^5.1.6"
}
}
4 changes: 2 additions & 2 deletions packages/shiki/package.json
Expand Up @@ -102,8 +102,8 @@
"@shikijs/core": "workspace:*"
},
"devDependencies": {
"tm-grammars": "^1.4.4",
"tm-themes": "^1.1.3",
"tm-grammars": "^1.5.2",
"tm-themes": "^1.3.1",
"vscode-oniguruma": "^1.7.0"
}
}
10 changes: 10 additions & 0 deletions packages/shiki/src/assets/langs-bundle-full.ts
Expand Up @@ -327,6 +327,11 @@ export const bundledLanguagesInfo: BundledLanguageInfo[] = [
'name': 'Git Rebase Message',
'import': (() => import('./langs/git-rebase')) as DynamicImportLanguageRegistration
},
{
'id': 'gleam',
'name': 'Gleam',
'import': (() => import('./langs/gleam')) as DynamicImportLanguageRegistration
},
{
'id': 'glimmer-js',
'name': 'Glimmer JS',
Expand Down Expand Up @@ -504,6 +509,9 @@ export const bundledLanguagesInfo: BundledLanguageInfo[] = [
{
'id': 'julia',
'name': 'Julia',
'aliases': [
'jl'
],
'import': (() => import('./langs/julia')) as DynamicImportLanguageRegistration
},
{
Expand Down Expand Up @@ -1160,6 +1168,7 @@ export type BundledLanguage =
| 'git-commit'
| 'git-rebase'
| 'gjs'
| 'gleam'
| 'glimmer-js'
| 'glimmer-ts'
| 'glsl'
Expand Down Expand Up @@ -1188,6 +1197,7 @@ export type BundledLanguage =
| 'javascript'
| 'jinja'
| 'jison'
| 'jl'
| 'js'
| 'json'
| 'json5'
Expand Down
4 changes: 4 additions & 0 deletions packages/shiki/src/assets/langs-bundle-web.ts
Expand Up @@ -145,6 +145,9 @@ export const bundledLanguagesInfo: BundledLanguageInfo[] = [
{
'id': 'julia',
'name': 'Julia',
'aliases': [
'jl'
],
'import': (() => import('./langs/julia')) as DynamicImportLanguageRegistration
},
{
Expand Down Expand Up @@ -342,6 +345,7 @@ export type BundledLanguage =
| 'javascript'
| 'jinja'
| 'jison'
| 'jl'
| 'js'
| 'json'
| 'json5'
Expand Down
21 changes: 21 additions & 0 deletions packages/shiki/src/assets/themes.ts
Expand Up @@ -68,6 +68,12 @@ export const bundledThemesInfo: BundledThemeInfo[] = [
"type": "dark",
"import": (() => import('./themes/github-dark')) as unknown as DynamicImportThemeRegistration
},
{
"id": "github-dark-default",
"displayName": "GitHub Dark Default",
"type": "dark",
"import": (() => import('./themes/github-dark-default')) as unknown as DynamicImportThemeRegistration
},
{
"id": "github-dark-dimmed",
"displayName": "GitHub Dark Dimmed",
Expand All @@ -80,6 +86,18 @@ export const bundledThemesInfo: BundledThemeInfo[] = [
"type": "light",
"import": (() => import('./themes/github-light')) as unknown as DynamicImportThemeRegistration
},
{
"id": "github-light-default",
"displayName": "GitHub Light Default",
"type": "light",
"import": (() => import('./themes/github-light-default')) as unknown as DynamicImportThemeRegistration
},
{
"id": "houston",
"displayName": "Houston",
"type": "dark",
"import": (() => import('./themes/houston')) as unknown as DynamicImportThemeRegistration
},
{
"id": "light-plus",
"displayName": "Light Plus",
Expand Down Expand Up @@ -256,8 +274,11 @@ export type BundledTheme =
| 'dracula'
| 'dracula-soft'
| 'github-dark'
| 'github-dark-default'
| 'github-dark-dimmed'
| 'github-light'
| 'github-light-default'
| 'houston'
| 'light-plus'
| 'material-theme'
| 'material-theme-darker'
Expand Down
4 changes: 2 additions & 2 deletions packages/shiki/test/bundle.test.ts
Expand Up @@ -7,7 +7,7 @@ it('bundle-full', async () => {
}))

expect(highlighter.getLoadedLanguages().length)
.toMatchInlineSnapshot(`257`)
.toMatchInlineSnapshot(`259`)
})

it('bundle-web', async () => {
Expand All @@ -17,5 +17,5 @@ it('bundle-web', async () => {
}))

expect(highlighter.getLoadedLanguages().length)
.toMatchInlineSnapshot(`80`)
.toMatchInlineSnapshot(`81`)
})
6 changes: 3 additions & 3 deletions packages/twoslash/package.json
Expand Up @@ -59,10 +59,10 @@
"twoslash": "^0.2.4"
},
"devDependencies": {
"@iconify-json/carbon": "^1.1.30",
"@iconify-json/codicon": "^1.1.43",
"@iconify-json/carbon": "^1.1.31",
"@iconify-json/codicon": "^1.1.44",
"@shikijs/twoslash": "^3.1.2",
"hast-util-from-html": "^2.0.1",
"typescript": "^5.3.3"
"typescript": "^5.4.2"
}
}
2 changes: 1 addition & 1 deletion packages/twoslash/test/out/highlights.ts.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/twoslash/test/out/highlights.ts.json

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

2 changes: 1 addition & 1 deletion packages/vitepress-twoslash/package.json
Expand Up @@ -61,6 +61,6 @@
"shiki": "workspace:*",
"twoslash": "^0.2.4",
"twoslash-vue": "^0.2.4",
"vue": "^3.4.19"
"vue": "^3.4.21"
}
}
10 changes: 5 additions & 5 deletions packages/vitepress-twoslash/test/out/highlights.ts.json

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

0 comments on commit 163d83b

Please sign in to comment.