vitepress
Advanced tools
Comparing version 1.0.0-rc.40 to 1.0.0-rc.41
@@ -1,5 +0,5 @@ | ||
import { setupDevtoolsPlugin } from '@vue/devtools-api'; | ||
import { setupDevToolsPlugin } from '@vue/devtools-api'; | ||
const COMPONENT_STATE_TYPE = 'VitePress'; | ||
export const setupDevtools = (app, router, data) => { | ||
setupDevtoolsPlugin({ | ||
setupDevToolsPlugin({ | ||
// fix recursive reference | ||
@@ -13,2 +13,3 @@ app: app, | ||
}, (api) => { | ||
// TODO: remove any | ||
api.on.inspectComponent((payload) => { | ||
@@ -15,0 +16,0 @@ payload.instanceData.state.push({ |
@@ -114,13 +114,18 @@ export const EXTERNAL_URL_RE = /^(?:[a-z]+:|\/\/)/i; | ||
} | ||
const extraExts = (typeof process === 'object' && process.env.VITE_EXTRA_EXTENSIONS) || | ||
import.meta.env?.VITE_EXTRA_EXTENSIONS || | ||
''; | ||
// md, html? are intentionally omitted, see treatAsHtml | ||
const KNOWN_EXTENSIONS = new Set(('3g2,3gp,aac,ai,apng,au,avif,bin,bmp,cer,class,conf,crl,css,csv,dll,doc,' + | ||
'eps,epub,exe,gif,gz,ics,ief,jar,jpe,jpeg,jpg,js,json,jsonld,m4a,man,' + | ||
'mid,midi,mjs,mov,mp2,mp3,mp4,mpe,mpeg,mpg,mpp,oga,ogg,ogv,ogx,opus,otf,' + | ||
'p10,p7c,p7m,p7s,pdf,png,ps,qt,roff,rtf,rtx,ser,svg,t,tif,tiff,tr,ts,' + | ||
'tsv,ttf,txt,vtt,wav,weba,webm,webp,woff,woff2,xhtml,xml,yaml,yml,zip' + | ||
(extraExts && typeof extraExts === 'string' ? ',' + extraExts : '')).split(',')); | ||
const KNOWN_EXTENSIONS = new Set(); | ||
export function treatAsHtml(filename) { | ||
if (KNOWN_EXTENSIONS.size === 0) { | ||
const extraExts = (typeof process === 'object' && process.env.VITE_EXTRA_EXTENSIONS) || | ||
import.meta.env?.VITE_EXTRA_EXTENSIONS || | ||
''; | ||
('3g2,3gp,aac,ai,apng,au,avif,bin,bmp,cer,class,conf,crl,css,csv,dll,' + | ||
'doc,eps,epub,exe,gif,gz,ics,ief,jar,jpe,jpeg,jpg,js,json,jsonld,m4a,' + | ||
'man,mid,midi,mjs,mov,mp2,mp3,mp4,mpe,mpeg,mpg,mpp,oga,ogg,ogv,ogx,' + | ||
'opus,otf,p10,p7c,p7m,p7s,pdf,png,ps,qt,roff,rtf,rtx,ser,svg,t,tif,' + | ||
'tiff,tr,ts,tsv,ttf,txt,vtt,wav,weba,webm,webp,woff,woff2,xhtml,xml,' + | ||
'yaml,yml,zip' + | ||
(extraExts && typeof extraExts === 'string' ? ',' + extraExts : '')) | ||
.split(',') | ||
.forEach((ext) => KNOWN_EXTENSIONS.add(ext)); | ||
} | ||
const ext = filename.split('.').pop(); | ||
@@ -127,0 +132,0 @@ return ext == null || !KNOWN_EXTENSIONS.has(ext.toLowerCase()); |
@@ -1,2 +0,2 @@ | ||
import { a as getDefaultExportFromCjs, q as c, t as clearCache, n as init, b as build, o as serve, v as version, p as createServer } from './serve-e9-zRdpq.js'; | ||
import { a as getDefaultExportFromCjs, q as c, t as clearCache, n as init, b as build, o as serve, v as version, p as createServer } from './serve-TjCp41j0.js'; | ||
import { createLogger } from 'vite'; | ||
@@ -32,4 +32,4 @@ import 'path'; | ||
import 'node:crypto'; | ||
import 'shikiji'; | ||
import 'shikiji-transformers'; | ||
import 'shiki'; | ||
import '@shikijs/transformers'; | ||
import 'minisearch'; | ||
@@ -36,0 +36,0 @@ |
import { normalizePath } from 'vite'; | ||
export { loadEnv } from 'vite'; | ||
import { g as glob, c as createMarkdownRenderer, f as fs, m as matter, a as getDefaultExportFromCjs } from './serve-e9-zRdpq.js'; | ||
export { S as ScaffoldThemeType, b as build, p as createServer, e as defineConfig, h as defineConfigWithTheme, d as defineLoader, n as init, j as mergeConfig, r as resolveConfig, l as resolvePages, k as resolveSiteData, i as resolveUserConfig, s as scaffold, o as serve } from './serve-e9-zRdpq.js'; | ||
import { g as glob, c as createMarkdownRenderer, f as fs, m as matter, a as getDefaultExportFromCjs } from './serve-TjCp41j0.js'; | ||
export { S as ScaffoldThemeType, b as build, p as createServer, e as defineConfig, h as defineConfigWithTheme, d as defineLoader, n as init, j as mergeConfig, r as resolveConfig, l as resolvePages, k as resolveSiteData, i as resolveUserConfig, s as scaffold, o as serve } from './serve-TjCp41j0.js'; | ||
import path from 'path'; | ||
@@ -34,4 +34,4 @@ import 'crypto'; | ||
import 'node:crypto'; | ||
import 'shikiji'; | ||
import 'shikiji-transformers'; | ||
import 'shiki'; | ||
import '@shikijs/transformers'; | ||
import 'minisearch'; | ||
@@ -38,0 +38,0 @@ |
{ | ||
"name": "vitepress", | ||
"version": "1.0.0-rc.40", | ||
"version": "1.0.0-rc.41", | ||
"description": "Vite & Vue powered static site generator", | ||
"type": "module", | ||
"packageManager": "pnpm@8.14.2", | ||
"packageManager": "pnpm@8.15.1", | ||
"main": "dist/node/index.js", | ||
@@ -61,3 +61,3 @@ "types": "types/index.d.ts", | ||
"@vitejs/plugin-vue": "^5.0.3", | ||
"@vue/devtools-api": "^6.5.1", | ||
"@vue/devtools-api": "^7.0.14", | ||
"@vueuse/core": "^10.7.2", | ||
@@ -68,5 +68,5 @@ "@vueuse/integrations": "^10.7.2", | ||
"minisearch": "^6.3.0", | ||
"shikiji": "^0.10.0", | ||
"shikiji-core": "^0.10.0", | ||
"shikiji-transformers": "^0.10.0", | ||
"shiki": "^1.0.0-beta.3", | ||
"@shikijs/core": "^1.0.0-beta.3", | ||
"@shikijs/transformers": "^1.0.0-beta.3", | ||
"vite": "^5.0.12", | ||
@@ -113,3 +113,3 @@ "vue": "^3.4.15" | ||
"@types/minimist": "^1.2.5", | ||
"@types/node": "^20.11.5", | ||
"@types/node": "^20.11.16", | ||
"@types/postcss-prefix-selector": "^1.16.3", | ||
@@ -123,3 +123,3 @@ "@types/prompts": "^2.4.9", | ||
"debug": "^4.3.4", | ||
"esbuild": "^0.19.11", | ||
"esbuild": "^0.20.0", | ||
"escape-html": "^1.0.3", | ||
@@ -131,5 +131,5 @@ "execa": "^8.0.1", | ||
"gray-matter": "^4.0.3", | ||
"lint-staged": "^15.2.0", | ||
"lint-staged": "^15.2.1", | ||
"lodash.template": "^4.5.0", | ||
"lru-cache": "^10.1.0", | ||
"lru-cache": "^10.2.0", | ||
"markdown-it": "^14.0.0", | ||
@@ -151,3 +151,3 @@ "markdown-it-anchor": "^8.6.7", | ||
"playwright-chromium": "^1.41.1", | ||
"polka": "1.0.0-next.23", | ||
"polka": "1.0.0-next.24", | ||
"postcss-prefix-selector": "^1.16.0", | ||
@@ -160,3 +160,3 @@ "prettier": "^3.2.4", | ||
"rollup-plugin-dts": "^6.1.0", | ||
"rollup-plugin-esbuild": "^6.1.0", | ||
"rollup-plugin-esbuild": "^6.1.1", | ||
"semver": "^7.5.4", | ||
@@ -168,3 +168,3 @@ "simple-git-hooks": "^2.9.0", | ||
"typescript": "^5.3.3", | ||
"vitest": "^1.2.1", | ||
"vitest": "^1.2.2", | ||
"vue-tsc": "^1.8.27", | ||
@@ -171,0 +171,0 @@ "wait-on": "^7.2.0" |
@@ -7,3 +7,3 @@ # Markdown Extension Examples | ||
VitePress provides Syntax Highlighting powered by [Shikiji](https://github.com/antfu/shikiji), with additional features like line-highlighting: | ||
VitePress provides Syntax Highlighting powered by [Shiki](https://github.com/shikijs/shiki), with additional features like line-highlighting: | ||
@@ -10,0 +10,0 @@ **Input** |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
2602113
66313
+ Added@shikijs/core@^1.0.0-beta.3
+ Addedshiki@^1.0.0-beta.3
+ Added@shikijs/core@1.22.0(transitive)
+ Added@shikijs/engine-javascript@1.22.0(transitive)
+ Added@shikijs/engine-oniguruma@1.22.0(transitive)
+ Added@shikijs/transformers@1.22.0(transitive)
+ Added@shikijs/types@1.22.0(transitive)
+ Added@shikijs/vscode-textmate@9.3.0(transitive)
+ Added@types/hast@3.0.4(transitive)
+ Added@types/mdast@4.0.4(transitive)
+ Added@types/unist@3.0.3(transitive)
+ Added@ungap/structured-clone@1.2.0(transitive)
+ Added@vue/devtools-api@7.4.6(transitive)
+ Added@vue/devtools-kit@7.4.6(transitive)
+ Added@vue/devtools-shared@7.4.6(transitive)
+ Addedbirpc@0.2.18(transitive)
+ Addedccount@2.0.1(transitive)
+ Addedcharacter-entities-html4@2.1.0(transitive)
+ Addedcharacter-entities-legacy@3.0.0(transitive)
+ Addedcomma-separated-tokens@2.0.3(transitive)
+ Addedcopy-anything@3.0.5(transitive)
+ Addeddequal@2.0.3(transitive)
+ Addeddevlop@1.1.0(transitive)
+ Addedhast-util-to-html@9.0.3(transitive)
+ Addedhast-util-whitespace@3.0.0(transitive)
+ Addedhookable@5.5.3(transitive)
+ Addedhtml-void-elements@3.0.0(transitive)
+ Addedis-what@4.1.16(transitive)
+ Addedmdast-util-to-hast@13.2.0(transitive)
+ Addedmicromark-util-character@2.1.0(transitive)
+ Addedmicromark-util-encode@2.0.0(transitive)
+ Addedmicromark-util-sanitize-uri@2.0.0(transitive)
+ Addedmicromark-util-symbol@2.0.0(transitive)
+ Addedmicromark-util-types@2.0.0(transitive)
+ Addedmitt@3.0.1(transitive)
+ Addedoniguruma-to-js@0.4.3(transitive)
+ Addedperfect-debounce@1.0.0(transitive)
+ Addedproperty-information@6.5.0(transitive)
+ Addedregex@4.3.3(transitive)
+ Addedrfdc@1.4.1(transitive)
+ Addedshiki@1.22.0(transitive)
+ Addedspace-separated-tokens@2.0.2(transitive)
+ Addedspeakingurl@14.0.1(transitive)
+ Addedstringify-entities@4.0.4(transitive)
+ Addedsuperjson@2.2.1(transitive)
+ Addedtrim-lines@3.0.1(transitive)
+ Addedunist-util-is@6.0.0(transitive)
+ Addedunist-util-position@5.0.0(transitive)
+ Addedunist-util-stringify-position@4.0.0(transitive)
+ Addedunist-util-visit@5.0.0(transitive)
+ Addedunist-util-visit-parents@6.0.1(transitive)
+ Addedvfile@6.0.3(transitive)
+ Addedvfile-message@4.0.2(transitive)
+ Addedzwitch@2.0.4(transitive)
- Removedshikiji@^0.10.0
- Removedshikiji-core@^0.10.0
- Removedshikiji-transformers@^0.10.0
- Removed@vue/devtools-api@6.6.4(transitive)
- Removedshikiji@0.10.2(transitive)
- Removedshikiji-core@0.10.2(transitive)
- Removedshikiji-transformers@0.10.2(transitive)
Updated@vue/devtools-api@^7.0.14