NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
npm, #2179 most downloaded on npm
Stringify JS values
Latest stable
1.8.1
Last release 8 days ago
11 Nov 2026
Release timing varies
gaps range from 9 days to 2 months
Most releases are documented
notes for 41 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
4 years old
105 releases · first in 2023
Drag across the ruler to compare, or tap a release to open it.
Nothing published for this version
Nothing published for this version
This feature allows custom serialization/deserialization API in seroval. The feature required massive restructuring in the core, such as moving the wh
import {
createPlugin,
serialize,
type SerovalNode,
} from 'seroval';
const BufferPlugin = createPlugin<Buffer, SerovalNode>({
tag: 'Buffer',
test(value) {
return value instanceof Buffer;
},
parse: {
sync(value, ctx) {
return ctx.parse(value.toString('base64'));
},
async async(value, ctx) {
return ctx.parse(value.toString('base64'));
},
stream(value, ctx) {
return ctx.parse(value.toString('base64'));
},
},
serialize(node, ctx) {
return `Buffer.from(${ctx.serialize(node)}, "base64")`;
},
deserialize(node, ctx) {
return Buffer.from(ctx.deserialize(node) as string, 'base64');
},
isIterable() {
return true;
},
});
const serializedJS = serialize(
Buffer.from('Hello World', 'utf-8'),
{
plugins: [BufferPlugin],
},
);
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Fix runtime feature flag check during parsing process
Request supportResponse supportEvent supportCustomEvent supportDOMException supportMap and Set now falls back to Symbol.iterator if disabled.ArrayBuffer and DataView to require Feature.TypedArray (due to how both requires Uint8Array)Blob and File is now indirectly affected by the Feature.TypedArrayNothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Adds support for serializing object state (e.g. Object.freeze, Object.seal and Object.preventExtensions)
Object.freeze, Object.seal and Object.preventExtensions)Iterable is no longer a separate kind of node, it's now a subset of either Object or NullConstructor (depending on constructor).
Iterable is no longer a separate kind of node, it's now a subset of either Object or NullConstructor (depending on constructor).Feature.Symbol no longer disables the use of Symbol.iterator in Iterable. Iterable protocol is now skipped.Undefined, Null, Boolean, NaN, NegativeZero, Infinity and NegativeInfinity with the Constant Node.PromiseLike (aka Thenables) due to the potential DoSFull Changelog: https://github.com/lxsmnsyc/seroval/compare/v0.7.0...v0.8.0
Add support for ArrayBuffer https://github.com/lxsmnsyc/seroval/pull/13/commits/cdd0ed80df02e961fafd0f5a6609f3cf691c0719
ArrayBuffer https://github.com/lxsmnsyc/seroval/pull/13/commits/cdd0ed80df02e961fafd0f5a6609f3cf691c0719ArrayBuffer support has been added, this change includes deduping TypedArray.prototype.buffer references, applying proper byte offset and length, as well as changes to encoding format (which is now delegated to the ArrayBuffer source)DataView https://github.com/lxsmnsyc/seroval/pull/13/commits/28fd1accb3bce327f7b3558d58c8397364574aacBlob https://github.com/lxsmnsyc/seroval/pull/13/commits/ec017d7b096de7fba7d16ff41ba61fe0985fef78File https://github.com/lxsmnsyc/seroval/pull/13/commits/d598849151ec0f9a6c173e26df4954a4bbd96f60Headers https://github.com/lxsmnsyc/seroval/pull/13/commits/3ee4191ba00c6449ebb3c947753dde1316f13ea7FormData https://github.com/lxsmnsyc/seroval/pull/13/commits/a4665004677557fe39a34ed8d379897bb7cc4fb4Full Changelog: https://github.com/lxsmnsyc/seroval/compare/v0.6.0...v0.7.0
Add support for URLSearchParams
URLURLSearchParamsWebAPI feature flagNothing published for this version
Add benchmarks https://github.com/lxsmnsyc/seroval/commit/9eefa7abb1b0ac75c3b1f63b7765367e472d052d
RegExp output https://github.com/lxsmnsyc/seroval/pull/8/commits/349318069cce4ad39691e86c4396612b9513cb58AggregateError node format https://github.com/lxsmnsyc/seroval/pull/8/commits/9d686de7ba71e02d604303db4088143bed06a95eFull Changelog: https://github.com/lxsmnsyc/seroval/compare/v0.4.1...v0.5.0
Nothing published for this version
This release focuses on compatibility and perf improvements.
This release focuses on compatibility and perf improvements.
but mostly just compatibility (because seroval is fast enough)
{ disabledFeatures: number } config for serialize and serializeAsynctoJSON, toJSONAsync, compileJSON and fromJSONNothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Add support for Error and AggregateError
Error and AggregateErrorIterableTypedArrayRegExp and Date to not be treated as primitive valuesMap and Set not generating reference.Infinity to 1/0Full Changelog: https://github.com/lxsmnsyc/seroval/compare/v0.2.1...v0.3.0
Nothing published for this version
Add support for Promise serialization via serializeAsync
serializeAsyncdeserializeserialize as an alternative for default exportFull Changelog: https://github.com/lxsmnsyc/seroval/compare/v0.1.0...v0.2.0
b85f3b9: Add @seroval/transport, which sends many streamed values over one connection, such as a fetch body, a WebSocket or a MessagePort.
b85f3b9: Add @seroval/transport, which sends many streamed values over one connection, such as a fetch body, a WebSocket or a MessagePort.
createJSONWriter sends each value under a key as messages, and createJSONReader reads them back with get(key). createJSWriter and createJSReader send code that the reader runs with eval.toJSONStream and fromJSONStream send a single value.@seroval/transport/web exports toWebStream, which turns the messages into a ReadableStream<Uint8Array> of length-prefixed frames, and fromWebStream, which reads them back. toResponse and fromResponse do the same with a Response. @seroval/transport does not export them.@seroval/transport/web also exports toFormData and fromFormData, which encode a value as form data with each file and blob in a part of its own, without seroval-plugins/web. toFormRequest and fromFormRequest do the same with a Request.sharedRefs shares them across values.send can return a promise to hold back the next message. Either side can cancel one value, and the reader fails what still waits when it ends.reader.settled(key) resolves once everything in a value settled. The reader frees a key once it settled and both get and settled were called for it, and reader.cancel(key) frees one sooner. maxKeys caps the keys the writer can send before the app requests them.signal option closes a writer when it aborts.@seroval/transport/node exports toNodeStream and fromNodeStream, which do the same with a Node Readable.@seroval/transport/frame exports encodeFrame and createFrameDecoder, for other connections that carry bytes.One column per quarter.