@vuepress/shared
Advanced tools
Comparing version 2.0.0-alpha.24 to 2.0.0-alpha.25
@@ -6,2 +6,18 @@ # Change Log | ||
# [2.0.0-alpha.25](https://github.com/vuepress/vuepress-next/compare/v2.0.0-alpha.24...v2.0.0-alpha.25) (2021-02-20) | ||
### Code Refactoring | ||
* **core:** remove theme data from site data ([187aef3](https://github.com/vuepress/vuepress-next/commit/187aef36607efc62d7b2d5c773553f89685cf64c)) | ||
### BREAKING CHANGES | ||
* **core:** `themeConfig` is not available in site data any more | ||
# [2.0.0-alpha.24](https://github.com/vuepress/vuepress-next/compare/v2.0.0-alpha.23...v2.0.0-alpha.24) (2021-02-13) | ||
@@ -8,0 +24,0 @@ |
import type { HeadConfig } from './head'; | ||
import type { LocaleConfig, LocaleData } from './locale'; | ||
import type { LocaleConfig } from './locale'; | ||
/** | ||
* Vuepress site data | ||
*/ | ||
export interface SiteData<T extends SiteThemeConfig = SiteThemeConfig> extends SiteLocaleData { | ||
export interface SiteData extends SiteLocaleData { | ||
base: string; | ||
locales: SiteLocaleConfig; | ||
themeConfig: Partial<T>; | ||
} | ||
@@ -44,11 +43,2 @@ /** | ||
export declare type SiteLocaleConfig = LocaleConfig<SiteLocaleData>; | ||
/** | ||
* Site theme config | ||
* | ||
* @remark suffix `Config` means this is for user config | ||
*/ | ||
export declare type SiteThemeConfig<ThemeLocaleData extends LocaleData = LocaleData> = ThemeLocaleData & { | ||
locales?: LocaleConfig<ThemeLocaleData>; | ||
[key: string]: any; | ||
}; | ||
//# sourceMappingURL=site.d.ts.map |
import type { HeadConfig } from './head'; | ||
import type { LocaleConfig, LocaleData } from './locale'; | ||
import type { LocaleConfig } from './locale'; | ||
/** | ||
* Vuepress site data | ||
*/ | ||
export interface SiteData<T extends SiteThemeConfig = SiteThemeConfig> extends SiteLocaleData { | ||
export interface SiteData extends SiteLocaleData { | ||
base: string; | ||
locales: SiteLocaleConfig; | ||
themeConfig: Partial<T>; | ||
} | ||
@@ -44,11 +43,2 @@ /** | ||
export declare type SiteLocaleConfig = LocaleConfig<SiteLocaleData>; | ||
/** | ||
* Site theme config | ||
* | ||
* @remark suffix `Config` means this is for user config | ||
*/ | ||
export declare type SiteThemeConfig<ThemeLocaleData extends LocaleData = LocaleData> = ThemeLocaleData & { | ||
locales?: LocaleConfig<ThemeLocaleData>; | ||
[key: string]: any; | ||
}; | ||
//# sourceMappingURL=site.d.ts.map |
{ | ||
"name": "@vuepress/shared", | ||
"version": "2.0.0-alpha.24", | ||
"version": "2.0.0-alpha.25", | ||
"description": "Utils that shared between VuePress node and client", | ||
@@ -36,3 +36,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "6fadce4fb24cb1fe47438009288da2d2656586f5" | ||
"gitHead": "f0d1a63a8e7ab594216c3f1b6021bb5fd8a825f4" | ||
} |
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
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
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
208523
1072