xiazcy commented on code in PR #3395: URL: https://github.com/apache/tinkerpop/pull/3395#discussion_r3171277742
########## docs/src/upgrade/release-4.x.x.asciidoc: ########## @@ -51,6 +51,39 @@ deserialization in GraphBinary is unchanged. Applications that depend on the `uu `gremlin-javascript` brought it in as a transitive dependency should add it directly to their own `package.json` if they still need it. +==== JS HTTP Streaming Response Support + +The JavaScript driver now supports incremental HTTP streaming. Results are deserialized from the server response as +they arrive, rather than buffering the entire response before processing. + +Traversal API terminal steps (`next()`, `toList()`, `hasNext()`) are now truly incremental. `next()` +returns the first result as soon as it is deserialized from the wire, without waiting for the full response. +In 3.x, `next()` waited for all WebSocket frames before returning. + +`Client.stream()` now returns an `AsyncGenerator` for direct incremental consumption. This is a breaking change Review Comment: Should anything inside the JS reference doc section be updated as well around this? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
