Ministack: Free, open-source local AWS emulator - 60+ services, Terraform compatible, real databases. Free forever. MIT licensed.
Python awsaws-emulatoraws-localaws-sdkdevtoolsdockerdynamodbec2emulatorlambdalocalstacklocalstack-alternativeministackmock-awsopen-sourcepythons3sqsterraform
fix SQS call in ReceiveMessage (#187)
Nahuel Nucera43e18a4b69b7
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 09e18b95..fc69d357 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -7,6 +7,18 @@ Versioning follows [Semantic Versioning](https://semver.org/).---+## [1.1.51] — 2026-04-08++### Added+- **EC2 Launch Templates (6 operations)** — `CreateLaunchTemplate`, `CreateLaunchTemplateVersion`, `DescribeLaunchTemplates`, `DescribeLaunchTemplateVersions`, `ModifyLaunchTemplate`, `DeleteLaunchTemplate`. Full versioning support with `$Latest` / `$Default` resolution, block device mappings, network interfaces, IAM instance profiles, and tag specifications.+- **CFN `AWS::EC2::LaunchTemplate`** — Launch templates now work in CloudFormation/CDK stacks. 53 CFN resource types total.++### Fixed+- **KMS tags and policy not saved on key creation** — `CreateKey` was ignoring `Tags` and `Policy` parameters, so they were lost until explicitly set via `TagResource` / `PutKeyPolicy`. Contributed by @jgrumboe (#183)+- **SQS FIFO `ReceiveMessage` returns all messages in same group** — was incorrectly returning only 1 message per MessageGroupId per batch. AWS allows up to 10 messages from the same group in a single `ReceiveMessage` call; the per-group restriction only applies to subsequent calls while messages are in-flight. Reported by @mspiller (#179)++---+## [1.1.50] — 2026-04-08### Addeddiff --git a/ministack/services/sqs.py b/ministack/services/sqs.pyindex e8c313eb..c97660f4 100644--- a/ministack/services/sqs.py+++ b/ministack/services/sqs.py@@ -655,7 +655,6 @@ def _collect_fifo(q: dict, max_n: int, vis_timeout: int,and m["receive_count"] > 0and m["group_id"]}- seen_groups: set = set()result: list = []for m in q["messages"]:if len(result) >= max_n:@@ -663,7 +662,7 @@ def _collect_fifo(q: dict, max_n: int, vis_timeout: int,if m["visible_at"] > now:continueg = m["group_id"]- if g in inflight_groups or g in seen_groups:+ if g in inflight_groups:continuem["receipt_handle"] = new_uuid()m["visible_at"] = now + vis_timeout@@ -671,8 +670,6 @@ def _collect_fifo(q: dict, max_n: int, vis_timeout: int,if m.get("first_receive_at") is None:m["first_receive_at"] = nowresult.append(m)- if g is not None:- seen_groups.add(g)return resultdiff --git a/pyproject.toml b/pyproject.tomlindex e8faf193..a8031b39 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"[project]name = "ministack"-version = "1.1.50"+version = "1.1.51"description = "Free, open-source local AWS emulator — drop-in LocalStack replacement"readme = "README.md"license = { file = "LICENSE" }