@evumi/berth 0.0.67 → 0.0.70

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 +2 -2
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -139,12 +139,12 @@ await trialEnd.deleteAlarm(); // 没有也不报错
139
139
 
140
140
  `@evumi/berth/documents` 提供一个刻意收小的 Mongo 风格接口,不用定义业务表或 schema。底层是一张 JSON 文档表;不是 MongoDB 协议、Mongoose 或完整 MongoDB 兼容层。
141
141
 
142
- Bun 本地持久化(Worker 默认路径是 `/data/worker.sqlite`):
142
+ Bun 本地持久化(用于 Berth 之外的 Bun 进程;Berth Worker 没有本地卷,请使用 libSQL):
143
143
 
144
144
  ```ts
145
145
  import { openBunDocumentStore } from '@evumi/berth/documents/bun';
146
146
 
147
- const db = await openBunDocumentStore(Bun.env.BERTH_SQLITE_PATH ?? '/data/worker.sqlite');
147
+ const db = await openBunDocumentStore('./app.sqlite');
148
148
  const notes = db.collection<{ title: string; views: number; author?: { name: string } }>('notes');
149
149
  const { insertedId } = await notes.insertOne({ title: 'hello', views: 0 });
150
150
  await notes.updateOne({ _id: insertedId }, { $inc: { views: 1 } });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@evumi/berth",
3
- "version": "0.0.67",
3
+ "version": "0.0.70",
4
4
  "description": "Berth worker types, document queries on SQLite/libSQL, Queues, Alarms, and signed delivery verification.",
5
5
  "license": "MIT",
6
6
  "repository": {