vitepress 2.0.0-alpha.13 → 2.0.0-alpha.14

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/client.d.ts CHANGED
@@ -3,3 +3,12 @@
3
3
  /// <reference types="vite/client" />
4
4
 
5
5
  export * from './dist/client/index.js'
6
+
7
+ declare global {
8
+ interface WindowEventMap {
9
+ 'vitepress:codeGroupTabActivate': Event & {
10
+ /** code block element that was activated */
11
+ detail: Element
12
+ }
13
+ }
14
+ }
@@ -6,7 +6,7 @@ export function useCodeGroups() {
6
6
  Array.from(el.children).forEach((child) => {
7
7
  child.classList.remove('active');
8
8
  });
9
- el.children[0].classList.add('active');
9
+ activate(el.children[0]);
10
10
  });
11
11
  });
12
12
  }
@@ -31,10 +31,14 @@ export function useCodeGroups() {
31
31
  if (!next || current === next)
32
32
  return;
33
33
  current.classList.remove('active');
34
- next.classList.add('active');
34
+ activate(next);
35
35
  const label = group?.querySelector(`label[for="${el.id}"]`);
36
36
  label?.scrollIntoView({ block: 'nearest' });
37
37
  }
38
38
  });
39
39
  }
40
40
  }
41
+ function activate(el) {
42
+ el.classList.add('active');
43
+ window.dispatchEvent(new CustomEvent('vitepress:codeGroupTabActivate', { detail: el }));
44
+ }
@@ -88,8 +88,8 @@ const { isHome, hasSidebar } = useLayout()
88
88
 
89
89
  @media (min-width: 1440px) {
90
90
  .VPContent.has-sidebar {
91
- padding-right: calc((100vw - var(--vp-layout-max-width)) / 2);
92
- padding-left: calc((100vw - var(--vp-layout-max-width)) / 2 + var(--vp-sidebar-width));
91
+ padding-right: calc((100% - var(--vp-layout-max-width)) / 2);
92
+ padding-left: calc((100% - var(--vp-layout-max-width)) / 2 + var(--vp-sidebar-width));
93
93
  }
94
94
  }
95
95
  </style>
@@ -98,12 +98,6 @@ const classes = computed(() => {
98
98
  }
99
99
  }
100
100
 
