Skip to content

Commit 29b1d3a

Browse files
committedAug 1, 2024
feat: new dotenv grammar, new everforest theme
1 parent 4a58472 commit 29b1d3a

File tree

11 files changed

+1497
-933
lines changed

11 files changed

+1497
-933
lines changed
 

‎docs/package.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@
1414
"@iconify-json/svg-spinners": "^1.1.2",
1515
"@shikijs/transformers": "workspace:*",
1616
"@shikijs/twoslash": "workspace:*",
17-
"@unocss/reset": "^0.61.5",
17+
"@unocss/reset": "^0.61.9",
1818
"@vueuse/core": "^10.11.0",
1919
"floating-vue": "^5.2.2",
2020
"pinia": "^2.2.0",
2121
"shiki": "workspace:*",
22-
"unocss": "^0.61.5",
22+
"unocss": "^0.61.9",
2323
"unplugin-vue-components": "^0.27.3",
2424
"vitepress": "^1.3.1",
25-
"vue": "^3.4.34"
25+
"vue": "^3.4.35"
2626
}
2727
}

‎package.json

+8-8
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"prepare": "simple-git-hooks"
1515
},
1616
"devDependencies": {
17-
"@antfu/eslint-config": "^2.23.2",
17+
"@antfu/eslint-config": "^2.24.1",
1818
"@antfu/ni": "^0.22.0",
1919
"@antfu/utils": "^0.7.10",
2020
"@rollup/plugin-alias": "^5.1.0",
@@ -30,11 +30,11 @@
3030
"@shikijs/vitepress-twoslash": "workspace:*",
3131
"@types/fs-extra": "^11.0.4",
3232
"@types/hast": "^3.0.4",
33-
"@types/node": "^20.14.12",
34-
"@vitest/coverage-v8": "^2.0.4",
33+
"@types/node": "^22.0.2",
34+
"@vitest/coverage-v8": "^2.0.5",
3535
"ansi-sequence-parser": "^1.1.1",
3636
"bumpp": "^9.4.1",
37-
"eslint": "^9.7.0",
37+
"eslint": "^9.8.0",
3838
"eslint-plugin-format": "^0.1.2",
3939
"esno": "^4.7.0",
4040
"fast-glob": "^3.3.2",
@@ -49,22 +49,22 @@
4949
"pnpm": "^9.6.0",
5050
"prettier": "^3.3.3",
5151
"rimraf": "^6.0.1",
52-
"rollup": "^4.19.0",
52+
"rollup": "^4.19.2",
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.1",
59+
"taze": "^0.16.3",
6060
"typescript": "^5.5.4",
6161
"unbuild": "^2.0.0",
6262
"vite": "^5.3.5",
6363
"vite-tsconfig-paths": "^4.3.2",
6464
"vitepress-plugin-mermaid": "^2.0.16",
65-
"vitest": "^2.0.4",
65+
"vitest": "^2.0.5",
6666
"vue-tsc": "^2.0.29",
67-
"wrangler": "^3.67.1"
67+
"wrangler": "^3.68.0"
6868
},
6969
"resolutions": {
7070
"@shikijs/compat": "workspace:*",

‎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.15.1",
108-
"tm-themes": "^1.5.7",
107+
"tm-grammars": "^1.16.2",
108+
"tm-themes": "^1.6.0",
109109
"vscode-oniguruma": "^1.7.0"
110110
}
111111
}

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

+6
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,11 @@ export const bundledLanguagesInfo: BundledLanguageInfo[] = [
259259
],
260260
'import': (() => import('./langs/docker')) as DynamicImportLanguageRegistration
261261
},
262+
{
263+
'id': 'dotenv',
264+
'name': 'dotEnv',
265+
'import': (() => import('./langs/dotenv')) as DynamicImportLanguageRegistration
266+
},
262267
{
263268
'id': 'dream-maker',
264269
'name': 'Dream Maker',
@@ -1321,6 +1326,7 @@ export type BundledLanguage =
13211326
| 'diff'
13221327
| 'docker'
13231328
| 'dockerfile'
1329+
| 'dotenv'
13241330
| 'dream-maker'
13251331
| 'edge'
13261332
| 'elisp'

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

+14
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,18 @@ export const bundledThemesInfo: BundledThemeInfo[] = [
6262
"type": "dark",
6363
"import": (() => import('./themes/dracula-soft')) as unknown as DynamicImportThemeRegistration
6464
},
65+
{
66+
"id": "everforest-dark",
67+
"displayName": "Everforest Dark",
68+
"type": "dark",
69+
"import": (() => import('./themes/everforest-dark')) as unknown as DynamicImportThemeRegistration
70+
},
71+
{
72+
"id": "everforest-light",
73+
"displayName": "Everforest Light",
74+
"type": "light",
75+
"import": (() => import('./themes/everforest-light')) as unknown as DynamicImportThemeRegistration
76+
},
6577
{
6678
"id": "github-dark",
6779
"displayName": "GitHub Dark",
@@ -291,6 +303,8 @@ export type BundledTheme =
291303
| 'dark-plus'
292304
| 'dracula'
293305
| 'dracula-soft'
306+
| 'everforest-dark'
307+
| 'everforest-light'
294308
| 'github-dark'
295309
| 'github-dark-default'
296310
| 'github-dark-dimmed'

‎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(`306`)
10+
.toMatchInlineSnapshot(`307`)
1111
})
1212

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

‎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.

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

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

‎packages/vitepress-twoslash/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,6 @@
6161
"shiki": "workspace:*",
6262
"twoslash": "^0.2.9",
6363
"twoslash-vue": "^0.2.9",
64-
"vue": "^3.4.34"
64+
"vue": "^3.4.35"
6565
}
6666
}

‎packages/vitepress-twoslash/test/out/import-vue.ts.json

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

‎pnpm-lock.yaml

+1,172-914
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.