@mojaloop/central-services-shared 17.6.4-snapshot.0 → 18.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,15 @@
2
2
 
3
3
  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.
4
4
 
5
+ ## [18.0.0](https://github.com/mojaloop/central-services-shared/compare/v17.6.3...v18.0.0) (2023-08-31)
6
+
7
+
8
+ ### ⚠ BREAKING CHANGES
9
+
10
+ * **mojaloop/#3498:** refactor message keying logic in proceed function (#350)
11
+
12
+ * **mojaloop/#3498:** refactor message keying logic in proceed function ([#350](https://github.com/mojaloop/central-services-shared/issues/350)) ([664f454](https://github.com/mojaloop/central-services-shared/commit/664f4546346e9ab3d4b377f473c25e02d151c72c)), closes [mojaloop/#3498](https://github.com/mojaloop/project/issues/3498)
13
+
5
14
  ### [17.6.3](https://github.com/mojaloop/central-services-shared/compare/v17.6.2...v17.6.3) (2023-08-29)
6
15
 
7
16
  ### [17.6.2](https://github.com/mojaloop/central-services-shared/compare/v17.6.1...v17.6.2) (2023-08-24)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mojaloop/central-services-shared",
3
- "version": "17.6.4-snapshot.0",
3
+ "version": "18.0.0",
4
4
  "description": "Shared code for mojaloop central services",
5
5
  "license": "Apache-2.0",
6
6
  "author": "ModusBox",
@@ -310,7 +310,7 @@ const proceed = async (defaultKafkaConfig, params, opts) => {
310
310
  if (message.value.content.headers) message.value.content.headers[Enum.Http.Headers.FSPIOP.DESTINATION] = toDestination
311
311
  }
312
312
  if (eventDetail && producer) {
313
- await produceGeneralMessage(defaultKafkaConfig, producer, eventDetail.functionality, eventDetail.action, message.value, metadataState, messageKey?.toString(), span)
313
+ await produceGeneralMessage(defaultKafkaConfig, producer, eventDetail.functionality, eventDetail.action, message.value, metadataState, messageKey, span)
314
314
  }
315
315
  return true
316
316
  }
@@ -516,7 +516,7 @@ Test('Utility Test', utilityTest => {
516
516
  })
517
517
 
518
518
  proceedTest.test('produce message when messageKey is specified', async test => {
519
- const opts = { consumerCommit: true, eventDetail, messageKey: 101 }
519
+ const opts = { consumerCommit: true, eventDetail, messageKey: '101' }
520
520
  try {
521
521
  const result = await UtilityProxy.proceed(Config.KAFKA_CONFIG, params, opts)
522
522
  test.ok(commitMessageSyncStub.calledOnce, 'commitMessageSyncStub not called')