vitepress 1.6.3 → 2.0.0-alpha.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.
package/dist/node/cli.js CHANGED
@@ -1,4 +1,4 @@
1
- import { t as getDefaultExportFromCjs, u as c, n as disposeMdItInstance, v as clearCache, l as init, b as build, o as serve, w as version, q as createServer } from './chunk-Zsoi3j4v.js';
1
+ import { t as getDefaultExportFromCjs, u as c, n as disposeMdItInstance, v as clearCache, l as init, b as build, o as serve, w as version, q as createServer } from './chunk-CxQfvv8o.js';
2
2
  import { createLogger } from 'vite';
3
3
  import 'node:path';
4
4
  import 'node:url';
@@ -8,7 +8,7 @@ import { Options as Options$4 } from '@vitejs/plugin-vue';
8
8
  import { UseDarkOptions } from '@vueuse/core';
9
9
  import { TransformOptions } from 'stream';
10
10
  import { ThemeRegistrationAny, LanguageInput, ShikiTransformer } from '@shikijs/types';
11
- import { BuiltinTheme, Highlighter } from 'shiki';
11
+ import { BuiltinTheme, BuiltinLanguage, Highlighter } from 'shiki';
12
12
  import { Root } from 'postcss';
13
13
  import { IncomingMessage, ServerResponse } from 'http';
14
14
  import { Server, ListenOptions } from 'net';
