Skip to content

Commit

Permalink
Release v2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
sjakthol committed Jan 16, 2022
1 parent 0057a4f commit 893111e
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 3 deletions.
40 changes: 40 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,45 @@
# Changelog

## 2.0.0 - 2022-01-16

### Changed

* **Breaking:** Replace the `consume()` method with a `receive_message()` method. Update your code from
```python
batch = aws_sqs_batchlib.consume(
queue_url, batch_size=100, maximum_batching_window_in_seconds=15
)
```

to

```python
batch = aws_sqs_batchlib.receive_message(
QueueUrl=queue_url, MaxNumberOfMessages=100, WaitTimeSeconds=15
)
```
* Use modern Amazon SQS service endpoints by default to support VPC endpoints.

### Added

* `delete_message_batch()`: Add `session` argument for providing a custom boto3 Sessions for the library.
* `delete_message_batch()`: Add support for FIFO queues.
* `delete_message_batch()`: Automatically retry failed delete operations if the failure is retryable.
* `receive_message()`: Add new `receive_message()` method to receive an arbitrary number of messages from Amazon SQS.
* `receive_message()`: Add `session` argument for providing a custom boto3 Sessions for the library.
* `receive_message()`: Add support for FIFO queues.
* `send_message_batch()`: Add new `send_message_batch()` method to send an arbitrary number of messages to Amazon SQS.
* `send_message_batch()`: Add `session` argument for providing a custom boto3 Sessions for the library.
* `send_message_batch()`: Add support for FIFO queues.
* `send_message_batch()`: Automatically retry failed send operations if the failure is retryable.

### Fixed

* `receive_message()`: Generate unique `ReceiveRequestAttemptId` parameter for each distinct `ReceiveMessage` API call
if `ReceiveRequestAttemptId` is provided to `receive_message()`.

**All Changes**: https://github.com/sjakthol/python-aws-sqs-batchlib/compare/v1.1.0...v2.0.0

## 1.2.0 - 2022-01-01

### Added
Expand Down
2 changes: 1 addition & 1 deletion aws_sqs_batchlib/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""Amazon SQS Batchlib"""
__version__ = "1.2.0"
__version__ = "2.0.0"

from .aws_sqs_batchlib import (
create_sqs_client,
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[tool.poetry]
name = "aws-sqs-batchlib"
version = "1.2.0"
description = "Library working with Amazon SQS"
version = "2.0.0"
description = "Library for working with Amazon SQS"
authors = ["Sami Jaktholm <[email protected]>"]
license = "MIT"
readme = 'README.md'
Expand Down

0 comments on commit 893111e

Please sign in to comment.