Releases: emitkithq/sdks
Releases · emitkithq/sdks
Release list
@emitkit/js@3.0.0
Major Changes
-
1db6641: SDK 3: typed requests and responses, and everything the API does now.
ask()sends an event with buttons or fields and waits for the answer from someone's phone.events.get,events.list(paged),events.cancel,channels.list,identities.delete,me.verifyCallback()checks callbacks from events with acallbackUrl(Standard Webhooks).- Methods return the data;
lastResponsehas the request id, rate limit and replay flag. - One
EmitKitErrorwith the API's stablecode;identifytakesuserId. new EmitKit()readsEMITKIT_API_KEY;events.createretries safely with an automaticIdempotency-Key.- No dependencies. See MIGRATING.md for upgrading from 2.x.
@emitkit/cli@0.1.0
Minor Changes
- 1db6641: The EmitKit CLI:
login,whoami,send,ask(waits for the answer; exit codes for scripts),get,cancel,events,tail,channels,identify, with--jsonfor agents.
@emitkit/js@2.1.1
Patch Changes
- 56dd3d8: Fix "Illegal invocation" on every request in Cloudflare Workers: the client called
fetchas a method of its config object, which workerd rejects. It now calls the globalfetch(or the one passed inconfig.fetch) unbound.
@emitkit/js@3.0.0-next.0
Major Changes
-
1db6641: SDK 3: typed requests and responses, and everything the API does now.
ask()sends an event with buttons or fields and waits for the answer from someone's phone.events.get,events.list(paged),events.cancel,channels.list,identities.delete,me.verifyCallback()checks callbacks from events with acallbackUrl(Standard Webhooks).- Methods return the data;
lastResponsehas the request id, rate limit and replay flag. - One
EmitKitErrorwith the API's stablecode;identifytakesuserId. new EmitKit()readsEMITKIT_API_KEY;events.createretries safely with an automaticIdempotency-Key.- No dependencies. See MIGRATING.md for upgrading from 2.x.
@emitkit/cli 0.1.0-next.0 (preview)
The EmitKit CLI, preview. Until it's on npm, install it from this release:
npm install -g https://github.com/emitkithq/sdks/releases/download/%40emitkit/cli%400.1.0-next.0/emitkit-cli-0.1.0-next.0.tgz
emitkit loginCommands: login, whoami, send, ask (waits; exit 0 answered, 3 expired/canceled, 124 at --timeout), get, cancel, events, tail, channels, identify. --json for scripts and agents. Bundles @emitkit/js 3.0.0-next.0; Node 20.3+. See packages/cli/README.md.