@thingd/client 0.83.2 → 0.84.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.
Files changed (2) hide show
  1. package/README.md +5 -3
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -7,7 +7,7 @@ import { ThingdClient } from "@thingd/client";
7
7
 
8
8
  const client = new ThingdClient({
9
9
  url: "https://api.thingd.cloud",
10
- authToken: "sk-...",
10
+ authToken: "md_pk_...",
11
11
  });
12
12
 
13
13
  await client.put("notes", { id: "1", text: "Hello world" });
@@ -26,7 +26,9 @@ npm install @thingd/client
26
26
 
27
27
  ## Usage
28
28
 
29
- Connect to any thingd instance — local sidecar, Docker, or thingd.cloud:
29
+ Connect to any thingd instance — local sidecar, Docker, or thingd.cloud. A
30
+ local runtime token and a Cloud project API key are both sent as Bearer
31
+ credentials, but they are issued and managed by different systems:
30
32
 
31
33
  ```ts
32
34
  const client = new ThingdClient({
@@ -160,7 +162,7 @@ Connect to thingd Cloud using a project-scoped API key:
160
162
  ```ts
161
163
  const client = new ThingdClient({
162
164
  url: "https://api.thingd.cloud",
163
- authToken: "md_live_xxx",
165
+ authToken: "md_pk_...",
164
166
  });
165
167
  ```
166
168
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thingd/client",
3
- "version": "0.83.2",
3
+ "version": "0.84.1",
4
4
  "description": "Zero-dependency HTTP client for thingd — works in browsers, edge runtimes, Node.js, Bun, Deno",
5
5
  "type": "module",
6
6
  "license": "Apache-2.0",