Repository navigation
v2.3.0
⚠️ Security
#95 — credential exposure via a configured tlsContext. Before 2.3.0 the CONNECT frame (token / user-password / JWT signature / NKey signature) could be transmitted in cleartext when a NatsOptions::$tlsContext was supplied but tlsRequired was off, the DSN used nats://, and the server's INFO did not advertise tls_required. The TLS-required check ignored tlsContext, so the upgrade and the cleartext fail-safe were both skipped. A configured tlsContext now forces the TLS upgrade (and fails fast if TLS cannot be established). Upgrading is recommended for anyone using the tlsContext escape hatch.
Fixed
- #94 Inbound frame bound coupled to the server's
max_payload— large messages on big-max_payloadservers were undeliverable and forced reconnects. - #96 KV
history()tolerates metadata-less deliveries instead of tearing down all dispatch. - #97 Services guard response
json_encodein the shared dispatch loop — a binary/non-UTF-8 handler return no longer aborts delivery for every subscription. - #99 KV
watch()onCaughtUp(end-of-initial-data) now fires on an empty / no-match bucket. - #100 Corrupt permessage-deflate frames no longer leak a native
E_WARNINGbefore the typedProtocolException. - #109 Object Store empty-metadata interop — objects stored with default metadata are now readable by the
natsCLI / nats.go (emptymetadatawas serialized as a JSON array, which official clients reject).
Added
- #98
ObjectStoreWatchOptions— opt into reference "snapshot then follow" (last_per_subject) / full history / updates-only forObjectStore::watch(). - #101 Declared endpoint schema is surfaced via the standard
$SRV.INFOresponse (ADR-32), so spec-conformant tooling can discover it.
Docs & hardening
- #102–#108 documentation accuracy: reconnect-buffer behavior, complete
NatsOptionsconfig table, WebSocket transport section, observability listeners, standalone-NKey example, and watch/digest PHPDoc. - Dynamic test hardening: protocol-parser fuzz + byte-boundary reassembly, reconnect-buffer flush ordering, heartbeat soak, and live
natsCLI interoperability tests; a runnable performance baseline (scripts/benchmark.php).
Full changelog: CHANGELOG.md · compare v2.2.0...v2.3.0.