@thingd/native 0.85.0 → 0.86.1

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 CHANGED
@@ -9,7 +9,9 @@ This package is an internal dependency of `@thingd/sdk` and provides the native
9
9
  The addon uses ThingDB RAM for `:memory:` and empty-path operation without
10
10
  creating temporary files. Real filesystem paths use the RocksDB durable backend
11
11
  by default; set `THINGD_STORAGE_BACKEND=thingdb` to opt into the experimental
12
- Rust-native durable backend. The public SDK store contract remains unchanged.
12
+ Rust-native durable backend. Published packages include prebuilt native
13
+ artifacts for supported targets, so consumers normally do not install LLVM,
14
+ Clang, or RocksDB locally. The public SDK store contract remains unchanged.
13
15
 
14
16
  The native open boundary accepts an optional 64-character hexadecimal key for
15
17
  authenticated encrypted storage. The key is validated before opening the Rust
package/index.js CHANGED
@@ -21,8 +21,15 @@ function resolveBinding() {
21
21
  return { binding: require(prebuiltPath), path: prebuiltPath };
22
22
  }
23
23
 
24
- // 3. Fallback to requiring dev path directly (will throw standard error)
25
- return { binding: require(devPath), path: devPath };
24
+ // A source build is intentionally not attempted at runtime. Published
25
+ // packages carry prebuilds; falling back to a native compilation here would
26
+ // produce opaque libclang/RocksDB failures for consumers.
27
+ const message =
28
+ `No prebuilt @thingd/native binary is available for ${platform}-${arch}. ` +
29
+ "Install a supported package target or build the native addon with the Thingd native toolchain.";
30
+ const error = new Error(message);
31
+ error.code = "THINGD_NATIVE_PREBUILD_MISSING";
32
+ throw error;
26
33
  }
27
34
 
28
35
  const { binding, path } = resolveBinding();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thingd/native",
3
- "version": "0.85.0",
3
+ "version": "0.86.1",
4
4
  "description": "Native Node.js binding for thingd — a fast object-first data engine for applications and AI agents.",
5
5
  "type": "module",
6
6
  "publishConfig": {