@vuepress/shared 2.0.0-beta.27 → 2.0.0-beta.35

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.
@@ -2,7 +2,7 @@ import type { HeadConfig } from './head';
2
2
  /**
3
3
  * Vuepress page data
4
4
  */
5
- export declare type PageData<ExtendedPageData extends Record<any, any> = Record<never, never>> = ExtendedPageData & {
5
+ export declare type PageData<ExtraPageData extends Record<any, any> = Record<never, never>> = ExtraPageData & {
6
6
  /**
7
7
  * Identifier of the page
8
8
  *
@@ -50,14 +50,15 @@ export declare type PageData<ExtendedPageData extends Record<any, any> = Record<
50
50
  * so we cannot guarantee the type safety
51
51
  */
52
52
  export declare type PageFrontmatter<T extends Record<any, any> = Record<string, unknown>> = Partial<T> & {
53
+ date?: string | Date;
54
+ description?: string;
55
+ head?: HeadConfig[];
56
+ lang?: string;
53
57
  layout?: string;
54
58
  permalink?: string;
55
59
  permalinkPattern?: string;
56
- date?: string | Date;
57
- lang?: string;
60
+ routeMeta?: Record<string, unknown>;
58
61
  title?: string;
59
- description?: string;
60
- head?: HeadConfig[];
61
62
  };
62
63
  /**
63
64
  * Vuepress page header
@@ -4,7 +4,7 @@ import type { LocaleConfig } from './locale';
4
4
  * Vuepress site data
5
5
  */
6
6
  export interface SiteData extends SiteLocaleData {
7
- base: string;
7
+ base: '/' | `/${string}/`;
8
8
  locales: SiteLocaleConfig;
9
9
  }
10
10
  /**
@@ -2,7 +2,7 @@ import type { HeadConfig } from './head';
2
2
  /**
3
3
  * Vuepress page data
4
4
  */
5
- export declare type PageData<ExtendedPageData extends Record<any, any> = Record<never, never>> = ExtendedPageData & {
5
+ export declare type PageData<ExtraPageData extends Record<any, any> = Record<never, never>> = ExtraPageData & {
6
6
  /**
7
7
  * Identifier of the page
8
8
  *
@@ -50,14 +50,15 @@ export declare type PageData<ExtendedPageData extends Record<any, any> = Record<
50
50
  * so we cannot guarantee the type safety
51
51
  */
52
52
  export declare type PageFrontmatter<T extends Record<any, any> = Record<string, unknown>> = Partial<T> & {
53
+ date?: string | Date;
54
+ description?: string;
55
+ head?: HeadConfig[];
56
+ lang?: string;
53
57
  layout?: string;
54
58
  permalink?: string;
55
59
  permalinkPattern?: string;
56
- date?: string | Date;
57
- lang?: string;
60
+ routeMeta?: Record<string, unknown>;
58
61
  title?: string;
59
- description?: string;
60
- head?: HeadConfig[];
61
62
  };
62
63
  /**
63
64
  * Vuepress page header
@@ -4,7 +4,7 @@ import type { LocaleConfig } from './locale';
4
4
  * Vuepress site data
5
5
  */
6
6
  export interface SiteData extends SiteLocaleData {
7
- base: string;
7
+ base: '/' | `/${string}/`;
8
8
  locales: SiteLocaleConfig;
9
9
  }
10
10
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vuepress/shared",
3
- "version": "2.0.0-beta.27",
3
+ "version": "2.0.0-beta.35",
4
4
  "description": "Utils that shared between VuePress node and client",
5
5
  "keywords": [
6
6
  "vuepress",
@@ -28,10 +28,10 @@
28
28
  "clean": "rimraf lib *.tsbuildinfo"
29
29
  },
30
30
  "dependencies": {
31
- "@vue/shared": "^3.2.20"
31
+ "@vue/shared": "^3.2.28"
32
32
  },
33
33
  "publishConfig": {
34
34
  "access": "public"
35
35
  },
36
- "gitHead": "2671a94fe6864e215eb84f318b7e657744a0bc5d"
36
+ "gitHead": "4bf1c55b6fb863c9251aa80178d5bc6475f5b315"
37
37
  }