8000 Release @trigger.dev/sdk@3.3.16 · triggerdotdev/trigger.dev · GitHub
[go: up one dir, main page]

Skip to content

@trigger.dev/sdk@3.3.16

Latest
Compare
Choose a tag to compare
@github-actions github-actions released this 13 Feb 15:35
· 11 commits to main since this release

Patch Changes

  • You can add Alerts in the dashboard. One of these is a webhook, which this change greatly improves. (#1703)

    The main change is that there's now an SDK function to verify and parse them (similar to Stripe SDK).

    const event = await webhooks.constructEvent(request, process.env.ALERT_WEBHOOK_SECRET!);

    If the signature you provide matches the one from the dashboard when you create the webhook, you will get a nicely typed object back for these three types:

    • "alert.run.failed"
    • "alert.deployment.success"
    • "alert.deployment.failed"
  • Updated dependencies:

    • @trigger.dev/core@3.3.16
0