fix: Fix before value write hooks for native value visits

This commit is contained in:
2026-04-26 14:14:35 +02:00
parent ba08635384
commit 837fbe8295
3 changed files with 8 additions and 1 deletions
+6
View File
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [Unreleased]
### Fixed
- `serde-api`: Fix before value write hooks for native value visits
- `default-extensions`: Fix native values not being delegated correctly in `PathTrackingDataVisitor`
## [0.8.0] - 2026-04-20
### Added
@@ -71,7 +71,7 @@ public class PathTrackingDataVisitor implements TweedDataVisitor {
@Override
public void visitValue(@Nullable Object value) throws TweedDataUnsupportedValueException {
TweedDataVisitor.super.visitValue(value);
delegate.visitValue(value);
valueVisited();
}
@@ -106,6 +106,7 @@ public class DelegatingTweedDataWriter implements TweedDataWriter {
@Override
public void visitValue(@Nullable Object value) throws TweedDataUnsupportedValueException {
beforeValueWrite();
delegate.visitValue(value);
}