Skip to content

1.20.0

Choose a tag to compare

@peter-leonov-ch peter-leonov-ch released this 03 Jun 21:43
97f135e

Bug Fixes

  • (Node.js only) Fixed a race condition in ResultSet.json() and ResultSet.stream() on JSONEachRow (and other streamable) result sets where calling json() on a fast/small response could throw Stream has been already consumed if the underlying stream ended between internal readableEnded checks. The consumption guard has been hardened: the stream is now shielded through a single consume() path that marks the result set as consumed in the appropriate branches, after format validation, so a successful json() call no longer races against the stream finishing. (#603) kudos to @lord007tn and @Onyx2406