Skip to content

v2.1.1 — atomic-batch field fix + live verification

Choose a tag to compare

@bpacholek bpacholek released this 10 Jun 19:58
· 499 commits to main since this release

Verification pass for the 2.1.0 roadmap features against a live NATS 2.12.9 server, plus one bug fix.

🐛 Fixed

  • Atomic batch publish (#8): the stream-config field is allow_atomic — the server rejects the previously-documented allow_atomic_publish with unknown field. Corrected the JetStreamContext::batch() / BatchPublisher docblocks and CHANGELOG. The BatchPublisher code itself was already correct and is now verified end-to-end (a 3-message batch commits 3/3, with the batch/count ack parsed).

✅ Verified live (no code change)

  • Batched / multi Direct Get (#13) — directGetLastForSubjects() and directGetBatch() return all messages correctly against the live server.

✅ Added

  • Live integration tests for atomic batch publish (#8) and batched/multi Direct Get (#13).
  • A connection-level regression test for the fragmented-INFO handshake (#2) — the trim($chunk) bug was fixed back in v1.0.1 but had no test guarding it.

Test status

PHPStan level 8 clean; 491 unit tests and the full 76-test integration suite pass against NATS 2.12.9 (including the auth/TLS/JWT/nkey servers).

Full changelog: https://github.com/ideaconnect/php-nats-jetstream-client/blob/main/CHANGELOG.md