Skip to content

Releases: emitkithq/sdks

@emitkit/js@3.0.0

Choose a tag to compare

@github-actions github-actions released this 28 Sep 12:41
c48e373

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 a callbackUrl (Standard Webhooks).
    • Methods return the data; lastResponse has the request id, rate limit and replay flag.
    • One EmitKitError with the API's stable code; identify takes userId.
    • new EmitKit() reads EMITKIT_API_KEY; events.create retries safely with an automatic Idempotency-Key.
    • No dependencies. See MIGRATING.md for upgrading from 2.x.

@emitkit/cli@0.1.0

Choose a tag to compare

@github-actions github-actions released this 28 Sep 12:41
c48e373

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 --json for agents.

@emitkit/js@2.1.1

Choose a tag to compare

@github-actions github-actions released this 26 Sep 14:32

Patch Changes

  • 56dd3d8: Fix "Illegal invocation" on every request in Cloudflare Workers: the client called fetch as a method of its config object, which workerd rejects. It now calls the global fetch (or the one passed in config.fetch) unbound.

@emitkit/js@3.0.0-next.0

Pre-release

Choose a tag to compare

@github-actions github-actions released this 26 Sep 18:30
6fecd6f

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 a callbackUrl (Standard Webhooks).
    • Methods return the data; lastResponse has the request id, rate limit and replay flag.
    • One EmitKitError with the API's stable code; identify takes userId.
    • new EmitKit() reads EMITKIT_API_KEY; events.create retries safely with an automatic Idempotency-Key.
    • No dependencies. See MIGRATING.md for upgrading from 2.x.

@emitkit/cli 0.1.0-next.0 (preview)

Pre-release

Choose a tag to compare

@multiplehats multiplehats released this 26 Sep 18:32
6fecd6f

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 login

Commands: 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.