@rspress/shared 1.18.1 → 1.18.2

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
@@ -663,6 +663,10 @@ interface SearchHooks {
663
663
  }
664
664
  type LocalSearchOptions = SearchHooks & {
665
665
  mode?: 'local';
666
+ /**
667
+ * Whether to generate separate search index for each version
668
+ */
669
+ versioned?: boolean;
666
670
  };
667
671
  type RemoteSearchIndexInfo = string | {
668
672
  value: string;
package/dist/index.js CHANGED
@@ -1269,8 +1269,7 @@ function normalizeHref(url, cleanUrls = false) {
1269
1269
  return url;
1270
1270
  }
1271
1271
  let { url: cleanUrl2, hash } = parseUrl(decodeURIComponent(url));
1272
- const hasExt = cleanUrl2.split("/").pop()?.includes(".");
1273
- if (!cleanUrls && !cleanUrl2.endsWith(".html") && !hasExt) {
1272
+ if (!cleanUrls && !cleanUrl2.endsWith(".html")) {
1274
1273
  if (cleanUrl2.endsWith("/")) {
1275
1274
  cleanUrl2 += "index.html";
1276
1275
  } else {
package/dist/index.mjs CHANGED
@@ -1211,8 +1211,7 @@ function normalizeHref(url, cleanUrls = false) {
1211
1211
  return url;
1212
1212
  }
1213
1213
  let { url: cleanUrl2, hash } = parseUrl(decodeURIComponent(url));
1214
- const hasExt = cleanUrl2.split("/").pop()?.includes(".");
1215
- if (!cleanUrls && !cleanUrl2.endsWith(".html") && !hasExt) {
1214
+ if (!cleanUrls && !cleanUrl2.endsWith(".html")) {
1216
1215
  if (cleanUrl2.endsWith("/")) {
1217
1216
  cleanUrl2 += "index.html";
1218
1217
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rspress/shared",
3
- "version": "1.18.1",
3
+ "version": "1.18.2",
4
4
  "types": "./dist/index.d.ts",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",