@easyops-cn/docusaurus-search-local 0.40.0 → 0.40.1

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/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ## [0.40.1](https://github.com/easyops-cn/docusaurus-search-local/compare/v0.40.0...v0.40.1) (2023-12-23)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * fix search page no results, closes [#389](https://github.com/easyops-cn/docusaurus-search-local/issues/389) ([64e26c2](https://github.com/easyops-cn/docusaurus-search-local/commit/64e26c2bd9f20257e77089adf9dc697d353e5c0e))
11
+
5
12
  ## [0.40.0](https://github.com/easyops-cn/docusaurus-search-local/compare/v0.39.0...v0.40.0) (2023-12-19)
6
13
 
7
14
 
@@ -68,7 +68,7 @@ function SearchPageContent() {
68
68
  }, [searchValue]);
69
69
  useEffect(() => {
70
70
  async function doFetchIndexes() {
71
- const { wrappedIndexes, zhDictionary } = searchContext || useAllContextsWithNoSearchContext
71
+ const { wrappedIndexes, zhDictionary } = !Array.isArray(searchContextByPaths) || searchContext || useAllContextsWithNoSearchContext
72
72
  ? await fetchIndexes(versionUrl, searchContext)
73
73
  : { wrappedIndexes: [], zhDictionary: [] };
74
74
  setSearchSource(() => SearchSourceFactory(wrappedIndexes, zhDictionary, 100));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@easyops-cn/docusaurus-search-local",
3
- "version": "0.40.0",
3
+ "version": "0.40.1",
4
4
  "description": "An offline/local search plugin for Docusaurus v3",
5
5
  "repository": "https://github.com/easyops-cn/docusaurus-search-local",
6
6
  "homepage": "https://github.com/easyops-cn/docusaurus-search-local",