Skip to content

Rename configuration to responseSerializer.#3492

Open
kenhuuu wants to merge 1 commit into
masterfrom
remove-ser-opt
Open

Rename configuration to responseSerializer.#3492
kenhuuu wants to merge 1 commit into
masterfrom
remove-ser-opt

Conversation

@kenhuuu

@kenhuuu kenhuuu commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

This makes it consistent among all the GLVs and ensures that users know that is for response size deserialization only and not request serialization.

VOTE +1

@kenhuuu kenhuuu marked this pull request as draft June 30, 2026 16:08
This makes it consistent among all the GLVs and ensures that users
know that is for response size deserialization only and not
request serialization.

Assisted-by: Claude Code:claude-opus-4-8
@kenhuuu kenhuuu marked this pull request as ready for review July 3, 2026 03:23
|options.auth |RequestInterceptor |An auth interceptor that is always appended to the end of the interceptor list so it runs last. |undefined
|options.preciseNumbers |Boolean |When `true`, wraps deserialized numbers in typed wrappers that preserve the server's original type. |undefined
|options.reader |GraphBinaryReader |The reader to use for deserializing responses. |GraphBinaryReader
|options.responseSerializer |GraphBinaryReader |The reader to use for deserializing responses. |GraphBinaryReader

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i suppose we say somewhere else that "serializing requests isn't configurable because...." - that might be useful information to folks who come from 3.x and are used to serializer working the way it used to.

Comment thread CHANGELOG.asciidoc
* Standardized connection options across all GLVs (Java, Python, .NET, Go, JavaScript) per the TinkerPop 4.x GLV proposal; see the upgrade docs for the full per-driver table. *(breaking)*
** Aligned option names across drivers: `maxConnections` (128), `connectTimeoutMillis` (5000), `readTimeoutMillis` (off), `idleTimeoutMillis` (180000), `keepAliveTimeMillis` (30000), `compression` (on/`deflate`), `batchSize` (64), `bulkResults` (false), `maxResponseHeaderBytes`, `proxy`, and `ssl`. Timeouts use a millisecond-suffixed canonical name with an idiomatic duration companion (Java `Duration`, Go `time.Duration`, .NET `TimeSpan`, Python seconds); JavaScript uses milliseconds only.
** Java: renamed `maxConnectionPoolSize`/`connectionSetupTimeoutMillis`/`idleConnectionTimeoutMillis`/`resultIterationBatchSize` and `RequestOptions.addG`->`traversalSource`; removed `maxResponseContentLength` (responses now stream); added `readTimeoutMillis`, `keepAliveTimeMillis`, `maxResponseHeaderBytes`, `proxy`, `url(String)`, `ssl(SslContext)`. *(breaking)*
** Aligned option names across drivers: `maxConnections` (128), `connectTimeoutMillis` (5000), `readTimeoutMillis` (off), `idleTimeoutMillis` (180000), `keepAliveTimeMillis` (30000), `compression` (on/`deflate`), `batchSize` (64), `bulkResults` (false), `maxResponseHeaderBytes`, `proxy`, `ssl`, and `responseSerializer`. Timeouts use a millisecond-suffixed canonical name with an idiomatic duration companion (Java `Duration`, Go `time.Duration`, .NET `TimeSpan`, Python seconds); JavaScript uses milliseconds only.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not your change, but i'd rather we not use multi-level bullets and multiple sentences per bullet in CHANGELOG. something to generally fix before release cc/ @Cole-Greer as the presumed release manager for 4.0.0-beta.3

@spmallette

Copy link
Copy Markdown
Contributor

Called out a couple of items, but not blocking: VOTE +1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants