@kivel.io/sdk 0.10.0 → 0.10.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/CHANGELOG.md +6 -0
- package/README.md +2 -4
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @kivel.io/sdk
|
|
2
2
|
|
|
3
|
+
## 0.10.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 10de14b: Publish releases to the npm latest tag, so `npm install @kivel.io/sdk` and `npm install --global @kivel.io/cli` install the newest version. Install instructions no longer need `@beta`.
|
|
8
|
+
|
|
3
9
|
## 0.10.0
|
|
4
10
|
|
|
5
11
|
### Minor Changes
|
package/README.md
CHANGED
|
@@ -6,11 +6,10 @@ for coding agents. Requires Node.js 22.13+ or a compatible fetch-based runtime.
|
|
|
6
6
|
The published package is ESM; use `import`, not CommonJS `require`.
|
|
7
7
|
|
|
8
8
|
```sh
|
|
9
|
-
npm install @kivel.io/sdk
|
|
9
|
+
npm install @kivel.io/sdk
|
|
10
10
|
```
|
|
11
11
|
|
|
12
|
-
|
|
13
|
-
when you need reproducible application builds.
|
|
12
|
+
Pin an exact version when you need reproducible application builds.
|
|
14
13
|
|
|
15
14
|
```ts
|
|
16
15
|
import { Kivel, KivelError } from '@kivel.io/sdk';
|
|
@@ -24,7 +23,6 @@ await kivel.remove('inboxes', inbox.id);
|
|
|
24
23
|
|
|
25
24
|
`createInbox()` returns a `webhookUrl` that accepts senders without credentials. Reading and waiting still require your workspace key or the private `inspectionToken`. For token-required receiving, pass `{ visibility: 'private' }` and give the sender the returned `accessToken` for its `X-Access-Token` header.
|
|
26
25
|
|
|
27
|
-
|
|
28
26
|
Use `stream(['webhook:' + inbox.id], { token, signal })` to receive change notices
|
|
29
27
|
when live updates are available. Fetch the request bodies with the normal inbox
|
|
30
28
|
methods. Pass the last notice's `cursor` as `lastEventId` when reconnecting.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kivel.io/sdk",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"publishConfig": {
|
|
35
35
|
"access": "public",
|
|
36
36
|
"registry": "https://registry.npmjs.org/",
|
|
37
|
-
"tag": "
|
|
37
|
+
"tag": "latest"
|
|
38
38
|
},
|
|
39
39
|
"main": "./dist/index.js",
|
|
40
40
|
"types": "./dist/index.d.ts",
|