From f719cc7dc6e4d3c42b38609a280a6925c22a3b4b Mon Sep 17 00:00:00 2001 From: thethp Date: Thu, 11 Jun 2026 11:50:00 -0500 Subject: [PATCH] chore: Prepare v5.0.1 Co-Authored-By: Claude Fable 5 --- CHANGELOG.md | 6 ++++++ lib/version.ts | 2 +- package-lock.json | 4 ++-- package.json | 2 +- 4 files changed, 10 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fa985b3..7d2263b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,12 @@ All notable changes to this project will be documented in this file. +## [5.0.1] + +#### Fixed + +- **`triggerBroadcast` now treats `data` and `recipients` as optional**, matching the documented API. Calling with only a broadcast id no longer throws a `TypeError`, and empty `data` / `recipients` objects are omitted from the request payload instead of producing a 422 (`empty recipients filter is not valid`) from the API — so `api.triggerBroadcast(id)` sends the broadcast to its configured recipients. The parameters are positional: to pass `recipients` without `data`, use `triggerBroadcast(id, undefined, recipients)`. ([#220](https://github.com/customerio/customerio-node/pull/220)) + ## [5.0.0] The internals of `lib/request.ts` have been rewritten on top of native `fetch` (no more `https.request`), and a new `PipelinesClient` has been added for the Pipelines API. The existing `TrackClient` / `APIClient` method surface is unchanged. Most users will not need to update any code; the breaking changes are documented below. diff --git a/lib/version.ts b/lib/version.ts index 56b7f45..3a83d50 100644 --- a/lib/version.ts +++ b/lib/version.ts @@ -1 +1 @@ -export const version = '5.0.0'; +export const version = '5.0.1'; diff --git a/package-lock.json b/package-lock.json index 5d1d6e3..8e4aab0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "customerio-node", - "version": "5.0.0", + "version": "5.0.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "customerio-node", - "version": "5.0.0", + "version": "5.0.1", "license": "MIT", "devDependencies": { "@types/node": "^22.0.0", diff --git a/package.json b/package.json index 795df6e..adfc044 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "customerio-node", "description": "A node client for the Customer.io event API. http://customer.io", - "version": "5.0.0", + "version": "5.0.1", "author": "Customer.io (https://customer.io)", "contributors": [ "Alvin Crespo (https://github.com/alvincrespo)",