From bd1ac5f69981bf6a349e7946ba246f5d0807c881 Mon Sep 17 00:00:00 2001 From: Andrew O'Hara Date: Fri, 21 Jul 2023 21:41:44 -0400 Subject: [PATCH] changelog --- CHANGELOG.md | 3 +++ .../http4k/connect/amazon/sqs/action/DeleteMessageBatch.kt | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4fd69e6cf..7010ab274 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,9 @@ This list is not intended to be all-encompassing - it will document major and breaking API changes with their rationale when appropriate. Given version `A.B.C.D`, breaking changes are to be expected in version number increments where changes in the `A` or `B` sections: +### v5.1.4.0 (uncut) +- **http4k-connect-amazon-sqs** - Add `DeleteMessageBatch` action. H/T @oharaandrew314 + ### v5.1.3.0 - **http4k-connect-amazon-dynamodb** - Add scanPage and queryPage operations to DynamoDb table mapper. Pagination can now be controlled by the caller. H/T @oharaandrew314 - **http4k-connect-amazon-dynamodb-fake** - putItem now supports a `ConditionExpression`. diff --git a/amazon/sqs/client/src/main/kotlin/org/http4k/connect/amazon/sqs/action/DeleteMessageBatch.kt b/amazon/sqs/client/src/main/kotlin/org/http4k/connect/amazon/sqs/action/DeleteMessageBatch.kt index cf06be3ac..a82552735 100644 --- a/amazon/sqs/client/src/main/kotlin/org/http4k/connect/amazon/sqs/action/DeleteMessageBatch.kt +++ b/amazon/sqs/client/src/main/kotlin/org/http4k/connect/amazon/sqs/action/DeleteMessageBatch.kt @@ -14,6 +14,8 @@ import org.http4k.connect.asRemoteFailure import org.http4k.core.Response import org.http4k.core.Uri +typealias DeleteMessageBatchEntry = Pair + @Http4kConnectAction data class DeleteMessageBatch( val queueUrl: Uri, @@ -37,8 +39,6 @@ data class DeleteMessageBatch( } } -typealias DeleteMessageBatchEntry = Pair - private fun DeleteMessageBatchEntry.toMappings(index: Int) = listOf( "DeleteMessageBatchRequestEntry.$index.Id" to first.value, "DeleteMessageBatchRequestEntry.$index.ReceiptHandle" to second.value