Skip to content

Commit 415363a

Browse files
thethpclaude
andauthored
chore: Prepare v5.0.1 (#222)
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
1 parent b90d19f commit 415363a

4 files changed

Lines changed: 10 additions & 4 deletions

File tree

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
All notable changes to this project will be documented in this file.
44

5+
## [5.0.1]
6+
7+
#### Fixed
8+
9+
- **`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))
10+
511
## [5.0.0]
612

713
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.

lib/version.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export const version = '5.0.0';
1+
export const version = '5.0.1';

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "customerio-node",
33
"description": "A node client for the Customer.io event API. http://customer.io",
4-
"version": "5.0.0",
4+
"version": "5.0.1",
55
"author": "Customer.io (https://customer.io)",
66
"contributors": [
77
"Alvin Crespo (https://github.com/alvincrespo)",

0 commit comments

Comments
 (0)