Skip to content

Commit

Permalink
feat: upgrade deps, new langs and themes
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Apr 30, 2024
1 parent a606d44 commit 26f37f0
Show file tree
Hide file tree
Showing 11 changed files with 6,168 additions and 5,729 deletions.
8 changes: 4 additions & 4 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@
"@iconify-json/svg-spinners": "^1.1.2",
"@shikijs/transformers": "workspace:*",
"@shikijs/twoslash": "workspace:*",
"@unocss/reset": "^0.59.0",
"@unocss/reset": "^0.59.4",
"@vueuse/core": "^10.9.0",
"floating-vue": "^5.2.2",
"pinia": "^2.1.7",
"shiki": "workspace:*",
"unocss": "^0.59.0",
"unocss": "^0.59.4",
"unplugin-vue-components": "^0.26.0",
"vitepress": "^1.1.0",
"vue": "^3.4.21"
"vitepress": "^1.1.4",
"vue": "^3.4.26"
}
}
30 changes: 15 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"type": "module",
"version": "1.3.0",
"private": true,
"packageManager": "pnpm@8.15.6",
"packageManager": "pnpm@9.0.6",
"scripts": {
"lint": "eslint . --cache",
"release": "bumpp && pnpm -r publish",
Expand All @@ -14,7 +14,7 @@
"prepare": "simple-git-hooks"
},
"devDependencies": {
"@antfu/eslint-config": "^2.13.2",
"@antfu/eslint-config": "^2.16.0",
"@antfu/ni": "^0.21.12",
"@antfu/utils": "^0.7.7",
"@rollup/plugin-alias": "^5.1.0",
Expand All @@ -30,12 +30,12 @@
"@shikijs/vitepress-twoslash": "workspace:*",
"@types/fs-extra": "^11.0.4",
"@types/hast": "^3.0.4",
"@types/node": "^20.12.6",
"@vitest/coverage-v8": "^1.4.0",
"@types/node": "^20.12.7",
"@vitest/coverage-v8": "^1.5.3",
"ansi-sequence-parser": "^1.1.1",
"bumpp": "^9.4.0",
"eslint": "^9.0.0",
"eslint-plugin-format": "^0.1.0",
"bumpp": "^9.4.1",
"eslint": "^9.1.1",
"eslint-plugin-format": "^0.1.1",
"esno": "^4.7.0",
"fast-glob": "^3.3.2",
"fs-extra": "^11.2.0",
Expand All @@ -46,25 +46,25 @@
"mdast-util-gfm": "^3.0.0",
"mdast-util-to-hast": "^13.1.0",
"ofetch": "^1.3.4",
"pnpm": "^8.15.6",
"pnpm": "^9.0.6",
"prettier": "^3.2.5",
"rimraf": "^5.0.5",
"rollup": "^4.14.1",
"rollup": "^4.17.2",
"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.11.1",
"taze": "^0.13.3",
"typescript": "^5.4.4",
"taze": "^0.13.7",
"typescript": "^5.4.5",
"unbuild": "^2.0.0",
"vite": "^5.2.8",
"vite": "^5.2.10",
"vite-tsconfig-paths": "^4.3.2",
"vitepress-plugin-mermaid": "^2.0.16",
"vitest": "^1.4.0",
"vue-tsc": "^2.0.11",
"wrangler": "^3.48.0"
"vitest": "^1.5.3",
"vue-tsc": "^2.0.15",
"wrangler": "^3.52.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.0.0"
"@types/markdown-it": "^14.0.1"
}
}
2 changes: 1 addition & 1 deletion packages/monaco/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,6 @@
"@shikijs/core": "workspace:*"
},
"devDependencies": {
"monaco-editor-core": "^0.47.0"
"monaco-editor-core": "^0.48.0"
}
}
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.4.4",
"vite": "^5.2.8"
"typescript": "^5.4.5",
"vite": "^5.2.10"
}
}
4 changes: 2 additions & 2 deletions packages/shiki/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@
"@shikijs/core": "workspace:*"
},
"devDependencies": {
"tm-grammars": "^1.6.4",
"tm-themes": "^1.3.3",
"tm-grammars": "^1.7.2",
"tm-themes": "^1.4.1",
"vscode-oniguruma": "^1.7.0"
}
}
58 changes: 55 additions & 3 deletions packages/shiki/src/assets/langs-bundle-full.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,14 @@ export const bundledLanguagesInfo: BundledLanguageInfo[] = [
],
'import': (() => import('./langs/coffee')) as DynamicImportLanguageRegistration
},
{
'id': 'common-lisp',
'name': 'Common Lisp',
'aliases': [
'lisp'
],
'import': (() => import('./langs/common-lisp')) as DynamicImportLanguageRegistration
},
{
'id': 'cpp',
'name': 'C++',
Expand Down Expand Up @@ -220,6 +228,11 @@ export const bundledLanguagesInfo: BundledLanguageInfo[] = [
'name': 'DAX',
'import': (() => import('./langs/dax')) as DynamicImportLanguageRegistration
},
{
'id': 'desktop',
'name': 'Desktop',
'import': (() => import('./langs/desktop')) as DynamicImportLanguageRegistration
},
{
'id': 'diff',
'name': 'Diff',
Expand Down Expand Up @@ -261,6 +274,11 @@ export const bundledLanguagesInfo: BundledLanguageInfo[] = [
],
'import': (() => import('./langs/erlang')) as DynamicImportLanguageRegistration
},
{
'id': 'fennel',
'name': 'Fennel',
'import': (() => import('./langs/fennel')) as DynamicImportLanguageRegistration
},
{
'id': 'fish',
'name': 'Fish',
Expand Down Expand Up @@ -432,6 +450,11 @@ export const bundledLanguagesInfo: BundledLanguageInfo[] = [
'name': 'HTTP',
'import': (() => import('./langs/http')) as DynamicImportLanguageRegistration
},
{
'id': 'hy',
'name': 'Hy',
'import': (() => import('./langs/hy')) as DynamicImportLanguageRegistration
},
{
'id': 'imba',
'name': 'Imba',
Expand Down Expand Up @@ -547,9 +570,9 @@ export const bundledLanguagesInfo: BundledLanguageInfo[] = [
'import': (() => import('./langs/liquid')) as DynamicImportLanguageRegistration
},
{
'id': 'lisp',
'name': 'Lisp',
'import': (() => import('./langs/lisp')) as DynamicImportLanguageRegistration
'id': 'log',
'name': 'Log file',
'import': (() => import('./langs/log')) as DynamicImportLanguageRegistration
},
{
'id': 'logo',
Expand Down Expand Up @@ -689,6 +712,15 @@ export const bundledLanguagesInfo: BundledLanguageInfo[] = [
'name': 'PL/SQL',
'import': (() => import('./langs/plsql')) as DynamicImportLanguageRegistration
},
{
'id': 'po',
'name': 'Gettext PO',
'aliases': [
'pot',
'potx'
],
'import': (() => import('./langs/po')) as DynamicImportLanguageRegistration
},
{
'id': 'postcss',
'name': 'PostCSS',
Expand Down Expand Up @@ -754,6 +786,11 @@ export const bundledLanguagesInfo: BundledLanguageInfo[] = [
'name': 'R',
'import': (() => import('./langs/r')) as DynamicImportLanguageRegistration
},
{
'id': 'racket',
'name': 'Racket',
'import': (() => import('./langs/racket')) as DynamicImportLanguageRegistration
},
{
'id': 'raku',
'name': 'Raku',
Expand Down Expand Up @@ -916,6 +953,11 @@ export const bundledLanguagesInfo: BundledLanguageInfo[] = [
'name': 'SystemVerilog',
'import': (() => import('./langs/system-verilog')) as DynamicImportLanguageRegistration
},
{
'id': 'systemd',
'name': 'Systemd Units',
'import': (() => import('./langs/systemd')) as DynamicImportLanguageRegistration
},
{
'id': 'tasl',
'name': 'Tasl',
Expand Down Expand Up @@ -1129,6 +1171,7 @@ export type BundledLanguage =
| 'codeql'
| 'coffee'
| 'coffeescript'
| 'common-lisp'
| 'console'
| 'cpp'
| 'cql'
Expand All @@ -1142,6 +1185,7 @@ export type BundledLanguage =
| 'd'
| 'dart'
| 'dax'
| 'desktop'
| 'diff'
| 'docker'
| 'dockerfile'
Expand All @@ -1159,6 +1203,7 @@ export type BundledLanguage =
| 'f77'
| 'f90'
| 'f95'
| 'fennel'
| 'fish'
| 'for'
| 'fortran-fixed-form'
Expand Down Expand Up @@ -1195,6 +1240,7 @@ export type BundledLanguage =
| 'html'
| 'html-derivative'
| 'http'
| 'hy'
| 'imba'
| 'ini'
| 'jade'
Expand All @@ -1221,6 +1267,7 @@ export type BundledLanguage =
| 'less'
| 'liquid'
| 'lisp'
| 'log'
| 'logo'
| 'lua'
| 'make'
Expand Down Expand Up @@ -1252,7 +1299,10 @@ export type BundledLanguage =
| 'perl6'
| 'php'
| 'plsql'
| 'po'
| 'postcss'
| 'pot'
| 'potx'
| 'powerquery'
| 'powershell'
| 'prisma'
Expand All @@ -1268,6 +1318,7 @@ export type BundledLanguage =
| 'python'
| 'ql'
| 'r'
| 'racket'
| 'raku'
| 'razor'
| 'rb'
Expand Down Expand Up @@ -1302,6 +1353,7 @@ export type BundledLanguage =
| 'svelte'
| 'swift'
| 'system-verilog'
| 'systemd'
| 'tasl'
| 'tcl'
| 'terraform'
Expand Down
14 changes: 14 additions & 0 deletions packages/shiki/src/assets/themes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,12 @@ export const bundledThemesInfo: BundledThemeInfo[] = [
"type": "dark",
"import": (() => import('./themes/one-dark-pro')) as unknown as DynamicImportThemeRegistration
},
{
"id": "one-light",
"displayName": "One Light",
"type": "light",
"import": (() => import('./themes/one-light')) as unknown as DynamicImportThemeRegistration
},
{
"id": "poimandres",
"displayName": "Poimandres",
Expand Down Expand Up @@ -212,6 +218,12 @@ export const bundledThemesInfo: BundledThemeInfo[] = [
"type": "light",
"import": (() => import('./themes/slack-ochin')) as unknown as DynamicImportThemeRegistration
},
{
"id": "snazzy-light",
"displayName": "Snazzy Light",
"type": "light",
"import": (() => import('./themes/snazzy-light')) as unknown as DynamicImportThemeRegistration
},
{
"id": "solarized-dark",
"displayName": "Solarized Dark",
Expand Down Expand Up @@ -291,13 +303,15 @@ export type BundledTheme =
| 'night-owl'
| 'nord'
| 'one-dark-pro'
| 'one-light'
| 'poimandres'
| 'red'
| 'rose-pine'
| 'rose-pine-dawn'
| 'rose-pine-moon'
| 'slack-dark'
| 'slack-ochin'
| 'snazzy-light'
| 'solarized-dark'
| 'solarized-light'
| 'synthwave-84'
Expand Down
6 changes: 3 additions & 3 deletions packages/twoslash/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,10 @@
"twoslash": "^0.2.5"
},
"devDependencies": {
"@iconify-json/carbon": "^1.1.31",
"@iconify-json/codicon": "^1.1.46",
"@iconify-json/carbon": "^1.1.32",
"@iconify-json/codicon": "^1.1.47",
"@shikijs/twoslash": "^3.1.2",
"hast-util-from-html": "^2.0.1",
"typescript": "^5.4.4"
"typescript": "^5.4.5"
}
}
2 changes: 1 addition & 1 deletion packages/vitepress-twoslash/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,6 @@
"shiki": "workspace:*",
"twoslash": "^0.2.5",
"twoslash-vue": "^0.2.5",
"vue": "^3.4.21"
"vue": "^3.4.26"
}
}

0 comments on commit 26f37f0

Please sign in to comment.