@@ -2045,11 +2045,11 @@ interface MarkdownOptions extends Options$2 {
2045
2045
  /**
2046
2046
  * Setup markdown-it instance before applying plugins
2047
2047
  */
2048
- preConfig?: (md: MarkdownIt) => void;
2048
+ preConfig?: (md: MarkdownIt) => Awaited<void>;
2049
2049
  /**
2050
2050
  * Setup markdown-it instance
2051
2051
  */
2052
- config?: (md: MarkdownIt) => void;
2052
+ config?: (md: MarkdownIt) => Awaited<void>;
2053
2053
  /**
2054
2054
  * Disable cache (experimental)
2055
2055
  */
@@ -2070,10 +2070,10 @@ interface MarkdownOptions extends Options$2 {
2070
2070
  */
2071
2071
  theme?: ThemeOptions;
2072
2072
  /**
2073
- * Languages for syntax highlighting.
2073
+ * Custom languages for syntax highlighting or pre-load built-in languages.
2074
2074
  * @see https://shiki.style/languages
2075
2075
  */
2076
- languages?: LanguageInput[];
2076
+ languages?: (LanguageInput | BuiltinLanguage)[];
2077
2077
  /**
2078
2078
  * Custom language aliases.
2079
2079
  *
@@ -1,7 +1,7 @@
1
1
  import { normalizePath } from 'vite';
2
2
  export { loadEnv } from 'vite';
3
- import { g as glob, c as createMarkdownRenderer, f as fs, m as matter, p as postcssPrefixSelector } from './chunk-Zsoi3j4v.js';
4
- export { S as ScaffoldThemeType, b as build, q as createServer, a as defineConfig, e as defineConfigWithTheme, d as defineLoader, n as disposeMdItInstance, l as init, i as mergeConfig, r as resolveConfig, k as resolvePages, j as resolveSiteData, h as resolveUserConfig, s as scaffold, o as serve } from './chunk-Zsoi3j4v.js';
3
+ import { g as glob, c as createMarkdownRenderer, f as fs, m as matter, p as postcssPrefixSelector } from './chunk-CxQfvv8o.js';
4
+ export { S as ScaffoldThemeType, b as build, q as createServer, a as defineConfig, e as defineConfigWithTheme, d as defineLoader, n as disposeMdItInstance, l as init, i as mergeConfig, r as resolveConfig, k as resolvePages, j as resolveSiteData, h as resolveUserConfig, s as scaffold, o as serve } from './chunk-CxQfvv8o.js';
5
5
  import path from 'node:path';
6
6
  import 'node:crypto';
7
7
  import 'node:module';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vitepress",
3
- "version": "1.6.3",
3
+ "version": "2.0.0-alpha.2",
4
4
  "description": "Vite & Vue powered static site generator",
5
5
  "keywords": [
6
6
  "vite",
@@ -57,8 +57,8 @@
57
57
  "*": "prettier --write --ignore-unknown"
58
58
  },
59
59
  "dependencies": {
60
- "@docsearch/css": "3.8.2",
61
- "@docsearch/js": "3.8.2",
60
+ "@docsearch/css": "^3.8.3",
61
+ "@docsearch/js": "^3.8.3",
62
62
  "@iconify-json/simple-icons": "^1.2.21",
63
63
  "@shikijs/core": "^2.1.0",
64
64
  "@shikijs/transformers": "^2.1.0",
@@ -67,13 +67,13 @@
67
67
  "@vitejs/plugin-vue": "^5.2.1",
68
68
  "@vue/devtools-api": "^7.7.0",
69
69
  "@vue/shared": "^3.5.13",
70
- "@vueuse/core": "^12.4.0",
71
- "@vueuse/integrations": "^12.4.0",
70
+ "@vueuse/core": "^12.5.0",
71
+ "@vueuse/integrations": "^12.5.0",
72
72
  "focus-trap": "^7.6.4",
73
73
  "mark.js": "8.11.1",
74
74
  "minisearch": "^7.1.1",
75
75
  "shiki": "^2.1.0",
76
- "vite": "^5.4.14",
76
+ "vite": "^6.0.11",
77
77
  "vue": "^3.5.13"
78
78
  },
79
79
  "devDependencies": {
@@ -100,9 +100,9 @@
100
100
  "@types/markdown-it-attrs": "^4.1.3",
101
101
  "@types/markdown-it-container": "^2.0.10",
102
102
  "@types/markdown-it-emoji": "^3.0.1",
103
- "@types/micromatch": "^4.0.9",
104
103
  "@types/minimist": "^1.2.5",
105
- "@types/node": "^22.10.7",
104
+ "@types/node": "^22.10.9",
105
+ "@types/picomatch": "^3.0.2",
106
106
  "@types/postcss-prefix-selector": "^1.16.3",
107
107
  "@types/prompts": "^2.4.9",
108
108
  "chokidar": "^4.0.3",
@@ -114,7 +114,7 @@
114
114
  "fs-extra": "^11.3.0",
115
115
  "get-port": "^7.1.0",
116
116
  "gray-matter": "^4.0.3",
117
- "lint-staged": "^15.4.1",
117
+ "lint-staged": "^15.4.2",
118
118
  "lodash.template": "^4.5.0",
119
119
  "lru-cache": "^11.0.2",
120
120
  "markdown-it": "^14.1.0",
@@ -123,15 +123,15 @@
123
123
  "markdown-it-container": "^4.0.0",
124
124
  "markdown-it-emoji": "^3.0.0",
125
125
  "markdown-it-mathjax3": "^4.3.2",
126
- "micromatch": "^4.0.8",
127
126
  "minimist": "^1.2.8",
128
127
  "nanoid": "^5.0.9",
129
128
  "ora": "^8.1.1",
130
129
  "p-map": "^7.0.3",
131
130
  "path-to-regexp": "^6.3.0",
132
131
  "picocolors": "^1.1.1",
132
+ "picomatch": "^4.0.2",
133
133
  "pkg-dir": "^8.0.0",
134
- "playwright-chromium": "^1.49.1",
134
+ "playwright-chromium": "^1.50.0",
135
135
  "polka": "^1.0.0-next.28",
136
136
  "postcss-prefix-selector": "^2.1.0",
137
137
  "prettier": "^3.4.2",
@@ -148,7 +148,7 @@
148
148
  "synckit": "^0.9.2",
149
149
  "tinyglobby": "^0.2.10",
150
150
  "typescript": "^5.7.3",
151
- "vitest": "^3.0.3",
151
+ "vitest": "^3.0.4",
152
152
  "vue-tsc": "^2.2.0",
153
153
  "wait-on": "^8.0.2"
154
154
  },