@vuepress/core 2.0.0-rc.6 → 2.0.0-rc.8

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.
Files changed (2) hide show
  1. package/dist/index.js +4 -4
  2. package/package.json +6 -6
package/dist/index.js CHANGED
@@ -235,14 +235,14 @@ var renderPageContent = ({
235
235
  };
236
236
 
237
237
  // src/page/resolvePageChunkInfo.ts
238
- import { hash, path } from "@vuepress/utils";
238
+ import { path, sanitizeFileName } from "@vuepress/utils";
239
239
  var resolvePageChunkInfo = ({
240
240
  app,
241
241
  htmlFilePathRelative
242
242
  }) => {
243
243
  const chunkFilePathRelative = path.join("pages", `${htmlFilePathRelative}.js`);
244
244
  const chunkFilePath = app.dir.temp(chunkFilePathRelative);
245
- const chunkName = `v-${hash(htmlFilePathRelative)}`;
245
+ const chunkName = sanitizeFileName(path.basename(htmlFilePathRelative));
246
246
  return {
247
247
  chunkFilePath,
248
248
  chunkFilePathRelative,
@@ -388,7 +388,7 @@ var resolvePageLang = ({
388
388
  };
389
389
 
390
390
  // src/page/resolvePagePath.ts
391
- import { logger as logger2, sanitizeFileName } from "@vuepress/utils";
391
+ import { logger as logger2, sanitizeFileName as sanitizeFileName2 } from "@vuepress/utils";
392
392
  var resolvePagePath = ({
393
393
  permalink,
394
394
  pathInferred,
@@ -400,7 +400,7 @@ var resolvePagePath = ({
400
400
  `page path is empty, page options: ${JSON.stringify(options, null, 2)}`
401
401
  );
402
402
  }
403
- return encodeURI(pagePath.split("/").map(sanitizeFileName).join("/"));
403
+ return encodeURI(pagePath.split("/").map(sanitizeFileName2).join("/"));
404
404
  };
405
405
 
406
406
  // src/page/resolvePagePermalink.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vuepress/core",
3
- "version": "2.0.0-rc.6",
3
+ "version": "2.0.0-rc.8",
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.4.15",
31
- "@vuepress/markdown": "2.0.0-rc.6",
32
- "@vuepress/utils": "2.0.0-rc.6",
33
- "@vuepress/shared": "2.0.0-rc.6",
34
- "@vuepress/client": "2.0.0-rc.6"
30
+ "vue": "^3.4.19",
31
+ "@vuepress/client": "2.0.0-rc.8",
32
+ "@vuepress/markdown": "2.0.0-rc.8",
33
+ "@vuepress/shared": "2.0.0-rc.8",
34
+ "@vuepress/utils": "2.0.0-rc.8"
35
35
  },
36
36
  "publishConfig": {
37
37
  "access": "public"