Skip to content

v0.11.0

Compare
Choose a tag to compare
@leggetter leggetter released this 30 Jul 13:34
· 39 commits to main since this release
f83c6f4

Updates

listen command now has defaults for connection name and path #92

Previous behavior:

hookdeck listen 3000 stripe
? What path should the events be forwarded to (ie: /webhooks)? /webhooks/stripe
? What's your connection label (ie: My API)? stripe-to-cli

Dashboard
👉 Inspect and replay events: https://dashboard.hookdeck.com?team_id={team_id}

stripe Source
🔌 Event URL: https://hkdk.events/52p56rckope1xq

Connections
stripe-to-cli forwarding to /webhooks/stripe

> Ready! (^C to quit)

New behavior defaults to / for the path and creates a connection name in the format {source_name}-to-cli:

$hookdeck listen 3030 stripe

Dashboard
👉 Inspect and replay events: https://dashboard.hookdeck.com?team_id={team_id}

Sources
🔌 stripe URL: https://hkdk.events/oy28d5cj1o4vqm

Connections
stripe -> stripe_to_cli-stripe forwarding to /

> Ready! (^C to quit)

Features

Listening on multiple sources #70

Supports listening to multiple sources by directly naming them:

$ hookdeck listen 3030 shopify,resend

Listening for events on Sources that have Connections with CLI Destinations

Dashboard
👉 Inspect and replay events: https://dashboard.hookdeck.com?team_id={team_id}

Sources
🔌 shopify URL: https://hkdk.events/m5sutwnc1rb8d4
🔌 resend URL: https://hkdk.events/7qxckz585rvrv9

Connections
resend -> cli-resend forwarding to /webhooks/resend
shopify -> cli-shopify forwarding to /webhooks/shopify

> Ready! (^C to quit)

By passing '*':

$ hookdeck listen 3000 '*'

Listening for events on Sources that have Connections with CLI Destinations

Dashboard
👉 Inspect and replay events: https://dashboard.hookdeck.com?team_id={team_id}

Sources
🔌 resend URL: https://hkdk.events/7qxckz585rvrv9
🔌 shopify URL: https://hkdk.events/m5sutwnc1rb8d4
🔌 twilio-sms URL: https://hkdk.events/sm7gz9xg5rs6rn

Connections
resend -> cli-resend forwarding to /webhooks/resend
twilio-sms -> cli-twilio-sms forwarding to /webhooks/twilio/sms
shopify -> cli-shopify forwarding to /webhooks/shopify

> Ready! (^C to quit)

Ability to set the CLI Path using --cli-path flag #92

Passing a --cli-path {value} argument will update the path request are made to.

Note that the update will only work if there is one matching Destination of type CLI.

$ hookdeck listen 3030 twilio-sms --cli-path /webhooks/twilio-messaging --log-level debug

[Mon, 29 Jul 2024 15:17:15 BST] DEBUG Connection exists for Source "twilio-sms", Connection "", and CLI path "/webhooks/twilio-messaging"
[Mon, 29 Jul 2024 15:17:15 BST] DEBUG Updating destination CLI path from "/webhooks/twilio-sms" to "/webhooks/twilio-messaging"

Dashboard
👉 Inspect and replay events: https://dashboard.hookdeck.com?team_id={team_id}

Sources
🔌 twilio-sms URL: https://hkdk.events/sm7gz9xg5rs6rn

Connections
twilio-sms -> cli-twilio-sms forwarding to /webhooks/twilio-messaging

⣻ Getting ready... [Mon, 29 Jul 2024 15:17:15 BST] DEBUG websocket.client.Run: Attempting to connect to Hookdeck
[Mon, 29 Jul 2024 15:17:15 BST] DEBUG websocket.Client.connect: Dialing websocket url=wss://ws.hookdeck.com
⢿ Getting ready... [Mon, 29 Jul 2024 15:17:16 BST] DEBUG websocket.client.connect: Connected!
> Ready! (^C to quit)

Full Changelog: v0.10.1...v0.11.0