From 7d3283117cd0d7ceeed70f501d61f1610094ea9e Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Mon, 5 Aug 2024 07:34:38 +0000 Subject: [PATCH 1/3] chore(release): 1.74.0 --- CHANGELOG.md | 20 ++++++++++++++++++++ package-lock.json | 4 ++-- package.json | 2 +- 3 files changed, 23 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 254c780be8..b261d4d4b9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,26 @@ 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.74.0](https://github.com/rudderlabs/rudder-transformer/compare/v1.73.1...v1.74.0) (2024-08-05) + + +### Features + +* detach user and company in intercom identify call ([#3580](https://github.com/rudderlabs/rudder-transformer/issues/3580)) ([286c44a](https://github.com/rudderlabs/rudder-transformer/commit/286c44a47e8451486bde281b8c938df59945cdfc)) +* onboard new api for klaviyo 15-06-2024 ([#3574](https://github.com/rudderlabs/rudder-transformer/issues/3574)) ([44baab9](https://github.com/rudderlabs/rudder-transformer/commit/44baab9298d171efe1209b3ec360d15e84a4190c)) +* supporting device token type using integrations object ([#3620](https://github.com/rudderlabs/rudder-transformer/issues/3620)) ([14e776e](https://github.com/rudderlabs/rudder-transformer/commit/14e776e659b745c814d31cd049fc4051c1e6735d)) +* updated examples for swagger ([#3526](https://github.com/rudderlabs/rudder-transformer/issues/3526)) ([5e22fa0](https://github.com/rudderlabs/rudder-transformer/commit/5e22fa0555b98e83ca1b11f16e87f367d1f85ca8)) + + +### Bug Fixes + +* customerio page undefined name ([#3613](https://github.com/rudderlabs/rudder-transformer/issues/3613)) ([adc2a4a](https://github.com/rudderlabs/rudder-transformer/commit/adc2a4a6650c9d9add26be51999f5b3078c59f15)) +* facebook conversion version upgrade ([#3607](https://github.com/rudderlabs/rudder-transformer/issues/3607)) ([9d06546](https://github.com/rudderlabs/rudder-transformer/commit/9d065467f376a047d1cebb095de0b33be6e32206)) +* fb custom audience version upgrade from v18 to v20 ([#3604](https://github.com/rudderlabs/rudder-transformer/issues/3604)) ([c2d7555](https://github.com/rudderlabs/rudder-transformer/commit/c2d7555dcea5e476f276eec5926d392f58dbd7fa)) +* fb pixel and fb app events version upgrade ([#3606](https://github.com/rudderlabs/rudder-transformer/issues/3606)) ([7caf476](https://github.com/rudderlabs/rudder-transformer/commit/7caf4762be2c527725a2bdfb090a626d40723c36)) +* rakuten for amount list ([#3612](https://github.com/rudderlabs/rudder-transformer/issues/3612)) ([2fb7e6b](https://github.com/rudderlabs/rudder-transformer/commit/2fb7e6b4bc2b7524f6fa86a54596f7c6550fa51a)) +* shopify: incorporate new shopify cart token format ([#3626](https://github.com/rudderlabs/rudder-transformer/issues/3626)) ([0d3c042](https://github.com/rudderlabs/rudder-transformer/commit/0d3c0426571f14e88b5b8a703065935713ce8198)) + ### [1.73.1](https://github.com/rudderlabs/rudder-transformer/compare/v1.73.0...v1.73.1) (2024-08-02) diff --git a/package-lock.json b/package-lock.json index a7738f995e..4e7201190e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "rudder-transformer", - "version": "1.73.1", + "version": "1.74.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "rudder-transformer", - "version": "1.73.1", + "version": "1.74.0", "license": "ISC", "dependencies": { "@amplitude/ua-parser-js": "0.7.24", diff --git a/package.json b/package.json index 536fcf48ca..93aeed71d3 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "rudder-transformer", - "version": "1.73.1", + "version": "1.74.0", "description": "", "homepage": "https://github.com/rudderlabs/rudder-transformer#readme", "bugs": { From 20821ea734e1bd05f04667e8b6d34977ac9df27e Mon Sep 17 00:00:00 2001 From: AASHISH MALIK Date: Tue, 6 Aug 2024 01:03:59 +0530 Subject: [PATCH 2/3] fix: type null (#3637) --- src/v0/util/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/v0/util/index.js b/src/v0/util/index.js index 3916dec3f4..7e9b4f0c3e 100644 --- a/src/v0/util/index.js +++ b/src/v0/util/index.js @@ -1168,7 +1168,7 @@ const getDestinationExternalIDInfoForRetl = (message, destination) => { if (externalIdArray) { externalIdArray.forEach((extIdObj) => { const { type, id } = extIdObj; - if (type.includes(`${destination}-`)) { + if (type && type.includes(`${destination}-`)) { destinationExternalId = id; objectType = type.replace(`${destination}-`, ''); identifierType = extIdObj.identifierType; @@ -1195,7 +1195,7 @@ const getDestinationExternalIDObjectForRetl = (message, destination) => { // some stops the execution when the element is found externalIdArray.some((extIdObj) => { const { type } = extIdObj; - if (type.includes(`${destination}-`)) { + if (type && type.includes(`${destination}-`)) { obj = extIdObj; return true; } From 9d595ebb9b459393d9cde9571bdf4d06c76e960d Mon Sep 17 00:00:00 2001 From: AASHISH MALIK Date: Tue, 6 Aug 2024 15:42:38 +0530 Subject: [PATCH 3/3] chore: removed files (#3639) --- .../data_scenarios/cdk_v1/failure.json | 164 -------------- .../data_scenarios/cdk_v1/success.json | 208 ------------------ 2 files changed, 372 deletions(-) delete mode 100644 test/apitests/data_scenarios/cdk_v1/failure.json delete mode 100644 test/apitests/data_scenarios/cdk_v1/success.json diff --git a/test/apitests/data_scenarios/cdk_v1/failure.json b/test/apitests/data_scenarios/cdk_v1/failure.json deleted file mode 100644 index d2ec384efa..0000000000 --- a/test/apitests/data_scenarios/cdk_v1/failure.json +++ /dev/null @@ -1,164 +0,0 @@ -{ - "input": [ - { - "message": { - "anonymousId": "2073230", - "channel": "offline", - "context": { - "traits": { - "email": "test.c97@gmail.com", - "firstName": "test", - "gender": "Male", - "lastName": "Rudderlabs", - "phone": "+919876543210" - } - }, - "event": "Product Added", - "messageId": "2af9f397-eef2-407f-bd95-e61867c0bfd0", - "originalTimestamp": "2022-12-30T21:12:23.295+05:30", - "properties": { - "brand": "Gamepro", - "category": "Games", - "coupon": "DISC21", - "image_url": "https://www.website.com/product/path.png", - "name": "Game", - "position": 1, - "price": 13.49, - "product_id": "123", - "quantity": 11, - "sku": "F15", - "url": "https://www.website.com/product/path", - "variant": "111" - }, - "receivedAt": "2022-12-30T21:12:19.720+05:30", - "request_ip": "[::1]", - "rudderId": "c6bac0d9-5ed4-45d8-a937-bf9e62060b78", - "sentAt": "2022-12-30T21:12:23.295+05:30", - "timestamp": "2022-12-30T21:12:19.719+05:30", - "type": "track", - "userId": "2564871" - }, - "metadata": { - "sourceId": "27O0bmEEx3GgfmEhZHUcPwJQVWC", - "workspaceId": "27O0bhB6p5ehfOWeeZlOSsSDTLg", - "namespace": "", - "instanceId": "1", - "sourceType": "HTTP", - "sourceCategory": "", - "trackingPlanId": "", - "trackingPlanVersion": 0, - "sourceTpConfig": null, - "mergedTpConfig": null, - "destinationId": "2JVZ3owjdCdDajoiZwWgJbR9y0q", - "jobRunId": "", - "jobId": 1, - "sourceBatchId": "", - "sourceJobId": "", - "sourceJobRunId": "", - "sourceTaskId": "", - "sourceTaskRunId": "", - "recordId": null, - "destinationType": "ZAPIER", - "messageId": "2af9f397-eef2-407f-bd95-e61867c0bfd0", - "oauthAccessToken": "", - "messageIds": null, - "rudderId": "<<>>2073230<<>>2564871", - "receivedAt": "2022-12-30T21:12:19.720+05:30", - "eventName": "Product Added", - "eventType": "track", - "sourceDefinitionId": "1b6gJdqOPOCadT3cddw8eidV591", - "destinationDefinitionId": "" - }, - "destination": { - "ID": "2JVZ3owjdCdDajoiZwWgJbR9y0q", - "Name": "Zapier-dev", - "DestinationDefinition": { - "ID": "2EAFTAOU0JrG8tHwYB5ZlV7yzo6", - "Name": "ZAPIER", - "DisplayName": "Zapier", - "Config": { - "cdkV2Enabled": true, - "destConfig": { - "defaultConfig": ["zapUrl", "trackEventsToZap", "pageScreenEventsToZap"] - }, - "excludeKeys": [], - "includeKeys": ["zapUrl", "trackEventsToZap", "pageScreenEventsToZap"], - "saveDestinationResponse": true, - "secretKeys": ["zapUrl"], - "supportedMessageTypes": ["track", "page", "screen"], - "supportedSourceTypes": [ - "android", - "ios", - "web", - "unity", - "amp", - "cloud", - "reactnative", - "flutter", - "cordova", - "warehouse" - ], - "transformAt": "processor", - "transformAtV1": "processor" - }, - "ResponseRules": {} - }, - "Config": { - "zapUrl": "https://hooks.zapier.com/hooks/catch/14157843/b7l4oz2/" - }, - "Enabled": true, - "WorkspaceID": "27O0bhB6p5ehfOWeeZlOSsSDTLg", - "Transformations": [], - "IsProcessorEnabled": true, - "RevisionID": "2JdjA2o6s9AfokHcz6bX0SPCdJZ" - }, - "libraries": null - } - ], - "output": [ - { - "metadata": { - "sourceId": "27O0bmEEx3GgfmEhZHUcPwJQVWC", - "workspaceId": "27O0bhB6p5ehfOWeeZlOSsSDTLg", - "namespace": "", - "instanceId": "1", - "sourceType": "HTTP", - "sourceCategory": "", - "trackingPlanId": "", - "trackingPlanVersion": 0, - "sourceTpConfig": null, - "mergedTpConfig": null, - "destinationId": "2JVZ3owjdCdDajoiZwWgJbR9y0q", - "jobRunId": "", - "jobId": 1, - "sourceBatchId": "", - "sourceJobId": "", - "sourceJobRunId": "", - "sourceTaskId": "", - "sourceTaskRunId": "", - "recordId": null, - "destinationType": "ZAPIER", - "messageId": "2af9f397-eef2-407f-bd95-e61867c0bfd0", - "oauthAccessToken": "", - "messageIds": null, - "rudderId": "<<>>2073230<<>>2564871", - "receivedAt": "2022-12-30T21:12:19.720+05:30", - "eventName": "Product Added", - "eventType": "track", - "sourceDefinitionId": "1b6gJdqOPOCadT3cddw8eidV591", - "destinationDefinitionId": "" - }, - "statusCode": 400, - "error": "Unknown error occurred. Original error: Unsupported \"channel\": \"offline\". It must be one of: web,server,mobile,sources", - "statTags": { - "errorCategory": "transformation", - "destType": "ZAPIER", - "module": "destination", - "implementation": "cdkV2", - "feature": "processor", - "destinationId": "2JVZ3owjdCdDajoiZwWgJbR9y0q", - "workspaceId": "27O0bhB6p5ehfOWeeZlOSsSDTLg" - } - } - ] -} diff --git a/test/apitests/data_scenarios/cdk_v1/success.json b/test/apitests/data_scenarios/cdk_v1/success.json deleted file mode 100644 index 34151040a3..0000000000 --- a/test/apitests/data_scenarios/cdk_v1/success.json +++ /dev/null @@ -1,208 +0,0 @@ -{ - "input": [ - { - "message": { - "anonymousId": "2073230", - "channel": "web", - "context": { - "traits": { - "email": "test.c97@gmail.com", - "firstName": "test", - "gender": "Male", - "lastName": "Rudderlabs", - "phone": "+919876543210" - } - }, - "event": "Product Added", - "messageId": "ace693c0-79c3-47b8-9e7f-6a894672597f", - "originalTimestamp": "2022-12-31T20:30:35.282+05:30", - "properties": { - "brand": "Gamepro", - "category": "Games", - "coupon": "DISC21", - "image_url": "https://www.website.com/product/path.png", - "name": "Game", - "position": 1, - "price": 13.49, - "product_id": "123", - "quantity": 11, - "sku": "F15", - "url": "https://www.website.com/product/path", - "variant": "111" - }, - "receivedAt": "2022-12-31T20:30:34.567+05:30", - "request_ip": "[::1]", - "rudderId": "c6bac0d9-5ed4-45d8-a937-bf9e62060b78", - "sentAt": "2022-12-31T20:30:35.282+05:30", - "timestamp": "2022-12-31T20:30:34.566+05:30", - "type": "track", - "userId": "2564871" - }, - "metadata": { - "sourceId": "27O0bmEEx3GgfmEhZHUcPwJQVWC", - "workspaceId": "27O0bhB6p5ehfOWeeZlOSsSDTLg", - "namespace": "", - "instanceId": "1", - "sourceType": "HTTP", - "sourceCategory": "", - "trackingPlanId": "", - "trackingPlanVersion": 0, - "sourceTpConfig": null, - "mergedTpConfig": null, - "destinationId": "2JVZ3owjdCdDajoiZwWgJbR9y0q", - "jobRunId": "", - "jobId": 1, - "sourceBatchId": "", - "sourceJobId": "", - "sourceJobRunId": "", - "sourceTaskId": "", - "sourceTaskRunId": "", - "recordId": null, - "destinationType": "ZAPIER", - "messageId": "ace693c0-79c3-47b8-9e7f-6a894672597f", - "oauthAccessToken": "", - "messageIds": null, - "rudderId": "<<>>2073230<<>>2564871", - "receivedAt": "2022-12-31T20:30:34.567+05:30", - "eventName": "Product Added", - "eventType": "track", - "sourceDefinitionId": "1b6gJdqOPOCadT3cddw8eidV591", - "destinationDefinitionId": "" - }, - "destination": { - "ID": "2JVZ3owjdCdDajoiZwWgJbR9y0q", - "Name": "Zapier-dev", - "DestinationDefinition": { - "ID": "2EAFTAOU0JrG8tHwYB5ZlV7yzo6", - "Name": "ZAPIER", - "DisplayName": "Zapier", - "Config": { - "cdkV2Enabled": true, - "destConfig": { - "defaultConfig": ["zapUrl", "trackEventsToZap", "pageScreenEventsToZap"] - }, - "excludeKeys": [], - "includeKeys": ["zapUrl", "trackEventsToZap", "pageScreenEventsToZap"], - "saveDestinationResponse": true, - "secretKeys": ["zapUrl"], - "supportedMessageTypes": ["track", "page", "screen"], - "supportedSourceTypes": [ - "android", - "ios", - "web", - "unity", - "amp", - "cloud", - "reactnative", - "flutter", - "cordova", - "warehouse" - ], - "transformAt": "processor", - "transformAtV1": "processor" - }, - "ResponseRules": {} - }, - "Config": { - "zapUrl": "https://hooks.zapier.com/hooks/catch/test/abc/" - }, - "Enabled": true, - "WorkspaceID": "27O0bhB6p5ehfOWeeZlOSsSDTLg", - "Transformations": [], - "IsProcessorEnabled": true, - "RevisionID": "2JdjA2o6s9AfokHcz6bX0SPCdJZ" - }, - "libraries": null - } - ], - "output": [ - { - "output": { - "version": "1", - "type": "REST", - "method": "POST", - "endpoint": "https://hooks.zapier.com/hooks/catch/test/abc/", - "headers": { - "content-type": "application/json" - }, - "params": {}, - "body": { - "JSON": { - "anonymousId": "2073230", - "channel": "web", - "context": { - "traits": { - "email": "test.c97@gmail.com", - "firstName": "test", - "gender": "Male", - "lastName": "Rudderlabs", - "phone": "+919876543210" - } - }, - "event": "Product Added", - "messageId": "ace693c0-79c3-47b8-9e7f-6a894672597f", - "originalTimestamp": "2022-12-31T20:30:35.282+05:30", - "properties": { - "brand": "Gamepro", - "category": "Games", - "coupon": "DISC21", - "image_url": "https://www.website.com/product/path.png", - "name": "Game", - "position": 1, - "price": 13.49, - "product_id": "123", - "quantity": 11, - "sku": "F15", - "url": "https://www.website.com/product/path", - "variant": "111" - }, - "receivedAt": "2022-12-31T20:30:34.567+05:30", - "request_ip": "[::1]", - "rudderId": "c6bac0d9-5ed4-45d8-a937-bf9e62060b78", - "sentAt": "2022-12-31T20:30:35.282+05:30", - "timestamp": "2022-12-31T20:30:34.566+05:30", - "type": "track", - "userId": "2564871" - }, - "JSON_ARRAY": {}, - "XML": {}, - "FORM": {} - }, - "files": {}, - "userId": "" - }, - "metadata": { - "sourceId": "27O0bmEEx3GgfmEhZHUcPwJQVWC", - "workspaceId": "27O0bhB6p5ehfOWeeZlOSsSDTLg", - "namespace": "", - "instanceId": "1", - "sourceType": "HTTP", - "sourceCategory": "", - "trackingPlanId": "", - "trackingPlanVersion": 0, - "sourceTpConfig": null, - "mergedTpConfig": null, - "destinationId": "2JVZ3owjdCdDajoiZwWgJbR9y0q", - "jobRunId": "", - "jobId": 1, - "sourceBatchId": "", - "sourceJobId": "", - "sourceJobRunId": "", - "sourceTaskId": "", - "sourceTaskRunId": "", - "recordId": null, - "destinationType": "ZAPIER", - "messageId": "ace693c0-79c3-47b8-9e7f-6a894672597f", - "oauthAccessToken": "", - "messageIds": null, - "rudderId": "<<>>2073230<<>>2564871", - "receivedAt": "2022-12-31T20:30:34.567+05:30", - "eventName": "Product Added", - "eventType": "track", - "sourceDefinitionId": "1b6gJdqOPOCadT3cddw8eidV591", - "destinationDefinitionId": "" - }, - "statusCode": 200 - } - ] -}