@vuepress/core 2.0.0-rc.22 → 2.0.0-rc.24

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/dist/index.d.ts CHANGED
@@ -180,7 +180,8 @@ interface Hook<Exposed, Normalized = Exposed, Result = Normalized extends (...ar
180
180
  type LifeCycleHook<T extends unknown[] = []> = Hook<(app: App, ...args: T) => PromiseOrNot<void>>;
181
181
  type ExtendsHook<T> = Hook<(extendable: T, app: App) => PromiseOrNot<void>>;
182
182
  type ClientConfigFileHook = Hook<string | ((app: App) => PromiseOrNot<string>), (app: App) => Promise<string>>;
183
- type AliasDefineHook = Hook<Record<string, unknown> | ((app: App, isServer: boolean) => PromiseOrNot<Record<string, unknown>>), (app: App, isServer: boolean) => Promise<Record<string, unknown>>>;
183
+ type AliasHook = Hook<Record<string, string> | ((app: App, isServer: boolean) => PromiseOrNot<Record<string, string>>), (app: App, isServer: boolean) => Promise<Record<string, string>>>;
184
+ type DefineHook = Hook<Record<string, unknown> | ((app: App, isServer: boolean) => PromiseOrNot<Record<string, unknown>>), (app: App, isServer: boolean) => Promise<Record<string, unknown>>>;
184
185
  /**
185
186
  * List of hooks
186
187
  */
@@ -195,8 +196,8 @@ interface Hooks {
195
196
  extendsPage: ExtendsHook<Page>;
196
197
  extendsBundlerOptions: ExtendsHook<BundlerOptions>;
197
198
  clientConfigFile: ClientConfigFileHook;
198
- alias: AliasDefineHook;
199
- define: AliasDefineHook;
199
+ alias: AliasHook;
200
+ define: DefineHook;
200
201
  }
201
202
  /**
202
203
  * Name of hooks
@@ -700,4 +701,4 @@ declare const resolveAppDir: (options: AppOptions) => AppDir;
700
701
  */
701
702
  declare const createPage: (app: App, options: PageOptions) => Promise<Page>;
702
703
 
703
- export { type AliasDefineHook, type App, type AppConfig, type AppConfigBuild, type AppConfigCommon, type AppConfigDev, type AppDir, type AppDirFunction, type AppEnv, type AppOptions, type AppPropertiesBase, type AppPropertiesInitialized, type AppWriteTemp, type BuildApp, type Bundler, type BundlerOptions, type ClientConfigFileHook, type DevApp, type ExtendsHook, type Hook, type HookItem, type HookQueue, type Hooks, type HooksExposed, type HooksName, type HooksNormalized, type HooksResult, type LifeCycleHook, type Page, type PageOptions, type Plugin, type PluginApi, type PluginConfig, type PluginFunction, type PluginObject, type Theme, type ThemeFunction, type ThemeInfo, type ThemeObject, createBuildApp, createDevApp, createPage, preparePageChunk, preparePageComponent, prepareRoutes, resolveAppDir };
704
+ export { type AliasHook, type App, type AppConfig, type AppConfigBuild, type AppConfigCommon, type AppConfigDev, type AppDir, type AppDirFunction, type AppEnv, type AppOptions, type AppPropertiesBase, type AppPropertiesInitialized, type AppWriteTemp, type BuildApp, type Bundler, type BundlerOptions, type ClientConfigFileHook, type DefineHook, type DevApp, type ExtendsHook, type Hook, type HookItem, type HookQueue, type Hooks, type HooksExposed, type HooksName, type HooksNormalized, type HooksResult, type LifeCycleHook, type Page, type PageOptions, type Plugin, type PluginApi, type PluginConfig, type PluginFunction, type PluginObject, type Theme, type ThemeFunction, type ThemeInfo, type ThemeObject, createBuildApp, createDevApp, createPage, preparePageChunk, preparePageComponent, prepareRoutes, resolveAppDir };
package/dist/index.js CHANGED
@@ -772,7 +772,7 @@ var createPluginApi = () => {
772
772
  };
773
773
 
774
774
  // src/app/resolveAppDir.ts
775
- import { createRequire } from "node:module";
775
+ import { createRequire } from "module";
776
776
  import { path as path7 } from "@vuepress/utils";
777
777
  var require2 = createRequire(import.meta.url);
778
778
  var createAppDirFunction = (baseDir) => (...args) => path7.resolve(baseDir, ...args);
@@ -803,7 +803,7 @@ var resolveAppEnv = (options) => ({
803
803
  });
804
804
 
805
805
  // src/app/resolveAppOptions.ts
806
- import { createRequire as createRequire2 } from "node:module";
806
+ import { createRequire as createRequire2 } from "module";
807
807
  import { path as path8, templateRenderer } from "@vuepress/utils";
808
808
  var require3 = createRequire2(import.meta.url);
809
809
  var resolveAppOptions = ({
@@ -882,7 +882,7 @@ var resolveAppSiteData = (options) => ({
882
882
  });
883
883
 
884
884
  // src/app/resolveAppVersion.ts
885
- import { createRequire as createRequire3 } from "node:module";
885
+ import { createRequire as createRequire3 } from "module";
886
886
  import { fs as fs3 } from "@vuepress/utils";
887
887
  var require4 = createRequire3(import.meta.url);
888
888
  var resolveAppVersion = () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vuepress/core",
3
- "version": "2.0.0-rc.22",
3
+ "version": "2.0.0-rc.24",
4
4
  "description": "Core package of VuePress",
5
5
  "keywords": [
6
6
  "vuepress",
@@ -27,11 +27,11 @@
27
27
  "dist"
28
28
  ],
29
29
  "dependencies": {
30
- "vue": "^3.5.13",
31
- "@vuepress/shared": "2.0.0-rc.22",
32
- "@vuepress/utils": "2.0.0-rc.22",
33
- "@vuepress/markdown": "2.0.0-rc.22",
34
- "@vuepress/client": "2.0.0-rc.22"
30
+ "vue": "^3.5.17",
31
+ "@vuepress/markdown": "2.0.0-rc.24",
32
+ "@vuepress/shared": "2.0.0-rc.24",
33
+ "@vuepress/utils": "2.0.0-rc.24",
34
+ "@vuepress/client": "2.0.0-rc.24"
35
35
  },
36
36
  "publishConfig": {
37
37
  "access": "public"
@@ -47,7 +47,7 @@
47
47
  ],
48
48
  "outDir": "./dist",
49
49
  "sourcemap": false,
50
- "target": "es2022",
50
+ "target": "es2023",
51
51
  "tsconfig": "../../tsconfig.dts.json"
52
52
  },
53
53
  "scripts": {