101
- @media (min-width: 1440px) {
102
- .VPLocalNav.has-sidebar {
103
- padding-left: calc((100vw - var(--vp-layout-max-width)) / 2 + var(--vp-sidebar-width));
104
- }
105
- }
106
-
107
101
  .container {
108
102
  display: flex;
109
103
  justify-content: space-between;
@@ -171,20 +171,14 @@ watchPostEffect(() => {
171
171
  position: relative;
172
172
  z-index: 1;
173
173
  padding-left: var(--vp-sidebar-width);
174
- }
175
-
176
- .VPNavBar.has-sidebar .content-body {
177
174
  padding-right: 32px;
178
175
  }
179
176
  }
180
177
 
181
178
  @media (min-width: 1440px) {
182
179
  .VPNavBar.has-sidebar .content {
183
- padding-left: calc((100vw - var(--vp-layout-max-width)) / 2 + var(--vp-sidebar-width));
184
- }
185
-
186
- .VPNavBar.has-sidebar .content-body {
187
- padding-right: calc((100vw - var(--vp-layout-max-width)) / 2 + 32px);
180
+ padding-left: calc((100% - var(--vp-layout-max-width)) / 2 + var(--vp-sidebar-width));
181
+ padding-right: calc((100% - var(--vp-layout-max-width)) / 2 + 32px);
188
182
  }
189
183
  }
190
184
 
@@ -193,6 +187,8 @@ watchPostEffect(() => {
193
187
  justify-content: flex-end;
194
188
  align-items: center;
195
189
  height: var(--vp-nav-height);
190
+ margin-right: -100vw;
191
+ padding-right: 100vw;
196
192
  transition: background-color 0.5s;
197
193
  }
198
194
 
@@ -252,7 +248,7 @@ watchPostEffect(() => {
252
248
 
253
249
  @media (min-width: 1440px) {
254
250
  .VPNavBar.has-sidebar .divider {
255
- padding-left: calc((100vw - var(--vp-layout-max-width)) / 2 + var(--vp-sidebar-width));
251
+ padding-left: calc((100% - var(--vp-layout-max-width)) / 2 + var(--vp-sidebar-width));
256
252
  }
257
253
  }
258
254
 
@@ -111,8 +111,8 @@ watch(
111
111
 
112
112
  @media (min-width: 1440px) {
113
113
  .VPSidebar {
114
- padding-left: max(32px, calc((100vw - (var(--vp-layout-max-width) - 64px)) / 2));
115
- width: calc((100vw - (var(--vp-layout-max-width) - 64px)) / 2 + var(--vp-sidebar-width) - 32px);
114
+ padding-left: max(32px, calc((100% - (var(--vp-layout-max-width) - 64px)) / 2));
115
+ width: calc((100% - (var(--vp-layout-max-width) - 64px)) / 2 + var(--vp-sidebar-width) - 32px);
116
116
  }
117
117
  }
118
118
 
@@ -1,3 +1,5 @@
1
+ import require$$0 from 'tty';
2
+ import require$$1, { inspect } from 'util';
1
3
  import { webcrypto, createHash } from 'node:crypto';
2
4
  import { createRequire } from 'node:module';
3
5
  import path$1, { win32, posix as posix$1, resolve as resolve$2, join, sep as sep$2, normalize as normalize$4 } from 'node:path';
@@ -12,7 +14,6 @@ import { EventEmitter } from 'node:events';
12
14
  import Stream, { Transform } from 'node:stream';
13
15
  import { StringDecoder } from 'node:string_decoder';
14
16
  import require$$1$1, { resolve as resolve$1, parse as parse$4, basename, sep as sep$1, dirname, normalize as normalize$3, relative, posix as posix$2, join as join$1 } from 'path';
15
- import require$$1, { inspect } from 'util';
16
17
  import fsPromises from 'fs/promises';
17
18
  import { setTimeout as setTimeout$1 } from 'timers/promises';
18
19
  import { tmpdir } from 'os';
@@ -24,12 +25,11 @@ import require$$1$2 from 'string_decoder';
24
25
  import zlib from 'node:zlib';
25
26
  import 'node:stream/promises';
26
27
  import { isBooleanAttr } from '@vue/shared';
27
- import 'node:tty';
28
- import 'node:util';
28
+ import { isatty } from 'node:tty';
29
+ import { inspect as inspect$1, formatWithOptions } from 'node:util';
29
30
  import http from 'node:http';
30
31
  import { setImmediate } from 'node:timers';
31
32
  import * as qs from 'node:querystring';
32
- import require$$0 from 'tty';
33
33
  import require$$0$1 from 'constants';
34
34
  import require$$0$2 from 'stream';
35
35
  import require$$5 from 'assert';
@@ -2356,11 +2356,11 @@ function requireSrc$1 () {
2356
2356
  }
2357
2357
 
2358
2358
  var srcExports$1 = requireSrc$1();
2359
- var _debug = /*@__PURE__*/getDefaultExportFromCjs(srcExports$1);
2359
+ var createDebugger = /*@__PURE__*/getDefaultExportFromCjs(srcExports$1);
2360
2360
 
2361
- _debug("@iconify-loader:custom");
2361
+ createDebugger("@iconify-loader:custom");
2362
2362
 
2363
- _debug("@iconify-loader:icon");
2363
+ createDebugger("@iconify-loader:icon");
2364
2364
 
2365
2365
  var fs$1 = {};
2366
2366
 
@@ -14012,6 +14012,262 @@ const rimraf = Object.assign(rimraf_, {
14012
14012
  });
14013
14013
  rimraf.rimraf = rimraf;
14014
14014
 
14015
+ function coerce(value) {
14016
+ if (value instanceof Error) return value.stack || value.message;
14017
+ return value;
14018
+ }
14019
+ function selectColor(colors, namespace) {
14020
+ let hash = 0;
14021
+ for (let i = 0; i < namespace.length; i++) {
14022
+ hash = (hash << 5) - hash + namespace.charCodeAt(i);
14023
+ hash |= 0;
14024
+ }
14025
+ return colors[Math.abs(hash) % colors.length];
14026
+ }
14027
+ function matchesTemplate(search, template) {
14028
+ let searchIndex = 0;
14029
+ let templateIndex = 0;
14030
+ let starIndex = -1;
14031
+ let matchIndex = 0;
14032
+ while (searchIndex < search.length) if (templateIndex < template.length && (template[templateIndex] === search[searchIndex] || template[templateIndex] === "*")) if (template[templateIndex] === "*") {
14033
+ starIndex = templateIndex;
14034
+ matchIndex = searchIndex;
14035
+ templateIndex++;
14036
+ } else {
14037
+ searchIndex++;
14038
+ templateIndex++;
14039
+ }
14040
+ else if (starIndex !== -1) {
14041
+ templateIndex = starIndex + 1;
14042
+ matchIndex++;
14043
+ searchIndex = matchIndex;
14044
+ } else return false;
14045
+ while (templateIndex < template.length && template[templateIndex] === "*") templateIndex++;
14046
+ return templateIndex === template.length;
14047
+ }
14048
+ function humanize(value) {
14049
+ if (value >= 1e3) return `${(value / 1e3).toFixed(1)}s`;
14050
+ return `${value}ms`;
14051
+ }
14052
+ let globalNamespaces = "";
14053
+ function createDebug$1(namespace, options) {
14054
+ let prevTime;
14055
+ let enableOverride;
14056
+ let namespacesCache;
14057
+ let enabledCache;
14058
+ const debug = (...args) => {
14059
+ if (!debug.enabled) return;
14060
+ const curr = Date.now();
14061
+ const diff = curr - (prevTime || curr);
14062
+ prevTime = curr;
14063
+ args[0] = coerce(args[0]);
14064
+ if (typeof args[0] !== "string") args.unshift("%O");
14065
+ let index = 0;
14066
+ args[0] = args[0].replace(/%([a-z%])/gi, (match, format) => {
14067
+ if (match === "%%") return "%";
14068
+ index++;
14069
+ const formatter = options.formatters[format];
14070
+ if (typeof formatter === "function") {
14071
+ const value = args[index];
14072
+ match = formatter.call(debug, value);
14073
+ args.splice(index, 1);
14074
+ index--;
14075
+ }
14076
+ return match;
14077
+ });
14078
+ options.formatArgs.call(debug, diff, args);
14079
+ debug.log(...args);
14080
+ };
14081
+ debug.extend = function(namespace$1, delimiter = ":") {
14082
+ return createDebug$1(this.namespace + delimiter + namespace$1, {
14083
+ useColors: this.useColors,
14084
+ color: this.color,
14085
+ formatArgs: this.formatArgs,
14086
+ formatters: this.formatters,
14087
+ inspectOpts: this.inspectOpts,
14088
+ log: this.log
14089
+ });
14090
+ };
14091
+ Object.assign(debug, options);
14092
+ debug.namespace = namespace;
14093
+ Object.defineProperty(debug, "enabled", {
14094
+ enumerable: true,
14095
+ configurable: false,
14096
+ get: () => {
14097
+ if (enableOverride != null) return enableOverride;
14098
+ if (namespacesCache !== globalNamespaces) {
14099
+ namespacesCache = globalNamespaces;
14100
+ enabledCache = enabled(namespace);
14101
+ }
14102
+ return enabledCache;
14103
+ },
14104
+ set: (v) => {
14105
+ enableOverride = v;
14106
+ }
14107
+ });
14108
+ return debug;
14109
+ }
14110
+ let names = [];
14111
+ let skips = [];
14112
+ function enable(namespaces$1) {
14113
+ globalNamespaces = namespaces$1;
14114
+ names = [];
14115
+ skips = [];
14116
+ const split = globalNamespaces.trim().replace(/\s+/g, ",").split(",").filter(Boolean);
14117
+ for (const ns of split) if (ns[0] === "-") skips.push(ns.slice(1));
14118
+ else names.push(ns);
14119
+ }
14120
+ function enabled(name) {
14121
+ for (const skip of skips) if (matchesTemplate(name, skip)) return false;
14122
+ for (const ns of names) if (matchesTemplate(name, ns)) return true;
14123
+ return false;
14124
+ }
14125
+
14126
+ const require$3 = createRequire(import.meta.url);
14127
+ const colors = process.stderr.getColorDepth && process.stderr.getColorDepth() > 2 ? [
14128
+ 20,
14129
+ 21,
14130
+ 26,
14131
+ 27,
14132
+ 32,
14133
+ 33,
14134
+ 38,
14135
+ 39,
14136
+ 40,
14137
+ 41,
14138
+ 42,
14139
+ 43,
14140
+ 44,
14141
+ 45,
14142
+ 56,
14143
+ 57,
14144
+ 62,
14145
+ 63,
14146
+ 68,
14147
+ 69,
14148
+ 74,
14149
+ 75,
14150
+ 76,
14151
+ 77,
14152
+ 78,
14153
+ 79,
14154
+ 80,
14155
+ 81,
14156
+ 92,
14157
+ 93,
14158
+ 98,
14159
+ 99,
14160
+ 112,
14161
+ 113,
14162
+ 128,
14163
+ 129,
14164
+ 134,
14165
+ 135,
14166
+ 148,
14167
+ 149,
14168
+ 160,
14169
+ 161,
14170
+ 162,
14171
+ 163,
14172
+ 164,
14173
+ 165,
14174
+ 166,
14175
+ 167,
14176
+ 168,
14177
+ 169,
14178
+ 170,
14179
+ 171,
14180
+ 172,
14181
+ 173,
14182
+ 178,
14183
+ 179,
14184
+ 184,
14185
+ 185,
14186
+ 196,
14187
+ 197,
14188
+ 198,
14189
+ 199,
14190
+ 200,
14191
+ 201,
14192
+ 202,
14193
+ 203,
14194
+ 204,
14195
+ 205,
14196
+ 206,
14197
+ 207,
14198
+ 208,
14199
+ 209,
14200
+ 214,
14201
+ 215,
14202
+ 220,
14203
+ 221
14204
+ ] : [
14205
+ 6,
14206
+ 2,
14207
+ 3,
14208
+ 4,
14209
+ 5,
14210
+ 1
14211
+ ];
14212
+ const inspectOpts = Object.keys(process.env).filter((key) => /^debug_/i.test(key)).reduce((obj, key) => {
14213
+ const prop = key.slice(6).toLowerCase().replace(/_([a-z])/g, (_, k) => k.toUpperCase());
14214
+ let value = process.env[key];
14215
+ if (value === "null") value = null;
14216
+ else if (/^yes|on|true|enabled$/i.test(value)) value = true;
14217
+ else if (/^no|off|false|disabled$/i.test(value)) value = false;
14218
+ else value = Number(value);
14219
+ obj[prop] = value;
14220
+ return obj;
14221
+ }, {});
14222
+ function useColors() {
14223
+ return "colors" in inspectOpts ? Boolean(inspectOpts.colors) : isatty(process.stderr.fd);
14224
+ }
14225
+ let humanize$1;
14226
+ try {
14227
+ humanize$1 = require$3("ms");
14228
+ } catch (_unused) {
14229
+ humanize$1 = humanize;
14230
+ }
14231
+ function getDate() {
14232
+ if (inspectOpts.hideDate) return "";
14233
+ return `${(/* @__PURE__ */ new Date()).toISOString()} `;
14234
+ }
14235
+ function formatArgs(diff, args) {
14236
+ const { namespace: name, useColors: useColors$1 } = this;
14237
+ if (useColors$1) {
14238
+ const c = this.color;
14239
+ const colorCode = `\u001B[3${c < 8 ? c : `8;5;${c}`}`;
14240
+ const prefix = ` ${colorCode};1m${name} \u001B[0m`;
14241
+ args[0] = prefix + args[0].split("\n").join(`\n${prefix}`);
14242
+ args.push(`${colorCode}m+${humanize$1(diff)}\u001B[0m`);
14243
+ } else args[0] = `${getDate()}${name} ${args[0]}`;
14244
+ }
14245
+ function log$1(...args) {
14246
+ process.stderr.write(`${formatWithOptions(this.inspectOpts, ...args)}\n`);
14247
+ }
14248
+ const defaultOptions$1 = {
14249
+ useColors: useColors(),
14250
+ formatArgs,
14251
+ formatters: {
14252
+ o(v) {
14253
+ this.inspectOpts.colors = this.useColors;
14254
+ return inspect$1(v, this.inspectOpts).split("\n").map((str) => str.trim()).join(" ");
14255
+ },
14256
+ O(v) {
14257
+ this.inspectOpts.colors = this.useColors;
14258
+ return inspect$1(v, this.inspectOpts);
14259
+ }
14260
+ },
14261
+ inspectOpts,
14262
+ log: log$1
14263
+ };
14264
+ function createDebug(namespace, options) {
14265
+ var _ref;
14266
+ const color = (_ref = options) !== null && _ref !== void 0 ? _ref : selectColor(colors, namespace);
14267
+ return createDebug$1(namespace, Object.assign(defaultOptions$1, { color }, options));
14268
+ }
14269
+ enable(process.env.DEBUG || "");
14270
+
14015
14271
  var picocolors = {exports: {}};
14016
14272
 
14017
14273
  var hasRequiredPicocolors;
@@ -18137,7 +18393,7 @@ function isShell(lang) {
18137
18393
  return shellLangs.includes(lang);
18138
18394
  }
18139
18395
 
18140
- const debug$3 = _debug("vitepress:config");
18396
+ const debug$3 = createDebug("vitepress:config");
18141
18397
  const resolve = (root, file) => normalizePath$1(path$1.resolve(root, `.vitepress`, file));
18142
18398
  function defineConfig(config) {
18143
18399
  return config;
@@ -20810,6 +21066,22 @@ function requireLoader () {
20810
21066
  );
20811
21067
  }
20812
21068
 
21069
+ // set a property of a literal object, while protecting against prototype pollution,
21070
+ // see https://github.com/nodeca/js-yaml/issues/164 for more details
21071
+ function setProperty(object, key, value) {
21072
+ // used for this specific key only because Object.defineProperty is slow
21073
+ if (key === '__proto__') {
21074
+ Object.defineProperty(object, key, {
21075
+ configurable: true,
21076
+ enumerable: true,
21077
+ writable: true,
21078
+ value: value
21079
+ });
21080
+ } else {
21081
+ object[key] = value;
21082
+ }
21083
+ }
21084
+
20813
21085
  var simpleEscapeCheck = new Array(256); // integer, for fast access
20814
21086
  var simpleEscapeMap = new Array(256);
20815
21087
  for (var i = 0; i < 256; i++) {
@@ -20967,7 +21239,7 @@ function requireLoader () {
20967
21239
  key = sourceKeys[index];
20968
21240
 
20969
21241
  if (!_hasOwnProperty.call(destination, key)) {
20970
- destination[key] = source[key];
21242
+ setProperty(destination, key, source[key]);
20971
21243
  overridableKeys[key] = true;
20972
21244
  }
20973
21245
  }
@@ -21023,7 +21295,7 @@ function requireLoader () {
21023
21295
  state.position = startPos || state.position;
21024
21296
  throwError(state, 'duplicated mapping key');
21025
21297
  }
21026
- _result[keyNode] = valueNode;
21298
+ setProperty(_result, keyNode, valueNode);
21027
21299
  delete overridableKeys[keyNode];
21028
21300
  }
21029
21301
 
@@ -37867,7 +38139,7 @@ function requireCrossSpawn () {
37867
38139
 
37868
38140
  var crossSpawnExports = requireCrossSpawn();
37869
38141
 
37870
- const debug$2 = _debug("vitepress:git");
38142
+ const debug$2 = createDebug("vitepress:git");
37871
38143
  const cache$2 = /* @__PURE__ */ new Map();
37872
38144
  const RS = 30;
37873
38145
  const NUL = 0;
@@ -38063,7 +38335,7 @@ Include file not found: ${m1}`));
38063
38335
  });
38064
38336
  }
38065
38337
 
38066
- const debug$1 = _debug("vitepress:md");
38338
+ const debug$1 = createDebug("vitepress:md");
38067
38339
  const cache$1 = new LRUCache({ max: 1024 });
38068
38340
  function clearCache(relativePath) {
38069
38341
  if (!relativePath) {
@@ -41921,7 +42193,7 @@ async function task(taskName, task2) {
41921
42193
  spinner.stopAndPersist({ symbol: okMark });
41922
42194
  }
41923
42195
 
41924
- const debug = _debug("vitepress:local-search");
42196
+ const debug = createDebug("vitepress:local-search");
41925
42197
  const LOCAL_SEARCH_INDEX_ID = "@localSearchIndex";
41926
42198
  const LOCAL_SEARCH_INDEX_REQUEST_PATH = "/" + LOCAL_SEARCH_INDEX_ID;
41927
42199
  async function localSearchPlugin(siteConfig) {
@@ -42356,6 +42628,7 @@ async function createVitePressPlugin(siteConfig, ssr = false, pageToHashMap, cli
42356
42628
  });
42357
42629
  }
42358
42630
  if (this.environment.mode === "dev" && this.environment.name === "client") {
42631
+ logDeadLinks(deadLinks, siteConfig.logger, true);
42359
42632
  const payload = {
42360
42633
  path: `/${siteConfig.rewrites.map[relativePath] || relativePath}`,
42361
42634
  pageData
@@ -42371,15 +42644,7 @@ async function createVitePressPlugin(siteConfig, ssr = false, pageToHashMap, cli
42371
42644
  },
42372
42645
  renderStart() {
42373
42646
  if (allDeadLinks.length > 0) {
42374
- allDeadLinks.forEach(({ url, file }, i) => {
42375
- siteConfig.logger.warn(
42376
- c$1.yellow(
42377
- `${i === 0 ? "\n\n" : ""}(!) Found dead link ${c$1.cyan(
42378
- url
42379
- )} in file ${c$1.white(c$1.dim(file))}`
42380
- )
42381
- );
42382
- });
42647
+ logDeadLinks(allDeadLinks, siteConfig.logger);
42383
42648
  siteConfig.logger.info(
42384
42649
  c$1.cyan(
42385
42650
  "\nIf this is expected, you can disable this check via config. Refer: https://vitepress.dev/reference/site-config#ignoredeadlinks\n"
@@ -42520,6 +42785,20 @@ async function createVitePressPlugin(siteConfig, ssr = false, pageToHashMap, cli
42520
42785
  await dynamicRoutesPlugin(siteConfig)
42521
42786
  ];
42522
42787
  }
42788
+ function logDeadLinks(deadLinks, logger, devMode = false) {
42789
+ const logged = /* @__PURE__ */ new Set();
42790
+ deadLinks.forEach(({ url, file }, i) => {
42791
+ const key = `${file}:::${url}`;
42792
+ if (logged.has(key)) return;
42793
+ logged.add(key);
42794
+ const prefix = "\n".repeat(i === 0 ? devMode ? 1 : 2 : 0);
42795
+ logger.warn(
42796
+ c$1.yellow(
42797
+ `${prefix}(!) Found dead link ${c$1.cyan(url)} in file ${c$1.white(c$1.dim(file))}`
42798
+ )
42799
+ );
42800
+ });
42801
+ }
42523
42802
 
42524
42803
  const virtualEntry = "client.js";
42525
42804
  async function buildMPAClient(js, config) {
@@ -45796,7 +46075,7 @@ async function generateSitemap(siteConfig) {
45796
46075
  });
45797
46076
  }
45798
46077
 
45799
- var version = "2.0.0-alpha.13";
46078
+ var version = "2.0.0-alpha.14";
45800
46079
 
45801
46080
  async function renderPage(render, config, page, result, appChunk, cssChunk, assets, pageToHashMap, metadataScript, additionalHeadTags, usedIcons) {
45802
46081
  const routePath = `/${page.replace(/\.md$/, "")}`;
@@ -45967,7 +46246,7 @@ function renderAttrs(attrs) {
45967
46246
  async function minifyScript(code, filename) {
45968
46247
  if (vite.rolldownVersion) {
45969
46248
  const oxcMinify = await import('oxc-minify');
45970
- return oxcMinify.minify(filename, code).code.trim();
46249
+ return (await oxcMinify.minify(filename, code)).code.trim();
45971
46250
  }
45972
46251
  return (await transformWithEsbuild(code, filename, { minify: true })).code.trim();
45973
46252
  }
package/dist/node/cli.js CHANGED
@@ -1,6 +1,8 @@
1
- import { B as getDefaultExportFromCjs, C as c, r as resolveConfig, u as init, b as build, x as serve, y as createServer, D as version, E as clearCache, w as disposeMdItInstance } from './chunk-ChGxanGi.js';
1
+ import { B as getDefaultExportFromCjs, C as c, r as resolveConfig, u as init, b as build, x as serve, y as createServer, D as version, E as clearCache, w as disposeMdItInstance } from './chunk-BvyEjT9v.js';
2
2
  import { createLogger } from 'vite';
3
3
  import 'node:path';
4
+ import 'tty';
5
+ import 'util';
4
6
  import 'node:crypto';
5
7
  import 'node:module';
6
8
  import 'node:url';
@@ -12,7 +14,6 @@ import 'node:events';
12
14
  import 'node:stream';
13
15
  import 'node:string_decoder';
14
16
  import 'path';
15
- import 'util';
16
17
  import 'fs/promises';
17
18
  import 'timers/promises';
18
19
  import 'os';
@@ -27,7 +28,6 @@ import 'node:util';
27
28
  import 'node:http';
28
29
  import 'node:timers';
29
30
  import 'node:querystring';
30
- import 'tty';
31
31
  import 'constants';
32
32
  import 'stream';
33
33
  import 'assert';
@@ -1,8 +1,10 @@
1
1
  import { normalizePath } from 'vite';
2
2
  export { loadEnv } from 'vite';
3
- import { n as normalizeGlob, g as glob, c as createMarkdownRenderer, p as pMap, f as fs, m as matter, s as selectorParser } from './chunk-ChGxanGi.js';
4
- export { S as ScaffoldThemeType, b as build, z as cacheAllGitTimestamps, y as createServer, h as defineAdditionalConfig, e as defineConfig, i as defineConfigWithTheme, a as defineLoader, d as defineRoutes, w as disposeMdItInstance, A as getGitTimestamp, u as init, j as isAdditionalConfigFile, l as mergeConfig, r as resolveConfig, q as resolvePages, o as resolveSiteData, t as resolveSiteDataByRoute, k as resolveUserConfig, v as scaffold, x as serve } from './chunk-ChGxanGi.js';
3
+ import { n as normalizeGlob, g as glob, c as createMarkdownRenderer, p as pMap, f as fs, m as matter, s as selectorParser } from './chunk-BvyEjT9v.js';
4
+ export { S as ScaffoldThemeType, b as build, z as cacheAllGitTimestamps, y as createServer, h as defineAdditionalConfig, e as defineConfig, i as defineConfigWithTheme, a as defineLoader, d as defineRoutes, w as disposeMdItInstance, A as getGitTimestamp, u as init, j as isAdditionalConfigFile, l as mergeConfig, r as resolveConfig, q as resolvePages, o as resolveSiteData, t as resolveSiteDataByRoute, k as resolveUserConfig, v as scaffold, x as serve } from './chunk-BvyEjT9v.js';
5
5
  import path from 'node:path';
6
+ import 'tty';
7
+ import 'util';
6
8
  import 'node:crypto';
7
9
  import 'node:module';
8
10
  import 'node:url';
@@ -14,7 +16,6 @@ import 'node:events';
14
16
  import 'node:stream';
15
17
  import 'node:string_decoder';
16
18
  import 'path';
17
- import 'util';
18
19
  import 'fs/promises';
19
20
  import 'timers/promises';
20
21
  import 'os';
@@ -29,7 +30,6 @@ import 'node:util';
29
30
  import 'node:http';
30
31
  import 'node:timers';
31
32
  import 'node:querystring';
32
- import 'tty';
33
33
  import 'constants';
34
34
  import 'stream';
35
35
  import 'assert';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vitepress",
3
- "version": "2.0.0-alpha.13",
3
+ "version": "2.0.0-alpha.14",
4
4
  "description": "Vite & Vue powered static site generator",
5
5
  "keywords": [
6
6
  "vite",
@@ -59,13 +59,13 @@
59
59
  "dependencies": {
60
60
  "@docsearch/css": "^4.3.2",
61
61
  "@docsearch/js": "^4.3.2",
62
- "@iconify-json/simple-icons": "^1.2.58",
62
+ "@iconify-json/simple-icons": "^1.2.59",
63
63
  "@shikijs/core": "^3.15.0",
64
64
  "@shikijs/transformers": "^3.15.0",
65
65
  "@shikijs/types": "^3.15.0",
66
66
  "@types/markdown-it": "^14.1.2",
67
67
  "@vitejs/plugin-vue": "^6.0.1",
68
- "@vue/devtools-api": "^8.0.3",
68
+ "@vue/devtools-api": "^8.0.5",
69
69
  "@vue/shared": "^3.5.24",
70
70
  "@vueuse/core": "^14.0.0",
71
71
  "@vueuse/integrations": "^14.0.0",
@@ -93,7 +93,6 @@
93
93
  "@rollup/plugin-node-resolve": "^16.0.3",
94
94
  "@rollup/plugin-replace": "^6.0.3",
95
95
  "@types/cross-spawn": "^6.0.6",
96
- "@types/debug": "^4.1.12",
97
96
  "@types/fs-extra": "^11.0.4",
98
97
  "@types/lodash.template": "^4.5.3",
99
98
  "@types/mark.js": "^8.11.12",
@@ -105,10 +104,10 @@
105
104
  "@types/picomatch": "^4.0.2",
106
105
  "@types/prompts": "^2.4.9",
107
106
  "chokidar": "^4.0.3",
108
- "conventional-changelog-cli": "^5.0.0",
107
+ "conventional-changelog": "^7.1.1",
108
+ "conventional-changelog-angular": "^8.1.0",
109
109
  "cross-spawn": "^7.0.6",
110
- "debug": "^4.4.3",
111
- "esbuild": "^0.25.0",
110
+ "esbuild": "^0.25.12",
112
111
  "execa": "^9.6.0",
113
112
  "fs-extra": "^11.3.2",
114
113
  "get-port": "^7.1.0",
@@ -126,8 +125,9 @@
126
125
  "markdown-it-mathjax3": "^4.3.2",
127
126
  "minimist": "^1.2.8",
128
127
  "nanoid": "^5.1.6",
128
+ "obug": "^2.0.0",
129
129
  "ora": "^9.0.0",
130
- "oxc-minify": "^0.97.0",
130
+ "oxc-minify": "^0.98.0",
131
131
  "p-map": "^7.0.4",
132
132
  "package-directory": "^8.1.0",
133
133
  "path-to-regexp": "^6.3.0",
@@ -151,7 +151,7 @@
151
151
  "tinyglobby": "^0.2.15",
152
152
  "typescript": "^5.9.3",
153
153
  "vitest": "4.0.0-beta.4",
154
- "vue-tsc": "^3.1.3",
154
+ "vue-tsc": "^3.1.4",
155
155
  "wait-on": "^9.0.3"
156
156
  },
157
157
  "peerDependencies": {