Skip to content

Heads up: v8 9.9 updates the ValueSerializer/ValueDeserializer version #42192

Closed
@jasnell

Description

@jasnell

Just a heads up that V8 9.9 has updated the version number of the serialization format used by v8::ValueSerializer to 14, and has updated the version again in v8 main branch to 15.

This will cause issues as older versions of Node.js will not be able to successfully deserialize data serialized using V8 9.9.

Specifically, if we assume that Node.js 18.x will be bumped to V8 9.9, then the following flow will not work:

Node.js 18.x --> v8.serialize(new Uint8Array(10)) --> data
Node.js 17.x --> v8.deserialize(data) --> throws due to unsupported version

The deserializer is not forwards-compatible.

/cc @addaleax @targos

@lucacasonato ... Just a heads up for you here as well. I know y'all haven't yet implemented the v8.serialize/v8.deserialize APIs in the Deno node module but once you do get around to that these version bumps will likely impact deno as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    v8 engineIssues and PRs related to the V8 dependency.v8 moduleIssues and PRs related to the "v8" subsystem.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions