@thingd/native 0.31.0 → 0.32.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 -42
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,45 +1,7 @@
|
|
|
1
|
-
# thingd
|
|
1
|
+
# @thingd/native
|
|
2
2
|
|
|
3
|
-
[](https://www.npmjs.com/package/thingd-native)
|
|
3
|
+
[](https://www.npmjs.com/package/@thingd/native)
|
|
5
4
|
|
|
6
|
-
Native Node.js binding for
|
|
5
|
+
Native Node.js binding for [thingd](https://github.com/sayanmohsin/thingd) — wraps `crates/thingd` (published on crates.io as `thingd`).
|
|
7
6
|
|
|
8
|
-
This package provides the native SQLite
|
|
9
|
-
|
|
10
|
-
This package is intentionally private and non-publishable right now. The public package remains `thingd`.
|
|
11
|
-
|
|
12
|
-
Current shape:
|
|
13
|
-
|
|
14
|
-
```txt
|
|
15
|
-
thingd
|
|
16
|
-
TypeScript public API
|
|
17
|
-
ThingStore interface
|
|
18
|
-
loads this package only for driver: "native"
|
|
19
|
-
|
|
20
|
-
thingd-native
|
|
21
|
-
napi-rs binding package
|
|
22
|
-
wraps crates/thingd-core (published on crates.io)
|
|
23
|
-
exposes low-level JSON bridge methods
|
|
24
|
-
```
|
|
25
|
-
|
|
26
|
-
Build locally:
|
|
27
|
-
|
|
28
|
-
```bash
|
|
29
|
-
pnpm --filter thingd-native build
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
Then use it through the public SDK:
|
|
33
|
-
|
|
34
|
-
```ts
|
|
35
|
-
import { ThingD } from "thingd";
|
|
36
|
-
|
|
37
|
-
const db = await ThingD.open({
|
|
38
|
-
path: "./thingd.db",
|
|
39
|
-
driver: "native",
|
|
40
|
-
});
|
|
41
|
-
```
|
|
42
|
-
|
|
43
|
-
The native package should not define a separate app-facing API. It should satisfy the same SDK behavior tested in `packages/thingd/test`.
|
|
44
|
-
|
|
45
|
-
Do not publish this package until it has a prebuild strategy, migration story, and CI coverage for supported Node.js/platform combinations.
|
|
7
|
+
This package is an internal dependency of `@thingd/sdk` and provides the native SQLite-backed store via napi-rs. You don't need to install it directly — `@thingd/sdk` pulls it in automatically when using `driver: "native"`.
|