@void/md 0.10.4 → 0.10.6

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
@@ -1,3 +1,3 @@
1
1
  import { FrontmatterContext, setFrontmatter, useFrontmatter } from "./runtime/index.mjs";
2
- import { n as MdPage } from "./plugin-DYf54GZj.mjs";
2
+ import { n as MdPage } from "./plugin-C5hmq9E_.mjs";
3
3
  export { FrontmatterContext, type MdPage, setFrontmatter, useFrontmatter };
package/dist/plugin.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- import { a as ScriptExtraction, i as IslandImport, n as MdPage, o as CompileOptions, r as voidMarkdown, s as CompileResult, t as MarkdownOptions } from "./plugin-DYf54GZj.mjs";
2
- export { CompileOptions, CompileResult, IslandImport, MarkdownOptions, MdPage, ScriptExtraction, voidMarkdown };
1
+ import { a as ScriptExtraction, i as IslandImport, n as MdPage, o as CompileOptions, r as voidMarkdown, s as CompileResult, t as MarkdownOptions } from "./plugin-C5hmq9E_.mjs";
2
+ export { type CompileOptions, type CompileResult, type IslandImport, MarkdownOptions, MdPage, type ScriptExtraction, voidMarkdown };
package/dist/plugin.mjs CHANGED
@@ -576,7 +576,7 @@ function voidMarkdown(options) {
576
576
  const scriptMod = server.moduleGraph.getModuleById("\0virtual:void-md-script:" + compId);
577
577
  if (scriptMod) server.moduleGraph.invalidateModule(scriptMod);
578
578
  }
579
- const clientMod = server.moduleGraph.getModuleById("\0" + MD_CLIENT_ENTRY_ID);
579
+ const clientMod = server.moduleGraph.getModuleById("\0virtual:void-md-client");
580
580
  if (clientMod) server.moduleGraph.invalidateModule(clientMod);
581
581
  };
582
582
  server.watcher.on("change", handleMdChange);
@@ -586,7 +586,7 @@ function voidMarkdown(options) {
586
586
  resolveId: {
587
587
  filter: { id: /^(@void\/md(\/pages)?|\/@void-md-(svelte|solid)\/|virtual:void-md-(script:|client))/ },
588
588
  handler(source) {
589
- if (source === MD_CLIENT_ENTRY_ID) return "\0" + MD_CLIENT_ENTRY_ID;
589
+ if (source === MD_CLIENT_ENTRY_ID) return "\0virtual:void-md-client";
590
590
  if (source.startsWith("virtual:void-md-script:")) return "\0" + source;
591
591
  if (source === "@void/md") return "\0void-md-runtime";
592
592
  if (source === "@void/md/pages") return "\0void-md-pages";
@@ -596,7 +596,7 @@ function voidMarkdown(options) {
596
596
  load: {
597
597
  filter: { id: /^(\0void-md|\/@void-md-(svelte|solid)\/|\0virtual:void-md-(script:|client))/ },
598
598
  handler(id) {
599
- if (id === "\0" + MD_CLIENT_ENTRY_ID) return generateMdClientEntry(clientScripts);
599
+ if (id === "\0virtual:void-md-client") return generateMdClientEntry(clientScripts);
600
600
  if (id.startsWith("\0virtual:void-md-script:")) {
601
601
  const componentId = id.slice(24);
602
602
  const code = clientScripts.get(componentId);
@@ -652,7 +652,7 @@ export function useFrontmatter() { return useContext(FrontmatterContext) ?? {};
652
652
  const absPath = resolve(dirname(_id), imp.specifier);
653
653
  imp.islandId = normalizePath(relative(root, absPath)).replace(/\.[^.]+$/, "");
654
654
  }
655
- const { compile } = await import("./compile-C9o0MYaR.mjs");
655
+ const { compile } = await import("./compile-BzB3YW8l.mjs");
656
656
  const result = await compile(body, { shiki: options?.shiki });
657
657
  if (adapter === "vue") {
658
658
  if (islandImports.length > 0) return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@void/md",
3
- "version": "0.10.4",
3
+ "version": "0.10.6",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/voidzero-dev/void.git",
@@ -34,29 +34,29 @@
34
34
  "access": "public"
35
35
  },
36
36
  "dependencies": {
37
- "@shikijs/engine-javascript": "^4.0.2",
38
- "@shikijs/transformers": "^4.0.2",
37
+ "@shikijs/engine-javascript": "^4.3.1",
38
+ "@shikijs/transformers": "^4.3.1",
39
39
  "gray-matter": "^4.0.3",
40
- "markdown-exit": "1.0.0-beta.9",
40
+ "markdown-exit": "1.1.0-beta.2",
41
41
  "markdown-it-anchor": "^9.2.0",
42
- "markdown-it-attrs": "^4.3.1",
42
+ "markdown-it-attrs": "^5.0.0",
43
43
  "markdown-it-container": "^4.0.0",
44
44
  "markdown-it-emoji": "^3.0.0",
45
45
  "markdown-it-footnote": "^4.0.0",
46
46
  "pathe": "^2.0.3",
47
- "shiki": "^4.0.2",
48
- "tinyglobby": "^0.2.16"
47
+ "shiki": "^4.3.1",
48
+ "tinyglobby": "^0.2.17"
49
49
  },
50
50
  "devDependencies": {
51
- "@types/node": "^25.6.2",
52
- "vite": "npm:@voidzero-dev/vite-plus-core@0.1.20",
53
- "vite-plus": "^0.1.20",
54
- "vue": "^3.5.34",
55
- "void": "0.10.4"
51
+ "@types/node": "^26.1.0",
52
+ "vite": "npm:@voidzero-dev/vite-plus-core@0.2.2",
53
+ "vite-plus": "^0.2.2",
54
+ "vue": "^3.5.39",
55
+ "void": "0.10.6"
56
56
  },
57
57
  "peerDependencies": {
58
58
  "vite": "^8.0.0",
59
- "void": "0.10.4"
59
+ "void": "0.10.6"
60
60
  },
61
61
  "scripts": {
62
62
  "build": "vp pack",