From 256cb7ea042678443a6243d93d28c8bbaccacf32 Mon Sep 17 00:00:00 2001 From: Sudip Paul <67197965+ItsSudip@users.noreply.github.com> Date: Fri, 7 Jul 2023 11:00:27 +0530 Subject: [PATCH 1/2] fix(iterable): fix metadata format while batching (#2345) --- src/v0/destinations/iterable/transform.js | 2 +- test/__tests__/data/iterable_router_output.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/v0/destinations/iterable/transform.js b/src/v0/destinations/iterable/transform.js index 3f7995031c..92c04c5bcd 100644 --- a/src/v0/destinations/iterable/transform.js +++ b/src/v0/destinations/iterable/transform.js @@ -289,7 +289,7 @@ function getEventChunks(event, identifyEventChunks, trackEventChunks, eventRespo const { message, metadata, destination } = event; const endpoint = get(message, 'endpoint'); if (Array.isArray(message)) { - eventResponseList.push(getSuccessRespEvents(message, metadata, destination)); + eventResponseList.push(getSuccessRespEvents(message, [metadata], destination)); } else { const batchedResponse = defaultBatchRequestConfig(); batchedResponse.batchedRequest.headers = message.headers; diff --git a/test/__tests__/data/iterable_router_output.json b/test/__tests__/data/iterable_router_output.json index 681395cd58..ea740ac291 100644 --- a/test/__tests__/data/iterable_router_output.json +++ b/test/__tests__/data/iterable_router_output.json @@ -221,7 +221,7 @@ "files": {} } ], - "metadata": { "jobId": 5 }, + "metadata": [{ "jobId": 5 }], "batched": false, "statusCode": 200, "destination": { From 4df00db3752f6a33ff68a99c67136eee81df5bcb Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Fri, 7 Jul 2023 05:32:50 +0000 Subject: [PATCH 2/2] chore(release): 1.34.1 --- CHANGELOG.md | 7 +++++++ package-lock.json | 4 ++-- package.json | 2 +- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0707300d4f..a665003acf 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,13 @@ All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. +### [1.34.1](https://github.com/rudderlabs/rudder-transformer/compare/v1.34.0...v1.34.1) (2023-07-07) + + +### Bug Fixes + +* **iterable:** fix metadata format while batching ([#2345](https://github.com/rudderlabs/rudder-transformer/issues/2345)) ([256cb7e](https://github.com/rudderlabs/rudder-transformer/commit/256cb7ea042678443a6243d93d28c8bbaccacf32)) + ## [1.34.0](https://github.com/rudderlabs/rudder-transformer/compare/v1.33.0...v1.34.0) (2023-06-30) diff --git a/package-lock.json b/package-lock.json index 092aad81b6..0913664bd2 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "rudder-transformer", - "version": "1.34.0", + "version": "1.34.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "rudder-transformer", - "version": "1.34.0", + "version": "1.34.1", "license": "ISC", "dependencies": { "@amplitude/ua-parser-js": "0.7.24", diff --git a/package.json b/package.json index 0634937624..09a9f882f3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "rudder-transformer", - "version": "1.34.0", + "version": "1.34.1", "description": "", "homepage": "https://github.com/rudderlabs/rudder-transformer#readme", "bugs": {