@reddb-io/browser 0.1.0-alpha.1 → 0.1.0
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/README.md +4 -5
- package/package.json +3 -3
- package/src/index.d.ts +1 -1
- package/src/index.js +1 -1
package/README.md
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
# RedDB Browser —
|
|
1
|
+
# RedDB Browser — persistence and query engine
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
canonical Rust `.rdb` artifact publication/recovery code, RQL parser and shared
|
|
3
|
+
The `@reddb-io/browser` package runs the canonical Rust `.rdb` artifact publication/recovery code, RQL parser and shared
|
|
5
4
|
scalar evaluator in a dedicated WebAssembly worker, persisting through a real
|
|
6
5
|
OPFS sync access handle.
|
|
7
6
|
Artifact storage requires a secure context, module workers, OPFS and Web Locks.
|
|
@@ -15,7 +14,7 @@ application cache. Sync is optional and must never gate local reads or writes.
|
|
|
15
14
|
|
|
16
15
|
**It is not a database SDK yet.** It executes storage-free scalar SELECTs;
|
|
17
16
|
queries over stored data, five-model local transactions, synchronization,
|
|
18
|
-
conflict resolution and forwarding between tabs remain pending. It is published on the `
|
|
17
|
+
conflict resolution and forwarding between tabs remain pending. It is published on the `latest` npm channel and does not replace the remote `@reddb-io/client`.
|
|
19
18
|
|
|
20
19
|
## Use from JS/TS
|
|
21
20
|
|
|
@@ -23,7 +22,7 @@ See the [application guide](https://github.com/reddb-io/reddb/blob/main/docs/cli
|
|
|
23
22
|
Vite/React/Vue/Svelte, plain JavaScript, Worker ownership and offline assets.
|
|
24
23
|
|
|
25
24
|
```sh
|
|
26
|
-
npm add @reddb-io/browser
|
|
25
|
+
npm add @reddb-io/browser
|
|
27
26
|
```
|
|
28
27
|
|
|
29
28
|
```ts
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reddb-io/browser",
|
|
3
|
-
"version": "0.1.0
|
|
3
|
+
"version": "0.1.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
|
-
"description": "
|
|
6
|
+
"description": "RedDB browser persistence and shared scalar execution; stored-data queries and sync remain pending.",
|
|
7
7
|
"exports": {
|
|
8
8
|
".": {
|
|
9
9
|
"types": "./src/index.d.ts",
|
|
@@ -41,6 +41,6 @@
|
|
|
41
41
|
],
|
|
42
42
|
"publishConfig": {
|
|
43
43
|
"access": "public",
|
|
44
|
-
"tag": "
|
|
44
|
+
"tag": "latest"
|
|
45
45
|
}
|
|
46
46
|
}
|
package/src/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/**
|
|
1
|
+
/** Persistence and scalar execution; stored-data queries and sync remain pending. */
|
|
2
2
|
export class BrowserError extends Error {
|
|
3
3
|
readonly code: string
|
|
4
4
|
constructor(code: string, message: string)
|
package/src/index.js
CHANGED