@easyops-cn/docusaurus-search-local 0.55.0-alpha.2 β†’ 0.55.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 ADDED
@@ -0,0 +1,903 @@
1
+ # Changelog
2
+
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
+
5
+ ## [0.55.1](https://github.com/easyops-cn/docusaurus-search-local/compare/v0.55.0...v0.55.1) (2026-02-28)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * limit caret-to-end fix to small screens (max-width: 576px) only ([d1d6e08](https://github.com/easyops-cn/docusaurus-search-local/commit/d1d6e08d21e02b80b78bf7cf3c73493cd4fdde01))
11
+ * move caret to end of input when re-opening search bar on mobile ([47692df](https://github.com/easyops-cn/docusaurus-search-local/commit/47692df69ecb1fd067d7636a199b693ee71e57f1))
12
+ * move search caret to end on focus, small screens only ([69c24f1](https://github.com/easyops-cn/docusaurus-search-local/commit/69c24f15a3c1b32dd55bb0aaf6c0acb294abf26a))
13
+
14
+ ## [0.55.0](https://github.com/easyops-cn/docusaurus-search-local/compare/v0.54.1...v0.55.0) (2026-02-13)
15
+
16
+
17
+ ### Features
18
+
19
+ * make open-ask-ai opt-in via optional peer dependency ([#563](https://github.com/easyops-cn/docusaurus-search-local/issues/563)) ([98d7888](https://github.com/easyops-cn/docusaurus-search-local/commit/98d788844fcace17aab1262b577a1a6c46a227a1))
20
+
21
+ ## [0.54.1](https://github.com/easyops-cn/docusaurus-search-local/compare/v0.54.0...v0.54.1) (2026-02-10)
22
+
23
+
24
+ ### Bug Fixes
25
+
26
+ * Cannot read properties of undefined (reading 'toLowerCase') ([3f45515](https://github.com/easyops-cn/docusaurus-search-local/commit/3f45515b4dd52d782f7c2a2337c73c0f72fc8290))
27
+
28
+ ## [0.54.0](https://github.com/easyops-cn/docusaurus-search-local/compare/v0.53.0...v0.54.0) (2026-02-08)
29
+
30
+
31
+ ### Features
32
+
33
+ * make open-ask-ai async and optional ([4c404ab](https://github.com/easyops-cn/docusaurus-search-local/commit/4c404ab21a6ea232d82e9bdd3041d6a1c7ac73d1))
34
+ * make open-ask-ai async and optional ([e031739](https://github.com/easyops-cn/docusaurus-search-local/commit/e031739116d9cc1eee18ecb13e6752474fdd2f79)), closes [#558](https://github.com/easyops-cn/docusaurus-search-local/issues/558)
35
+
36
+ ## [0.53.0](https://github.com/easyops-cn/docusaurus-search-local/compare/v0.52.3...v0.53.0) (2026-02-05)
37
+
38
+
39
+ ### Features
40
+
41
+ * support Ask AI ([8a5d29e](https://github.com/easyops-cn/docusaurus-search-local/commit/8a5d29e2e5b3b1cb534b1bbf13075f6824307d2e))
42
+ * support Ask AI ([3b2e339](https://github.com/easyops-cn/docusaurus-search-local/commit/3b2e339a04ac9347e73fe39d63237ffa3e63242a))
43
+
44
+ ## [0.52.3](https://github.com/easyops-cn/docusaurus-search-local/compare/v0.52.2...v0.52.3) (2026-01-29)
45
+
46
+
47
+ ### Bug Fixes
48
+
49
+ * replace useDocsPreferredVersion with useActiveVersion ([7e72ef4](https://github.com/easyops-cn/docusaurus-search-local/commit/7e72ef42c8605f4f4147b2227decc9865ac41afd))
50
+ * replace useDocsPreferredVersion with useActiveVersion ([15ba30d](https://github.com/easyops-cn/docusaurus-search-local/commit/15ba30d8c4aab85984be337f227b3ab166daa93e))
51
+
52
+ ## [0.52.2](https://github.com/easyops-cn/docusaurus-search-local/compare/v0.52.1...v0.52.2) (2025-12-01)
53
+
54
+
55
+ ### Bug Fixes
56
+
57
+ * wrap SearchBar with DocsPreferredVersionContextProvider for Docusaurus 3.9+ compatibility ([5aedc2e](https://github.com/easyops-cn/docusaurus-search-local/commit/5aedc2e7c4f2672d90d793d1a13e75bb5386e15b))
58
+ * wrap SearchBar with DocsPreferredVersionContextProvider for Docusaurus 3.9+ compatibility ([1b4f011](https://github.com/easyops-cn/docusaurus-search-local/commit/1b4f01139be07ba7cfa502db01aef61dd5e97929))
59
+
60
+ ## [0.52.1](https://github.com/easyops-cn/docusaurus-search-local/compare/v0.52.0...v0.52.1) (2025-07-22)
61
+
62
+
63
+ ### Bug Fixes
64
+
65
+ * Fix non-deterministic search-index.json generation ([964f84a](https://github.com/easyops-cn/docusaurus-search-local/commit/964f84a32e7e683e4e557688764690dbc04d1b87))
66
+
67
+ ## [0.52.0](https://github.com/easyops-cn/docusaurus-search-local/compare/v0.51.1...v0.52.0) (2025-07-16)
68
+
69
+
70
+ ### Features
71
+
72
+ * Add configurable keyboard shortcut for search bar focus ([92b32ee](https://github.com/easyops-cn/docusaurus-search-local/commit/92b32ee0ba0ee63664b3ae2cae9aa92b433025cf)), closes [#516](https://github.com/easyops-cn/docusaurus-search-local/issues/516)
73
+
74
+ ## [0.51.1](https://github.com/easyops-cn/docusaurus-search-local/compare/v0.51.0...v0.51.1) (2025-06-19)
75
+
76
+
77
+ ### Bug Fixes
78
+
79
+ * fix active menu item matching for categories with collapsible disabled ([725bbb1](https://github.com/easyops-cn/docusaurus-search-local/commit/725bbb1396a89d5bdd45ef0db0bc635c81b69312))
80
+ * fix active menu item matching for categories with collapsible disabled ([3b69844](https://github.com/easyops-cn/docusaurus-search-local/commit/3b698444163ecd79bfbc395fcc6373d5d7028459)), closes [#524](https://github.com/easyops-cn/docusaurus-search-local/issues/524)
81
+
82
+ ## [0.51.0](https://github.com/easyops-cn/docusaurus-search-local/compare/v0.50.0...v0.51.0) (2025-06-11)
83
+
84
+
85
+ ### Features
86
+
87
+ * Added Arabic πŸ‡ΈπŸ‡¦ translations ([#521](https://github.com/easyops-cn/docusaurus-search-local/issues/521)) ([c167a89](https://github.com/easyops-cn/docusaurus-search-local/commit/c167a89e881d2ab3d6042111dd25ff885e1ba153))
88
+
89
+ ## [0.50.0](https://github.com/easyops-cn/docusaurus-search-local/compare/v0.49.2...v0.50.0) (2025-06-03)
90
+
91
+
92
+ ### Features
93
+
94
+ * support setting a language list to remove their default stop word filter ([3b5fe70](https://github.com/easyops-cn/docusaurus-search-local/commit/3b5fe7066e8138d6317bc3f3325ec0d84a9c21ce))
95
+ * support setting a language list to remove their default stop word filter ([e7ce7ac](https://github.com/easyops-cn/docusaurus-search-local/commit/e7ce7ac88484b0e738562a79e9d9f2a81ed6e162)), closes [#517](https://github.com/easyops-cn/docusaurus-search-local/issues/517)
96
+
97
+ ## [0.49.2](https://github.com/easyops-cn/docusaurus-search-local/compare/v0.49.1...v0.49.2) (2025-03-31)
98
+
99
+
100
+ ### Bug Fixes
101
+
102
+ * Add Japanese locale ([9a920db](https://github.com/easyops-cn/docusaurus-search-local/commit/9a920db9c91f4ce7f13227c8109874e5deec9d21))
103
+
104
+ ## [0.49.1](https://github.com/easyops-cn/docusaurus-search-local/compare/v0.49.0...v0.49.1) (2025-03-12)
105
+
106
+
107
+ ### Bug Fixes
108
+
109
+ * refine fuzzy matching order ([60d2b0b](https://github.com/easyops-cn/docusaurus-search-local/commit/60d2b0bab03ebcb9d969ac0fabaf2deaa76eef13)), closes [#504](https://github.com/easyops-cn/docusaurus-search-local/issues/504)
110
+ * refine fuzzy matching order ([#507](https://github.com/easyops-cn/docusaurus-search-local/issues/507)) ([646b5a0](https://github.com/easyops-cn/docusaurus-search-local/commit/646b5a0fb20933c86972047ec940a51270bf96ba)), closes [#504](https://github.com/easyops-cn/docusaurus-search-local/issues/504)
111
+
112
+ ## [0.49.0](https://github.com/easyops-cn/docusaurus-search-local/compare/v0.48.5...v0.49.0) (2025-03-12)
113
+
114
+
115
+ ### Features
116
+
117
+ * support fuzzy matching, closes [#504](https://github.com/easyops-cn/docusaurus-search-local/issues/504) ([#505](https://github.com/easyops-cn/docusaurus-search-local/issues/505)) ([c8310f3](https://github.com/easyops-cn/docusaurus-search-local/commit/c8310f39c05f0409ba227318a70dba828ca65aa0))
118
+
119
+ ## [0.48.5](https://github.com/easyops-cn/docusaurus-search-local/compare/v0.48.4...v0.48.5) (2025-02-05)
120
+
121
+
122
+ ### Bug Fixes
123
+
124
+ * fix contextual search, closes [#380](https://github.com/easyops-cn/docusaurus-search-local/issues/380) ([2a6d9d4](https://github.com/easyops-cn/docusaurus-search-local/commit/2a6d9d4f6ad7daea4f2c3c41604494a6a94492f3))
125
+
126
+ ## [0.48.4](https://github.com/easyops-cn/docusaurus-search-local/compare/v0.48.3...v0.48.4) (2025-01-20)
127
+
128
+
129
+ ### Bug Fixes
130
+
131
+ * handle keywords stemmer, fix [#487](https://github.com/easyops-cn/docusaurus-search-local/issues/487) ([23ba48d](https://github.com/easyops-cn/docusaurus-search-local/commit/23ba48deef88b6dc081b986bda47c938bec26119))
132
+
133
+ ## [0.48.3](https://github.com/easyops-cn/docusaurus-search-local/compare/v0.48.2...v0.48.3) (2025-01-16)
134
+
135
+
136
+ ### Bug Fixes
137
+
138
+ * sync ssr the input value and focus state for SSR ([be7c125](https://github.com/easyops-cn/docusaurus-search-local/commit/be7c125d72f7274eabc8d377809cddfd85fb1db1))
139
+
140
+ ## [0.48.2](https://github.com/easyops-cn/docusaurus-search-local/compare/v0.48.1...v0.48.2) (2025-01-16)
141
+
142
+
143
+ ### Bug Fixes
144
+
145
+ * excludes mobile toc button for search marks, fixes [#473](https://github.com/easyops-cn/docusaurus-search-local/issues/473) ([b8dd155](https://github.com/easyops-cn/docusaurus-search-local/commit/b8dd15559f22b7f914af8123ed7eaa60c0beac3b))
146
+
147
+ ## [0.48.1](https://github.com/easyops-cn/docusaurus-search-local/compare/v0.48.0...v0.48.1) (2025-01-16)
148
+
149
+
150
+ ### Bug Fixes
151
+
152
+ * do not limit the search page result by searchResultLimits ([29f6d69](https://github.com/easyops-cn/docusaurus-search-local/commit/29f6d6962e69d38089a45961ae8dc62636838494))
153
+
154
+ ## [0.48.0](https://github.com/easyops-cn/docusaurus-search-local/compare/v0.47.0...v0.48.0) (2025-01-14)
155
+
156
+
157
+ ### Features
158
+
159
+ * add active border highlight for search bar input ([f311908](https://github.com/easyops-cn/docusaurus-search-local/commit/f311908706c7b7a9b3105aaee775d5c42d2812bf))
160
+
161
+ ## [0.47.0](https://github.com/easyops-cn/docusaurus-search-local/compare/v0.46.1...v0.47.0) (2025-01-07)
162
+
163
+
164
+ ### Features
165
+
166
+ * support React 19 ([725074e](https://github.com/easyops-cn/docusaurus-search-local/commit/725074eb84f153f84974cd6f4bac21d8aee79187)), closes [#474](https://github.com/easyops-cn/docusaurus-search-local/issues/474)
167
+
168
+ ## [0.46.1](https://github.com/easyops-cn/docusaurus-search-local/compare/v0.46.0...v0.46.1) (2024-11-27)
169
+
170
+
171
+ ### Bug Fixes
172
+
173
+ * fix Uncaught ReferenceError: importScripts is not defined ([139b82b](https://github.com/easyops-cn/docusaurus-search-local/commit/139b82befc22a574d71eb307b3a79afb2984ea69))
174
+
175
+ ## [0.46.0](https://github.com/easyops-cn/docusaurus-search-local/compare/v0.45.0...v0.46.0) (2024-11-27)
176
+
177
+
178
+ ### Features
179
+
180
+ * move search to Web Worker ([15b7fba](https://github.com/easyops-cn/docusaurus-search-local/commit/15b7fba2537d12eb1674611948e363723dcedae4))
181
+
182
+ ## [0.45.0](https://github.com/easyops-cn/docusaurus-search-local/compare/v0.44.6...v0.45.0) (2024-10-09)
183
+
184
+
185
+ ### Features
186
+
187
+ * fix a perf issue when searching with a large number of Chinese words ([abe720c](https://github.com/easyops-cn/docusaurus-search-local/commit/abe720cd3d521122e3aaa8b2d8ba7d0967fe046d)), closes [#312](https://github.com/easyops-cn/docusaurus-search-local/issues/312)
188
+
189
+
190
+ ### Bug Fixes
191
+
192
+ * fix a perf issue that cut zh words unnecessary repeatedly ([870dc88](https://github.com/easyops-cn/docusaurus-search-local/commit/870dc887f85ded4cbf000c2480e9e92c6fa0cad6))
193
+ * limit the number of terms, closes [#312](https://github.com/easyops-cn/docusaurus-search-local/issues/312) ([c889047](https://github.com/easyops-cn/docusaurus-search-local/commit/c8890479914e89f7dea075f5f191bbc76e99d249))
194
+
195
+ ## [0.44.6](https://github.com/easyops-cn/docusaurus-search-local/compare/v0.44.5...v0.44.6) (2024-10-08)
196
+
197
+
198
+ ### Bug Fixes
199
+
200
+ * use `require.resolve` for generated js, fixes [#459](https://github.com/easyops-cn/docusaurus-search-local/issues/459) ([4728b28](https://github.com/easyops-cn/docusaurus-search-local/commit/4728b2820d42458673ef35e87f70ec44242f69cf))
201
+
202
+ ## [0.44.5](https://github.com/easyops-cn/docusaurus-search-local/compare/v0.44.4...v0.44.5) (2024-08-12)
203
+
204
+
205
+ ### Bug Fixes
206
+
207
+ * update cheerio to 1.0.0, closes [#444](https://github.com/easyops-cn/docusaurus-search-local/issues/444) ([0d70f63](https://github.com/easyops-cn/docusaurus-search-local/commit/0d70f63cb170bac2b51461c0dd6f66a53dff4483))
208
+
209
+ ## [0.44.4](https://github.com/easyops-cn/docusaurus-search-local/compare/v0.44.3...v0.44.4) (2024-07-19)
210
+
211
+
212
+ ### Bug Fixes
213
+
214
+ * do not initialize lunr multiple times, fixes [#155](https://github.com/easyops-cn/docusaurus-search-local/issues/155) ([0b323d9](https://github.com/easyops-cn/docusaurus-search-local/commit/0b323d97fbc238692e68368582bce72908fd66b0))
215
+
216
+ ## [0.44.3](https://github.com/easyops-cn/docusaurus-search-local/compare/v0.44.2...v0.44.3) (2024-07-08)
217
+
218
+
219
+ ### Bug Fixes
220
+
221
+ * append a `/` to the search link. ([#432](https://github.com/easyops-cn/docusaurus-search-local/issues/432)) ([60c23d4](https://github.com/easyops-cn/docusaurus-search-local/commit/60c23d43c5c9b3ecc6ceb7319762a9c4acb9e32e))
222
+
223
+ ## [0.44.2](https://github.com/easyops-cn/docusaurus-search-local/compare/v0.44.1...v0.44.2) (2024-06-20)
224
+
225
+
226
+ ### Bug Fixes
227
+
228
+ * manually make the search bar be LTR even if in RTL ([a5c7184](https://github.com/easyops-cn/docusaurus-search-local/commit/a5c7184c77929410732df022ebb3257bdb491074))
229
+
230
+ ## [0.44.1](https://github.com/easyops-cn/docusaurus-search-local/compare/v0.44.0...v0.44.1) (2024-06-19)
231
+
232
+
233
+ ### Bug Fixes
234
+
235
+ * fix searching within context closes [#424](https://github.com/easyops-cn/docusaurus-search-local/issues/424) ([bbec667](https://github.com/easyops-cn/docusaurus-search-local/commit/bbec66782d6a285338211248f14b4d1d0e5eee50))
236
+
237
+ ## [0.44.0](https://github.com/easyops-cn/docusaurus-search-local/compare/v0.43.0...v0.44.0) (2024-06-06)
238
+
239
+
240
+ ### Features
241
+
242
+ * add more translate to locales ([#417](https://github.com/easyops-cn/docusaurus-search-local/issues/417)) ([0ee814b](https://github.com/easyops-cn/docusaurus-search-local/commit/0ee814b4f4e320ec6a672bef1e04ee6bbe6ba10b))
243
+
244
+ ## [0.43.0](https://github.com/easyops-cn/docusaurus-search-local/compare/v0.42.0...v0.43.0) (2024-06-05)
245
+
246
+
247
+ ### Features
248
+
249
+ * add theme.SearchPage.searchContext.everywhere to locales ([#414](https://github.com/easyops-cn/docusaurus-search-local/issues/414)) ([5e13bda](https://github.com/easyops-cn/docusaurus-search-local/commit/5e13bdaf5e2c3bcb287f2472a5e3f86649d04844))
250
+
251
+ ## [0.42.0](https://github.com/easyops-cn/docusaurus-search-local/compare/v0.41.1...v0.42.0) (2024-06-04)
252
+
253
+
254
+ ### Features
255
+
256
+ * support add document to multiple context paths ([#412](https://github.com/easyops-cn/docusaurus-search-local/issues/412)), closes [#407](https://github.com/easyops-cn/docusaurus-search-local/issues/407) ([0107676](https://github.com/easyops-cn/docusaurus-search-local/commit/010767683331041c68b0dcd5d1b268db1455d9cc))
257
+
258
+ ## [0.41.1](https://github.com/easyops-cn/docusaurus-search-local/compare/v0.41.0...v0.41.1) (2024-06-04)
259
+
260
+
261
+ ### Bug Fixes
262
+
263
+ * bump version only for handling hash link with url path, closes [#408](https://github.com/easyops-cn/docusaurus-search-local/issues/408) via [#410](https://github.com/easyops-cn/docusaurus-search-local/issues/410) ([9d76b81](https://github.com/easyops-cn/docusaurus-search-local/commit/9d76b81be5ac3dad8b32ee66ac24004a1724df16))
264
+
265
+ ## [0.41.0](https://github.com/easyops-cn/docusaurus-search-local/compare/v0.40.1...v0.41.0) (2024-05-23)
266
+
267
+
268
+ ### Features
269
+
270
+ * support search based on description and keywords ([0c12b59](https://github.com/easyops-cn/docusaurus-search-local/commit/0c12b59866c6d9b7bfa342b4f87e40b01b5f7d48)), closes [#344](https://github.com/easyops-cn/docusaurus-search-local/issues/344)
271
+
272
+ ## [0.40.1](https://github.com/easyops-cn/docusaurus-search-local/compare/v0.40.0...v0.40.1) (2023-12-23)
273
+
274
+
275
+ ### Bug Fixes
276
+
277
+ * 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))
278
+
279
+ ## [0.40.0](https://github.com/easyops-cn/docusaurus-search-local/compare/v0.39.0...v0.40.0) (2023-12-19)
280
+
281
+
282
+ ### Features
283
+
284
+ * allow force enable search index even if `noIndex: true` is set ([09d0f30](https://github.com/easyops-cn/docusaurus-search-local/commit/09d0f30c0700b72ed3699ef4918d0d6f245bf435)), closes [#385](https://github.com/easyops-cn/docusaurus-search-local/issues/385)
285
+ * support i18n for search context labels ([83b05a2](https://github.com/easyops-cn/docusaurus-search-local/commit/83b05a2ea1b4553b8a95566003647e73de32011a))
286
+
287
+ ## [0.39.0](https://github.com/easyops-cn/docusaurus-search-local/compare/v0.38.1...v0.39.0) (2023-12-15)
288
+
289
+
290
+ ### Features
291
+
292
+ * customize search context labels [#382](https://github.com/easyops-cn/docusaurus-search-local/issues/382) ([f7df7bb](https://github.com/easyops-cn/docusaurus-search-local/commit/f7df7bb95b47140091f640103830e6c0356bb072))
293
+
294
+ ## [0.38.1](https://github.com/easyops-cn/docusaurus-search-local/compare/v0.38.0...v0.38.1) (2023-11-28)
295
+
296
+
297
+ ### Bug Fixes
298
+
299
+ * compile to commonjs ([b8dc37d](https://github.com/easyops-cn/docusaurus-search-local/commit/b8dc37d1ea89014ad226883b5cf65cfec92d937a)), closes [#370](https://github.com/easyops-cn/docusaurus-search-local/issues/370)
300
+
301
+ ## [0.38.0](https://github.com/easyops-cn/docusaurus-search-local/compare/v0.37.5...v0.38.0) (2023-11-24)
302
+
303
+
304
+ ### Features
305
+
306
+ * do not index unlisted content ([b0c425d](https://github.com/easyops-cn/docusaurus-search-local/commit/b0c425d21e38b3ae065b31635b5e8d4dff3afcbb)), closes [#371](https://github.com/easyops-cn/docusaurus-search-local/issues/371)
307
+
308
+ ## [0.37.5](https://github.com/easyops-cn/docusaurus-search-local/compare/v0.37.4...v0.37.5) (2023-11-24)
309
+
310
+
311
+ ### Bug Fixes
312
+
313
+ * set typescript target back to ES6 ([c05151f](https://github.com/easyops-cn/docusaurus-search-local/commit/c05151f6b9c02c585f588fb451bf2fd512261e73))
314
+
315
+ ## [0.37.4](https://github.com/easyops-cn/docusaurus-search-local/compare/v0.37.3...v0.37.4) (2023-11-12)
316
+
317
+
318
+ ### Bug Fixes
319
+
320
+ * fix peer deps of react 16/17/18 ([700d640](https://github.com/easyops-cn/docusaurus-search-local/commit/700d64068e2e77ec8aca8dc51666d73d25d165fe))
321
+
322
+ ## [0.37.3](https://github.com/easyops-cn/docusaurus-search-local/compare/v0.37.2...v0.37.3) (2023-11-12)
323
+
324
+
325
+ ### Bug Fixes
326
+
327
+ * fix SSR warning, closes [#364](https://github.com/easyops-cn/docusaurus-search-local/issues/364) ([69378e6](https://github.com/easyops-cn/docusaurus-search-local/commit/69378e67944ca3abd15e179621b5ca53903eecce))
328
+
329
+ ## [0.37.2](https://github.com/easyops-cn/docusaurus-search-local/compare/v0.37.1...v0.37.2) (2023-11-09)
330
+
331
+
332
+ ### Bug Fixes
333
+
334
+ * support both Docusaurus v2 and v3 ([89bd0f5](https://github.com/easyops-cn/docusaurus-search-local/commit/89bd0f5e7478b9b22e40a5df5efcfd0ed2082a74))
335
+
336
+ ## [0.37.1](https://github.com/easyops-cn/docusaurus-search-local/compare/v0.37.0...v0.37.1) (2023-11-09)
337
+
338
+
339
+ ### Bug Fixes
340
+
341
+ * update readme and fix release workflow ([e11ad12](https://github.com/easyops-cn/docusaurus-search-local/commit/e11ad1287958e22a16da9309b4070433507233d9))
342
+
343
+ ## [0.37.0](https://github.com/easyops-cn/docusaurus-search-local/compare/v0.36.0...v0.37.0) (2023-11-09)
344
+
345
+
346
+ ### Features
347
+
348
+ * support docusaurus v3 ([18c01c2](https://github.com/easyops-cn/docusaurus-search-local/commit/18c01c2f52ccee9c7d4b7307c4c465b7190c26a7))
349
+
350
+ ## [0.36.0](https://github.com/easyops-cn/docusaurus-search-local/compare/v0.35.0...v0.36.0) (2023-09-09)
351
+
352
+
353
+ ### Features
354
+
355
+ * added ignoreClasses option to be able to exclude specific content from indexing ([e9f7794](https://github.com/easyops-cn/docusaurus-search-local/commit/e9f7794f48c7af070c377d56bf3b6dbfccf3b9de))
356
+
357
+
358
+ ### Bug Fixes
359
+
360
+ * make tests work on windows ([565199a](https://github.com/easyops-cn/docusaurus-search-local/commit/565199a63760e51f2f5421c8df075aeeb7e54a53))
361
+
362
+ ## [0.35.0](https://github.com/easyops-cn/docusaurus-search-local/compare/v0.34.0...v0.35.0) (2023-03-04)
363
+
364
+
365
+ ### Features
366
+
367
+ * improve no results UI when searching in context ([#323](https://github.com/easyops-cn/docusaurus-search-local/issues/323)) ([1a70835](https://github.com/easyops-cn/docusaurus-search-local/commit/1a708353d5fc6edae0f6e7d16bbd6e32381a9ea1))
368
+
369
+ ## [0.34.0](https://github.com/easyops-cn/docusaurus-search-local/compare/v0.33.6...v0.34.0) (2023-02-16)
370
+
371
+
372
+ ### Features
373
+
374
+ * improve search context feature [#319](https://github.com/easyops-cn/docusaurus-search-local/issues/319) ([a9578cc](https://github.com/easyops-cn/docusaurus-search-local/commit/a9578cc34856031d5b9a16ed6edd29b6dcb922c3))
375
+
376
+ ## [0.33.6](https://github.com/easyops-cn/docusaurus-search-local/compare/v0.33.5...v0.33.6) (2022-11-28)
377
+
378
+
379
+ ### Bug Fixes
380
+
381
+ * use key instead of code for keyboard events ([5e919f4](https://github.com/easyops-cn/docusaurus-search-local/commit/5e919f4e23b2b97380ca6fc8622254bcf3ff4fa0)), closes [#298](https://github.com/easyops-cn/docusaurus-search-local/issues/298)
382
+
383
+ ## [0.33.5](https://github.com/easyops-cn/docusaurus-search-local/compare/v0.33.4...v0.33.5) (2022-10-24)
384
+
385
+
386
+ ### Bug Fixes
387
+
388
+ * fix see all results with non-ascii chars ([18b5a16](https://github.com/easyops-cn/docusaurus-search-local/commit/18b5a16a809a5eaade321f663b5bcfc9ba650707))
389
+
390
+ ## [0.33.4](https://github.com/easyops-cn/docusaurus-search-local/compare/v0.33.3...v0.33.4) (2022-10-18)
391
+
392
+
393
+ ### Bug Fixes
394
+
395
+ * refine version in search page ([6d091b7](https://github.com/easyops-cn/docusaurus-search-local/commit/6d091b7f1b4294e96dc9a46738920fd5c39b20f8))
396
+
397
+ ## [0.33.3](https://github.com/easyops-cn/docusaurus-search-local/compare/v0.33.2...v0.33.3) (2022-10-18)
398
+
399
+
400
+ ### Bug Fixes
401
+
402
+ * pass version instead of detect version in search page ([8ca32f0](https://github.com/easyops-cn/docusaurus-search-local/commit/8ca32f07ca4d36e061dd67f72a0fc1b477d2c9f6)), closes [#285](https://github.com/easyops-cn/docusaurus-search-local/issues/285)
403
+
404
+ ## [0.33.2](https://github.com/easyops-cn/docusaurus-search-local/compare/v0.33.1...v0.33.2) (2022-10-17)
405
+
406
+
407
+ ### Bug Fixes
408
+
409
+ * fix search terms highlighting ([aacc610](https://github.com/easyops-cn/docusaurus-search-local/commit/aacc610db70f60585d883f977ae2da699dde6f29)), closes [#266](https://github.com/easyops-cn/docusaurus-search-local/issues/266)
410
+
411
+ ## [0.33.1](https://github.com/easyops-cn/docusaurus-search-local/compare/v0.33.0...v0.33.1) (2022-10-17)
412
+
413
+
414
+ ### Bug Fixes
415
+
416
+ * refine search context, support `hideSearchBarWithNoSearchContext` ([38908ed](https://github.com/easyops-cn/docusaurus-search-local/commit/38908edd8dea6bbf5a38f2ea225f9a9530b406ed))
417
+
418
+ ## [0.33.0](https://github.com/easyops-cn/docusaurus-search-local/compare/v0.32.1...v0.33.0) (2022-10-16)
419
+
420
+
421
+ ### Features
422
+
423
+ * support search context by paths ([aa6de9a](https://github.com/easyops-cn/docusaurus-search-local/commit/aa6de9a2890cad2570bd40f41cccb0626a5163d6))
424
+
425
+ ## [0.32.1](https://github.com/easyops-cn/docusaurus-search-local/compare/v0.32.0...v0.32.1) (2022-10-08)
426
+
427
+
428
+ ### Bug Fixes
429
+
430
+ * fix indexing when trailingSlash is explicitly set ([cfc603d](https://github.com/easyops-cn/docusaurus-search-local/commit/cfc603db8f0b2467dca064ec2f2f00b3449f4574))
431
+
432
+ ## [0.32.0](https://github.com/easyops-cn/docusaurus-search-local/compare/v0.31.0...v0.32.0) (2022-09-05)
433
+
434
+
435
+ ### Features
436
+
437
+ * support setting searchBarPosition ([60b27d4](https://github.com/easyops-cn/docusaurus-search-local/commit/60b27d4a6e1f3342ac7afda586202fc5d7b8a3bc)), closes [#263](https://github.com/easyops-cn/docusaurus-search-local/issues/263)
438
+
439
+ ## [0.31.0](https://github.com/easyops-cn/docusaurus-search-local/compare/v0.30.2...v0.31.0) (2022-08-08)
440
+
441
+
442
+ ### Features
443
+
444
+ * support `zhUserDict` and `zhUserDictPath` ([33f1ea4](https://github.com/easyops-cn/docusaurus-search-local/commit/33f1ea4765b0e134689fd65aa655c2bc1b4e6f0b)), closes [#246](https://github.com/easyops-cn/docusaurus-search-local/issues/246)
445
+
446
+ ## [0.30.2](https://github.com/easyops-cn/docusaurus-search-local/compare/v0.30.1...v0.30.2) (2022-07-23)
447
+
448
+
449
+ ### Bug Fixes
450
+
451
+ * remove useDocsPreferredVersion error log entirely ([56f5ab5](https://github.com/easyops-cn/docusaurus-search-local/commit/56f5ab51a77f682c565d357bcbf7a37567c2b21e))
452
+ * use debug instead of console.error for useDocsPreferredVersion message ([3a09e39](https://github.com/easyops-cn/docusaurus-search-local/commit/3a09e39ef569a9dd1d99b1e251fdc79f909cff0f))
453
+
454
+ ## [0.30.1](https://github.com/easyops-cn/docusaurus-search-local/compare/v0.30.0...v0.30.1) (2022-07-22)
455
+
456
+
457
+ ### Bug Fixes
458
+
459
+ * fix building error when docs disabled ([07b1724](https://github.com/easyops-cn/docusaurus-search-local/commit/07b17245ff526783dfc1469de91928d5a64bb909))
460
+
461
+ ## [0.30.0](https://github.com/easyops-cn/docusaurus-search-local/compare/v0.29.4...v0.30.0) (2022-07-22)
462
+
463
+
464
+ ### Features
465
+
466
+ * support saving hash in filename instead of query ([4930a88](https://github.com/easyops-cn/docusaurus-search-local/commit/4930a88779813ffcaa932a56f786066f969aff6e)), closes [#171](https://github.com/easyops-cn/docusaurus-search-local/issues/171)
467
+
468
+ ## [0.29.4](https://github.com/easyops-cn/docusaurus-search-local/compare/v0.29.3...v0.29.4) (2022-07-22)
469
+
470
+
471
+ ### Bug Fixes
472
+
473
+ * fix call stack overflow with large code blocks ([e0b2cfd](https://github.com/easyops-cn/docusaurus-search-local/commit/e0b2cfd6e21f008609a85c42c0159ae25b575d6b)), closes [#164](https://github.com/easyops-cn/docusaurus-search-local/issues/164)
474
+
475
+ ## [0.29.3](https://github.com/easyops-cn/docusaurus-search-local/compare/v0.29.2...v0.29.3) (2022-07-20)
476
+
477
+
478
+ ### Bug Fixes
479
+
480
+ * hide clear button on small screen when input is not focused ([c69fbf6](https://github.com/easyops-cn/docusaurus-search-local/commit/c69fbf64ff6ba11c32e63d89dada010bb1e521dc)), closes [#230](https://github.com/easyops-cn/docusaurus-search-local/issues/230)
481
+
482
+ ## [0.29.2](https://github.com/easyops-cn/docusaurus-search-local/compare/v0.29.1...v0.29.2) (2022-07-19)
483
+
484
+
485
+ ### Bug Fixes
486
+
487
+ * fix website with docs multi-instance ([f61304e](https://github.com/easyops-cn/docusaurus-search-local/commit/f61304e5f3318388d56c1ef791881cd3e3c6e331)), closes [#211](https://github.com/easyops-cn/docusaurus-search-local/issues/211)
488
+
489
+ ## [0.29.1](https://github.com/easyops-cn/docusaurus-search-local/compare/v0.29.0...v0.29.1) (2022-07-19)
490
+
491
+
492
+ ### Bug Fixes
493
+
494
+ * require docusaurus v2.0.0-rc.1 ([41a4e67](https://github.com/easyops-cn/docusaurus-search-local/commit/41a4e67543b03f4166589da84cac76a196488e3d))
495
+ * add hack for useDocsPreferredVersion crash in SearchPage ([02fdc42](https://github.com/easyops-cn/docusaurus-search-local/commit/02fdc42a043a4cc1d3fafe9705b478e883543d2b))
496
+ * fix error when not using versions ([f11293f](https://github.com/easyops-cn/docusaurus-search-local/commit/f11293f78c111948c3ea3b8c25a8bb782304ee93))
497
+
498
+ ## [0.29.0](https://github.com/easyops-cn/docusaurus-search-local/compare/v0.28.0...v0.29.0) (2022-07-07)
499
+
500
+
501
+ ### Features
502
+
503
+ * support disabling search bar shortcut ([e0ea5ae](https://github.com/easyops-cn/docusaurus-search-local/commit/e0ea5aeab027724083b0f51290d6ea7e4bc89fa6))
504
+ * support hiding search bar shortcut hint ([9344bd2](https://github.com/easyops-cn/docusaurus-search-local/commit/9344bd20e16c3dd60b3d59fc918dca10e8cfd48f))
505
+
506
+ ## [0.28.0](https://github.com/easyops-cn/docusaurus-search-local/compare/v0.27.2...v0.28.0) (2022-06-28)
507
+
508
+
509
+ ### Features
510
+
511
+ * add locales/vi.json ([#217](https://github.com/easyops-cn/docusaurus-search-local/issues/217)) ([26f9a2a](https://github.com/easyops-cn/docusaurus-search-local/commit/26f9a2aa885cd315254f973f348445a873d98ede))
512
+
513
+ ## [0.27.2](https://github.com/easyops-cn/docusaurus-search-local/compare/v0.27.1...v0.27.2) (2022-06-21)
514
+
515
+
516
+ ### Bug Fixes
517
+
518
+ * search page for non latest doc versions ([15f6161](https://github.com/easyops-cn/docusaurus-search-local/commit/15f61612f8d59dde0ba401e15d76d080865d8e8b))
519
+ * use the active plugin id when getting the current docs version ([824e134](https://github.com/easyops-cn/docusaurus-search-local/commit/824e1347f3f571b45e1e39f708ffd75c01f13339))
520
+ * fix active plugin may be undefined ([0bfbbb2](https://github.com/easyops-cn/docusaurus-search-local/commit/0bfbbb29cee66fcbb3be589da226caef6210fa5a))
521
+ * make `@docusaurus/theme-common` as peer ([68dc812](https://github.com/easyops-cn/docusaurus-search-local/commit/68dc812c84451c68dc9f9448c4a2b39a3f8f3bcc))
522
+
523
+ ## [0.27.1](https://github.com/easyops-cn/docusaurus-search-local/compare/v0.27.0...v0.27.1) (2022-06-13)
524
+
525
+ ### Bug Fixes
526
+
527
+ - properly support no trailing slashes after fixing indexing top level pages ([999bd8b](https://github.com/easyops-cn/docusaurus-search-local/commit/999bd8bec8abe73f12abe20f58f8030be46c9ecd)), closes [#212](https://github.com/easyops-cn/docusaurus-search-local/issues/212)
528
+
529
+ ## [0.27.0](https://github.com/easyops-cn/docusaurus-search-local/compare/v0.26.1...v0.27.0) (2022-05-29)
530
+
531
+ ### Features
532
+
533
+ - versioned search ([6865e7c](https://github.com/easyops-cn/docusaurus-search-local/commit/6865e7c3eee416e53648877359cdf206119be043)), closes [#66](https://github.com/easyops-cn/docusaurus-search-local/issues/66)
534
+
535
+ ### [0.26.1](https://github.com/easyops-cn/docusaurus-search-local/compare/v0.26.0...v0.26.1) (2022-05-25)
536
+
537
+ ### Bug Fixes
538
+
539
+ - fix i18n id of `theme.SearchPage.noResultsText` ([fe530f3](https://github.com/easyops-cn/docusaurus-search-local/commit/fe530f35da0b11c78c9d68cb6a7fea5871919e00))
540
+
541
+ ## [0.26.0](https://github.com/easyops-cn/docusaurus-search-local/compare/v0.26.0...v0.26.0) (2022-05-24)
542
+
543
+ ### Features
544
+
545
+ - add a clear button to the search bar [#170](https://github.com/easyops-cn/docusaurus-search-local/issues/170) ([f516123](https://github.com/easyops-cn/docusaurus-search-local/commit/f5161238cb7466fe7309e9166037d681e647f910))
546
+
547
+ ## [0.25.0](https://github.com/easyops-cn/docusaurus-search-local/compare/v0.24.1...v0.25.0) (2022-05-19)
548
+
549
+ ### ⚠ BREAKING CHANGES
550
+
551
+ - drop `translations` in options
552
+
553
+ ### Features
554
+
555
+ - on board docusaurus i18n system ([70868c3](https://github.com/easyops-cn/docusaurus-search-local/commit/70868c333bace7fbdb27380730031311ae75748a)), closes [#160](https://github.com/easyops-cn/docusaurus-search-local/issues/160)
556
+
557
+ ### [0.24.1](https://github.com/easyops-cn/docusaurus-search-local/compare/v0.24.0...v0.24.1) (2022-05-19)
558
+
559
+ ### Bug Fixes
560
+
561
+ - fix indexing content between h1 and h2 ([f38b307](https://github.com/easyops-cn/docusaurus-search-local/commit/f38b307a669b582b8571fd2430b4454b49323c85))
562
+
563
+ ## [0.24.0](https://github.com/easyops-cn/docusaurus-search-local/compare/v0.23.3...v0.24.0) (2022-05-18)
564
+
565
+ ### Features
566
+
567
+ - Add option to disable the default lunr stemmer ([ff8e9a2](https://github.com/easyops-cn/docusaurus-search-local/commit/ff8e9a2e3162dd847cbef11036772578c41a8828))
568
+
569
+ ### Bug Fixes
570
+
571
+ - **deps:** update dependency fs-extra to v10 ([96c9220](https://github.com/easyops-cn/docusaurus-search-local/commit/96c92206bcff35b529400c19d5bcf66e1abd4d81))
572
+ - Fix parsing of top level pages when using docs only mode ([ff8e9a2](https://github.com/easyops-cn/docusaurus-search-local/commit/ff8e9a2e3162dd847cbef11036772578c41a8828))
573
+ - Fix passing of top sections for versions of docusaurus with breadcrumbs ([ff8e9a2](https://github.com/easyops-cn/docusaurus-search-local/commit/ff8e9a2e3162dd847cbef11036772578c41a8828))
574
+ - Fix search term highlighting when reusing the same search string ([ff8e9a2](https://github.com/easyops-cn/docusaurus-search-local/commit/ff8e9a2e3162dd847cbef11036772578c41a8828))
575
+
576
+ ### [0.23.3](https://www.github.com/easyops-cn/docusaurus-search-local/compare/v0.23.2...v0.23.3) (2022-05-18)
577
+
578
+ ### Bug Fixes
579
+
580
+ - Update getIndexHash.ts to support mdx and traverseAll ([#172](https://www.github.com/easyops-cn/docusaurus-search-local/issues/172)) ([717942e](https://www.github.com/easyops-cn/docusaurus-search-local/commit/717942e9caf36e37a0f119d9fdaa50e591339d9c))
581
+
582
+ ### [0.23.2](https://www.github.com/easyops-cn/docusaurus-search-local/compare/v0.23.1...v0.23.2) (2022-04-25)
583
+
584
+ ### Bug Fixes
585
+
586
+ - install cheerio types ([0a45f41](https://www.github.com/easyops-cn/docusaurus-search-local/commit/0a45f41bd02d8305328705bcc6582b92ed2ccf78))
587
+
588
+ ### [0.23.1](https://www.github.com/easyops-cn/docusaurus-search-local/compare/v0.23.0...v0.23.1) (2022-04-07)
589
+
590
+ ### Bug Fixes
591
+
592
+ - parse `h1` from the whole `article` ([aeb063a](https://www.github.com/easyops-cn/docusaurus-search-local/commit/aeb063af9dbac9778e3436aa261e0c131a2ef8c2))
593
+
594
+ ## [0.23.0](https://www.github.com/easyops-cn/docusaurus-search-local/compare/v0.22.0...v0.23.0) (2022-03-10)
595
+
596
+ ### Features
597
+
598
+ - replace nodejieba with @node-rs/jieba ([f3f7594](https://www.github.com/easyops-cn/docusaurus-search-local/commit/f3f7594d0a97075a4aefa19e15f2d1f961bbb824))
599
+
600
+ ## [0.22.0](https://www.github.com/easyops-cn/docusaurus-search-local/compare/v0.21.4...v0.22.0) (2022-02-28)
601
+
602
+ ### Features
603
+
604
+ - improve focus for search bar ([e4ede16](https://www.github.com/easyops-cn/docusaurus-search-local/commit/e4ede1650883e326bcbc7ff17c5ed3d37b279d17))
605
+
606
+ ### [0.21.4](https://www.github.com/easyops-cn/docusaurus-search-local/compare/v0.21.3...v0.21.4) (2021-12-15)
607
+
608
+ ### Bug Fixes
609
+
610
+ - set max-width for dropdown on small screen ([cec8c39](https://www.github.com/easyops-cn/docusaurus-search-local/commit/cec8c3924beacd900d880fd66edaf52dbdbdd952)), closes [#135](https://www.github.com/easyops-cn/docusaurus-search-local/issues/135)
611
+
612
+ ### [0.21.3](https://www.github.com/easyops-cn/docusaurus-search-local/compare/v0.21.2...v0.21.3) (2021-12-14)
613
+
614
+ ### Bug Fixes
615
+
616
+ - use keydown instead of keypress ([d871f0b](https://www.github.com/easyops-cn/docusaurus-search-local/commit/d871f0bbb1e1c6fe191341f7166b89b6aeb11bf2)), closes [#132](https://www.github.com/easyops-cn/docusaurus-search-local/issues/132)
617
+
618
+ ### [0.21.2](https://www.github.com/easyops-cn/docusaurus-search-local/compare/v0.21.1...v0.21.2) (2021-12-13)
619
+
620
+ ### Bug Fixes
621
+
622
+ - refine styles with dark navbar ([e3c9eef](https://www.github.com/easyops-cn/docusaurus-search-local/commit/e3c9eef41ffd9d51bb57b05fd199f7dc32541e79)), closes [#128](https://www.github.com/easyops-cn/docusaurus-search-local/issues/128)
623
+
624
+ ### [0.21.1](https://www.github.com/easyops-cn/docusaurus-search-local/compare/v0.21.0...v0.21.1) (2021-12-07)
625
+
626
+ ### Bug Fixes
627
+
628
+ - fix input box style of search page in dark mode ([f233bce](https://www.github.com/easyops-cn/docusaurus-search-local/commit/f233bcedb4d79cba9b8d21f700ca79f2297f0ec9)), closes [#125](https://www.github.com/easyops-cn/docusaurus-search-local/issues/125)
629
+
630
+ ## [0.21.0](https://www.github.com/easyops-cn/docusaurus-search-local/compare/v0.20.0...v0.21.0) (2021-12-04)
631
+
632
+ ### Features
633
+
634
+ - add shortcut (cmd/ctrl + K) support ([f12403f](https://www.github.com/easyops-cn/docusaurus-search-local/commit/f12403fc6bc48b489d8ef170aecad2262f3a4ebc))
635
+
636
+ ## [0.20.0](https://www.github.com/easyops-cn/docusaurus-search-local/compare/v0.19.1...v0.20.0) (2021-11-12)
637
+
638
+ ### Features
639
+
640
+ - remove nodejieba from peerDependencies ([e76bb64](https://www.github.com/easyops-cn/docusaurus-search-local/commit/e76bb6490b749cab6b17607349ab04f226d8eee4))
641
+
642
+ ### [0.19.1](https://www.github.com/easyops-cn/docusaurus-search-local/compare/v0.19.0...v0.19.1) (2021-08-03)
643
+
644
+ ### Bug Fixes
645
+
646
+ - fix docsRouteBasePath or blogRouteBasePath set to "/" ([a1b1df6](https://www.github.com/easyops-cn/docusaurus-search-local/commit/a1b1df6d59ab309ca68c18494ac72f8aa6a1b370))
647
+ - fix search page ignore ([9841cc8](https://www.github.com/easyops-cn/docusaurus-search-local/commit/9841cc8b910d5a1b2ea9fe896ec5acdde0b2faf0))
648
+ - refine get site config ([e215a1a](https://www.github.com/easyops-cn/docusaurus-search-local/commit/e215a1a5ceef1751233996e5a48c57fa9ca25d1e))
649
+
650
+ ## [0.19.0](https://www.github.com/easyops-cn/docusaurus-search-local/compare/v0.18.1...v0.19.0) (2021-08-03)
651
+
652
+ ### Features
653
+
654
+ - depends on docusaurus 2.0.0-beta.4 ([69ea575](https://www.github.com/easyops-cn/docusaurus-search-local/commit/69ea5757d6b4ef6158033d1cf766abc65d5e76d4))
655
+
656
+ ### Bug Fixes
657
+
658
+ - handle trailingSlash config ([16aa10f](https://www.github.com/easyops-cn/docusaurus-search-local/commit/16aa10f8117f1ceb5de4e1df3f18fe89c8b0c4ba)), closes [#100](https://www.github.com/easyops-cn/docusaurus-search-local/issues/100)
659
+
660
+ ### [0.18.1](https://www.github.com/easyops-cn/docusaurus-search-local/compare/v0.18.0...v0.18.1) (2021-06-05)
661
+
662
+ ### Bug Fixes
663
+
664
+ - fix an issue of highlighting in code blocks ([3378b9c](https://www.github.com/easyops-cn/docusaurus-search-local/commit/3378b9c3a0db4e649184dd735b0761f991dc44f4)), closes [#92](https://www.github.com/easyops-cn/docusaurus-search-local/issues/92)
665
+
666
+ ## [0.18.0](https://www.github.com/easyops-cn/docusaurus-search-local/compare/v0.17.0...v0.18.0) (2021-06-05)
667
+
668
+ ### Features
669
+
670
+ - support docusaurus 2.0.0-beta.0 ([a144b7f](https://www.github.com/easyops-cn/docusaurus-search-local/commit/a144b7f35ebefc1791a6057a163056d9a902f736))
671
+
672
+ ## [0.17.0](https://www.github.com/easyops-cn/docusaurus-search-local/compare/v0.16.3...v0.17.0) (2021-05-28)
673
+
674
+ ### Features
675
+
676
+ - ignore search files by config ([#88](https://www.github.com/easyops-cn/docusaurus-search-local/issues/88)) ([a7b1b3a](https://www.github.com/easyops-cn/docusaurus-search-local/commit/a7b1b3a98bda9c72859ebc762efa5eb874dbd7e9))
677
+
678
+ ### [0.16.3](https://www.github.com/easyops-cn/docusaurus-search-local/compare/v0.16.1...v0.16.3) (2021-05-13)
679
+
680
+ ### Bug Fixes
681
+
682
+ - missing runtime dependency tslib ([2f9d553](https://www.github.com/easyops-cn/docusaurus-search-local/commit/2f9d553b4a3a9596a0f738b80e25049b0a971d77))
683
+
684
+ ### Miscellaneous Chores
685
+
686
+ - release 0.16.3 ([b99a906](https://www.github.com/easyops-cn/docusaurus-search-local/commit/b99a9065af9a7dbfc4f52e52eec0935629ae13c5))
687
+
688
+ ### [0.16.2](https://github.com/easyops-cn/docusaurus-search-local/compare/v0.16.1...v0.16.2) (2021-05-08)
689
+
690
+ ### Bug Fixes
691
+
692
+ - support webpack v5 since docusaurus v2 alpha 75 ([5d1810b](https://github.com/easyops-cn/docusaurus-search-local/commit/5d1810b2e5288c9e4a73b2a2fd8b3c8e880e396c)), closes [#81](https://github.com/easyops-cn/docusaurus-search-local/issues/81)
693
+
694
+ ### [0.16.1](https://www.github.com/easyops-cn/docusaurus-search-local/compare/v0.16.0...v0.16.1) (2021-04-21)
695
+
696
+ ### Bug Fixes
697
+
698
+ - fix search bar error with new docusaurus ([ed5db80](https://www.github.com/easyops-cn/docusaurus-search-local/commit/ed5db80b5fdd51bad01855c16f1feb84cad0a4f3)), closes [#77](https://www.github.com/easyops-cn/docusaurus-search-local/issues/77)
699
+
700
+ ## [0.16.0](https://www.github.com/easyops-cn/docusaurus-search-local/compare/v0.15.1...v0.16.0) (2021-04-20)
701
+
702
+ ### ⚠ BREAKING CHANGES
703
+
704
+ - requires docusaurus ^2.0.0-alpha.73
705
+
706
+ ### Features
707
+
708
+ - fix error of mixing of joi schemas ([2159902](https://www.github.com/easyops-cn/docusaurus-search-local/commit/21599028d7c571f56fa4d97149b703322c9752ad)), closes [#31](https://www.github.com/easyops-cn/docusaurus-search-local/issues/31)
709
+
710
+ ### [0.15.1](https://www.github.com/easyops-cn/docusaurus-search-local/compare/v0.15.0...v0.15.1) (2021-04-08)
711
+
712
+ ### Bug Fixes
713
+
714
+ - remove form from search page ([f208313](https://www.github.com/easyops-cn/docusaurus-search-local/commit/f208313335cd09e040259a946a6722e890b44546)), closes [#64](https://www.github.com/easyops-cn/docusaurus-search-local/issues/64)
715
+
716
+ ## [0.15.0](https://www.github.com/easyops-cn/docusaurus-search-local/compare/v0.14.4...v0.15.0) (2021-03-06)
717
+
718
+ ### Features
719
+
720
+ - support translations in plugin options ([c6dc344](https://www.github.com/easyops-cn/docusaurus-search-local/commit/c6dc344d89f20bde0181ae164d3c27951befce11)), closes [#59](https://www.github.com/easyops-cn/docusaurus-search-local/issues/59)
721
+
722
+ ### [0.14.4](https://www.github.com/easyops-cn/docusaurus-search-local/compare/v0.14.3...v0.14.4) (2021-01-12)
723
+
724
+ ### Bug Fixes
725
+
726
+ - fix release-please workflow ([e823a8f](https://www.github.com/easyops-cn/docusaurus-search-local/commit/e823a8ffe4c0f1e8cb69e65c3a65120a96a6a03f))
727
+
728
+ ### [0.14.3](https://www.github.com/easyops-cn/docusaurus-search-local/compare/v0.14.2...v0.14.3) (2021-01-12)
729
+
730
+ ### Bug Fixes
731
+
732
+ - fix highlight not cleared when researching ([37a1a10](https://www.github.com/easyops-cn/docusaurus-search-local/commit/37a1a104c72f6abded27573fb30a00fc312b4f05))
733
+
734
+ ### [0.14.2](https://www.github.com/easyops-cn/docusaurus-search-local/compare/v0.14.1...v0.14.2) (2020-11-25)
735
+
736
+ ### Bug Fixes
737
+
738
+ - fix trailing hash not trimmed after upgraded docusaurus v2.0.0-alpha.69 ([2750ef6](https://www.github.com/easyops-cn/docusaurus-search-local/commit/2750ef606b231a6a1dad4be9b8bd79c155c30ed2))
739
+
740
+ ### [0.14.1](https://www.github.com/easyops-cn/docusaurus-search-local/compare/v0.14.0...v0.14.1) (2020-11-19)
741
+
742
+ ### Bug Fixes
743
+
744
+ - fix search bar loading style ([59464c4](https://www.github.com/easyops-cn/docusaurus-search-local/commit/59464c41dd668ace4546e78d47d5098d606d3a0e))
745
+
746
+ ## [0.14.0](https://www.github.com/easyops-cn/docusaurus-search-local/compare/v0.13.1...v0.14.0) (2020-11-19)
747
+
748
+ ### Features
749
+
750
+ - compatible with docusaurus v2.0.0-alhpa.68
751
+ - migrate from @hapi/joi to joi after upgraded docusaurus v2 alpha.68 ([e33ce5b](https://www.github.com/easyops-cn/docusaurus-search-local/commit/e33ce5bbadb6401960a12a2dfab5fa2e441c1a0a)), closes [#31](https://www.github.com/easyops-cn/docusaurus-search-local/issues/31)
752
+
753
+ ### [0.13.1](https://www.github.com/easyops-cn/docusaurus-search-local/compare/v0.13.0...v0.13.1) (2020-11-17)
754
+
755
+ ### Bug Fixes
756
+
757
+ - fix missing hash in search page links ([8f1b889](https://www.github.com/easyops-cn/docusaurus-search-local/commit/8f1b889d217d61e4123001d4f7586e028cc8ce72))
758
+
759
+ ## [0.13.0](https://www.github.com/easyops-cn/docusaurus-search-local/compare/v0.12.0...v0.13.0) (2020-11-14)
760
+
761
+ ### Features
762
+
763
+ - add an opt-in option `highlightSearchTermsOnTargetPage` ([e6621e8](https://www.github.com/easyops-cn/docusaurus-search-local/commit/e6621e87007cb97b12deb4ed8d8264f52dee8791))
764
+
765
+ ## [0.12.0](https://www.github.com/easyops-cn/docusaurus-search-local/compare/v0.11.2...v0.12.0) (2020-11-14)
766
+
767
+ ### Features
768
+
769
+ - support multiple docs and blog folders [#24](https://www.github.com/easyops-cn/docusaurus-search-local/issues/24) ([d90f4ad](https://www.github.com/easyops-cn/docusaurus-search-local/commit/d90f4ad707bd0924e027c7484e6f246d4df9423a))
770
+
771
+ ### [0.11.2](https://www.github.com/easyops-cn/docusaurus-search-local/compare/v0.11.1...v0.11.2) (2020-11-05)
772
+
773
+ ### Bug Fixes
774
+
775
+ - fix errors in development mode ([2331b73](https://www.github.com/easyops-cn/docusaurus-search-local/commit/2331b7322a32d351634667fcdd20fb4b62e80b61))
776
+ - show tips in search page in development mode ([4666bee](https://www.github.com/easyops-cn/docusaurus-search-local/commit/4666bee02c68c6b24844369e717c31f19c23dfda))
777
+
778
+ ### [0.11.1](https://www.github.com/easyops-cn/docusaurus-search-local/compare/v0.11.0...v0.11.1) (2020-11-02)
779
+
780
+ ### Bug Fixes
781
+
782
+ - remove debug flag ([7238af2](https://www.github.com/easyops-cn/docusaurus-search-local/commit/7238af2fa9063327e338acdb2420505435c07308))
783
+
784
+ ## [0.11.0](https://www.github.com/easyops-cn/docusaurus-search-local/compare/v0.10.1...v0.11.0) (2020-11-01)
785
+
786
+ ### Features
787
+
788
+ - search page to view all results ([0495e71](https://www.github.com/easyops-cn/docusaurus-search-local/commit/0495e7192478606c0d499f768a8beedc0e8a7225))
789
+
790
+ ### [0.10.1](https://www.github.com/easyops-cn/docusaurus-search-local/compare/v0.10.0...v0.10.1) (2020-10-30)
791
+
792
+ ### Bug Fixes
793
+
794
+ - process stop words for search keyword ([df3d789](https://www.github.com/easyops-cn/docusaurus-search-local/commit/df3d789a09b98ebe20f43c51619e8fa780a85e7f))
795
+
796
+ ## [0.10.0](https://www.github.com/easyops-cn/docusaurus-search-local/compare/v0.9.4...v0.10.0) (2020-10-29)
797
+
798
+ ### Features
799
+
800
+ - show loading status ([853603a](https://www.github.com/easyops-cn/docusaurus-search-local/commit/853603afc6a109116f49d621953c7220d89a6d05))
801
+
802
+ ### [0.9.4](https://www.github.com/easyops-cn/docusaurus-search-local/compare/v0.9.3...v0.9.4) (2020-10-29)
803
+
804
+ ### Bug Fixes
805
+
806
+ - refine index hash ([7551266](https://www.github.com/easyops-cn/docusaurus-search-local/commit/75512665713733199f85b51530c017ac86f24885))
807
+
808
+ ### [0.9.3](https://www.github.com/easyops-cn/docusaurus-search-local/compare/v0.9.2...v0.9.3) (2020-10-29)
809
+
810
+ ### Bug Fixes
811
+
812
+ - fix languages other than en and zh ([f43fd4b](https://www.github.com/easyops-cn/docusaurus-search-local/commit/f43fd4b6a261338da70556396a9c810884674e17)), closes [#9](https://www.github.com/easyops-cn/docusaurus-search-local/issues/9)
813
+
814
+ ### [0.9.2](https://www.github.com/easyops-cn/docusaurus-search-local/compare/v0.9.1...v0.9.2) (2020-10-24)
815
+
816
+ ### Bug Fixes
817
+
818
+ - refine debug ([554c451](https://www.github.com/easyops-cn/docusaurus-search-local/commit/554c451d04f3d6b1f2fa2f4732507d5e75655de7))
819
+
820
+ ### [0.9.1](https://www.github.com/easyops-cn/docusaurus-search-local/compare/v0.9.0...v0.9.1) (2020-10-24)
821
+
822
+ ### Bug Fixes
823
+
824
+ - check dir before create content hash ([faf9cf7](https://www.github.com/easyops-cn/docusaurus-search-local/commit/faf9cf7e338a0fbc6de06a42a8cf4148c0ff0bab))
825
+
826
+ ## [0.9.0](https://www.github.com/easyops-cn/docusaurus-search-local/compare/v0.8.0...v0.9.0) (2020-10-23)
827
+
828
+ ### Features
829
+
830
+ - add a plugin option `searchResultLimits` ([0bdec39](https://www.github.com/easyops-cn/docusaurus-search-local/commit/0bdec39951a78d86d31e9885fd9e91ffad25a5f4))
831
+ - add a plugin option of `searchResultContextMaxLength` ([3313552](https://www.github.com/easyops-cn/docusaurus-search-local/commit/33135529c277431db78ed374eb83de23667ecc38))
832
+ - validate options using Joi ([0b1361a](https://www.github.com/easyops-cn/docusaurus-search-local/commit/0b1361a5d7e3ca9c5dd35fc89d64098c8670e7d1))
833
+
834
+ ## [0.8.0](https://github.com/easyops-cn/docusaurus-search-local/compare/v0.6.0...v0.8.0) (2020-10-21)
835
+
836
+ ### ⚠ BREAKING CHANGES
837
+
838
+ - renamed `docsBasePath` and `blogBasePath` to `docsRouteBasePath` and `blogRouteBasePath`, to keep them the same as cmfcmf/docusaurus-search-local.
839
+ - users need to install `nodejieba` if using language of zh.
840
+
841
+ ### Features
842
+
843
+ - make nodejieba as a peer dependency ([956b3b5](https://github.com/easyops-cn/docusaurus-search-local/commit/956b3b563c8662c8d8cb867ef174548221865754))
844
+ - rename option of \*BasePath ([978846a](https://github.com/easyops-cn/docusaurus-search-local/commit/978846a13c303c321b154eca8847e2eab33baa5b))
845
+
846
+ ### Bug Fixes
847
+
848
+ - fix nodejieba is still required ([78e4d67](https://github.com/easyops-cn/docusaurus-search-local/commit/78e4d677a5bccb0ae3aff0fc16c43ac031b911a3))
849
+ - fix styles on mobile screen ([1cc6850](https://github.com/easyops-cn/docusaurus-search-local/commit/1cc6850402cd7eced043736d4b826f97bd2498f0))
850
+ - languages of non-en require stemmer support ([bc8e451](https://github.com/easyops-cn/docusaurus-search-local/commit/bc8e451cfd65024d48f08c481f2cd4850c2d0dbd))
851
+
852
+ ### [0.7.1](https://github.com/easyops-cn/docusaurus-search-local/compare/v0.7.0...v0.7.1) (2020-10-21)
853
+
854
+ ### Bug Fixes
855
+
856
+ - fix nodejieba is still required ([78e4d67](https://github.com/easyops-cn/docusaurus-search-local/commit/78e4d677a5bccb0ae3aff0fc16c43ac031b911a3))
857
+
858
+ ## [0.7.0](https://github.com/easyops-cn/docusaurus-search-local/compare/v0.6.2...v0.7.0) (2020-10-21)
859
+
860
+ ### ⚠ BREAKING CHANGES
861
+
862
+ - users need to install `nodejieba` if using language of zh.
863
+
864
+ ### Features
865
+
866
+ - make nodejieba as a peer dependency ([956b3b5](https://github.com/easyops-cn/docusaurus-search-local/commit/956b3b563c8662c8d8cb867ef174548221865754))
867
+
868
+ ### [0.6.2](https://github.com/easyops-cn/docusaurus-search-local/compare/v0.6.1...v0.6.2) (2020-10-21)
869
+
870
+ ### Bug Fixes
871
+
872
+ - fix styles on mobile screen ([1cc6850](https://github.com/easyops-cn/docusaurus-search-local/commit/1cc6850402cd7eced043736d4b826f97bd2498f0))
873
+
874
+ ### [0.6.1](https://github.com/easyops-cn/docusaurus-search-local/compare/v0.6.0...v0.6.1) (2020-10-21)
875
+
876
+ ### Bug Fixes
877
+
878
+ - languages of non-en require stemmer support ([bc8e451](https://github.com/easyops-cn/docusaurus-search-local/commit/bc8e451cfd65024d48f08c481f2cd4850c2d0dbd))
879
+
880
+ ## [0.6.0](https://github.com/easyops-cn/docusaurus-search-local/compare/v0.5.2...v0.6.0) (2020-10-20)
881
+
882
+ ### ⚠ BREAKING CHANGES
883
+
884
+ - css already included.
885
+
886
+ ### Features
887
+
888
+ - plugin options refined ([b722878](https://github.com/easyops-cn/docusaurus-search-local/commit/b72287896d8e40477936d0d993a14760220c7e46))
889
+ - shipped with css ([af0d7b0](https://github.com/easyops-cn/docusaurus-search-local/commit/af0d7b03579d48842625eeaf81dcfc4d22d7c3a6))
890
+
891
+ ### [0.5.3](https://github.com/easyops-cn/docusaurus-search-local/compare/v0.5.2...v0.5.3) (2020-10-20)
892
+
893
+ ### Features
894
+
895
+ - plugin options refined ([b722878](https://github.com/easyops-cn/docusaurus-search-local/commit/b72287896d8e40477936d0d993a14760220c7e46))
896
+
897
+ ### [0.5.2](https://github.com/easyops-cn/docusaurus-search-local/compare/v0.5.1...v0.5.2) (2020-10-18)
898
+
899
+ ### Bug Fixes
900
+
901
+ - fix consecutive Chinese words are not matched ([db8541e](https://github.com/easyops-cn/docusaurus-search-local/commit/db8541e6598e2e99b230374b403622f8d3b8a9d3))
902
+
903
+ ### 0.5.1 (2020-10-18)
@@ -268,6 +268,11 @@ export default function SearchBar({ handleSearchBarToggle, }) {
268
268
  search.current?.autocomplete.open();
269
269
  }
270
270
  input.focus();
271
+ // On small screens the input is collapsed by default; after expanding via
272
+ // focus, move the caret to the end so backspace works as expected.
273
+ if (window.matchMedia("(max-width: 576px)").matches) {
274
+ input.setSelectionRange(input.value.length, input.value.length);
275
+ }
271
276
  }
272
277
  }, [hidden, searchContext, versionUrl, baseUrl, history]);
273
278
  useEffect(() => {
@@ -304,6 +309,17 @@ export default function SearchBar({ handleSearchBarToggle, }) {
304
309
  loadIndex();
305
310
  setFocused(true);
306
311
  handleSearchBarToggle?.(true);
312
+ // On small screens the input is collapsed by default; after expanding via
313
+ // focus, move the caret to the end so backspace works as expected.
314
+ // On large screens we leave the native caret behaviour untouched.
315
+ if (window.matchMedia("(max-width: 576px)").matches) {
316
+ const input = searchBarRef.current;
317
+ if (input) {
318
+ setTimeout(() => {
319
+ input.setSelectionRange(input.value.length, input.value.length);
320
+ }, 0);
321
+ }
322
+ }
307
323
  }, [handleSearchBarToggle, loadIndex]);
308
324
  const onInputBlur = useCallback(() => {
309
325
  setFocused(false);
@@ -51,8 +51,7 @@ function DocusaurusSearchLocalPlugin(context, options) {
51
51
  });
52
52
  },
53
53
  configureWebpack() {
54
- // Only externalize on client-side builds
55
- if ( /* !isServer && */!(options === null || options === void 0 ? void 0 : options.askAi)) {
54
+ if (!(options === null || options === void 0 ? void 0 : options.askAi)) {
56
55
  // When askAi is not enabled, treat open-ask-ai as an external
57
56
  // to prevent bundling it unnecessarily
58
57
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@easyops-cn/docusaurus-search-local",
3
- "version": "0.55.0-alpha.2",
3
+ "version": "0.55.1",
4
4
  "description": "An offline/local search plugin for Docusaurus v3",
5
5
  "repository": {
6
6
  "type": "git",
@@ -79,4 +79,4 @@
79
79
  "optional": true
80
80
  }
81
81
  }
82
- }
82
+ }