Repository navigation
Releases
Releases · sveltejs/devalue
v6.0.3
v6.0.2
Patch Changes
- 12ad9d6: chore: remove dts-buddy
v6.0.1
Patch Changes
- c13cf6a: fix: populate
error.pathfor values reached through a promise instringifyAsync - 6156b2e: perf:
stringifyandunevalskip per-character escaping for strings with nothing to escape - e7a9a73: fix: throw
Invalid inputinstead of a rawTypeErrorfor malformed typed array and boxed primitive payloads - 6156b2e: perf: only format path when an error is raised
- 6156b2e: perf: cache quoted property names
- 9e44253: Fix
unevalfor typed array views whose backing buffer ends with a partial element
v6.0.0
Major Changes
- afb3cb4: breaking: use tagged template
jsfor uneval replacers instead of nesteduneval - 3100507: breaking: require Node 22.17 or newer
Minor Changes
- afb3cb4: feat: support cyclic custom objects
Patch Changes
- ac295fb: fix: escape unpaired surrogates so uneval/stringify output survives UTF-8 transport
v5.9.4
Patch Changes
- 067b125: perf: annotate module-level
Object.freezecalls as pure so unused operation tables tree-shake
v5.9.3
Patch Changes
- 6861dbb: fix: avoid scanning sparse array holes in
unevaltraversal and shared-array population - 9ec5130: fix: reject non-string null-prototype object keys in
parseandunflattento prevent bypassing the__proto__check - dae8153: fix: prevent unhandled internal rejections in
stringifyAsyncwhen serializing multiple promises - 84f6f67: fix: prevent quadratic
unevaloutput expansion for repeated strings and bigints - 6861dbb: fix: avoid eager allocation when evaluating sparse arrays emitted by
uneval - 8f8d78e: fix: validate revived backing buffers before constructing typed arrays
- 46dc877: fix: serialize only the visible bytes of Node Buffers in
stringify,stringifyAsyncanduneval, preventing disclosure of unrelated data from their shared allocation pool
v5.9.2
Patch Changes
- 8b2a456: fix: reject out-of-bounds indices
v5.9.1
v5.9.0
Minor Changes
- 07d6a38: feat: export
filterArrayIndices, the array-index filtering used by theindicesOfstringify operation, so custom operations can reuse it instead of reimplementing it - 07d6a38: feat: add pluggable
operationsoption toparse/unflatten, allowing customization of how values are constructed while reviving (e.g. cross-realm or foreign-runtime revival) - 5b53532: feat: add pluggable
operationsoption tostringify/stringifyAsync, allowing customization of how values are introspected during serialization (e.g. side-effect-free or foreign-runtime serialization)
v5.8.2
Patch Changes
- 48cc81f: fix: serialize DataView subviews with the correct byte offset and length
- cd6da94: fix: resolve circular references through custom revivers when payload is already hydrated
- 29a3382: fix:
unevalnow produces valid output for a repeated emptyMaporSet - 8c0db06: fix: serialize Temporal values referenced more than once in
uneval - 3770846: fix: emit valid JS for
BigInt64ArrayandBigUint64Arrayinuneval - 756265a: fix: preserve shared-reference identity for Map keys in
uneval - faa8a05: fix: emit uneval reconstructions before the statements that reference them
- 06129ad: fix: do not grow sparse arrays by one slot in uneval