@rspress/core 1.9.2 → 1.9.3

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.
@@ -31,8 +31,8 @@ async function initPageData(routePath) {
31
31
  const pagePath = cleanUrl(matched[0].route.filePath);
32
32
  const extractPageInfo = siteData.pages.find((page) => {
33
33
  const normalize = (p) => (
34
- // compat the path that has no / suffix
35
- p.replace(/\/$/, "")
34
+ // compat the path that has no / suffix and ignore case
35
+ p.replace(/\/$/, "").toLowerCase()
36
36
  );
37
37
  return isEqualPath(normalize(page.routePath), normalize(routePath));
38
38
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rspress/core",
3
- "version": "1.9.2",
3
+ "version": "1.9.3",
4
4
  "description": "The Rspress Documentation Framework",
5
5
  "bugs": "https://github.com/web-infra-dev/rspress/issues",
6
6
  "repository": {
@@ -40,7 +40,7 @@
40
40
  "@mdx-js/loader": "2.2.1",
41
41
  "@mdx-js/mdx": "2.2.1",
42
42
  "@mdx-js/react": "2.2.1",
43
- "@modern-js/utils": "2.44.0",
43
+ "@modern-js/utils": "2.45.0",
44
44
  "@rsbuild/core": "0.2.1",
45
45
  "@rsbuild/plugin-react": "0.2.1",
46
46
  "@rsbuild/plugin-svgr": "0.2.1",
@@ -85,19 +85,19 @@
85
85
  "unist-util-visit": "^4.1.1",
86
86
  "unist-util-visit-children": "^2.0.1",
87
87
  "yaml-front-matter": "^4.1.1",
88
- "@rspress/theme-default": "1.9.2",
89
- "@rspress/plugin-medium-zoom": "1.9.2",
90
- "@rspress/runtime": "1.9.2",
91
- "@rspress/plugin-last-updated": "1.9.2",
92
- "@rspress/plugin-auto-nav-sidebar": "1.9.2",
93
- "@rspress/plugin-container-syntax": "1.9.2",
94
- "@rspress/shared": "1.9.2"
88
+ "@rspress/theme-default": "1.9.3",
89
+ "@rspress/runtime": "1.9.3",
90
+ "@rspress/plugin-medium-zoom": "1.9.3",
91
+ "@rspress/plugin-last-updated": "1.9.3",
92
+ "@rspress/plugin-auto-nav-sidebar": "1.9.3",
93
+ "@rspress/shared": "1.9.3",
94
+ "@rspress/plugin-container-syntax": "1.9.3"
95
95
  },
96
96
  "devDependencies": {
97
97
  "tailwindcss": "^3.2.7",
98
- "@modern-js/plugin-tailwindcss": "2.44.0",
99
- "@modern-js/tsconfig": "2.44.0",
100
- "@modern-js/types": "2.44.0",
98
+ "@modern-js/plugin-tailwindcss": "2.45.0",
99
+ "@modern-js/tsconfig": "2.45.0",
100
+ "@modern-js/types": "2.45.0",
101
101
  "@types/body-scroll-lock": "^3.1.0",
102
102
  "@types/fs-extra": "^9.0.13",
103
103
  "@types/hast": "^2.3.4",
@@ -44,8 +44,8 @@ export async function initPageData(routePath: string): Promise<PageData> {
44
44
  const pagePath = cleanUrl(matched[0].route.filePath);
45
45
  const extractPageInfo = siteData.pages.find(page => {
46
46
  const normalize = (p: string) =>
47
- // compat the path that has no / suffix
48
- p.replace(/\/$/, '');
47
+ // compat the path that has no / suffix and ignore case
48
+ p.replace(/\/$/, '').toLowerCase();
49
49
  return isEqualPath(normalize(page.routePath), normalize(routePath));
50
50
  });
51
51