fix: Fix before value write hooks for native value visits
This commit is contained in:
@@ -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/),
|
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).
|
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
|
## [0.8.0] - 2026-04-20
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|||||||
+1
-1
@@ -71,7 +71,7 @@ public class PathTrackingDataVisitor implements TweedDataVisitor {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void visitValue(@Nullable Object value) throws TweedDataUnsupportedValueException {
|
public void visitValue(@Nullable Object value) throws TweedDataUnsupportedValueException {
|
||||||
TweedDataVisitor.super.visitValue(value);
|
delegate.visitValue(value);
|
||||||
valueVisited();
|
valueVisited();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
@@ -106,6 +106,7 @@ public class DelegatingTweedDataWriter implements TweedDataWriter {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void visitValue(@Nullable Object value) throws TweedDataUnsupportedValueException {
|
public void visitValue(@Nullable Object value) throws TweedDataUnsupportedValueException {
|
||||||
|
beforeValueWrite();
|
||||||
delegate.visitValue(value);
|
delegate.visitValue(value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user