@slidev/cli 51.0.1 → 51.0.2

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.
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  resolveViteConfigs
3
- } from "./chunk-3JQYTPPL.js";
3
+ } from "./chunk-3A4H5O5K.js";
4
4
  import "./chunk-UNQ5DBLZ.js";
5
5
 
6
6
  // node/commands/build.ts
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-UNQ5DBLZ.js";
10
10
 
11
11
  // package.json
12
- var version = "51.0.1";
12
+ var version = "51.0.2";
13
13
 
14
14
  // node/integrations/themes.ts
15
15
  import { join } from "node:path";
@@ -788,13 +788,14 @@ var templateShiki = {
788
788
  const lines = [];
789
789
  lines.push(
790
790
  `import { createHighlighterCore } from "${await resolveImportUrl("shiki/core")}"`,
791
+ `import { createJavaScriptRegexEngine } from "${await resolveImportUrl("@shikijs/engine-javascript")}"`,
791
792
  `export { shikiToMonaco } from "${await resolveImportUrl("@shikijs/monaco")}"`,
792
793
  `export const languages = ${JSON.stringify(langNames)}`,
793
794
  `export const themes = ${JSON.stringify(themeOptionsNames.themes || themeOptionsNames.theme)}`,
794
795
  "export const shiki = createHighlighterCore({",
795
796
  ` themes: [${themesInit.join(",")}],`,
796
797
  ` langs: [${langsInit.join(",")}],`,
797
- ` loadWasm: import('${await resolveImportUrl("shiki/wasm")}'),`,
798
+ ` engine: createJavaScriptRegexEngine(),`,
798
799
  "})",
799
800
  "let highlight",
800
801
  "export async function getHighlighter() {",
@@ -2086,10 +2087,10 @@ async function createMarkdownPlugin(options, { markdown: mdOptions }) {
2086
2087
  },
2087
2088
  transforms: {
2088
2089
  ...mdOptions?.transforms,
2089
- before(code, id) {
2090
+ async before(code, id) {
2090
2091
  if (options.data.markdownFiles[id])
2091
2092
  return "";
2092
- code = mdOptions?.transforms?.before?.(code, id) ?? code;
2093
+ code = await mdOptions?.transforms?.before?.(code, id) ?? code;
2093
2094
  const match = id.match(regexSlideSourceId);
2094
2095
  if (!match)
2095
2096
  return code;
@@ -2103,7 +2104,7 @@ async function createMarkdownPlugin(options, { markdown: mdOptions }) {
2103
2104
  for (const transformer of transformers) {
2104
2105
  if (!transformer)
2105
2106
  continue;
2106
- transformer(ctx);
2107
+ await transformer(ctx);
2107
2108
  if (!ctx.s.isEmpty())
2108
2109
  ctx.s.commit();
2109
2110
  }
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  resolveViteConfigs
3
- } from "./chunk-3JQYTPPL.js";
3
+ } from "./chunk-3A4H5O5K.js";
4
4
 
5
5
  // node/commands/serve.ts
6
6
  import { join } from "node:path";
package/dist/cli.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  createServer
3
- } from "./chunk-UF7FZDYU.js";
3
+ } from "./chunk-ZZDNBP5E.js";
4
4
  import {
5
5
  getThemeMeta,
6
6
  loadSetups,
@@ -9,7 +9,7 @@ import {
9
9
  resolveOptions,
10
10
  resolveTheme,
11
11
  version
12
- } from "./chunk-3JQYTPPL.js";
12
+ } from "./chunk-3A4H5O5K.js";
13
13
  import {
14
14
  getRoots,
15
15
  isInstalledGlobally,
@@ -332,7 +332,7 @@ cli.command(
332
332
  }).strict().help(),
333
333
  async (args) => {
334
334
  const { entry, theme, base, download, out, inspect } = args;
335
- const { build } = await import("./build-47SVPVZN.js");
335
+ const { build } = await import("./build-6ISJRAZE.js");
336
336
  for (const entryFile of entry) {
337
337
  const options = await resolveOptions({ entry: entryFile, theme, inspect, download }, "build");
338
338
  printInfo(options);
package/dist/index.js CHANGED
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  createServer
3
- } from "./chunk-UF7FZDYU.js";
3
+ } from "./chunk-ZZDNBP5E.js";
4
4
  import {
5
5
  ViteSlidevPlugin,
6
6
  createDataUtils,
7
7
  parser,
8
8
  resolveOptions
9
- } from "./chunk-3JQYTPPL.js";
9
+ } from "./chunk-3A4H5O5K.js";
10
10
  import "./chunk-UNQ5DBLZ.js";
11
11
  export {
12
12
  ViteSlidevPlugin,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@slidev/cli",
3
3
  "type": "module",
4
- "version": "51.0.1",
4
+ "version": "51.0.2",
5
5
  "description": "Presentation slides for developers",
6
6
  "author": "antfu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",
@@ -43,16 +43,16 @@
43
43
  },
44
44
  "dependencies": {
45
45
  "@antfu/ni": "^23.2.0",
46
- "@antfu/utils": "^8.0.0",
46
+ "@antfu/utils": "^8.1.0",
47
47
  "@iconify-json/carbon": "^1.2.5",
48
48
  "@iconify-json/ph": "^1.2.2",
49
49
  "@iconify-json/svg-spinners": "^1.2.2",
50
50
  "@lillallol/outline-pdf": "^4.0.0",
51
- "@shikijs/markdown-it": "^1.26.1",
52
- "@shikijs/twoslash": "^1.26.1",
53
- "@shikijs/vitepress-twoslash": "^1.26.1",
54
- "@unocss/extractor-mdc": "^65.4.0",
55
- "@unocss/reset": "^65.4.0",
51
+ "@shikijs/markdown-it": "^2.0.0",
52
+ "@shikijs/twoslash": "^2.0.0",
53
+ "@shikijs/vitepress-twoslash": "^2.0.0",
54
+ "@unocss/extractor-mdc": "^65.4.2",
55
+ "@unocss/reset": "^65.4.2",
56
56
  "@vitejs/plugin-vue": "^5.2.1",
57
57
  "@vitejs/plugin-vue-jsx": "^4.1.1",
58
58
  "chokidar": "^4.0.3",
@@ -61,13 +61,13 @@
61
61
  "debug": "^4.4.0",
62
62
  "fast-deep-equal": "^3.1.3",
63
63
  "fast-glob": "^3.3.3",
64
- "fs-extra": "^11.2.0",
64
+ "fs-extra": "^11.3.0",
65
65
  "get-port-please": "^3.1.2",
66
66
  "global-directory": "^4.0.1",
67
67
  "htmlparser2": "^10.0.0",
68
68
  "is-installed-globally": "^1.0.0",
69
69
  "jiti": "^2.4.2",
70
- "katex": "^0.16.20",
70
+ "katex": "^0.16.21",
71
71
  "kolorist": "^1.8.0",
72
72
  "local-pkg": "^1.0.0",
73
73
  "lz-string": "^1.5.0",
@@ -89,19 +89,19 @@
89
89
  "resolve-from": "^5.0.0",
90
90
  "resolve-global": "^2.0.0",
91
91
  "semver": "^7.6.3",
92
- "shiki": "^1.26.1",
92
+ "shiki": "^2.0.0",
93
93
  "shiki-magic-move": "^0.5.2",
94
94
  "sirv": "^3.0.0",
95
95
  "source-map-js": "^1.2.1",
96
96
  "typescript": "^5.7.3",
97
- "unocss": "^65.4.0",
97
+ "unocss": "^65.4.2",
98
98
  "unplugin-icons": "^22.0.0",
99
99
  "unplugin-vue-components": "^28.0.0",
100
- "unplugin-vue-markdown": "^28.0.0",
100
+ "unplugin-vue-markdown": "^28.1.0",
101
101
  "untun": "^0.1.3",
102
102
  "uqr": "^0.1.2",
103
- "vite": "^6.0.7",
104
- "vite-plugin-inspect": "^10.0.6",
103
+ "vite": "^6.0.8",
104
+ "vite-plugin-inspect": "^10.0.7",
105
105
  "vite-plugin-remote-assets": "^0.6.0",
106
106
  "vite-plugin-static-copy": "^2.2.0",
107
107
  "vite-plugin-vue-server-ref": "^0.4.2",
@@ -109,9 +109,9 @@
109
109
  "vue": "^3.5.13",
110
110
  "yaml": "^2.7.0",
111
111
  "yargs": "^17.7.2",
112
- "@slidev/parser": "51.0.1",
113
- "@slidev/client": "51.0.1",
114
- "@slidev/types": "51.0.1"
112
+ "@slidev/client": "51.0.2",
113
+ "@slidev/parser": "51.0.2",
114
+ "@slidev/types": "51.0.2"
115
115
  },
116
116
  "devDependencies": {
117
117
  "@hedgedoc/markdown-it-plugins": "^2.1.4",