Skip to content

v2.3.0

Choose a tag to compare

@bpacholek bpacholek released this 13 Jun 20:25
· 421 commits to main since this release

⚠️ 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_payload servers were undeliverable and forced reconnects.
  • #96 KV history() tolerates metadata-less deliveries instead of tearing down all dispatch.
  • #97 Services guard response json_encode in 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_WARNING before the typed ProtocolException.
  • #109 Object Store empty-metadata interop — objects stored with default metadata are now readable by the nats CLI / nats.go (empty metadata was 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 for ObjectStore::watch().
  • #101 Declared endpoint schema is surfaced via the standard $SRV.INFO response (ADR-32), so spec-conformant tooling can discover it.

Docs & hardening

  • #102–#108 documentation accuracy: reconnect-buffer behavior, complete NatsOptions config 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 nats CLI interoperability tests; a runnable performance baseline (scripts/benchmark.php).

Full changelog: CHANGELOG.md · compare v2.2.0...v2.3.0.