Open Mister-Hope opened 2 months ago
Changes Missing Coverage | Covered Lines | Changed/Added Lines | % | ||
---|---|---|---|---|---|
packages/cli/src/commands/dev/watchPageFiles.ts | 0 | 1 | 0.0% | ||
packages/client/src/router/resolveRoutePath.ts | 0 | 2 | 0.0% | ||
packages/core/src/app/prepare/prepareRoutes.ts | 0 | 2 | 0.0% | ||
packages/client/src/router/resolveRouteFullPath.ts | 0 | 3 | 0.0% | ||
packages/client/src/setupGlobalComputed.ts | 0 | 3 | 0.0% | ||
packages/client/src/router/resolveRoute.ts | 0 | 5 | 0.0% | ||
packages/client/src/router/resolveRouteKey.ts | 0 | 10 | 0.0% | ||
<!-- | Total: | 23 | 49 | 46.94% | --> |
Totals | |
---|---|
Change from base Build 9211217292: | -0.04% |
Covered Lines: | 695 |
Relevant Lines: | 1729 |
now e2e test is added in this PR
A little weird to me, I can not reproduce the CI result locally
Features
This pr adds
route
option for vuepress config file.route.cleanUrl
option to support the "clean format"pagePatterns
andpermalinkPatten
is moved toroute.pagePatterns
androute.permalinkPatten
Bug Fixes
Previously, when use manually set a permalink or page path to a clean format like
/a
, they will always get 404 when trying to visit the page (in any link format). Now, this is correctly handled. Page path will be normalized to a "full" or "clean" version based oncleanUrl
, no matter user use "clean", "full" format or mixing them.Performance Improvements
Now, the key in routes is always the clean format, which avoid outputting uncessary
.html
suffix for most pages.Potential Breaking Changes
inferRoutePath
andnormalizeRoutePath
return the "clean" format instead of "full" format.Tweaks
Now a new field called routeKey is on the
Page
object.