shiki 3.22.0 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundle-full.d.mts +16 -19
- package/dist/bundle-full.mjs +40 -23
- package/dist/bundle-web.d.mts +17 -20
- package/dist/bundle-web.mjs +351 -355
- package/dist/chunk-CtajNgzt.mjs +36 -0
- package/dist/core-unwasm.d.mts +1 -1
- package/dist/core-unwasm.mjs +12 -3
- package/dist/core.d.mts +2 -5
- package/dist/core.mjs +5 -1
- package/dist/engine-javascript.d.mts +1 -1
- package/dist/engine-javascript.mjs +3 -1
- package/dist/engine-oniguruma.d.mts +1 -1
- package/dist/engine-oniguruma.mjs +11 -1
- package/dist/index.d.mts +15 -10
- package/dist/index.mjs +34 -6
- package/dist/langs/bird.d.mts +1 -0
- package/dist/langs/bird.mjs +1 -0
- package/dist/langs/bird2.d.mts +1 -0
- package/dist/langs/bird2.mjs +1 -0
- package/dist/langs/just.d.mts +1 -0
- package/dist/langs/just.mjs +1 -0
- package/dist/langs/nextflow-groovy.d.mts +1 -0
- package/dist/langs/nextflow-groovy.mjs +1 -0
- package/dist/langs-bundle-full-C-zczmvu.d.mts +14 -0
- package/dist/langs-bundle-full-CQWtMIqW.mjs +1284 -0
- package/dist/langs.d.mts +2 -14
- package/dist/langs.mjs +2 -1411
- package/dist/textmate.d.mts +1 -1
- package/dist/textmate.mjs +3 -1
- package/dist/themes/horizon-bright.d.mts +1 -0
- package/dist/themes/horizon-bright.mjs +1 -0
- package/dist/themes.d.mts +5 -5
- package/dist/themes.mjs +393 -385
- package/dist/types.d.mts +7 -8
- package/dist/types.mjs +1 -1
- package/dist/wasm.d.mts +3 -2
- package/dist/wasm.mjs +5 -2
- package/package.json +14 -11
package/dist/types.d.mts
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
import '@shikijs/types';
|
|
1
|
+
import { t as BundledLanguage } from "./langs-bundle-full-C-zczmvu.mjs";
|
|
2
|
+
import { BundledTheme } from "./themes.mjs";
|
|
3
|
+
import "./langs.mjs";
|
|
4
|
+
export * from "@shikijs/core/types";
|
|
6
5
|
|
|
6
|
+
//#region src/types.d.ts
|
|
7
7
|
type BuiltinLanguage = BundledLanguage;
|
|
8
8
|
type BuiltinTheme = BundledTheme;
|
|
9
|
-
|
|
10
|
-
export { BundledLanguage, BundledTheme };
|
|
11
|
-
export type { BuiltinLanguage, BuiltinTheme };
|
|
9
|
+
//#endregion
|
|
10
|
+
export { BuiltinLanguage, BuiltinTheme, type BundledLanguage, type BundledTheme };
|
package/dist/types.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
export { };
|
package/dist/wasm.d.mts
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
export
|
|
1
|
+
import wasm_inlined_default from "@shikijs/engine-oniguruma/wasm-inlined";
|
|
2
|
+
export * from "@shikijs/engine-oniguruma/wasm-inlined";
|
|
3
|
+
export { wasm_inlined_default as default };
|
package/dist/wasm.mjs
CHANGED
|
@@ -1,2 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import wasm_inlined_default from "@shikijs/engine-oniguruma/wasm-inlined";
|
|
2
|
+
|
|
3
|
+
export * from "@shikijs/engine-oniguruma/wasm-inlined"
|
|
4
|
+
|
|
5
|
+
export { wasm_inlined_default as default };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "shiki",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "4.0.0",
|
|
5
5
|
"description": "A beautiful Syntax Highlighter.",
|
|
6
6
|
"author": "Pine Wu <octref@gmail.com>; Anthony Fu <anthonyfu117@hotmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -45,25 +45,28 @@
|
|
|
45
45
|
"files": [
|
|
46
46
|
"dist"
|
|
47
47
|
],
|
|
48
|
+
"engines": {
|
|
49
|
+
"node": ">=20"
|
|
50
|
+
},
|
|
48
51
|
"dependencies": {
|
|
49
52
|
"@shikijs/vscode-textmate": "^10.0.2",
|
|
50
53
|
"@types/hast": "^3.0.4",
|
|
51
|
-
"@shikijs/core": "
|
|
52
|
-
"@shikijs/engine-oniguruma": "
|
|
53
|
-
"@shikijs/
|
|
54
|
-
"@shikijs/
|
|
55
|
-
"@shikijs/themes": "
|
|
56
|
-
"@shikijs/types": "
|
|
54
|
+
"@shikijs/core": "4.0.0",
|
|
55
|
+
"@shikijs/engine-oniguruma": "4.0.0",
|
|
56
|
+
"@shikijs/langs": "4.0.0",
|
|
57
|
+
"@shikijs/engine-javascript": "4.0.0",
|
|
58
|
+
"@shikijs/themes": "4.0.0",
|
|
59
|
+
"@shikijs/types": "4.0.0"
|
|
57
60
|
},
|
|
58
61
|
"devDependencies": {
|
|
59
62
|
"rollup-plugin-copy": "^3.5.0",
|
|
60
|
-
"tm-grammars": "^1.
|
|
61
|
-
"tm-themes": "^1.
|
|
63
|
+
"tm-grammars": "^1.31.0",
|
|
64
|
+
"tm-themes": "^1.12.0",
|
|
62
65
|
"vscode-oniguruma": "1.7.0"
|
|
63
66
|
},
|
|
64
67
|
"scripts": {
|
|
65
|
-
"build": "
|
|
66
|
-
"dev": "
|
|
68
|
+
"build": "tsdown",
|
|
69
|
+
"dev": "tsdown --watch",
|
|
67
70
|
"test": "vitest",
|
|
68
71
|
"test:cf": "wrangler dev test/cf.ts --port 60001"
|
|
69
72
|
}
|