@aiao/rxdb-plugin-search-react 0.0.24 → 0.0.26

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.
Files changed (2) hide show
  1. package/README.md +6 -5
  2. package/package.json +26 -4
package/README.md CHANGED
@@ -47,9 +47,10 @@ export function SearchPage({ database }: { readonly database: RxDB }) {
47
47
  }
48
48
  ```
49
49
 
50
- `startSearch()` 必须在渲染 `SearchPage` 前完成。`connect()` 会触发数据库 `init()`;
51
- `database.searchPlugin.ready` 等待 FTS 安装与回填完成。未安装或销毁后访问 `ready` 会 reject,
52
- 不能把它当成永远成功的探针。
50
+ `startSearch()` 必须在渲染 `SearchPage` 前完成。插件声明 `inject: ['adapter:local']`,宿主在本地
51
+ 适配器就绪后才安装它,因此 `await connect()` 返回时 FTS 已经装好;`database.searchPlugin.ready`
52
+ 是「装上没有」的显式确认——安装成功 resolve,失败 reject 原始错误,纪元被释放(断连 / 回滚)后
53
+ reject `destroyed`。它一个连接纪元一格,重连之后要重新读一次,不能当成永远成功的探针。
53
54
 
54
55
  `useSearch` 返回 `UseSearchReturn`。hook 持有 `SearchHandle` 的所有权,组件卸载或重建时自动
55
56
  `destroy()`;调用方不要再次销毁底层 handle。
@@ -70,9 +71,9 @@ export function SearchPage({ database }: { readonly database: RxDB }) {
70
71
 
71
72
  ## 文档
72
73
 
73
- - 仓库主页:[https://github.com/aiao-io/aiao](https://github.com/aiao-io/aiao)
74
+ - 仓库主页:[https://github.com/aiao-io/rxdb](https://github.com/aiao-io/rxdb)
74
75
  - 框架集成与搜索指南见项目文档站
75
76
 
76
77
  ## License
77
78
 
78
- [MIT](https://github.com/aiao-io/aiao/blob/main/LICENSE)
79
+ [MIT](https://github.com/aiao-io/rxdb/blob/main/LICENSE)
package/package.json CHANGED
@@ -1,7 +1,25 @@
1
1
  {
2
2
  "name": "@aiao/rxdb-plugin-search-react",
3
- "version": "0.0.24",
3
+ "version": "0.0.26",
4
+ "description": "React bindings for the Aiao RxDB full-text search plugin.",
5
+ "homepage": "https://rxdb.netlify.app/docs/plugins",
6
+ "bugs": {
7
+ "url": "https://github.com/aiao-io/rxdb/issues"
8
+ },
9
+ "keywords": [
10
+ "aiao",
11
+ "rxdb",
12
+ "react",
13
+ "full-text-search",
14
+ "fts5",
15
+ "hooks"
16
+ ],
4
17
  "license": "MIT",
18
+ "repository": {
19
+ "type": "git",
20
+ "url": "git+https://github.com/aiao-io/rxdb.git",
21
+ "directory": "packages/rxdb-plugin-search-react"
22
+ },
5
23
  "files": [
6
24
  "dist",
7
25
  "src",
@@ -11,6 +29,7 @@
11
29
  "!**/*.tsbuildinfo"
12
30
  ],
13
31
  "type": "module",
32
+ "sideEffects": false,
14
33
  "main": "./dist/index.js",
15
34
  "module": "./dist/index.js",
16
35
  "types": "./dist/index.d.ts",
@@ -24,9 +43,12 @@
24
43
  },
25
44
  "peerDependencies": {
26
45
  "@aiao/rxdb": "*",
27
- "react": "^19.2.0",
28
- "rxjs": "^7.8.2",
29
- "@aiao/rxdb-plugin-search": "0.0.24"
46
+ "@aiao/rxdb-plugin-search": "*",
47
+ "react": "^19.2.8",
48
+ "rxjs": "^7.8.2"
49
+ },
50
+ "devDependencies": {
51
+ "@aiao/rxdb-plugin-search": "0.0.26"
30
52
  },
31
53
  "publishConfig": {
32
54
  "access": "public"