@devframes/service-shiki 0.9.7 → 0.9.9

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 CHANGED
@@ -57,7 +57,7 @@ declare module 'devframe' {
57
57
  }
58
58
  }
59
59
  /**
60
- * The Shiki wire service — server-side syntax highlighting shared by every
60
+ * The Shiki wire service: server-side syntax highlighting shared by every
61
61
  * plugin on the host, so client bundles stop shipping their own grammars and
62
62
  * themes. Shiki itself loads lazily on first use; results are LRU-cached per
63
63
  * `(code, lang, themes)` and every RPC function is `cacheable` on the client
package/dist/index.mjs CHANGED
@@ -2,7 +2,7 @@ import { defineRpcFunction } from "devframe";
2
2
  import { hash } from "devframe/utils/hash";
3
3
  import { s } from "devframe/utils/simple-schema";
4
4
  //#region package.json
5
- var version = "0.9.7";
5
+ var version = "0.9.9";
6
6
  //#endregion
7
7
  //#region src/index.ts
8
8
  const SHIKI_SERVICE_PACKAGE = "@devframes/service-shiki";
@@ -12,7 +12,7 @@ const SHIKI_DEFAULT_THEMES = {
12
12
  light: "vitesse-light",
13
13
  dark: "vitesse-dark"
14
14
  };
15
- /** Tiny insertion-order LRU — enough to absorb re-renders of the same code. */
15
+ /** Tiny insertion-order LRU, enough to absorb re-renders of the same code. */
16
16
  var Lru = class {
17
17
  max;
18
18
  map = /* @__PURE__ */ new Map();
@@ -41,7 +41,7 @@ const inputSchema = s.object({
41
41
  }))
42
42
  });
43
43
  /**
44
- * The Shiki wire service — server-side syntax highlighting shared by every
44
+ * The Shiki wire service: server-side syntax highlighting shared by every
45
45
  * plugin on the host, so client bundles stop shipping their own grammars and
46
46
  * themes. Shiki itself loads lazily on first use; results are LRU-cached per
47
47
  * `(code, lang, themes)` and every RPC function is `cacheable` on the client
@@ -53,6 +53,10 @@ function createShikiService(options) {
53
53
  version,
54
54
  scope: SHIKI_SERVICE_SCOPE,
55
55
  options,
56
+ /**
57
+ * Option sets from multiple installers merge via devframe's default
58
+ * deep-merge: `langs` union, `themes` deep-merged (per-key last-wins).
59
+ */
56
60
  setup(ctx, { options }) {
57
61
  const defaultThemes = options?.themes ?? SHIKI_DEFAULT_THEMES;
58
62
  let shikiPromise;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@devframes/service-shiki",
3
3
  "type": "module",
4
- "version": "0.9.7",
4
+ "version": "0.9.9",
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": "0.9.7"
32
+ "devframe": "0.9.9"
33
33
  },
34
34
  "dependencies": {
35
35
  "shiki": "^4.4.3"
36
36
  },
37
37
  "devDependencies": {
38
- "@types/node": "^26.2.0",
38
+ "@types/node": "^26.4.0",
39
+ "devframe": "0.9.9",
39
40
  "tsdown": "^0.22.14",
40
- "vitest": "^4.1.10",
41
- "devframe": "0.9.7"
41
+ "vitest": "^4.1.11"
42
42
  },
43
43
  "scripts": {
44
44
  "build": "tsdown",