@vuepress-plume/plugin-search 1.0.0-rc.201 → 1.0.0-rc.202

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.
@@ -4,11 +4,11 @@ import type { Ref } from 'vue'
4
4
  import type { SearchBoxLocales, SearchOptions } from '../../shared/index.js'
5
5
  import {
6
6
  computedAsync,
7
- debouncedWatch,
8
7
  onKeyStroke,
9
8
  useEventListener,
10
9
  useScrollLock,
11
10
  useSessionStorage,
11
+ watchDebounced,
12
12
  } from '@vueuse/core'
13
13
  import { useFocusTrap } from '@vueuse/integrations/useFocusTrap'
14
14
  import Mark from 'mark.js/src/vanilla.js'
@@ -19,7 +19,6 @@ import {
19
19
  nextTick,
20
20
  onBeforeUnmount,
21
21
  onMounted,
22
-
23
22
  ref,
24
23
  shallowRef,
25
24
  toRef,
@@ -111,7 +110,7 @@ const mark = computedAsync(async () => {
111
110
 
112
111
  const cache = new LRUCache<string, Map<string, string>>(64) // 64 files
113
112
 
114
- debouncedWatch(
113
+ watchDebounced(
115
114
  () => [searchIndex.value, filterText.value] as const,
116
115
  async ([index, filterTextValue], old, onCleanup) => {
117
116
  if (old?.[0] !== index) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vuepress-plume/plugin-search",
3
3
  "type": "module",
4
- "version": "1.0.0-rc.201",
4
+ "version": "1.0.0-rc.202",
5
5
  "description": "The Plugin for VuePress 2 - local search",
6
6
  "author": "pengzhanbo <volodymyr@foxmail.com>",
7
7
  "license": "MIT",
@@ -38,11 +38,11 @@
38
38
  "@vueuse/core": "^14.3.0",
39
39
  "@vueuse/integrations": "^14.3.0",
40
40
  "chokidar": "5.0.0",
41
- "focus-trap": "^8.2.0",
41
+ "focus-trap": "^8.2.1",
42
42
  "mark.js": "^8.11.1",
43
43
  "minisearch": "^7.2.0",
44
44
  "p-map": "^7.0.4",
45
- "vue": "^3.5.34"
45
+ "vue": "^3.5.35"
46
46
  },
47
47
  "publishConfig": {
48
48
  "access": "public",