Skip to content

Commit

Permalink
changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
oharaandrew314 committed Jul 22, 2023
1 parent 75401b6 commit bd1ac5f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ import org.http4k.connect.asRemoteFailure
import org.http4k.core.Response
import org.http4k.core.Uri

typealias DeleteMessageBatchEntry = Pair<SQSMessageId, ReceiptHandle>

@Http4kConnectAction
data class DeleteMessageBatch(
val queueUrl: Uri,
Expand All @@ -37,8 +39,6 @@ data class DeleteMessageBatch(
}
}

typealias DeleteMessageBatchEntry = Pair<SQSMessageId, ReceiptHandle>

private fun DeleteMessageBatchEntry.toMappings(index: Int) = listOf(
"DeleteMessageBatchRequestEntry.$index.Id" to first.value,
"DeleteMessageBatchRequestEntry.$index.ReceiptHandle" to second.value
Expand Down

0 comments on commit bd1ac5f

Please sign in to comment.