Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion lib/version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const version = '5.0.0';
export const version = '5.0.1';
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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)",
Expand Down