@devframes/service-shiki 1.3.1 → 1.3.3
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/index.d.mts +0 -2
- package/dist/index.mjs +3 -5
- package/package.json +7 -7
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { DevframeServiceDefinition } from "devframe/types";
|
|
2
2
|
import { codeToHast, codeToTokens } from "shiki";
|
|
3
|
-
//#region src/index.d.ts
|
|
4
3
|
export declare const SHIKI_SERVICE_PACKAGE = "@devframes/service-shiki";
|
|
5
4
|
export declare const SHIKI_SERVICE_SCOPE = "devframes:service:shiki";
|
|
6
5
|
/** Dual light/dark theme pair, rendered via Shiki's dual-theme CSS variables. */
|
|
@@ -64,5 +63,4 @@ declare module 'devframe' {
|
|
|
64
63
|
* side too.
|
|
65
64
|
*/
|
|
66
65
|
export declare function createShikiService(options?: ShikiServiceOptions): DevframeServiceDefinition<ShikiServiceApi, ShikiServiceOptions>;
|
|
67
|
-
//#endregion
|
|
68
66
|
export { createShikiService as default };
|
package/dist/index.mjs
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { defineRpcFunction } from "devframe";
|
|
2
2
|
import { hash } from "devframe/utils/hash";
|
|
3
3
|
import { s } from "devframe/utils/simple-schema";
|
|
4
|
-
|
|
5
|
-
var version = "1.3.
|
|
6
|
-
|
|
7
|
-
//#region src/index.ts
|
|
4
|
+
// package.json
|
|
5
|
+
var version = "1.3.3";
|
|
6
|
+
// src/index.ts
|
|
8
7
|
const SHIKI_SERVICE_PACKAGE = "@devframes/service-shiki";
|
|
9
8
|
const SHIKI_SERVICE_SCOPE = "devframes:service:shiki";
|
|
10
9
|
/** Defaults matching the `@antfu/design` light/dark surfaces. */
|
|
@@ -139,5 +138,4 @@ function createShikiService(options) {
|
|
|
139
138
|
}
|
|
140
139
|
};
|
|
141
140
|
}
|
|
142
|
-
//#endregion
|
|
143
141
|
export { SHIKI_DEFAULT_THEMES, SHIKI_SERVICE_PACKAGE, SHIKI_SERVICE_SCOPE, createShikiService, createShikiService as default };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@devframes/service-shiki",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.3.
|
|
4
|
+
"version": "1.3.3",
|
|
5
5
|
"description": "Devframe wire service that renders Shiki syntax highlighting on the server, so plugins stop re-bundling highlighters.",
|
|
6
6
|
"author": "Anthony Fu <anthonyfu117@hotmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -29,16 +29,16 @@
|
|
|
29
29
|
"dist"
|
|
30
30
|
],
|
|
31
31
|
"peerDependencies": {
|
|
32
|
-
"devframe": "1.3.
|
|
32
|
+
"devframe": "1.3.3"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"shiki": "^4.
|
|
35
|
+
"shiki": "^4.6.0"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
|
-
"@types/node": "^26.6.
|
|
39
|
-
"devframe": "1.3.
|
|
40
|
-
"tsdown": "0.23.
|
|
41
|
-
"vitest": "^5.0
|
|
38
|
+
"@types/node": "^26.6.6",
|
|
39
|
+
"devframe": "1.3.3",
|
|
40
|
+
"tsdown": "^0.23.7",
|
|
41
|
+
"vitest": "^5.1.0"
|
|
42
42
|
},
|
|
43
43
|
"scripts": {
|
|
44
44
|
"build": "tsdown",
|