Socket
Socket
Sign inDemoInstall

vitepress

Package Overview
Dependencies
Maintainers
3
Versions
237
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vitepress - npm Package Compare versions

Comparing version 0.10.8 to 0.11.0

17

CHANGELOG.md

@@ -0,1 +1,18 @@

# [0.11.0](https://github.com/vuejs/vitepress/compare/v0.10.8...v0.11.0) (2021-01-12)
### Code Refactoring
- move default theme to 'vitepress/theme' ([a79e1e1](https://github.com/vuejs/vitepress/commit/a79e1e1916a71271728e6fe7c2b734fc2f209518))
### Features
- support customData in config ([4072dc5](https://github.com/vuejs/vitepress/commit/4072dc5f7ede381709fce49e9a29d6af4f7ab81a))
### BREAKING CHANGES
- the default theme is now exposed via 'vitepress/theme',
instead of a named export from 'vitepress'. This change fixes the case where
when a completely custom theme is used, importing anything from 'vitepress'
also imports the entire default theme.
## [0.10.8](https://github.com/vuejs/vitepress/compare/v0.10.7...v0.10.8) (2021-01-11)

@@ -2,0 +19,0 @@

1

dist/client/app/composables/siteDataByRoute.d.ts

@@ -10,2 +10,3 @@ import { Route } from '../router';

head: import("../../../../types/shared").HeadConfig[];
customData: any;
}>;

3

dist/client/index.d.ts
export type { Router, Route } from './app/router';
export * from './app/theme';
export type { Theme, EnhanceAppContext } from './app/theme';
export { useRouter, useRoute } from './app/router';

@@ -13,2 +13,1 @@ export { useSiteData } from './app/composables/siteData';

export { Debug };
export { default as DefaultTheme } from './theme-default';
// exports in this file are exposed to themes and md files via 'vitepress'
// so the user can do `import { useRoute, useSiteData } from 'vitepress'`
// theme types
export * from './app/theme';
// composables

@@ -18,3 +16,1 @@ export { useRouter, useRoute } from './app/router';

export { Debug };
// default theme
export { default as DefaultTheme } from './theme-default';

@@ -10,2 +10,3 @@ import { SiteData } from '/@types/shared';

head: import("../../../types/shared").HeadConfig[];
customData: any;
};

@@ -34,2 +34,6 @@ "use strict";

},
{
find: /^vitepress\/theme$/,
replacement: path_1.default.join(__dirname, '../client/theme-default/index')
},
// alias for local linked development

@@ -36,0 +40,0 @@ { find: /^vitepress\//, replacement: PKG_ROOT + '/' },

@@ -15,2 +15,3 @@ import { SiteData, HeadConfig, LocaleConfig } from '../../types/shared';

markdown?: MarkdownOptions;
customData?: any;
}

@@ -24,3 +25,3 @@ export interface SiteConfig<ThemeConfig = any> {

tempDir: string;
aliases: AliasOptions;
alias: AliasOptions;
pages: string[];

@@ -27,0 +28,0 @@ markdown?: MarkdownOptions;

@@ -33,3 +33,3 @@ "use strict";

markdown: userConfig.markdown,
aliases: alias_1.resolveAliases(root, themeDir, userConfig)
alias: alias_1.resolveAliases(root, themeDir, userConfig)
};

@@ -64,3 +64,4 @@ return config;

themeConfig: userConfig.themeConfig || {},
locales: userConfig.locales || {}
locales: userConfig.locales || {},
customData: userConfig.customData || {}
};

@@ -67,0 +68,0 @@ }

import { Plugin } from 'vite';
import { SiteConfig } from './config';
export declare function createVitePressPlugin(root: string, { configPath, aliases, markdown, themeDir, site }: SiteConfig, ssr?: boolean, pageToHashMap?: Record<string, string>): Plugin[];
export declare function createVitePressPlugin(root: string, { configPath, alias, markdown, site }: SiteConfig, ssr?: boolean, pageToHashMap?: Record<string, string>): Plugin[];

@@ -21,3 +21,3 @@ "use strict";

chunk.facadeModuleId.endsWith('.md'));
function createVitePressPlugin(root, { configPath, aliases, markdown, themeDir, site }, ssr = false, pageToHashMap) {
function createVitePressPlugin(root, { configPath, alias, markdown, site }, ssr = false, pageToHashMap) {
const markdownToVue = markdownToVue_1.createMarkdownToVueRenderFn(root, markdown);

@@ -34,3 +34,3 @@ const vuePlugin = plugin_vue_1.default({

return {
alias: aliases,
alias,
define: {

@@ -37,0 +37,0 @@ __CARBON__: !!((_a = site.themeConfig.carbonAds) === null || _a === void 0 ? void 0 : _a.carbon),

@@ -10,2 +10,3 @@ import { SiteData } from '/@types/shared';

head: import("../../../types/shared").HeadConfig[];
customData: any;
};
{
"name": "vitepress",
"version": "0.10.8",
"version": "0.11.0",
"description": "Vite & Vue powered static site generator",

@@ -5,0 +5,0 @@ "main": "dist/node/index.js",

export * from './shared'
export * from '../dist/node/index'
export * from '../dist/client/app/exports'
export * from '../dist/client/index'
export * from '../dist/client/theme-default/config'
export { default as defaultTheme } from '../dist/client/theme-default/index'

@@ -20,2 +20,3 @@ // types shared between server and client

locales: Record<string, LocaleConfig>
customData: any
}

@@ -22,0 +23,0 @@

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc