@thingd/sdk 0.85.0 → 0.86.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.
@@ -1 +1 @@
1
- {"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../src/rest/server.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AACjE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AA0C3C,wBAAsB,iBAAiB,CACrC,EAAE,EAAE,MAAM,EACV,GAAG,EAAE,eAAe,EACpB,GAAG,EAAE,cAAc,EACnB,QAAQ,EAAE,MAAM,GACf,OAAO,CAAC,IAAI,CAAC,CA+hBf"}
1
+ {"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../../src/rest/server.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AACjE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AA0C3C,wBAAsB,iBAAiB,CACrC,EAAE,EAAE,MAAM,EACV,GAAG,EAAE,eAAe,EACpB,GAAG,EAAE,cAAc,EACnB,QAAQ,EAAE,MAAM,GACf,OAAO,CAAC,IAAI,CAAC,CAkiBf"}
@@ -501,7 +501,8 @@ export async function handleRestRequest(db, req, res, pathname) {
501
501
  sendError(res, 404, "not_found", `No route for ${method} ${pathname}`);
502
502
  }
503
503
  catch (err) {
504
- console.error("Unhandled REST error", err);
504
+ const error = err instanceof Error ? err.message : String(err);
505
+ process.stderr.write(`${JSON.stringify({ level: "error", event: "rest_request_failed", method, path: pathname, error })}\n`);
505
506
  sendError(res, 500, "internal_error", "An internal error occurred");
506
507
  }
507
508
  }
package/dist/thingd.js CHANGED
@@ -330,7 +330,8 @@ async function openStore(path, options) {
330
330
  if (options.encryption) {
331
331
  throw new Error("Encryption options require the native persistent driver");
332
332
  }
333
- console.warn(`Warning: The native thingd driver is not available. Falling back to the temporary in-memory store. Data will not persist. Run "pnpm --filter @thingd/native build" or install "@thingd/native" to enable native persistence.`);
333
+ process.emitWarning("The native thingd driver is unavailable; using the temporary in-memory store. " +
334
+ 'Data will not persist. Build "@thingd/native" or install it to enable native persistence.', { code: "THINGD_NATIVE_DRIVER_UNAVAILABLE" });
334
335
  }
335
336
  return new InMemoryThingStore();
336
337
  }
package/dist/version.d.ts CHANGED
@@ -2,5 +2,5 @@
2
2
  * The published version of the thingd SDK.
3
3
  * Updated automatically by Release Please during the release PR process.
4
4
  */
5
- export declare const SDK_VERSION = "0.85.0";
5
+ export declare const SDK_VERSION = "0.86.0";
6
6
  //# sourceMappingURL=version.d.ts.map
package/dist/version.js CHANGED
@@ -2,4 +2,4 @@
2
2
  * The published version of the thingd SDK.
3
3
  * Updated automatically by Release Please during the release PR process.
4
4
  */
5
- export const SDK_VERSION = "0.85.0"; // x-release-please-version
5
+ export const SDK_VERSION = "0.86.0"; // x-release-please-version
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thingd/sdk",
3
- "version": "0.85.0",
3
+ "version": "0.86.0",
4
4
  "description": "A fast object-first data engine for applications and AI agents.",
5
5
  "type": "module",
6
6
  "author": "Sayan Mohsin",
@@ -71,7 +71,7 @@
71
71
  "zod": "^4.4.3"
72
72
  },
73
73
  "optionalDependencies": {
74
- "@thingd/native": "^0.85.0"
74
+ "@thingd/native": "^0.86.0"
75
75
  },
76
76
  "scripts": {
77
77
  "build": "tsc -p tsconfig.json",