Releases: Havunen/SystemTextJsonPatch
Releases · Havunen/SystemTextJsonPatch
v4.2.0
4.2.0
- Correctly handle key not found exception when applying patch document to dictionary #40
- Respect STJ options PropertyNameCaseInsensitive setting #42
- Internal dependencies updated
v4.0.0
4.0.0
BREAKING CHANGE: SystemTextJsonPatch now supports different property naming policies!
f.e. JsonNamingPolicy.SnakeCaseLower
. Fixes #36
- This means that the path and from of the system text json patch document needs to match the JSON serializer options property naming policy.
For example, if the JSON serializer options are set to use camelCase, the patch path should also be in camelCase.
BREAKING CHANGE: Exception types have been changed.
JsonPatchException
-base exception type now contains FailedOperation
and AffectedObject
properties.
These properties are populated with the failed operation when the operation is available.
This change is to provide more information about the failed operation and the affected object. Fixes: #26
NotSupportedException
and InvalidOperationException
are not thrown anymore. Instead, JsonPatchException
is thrown with the appropriate message.
JsonPatchTestOperationException
is now thrown only when the test operation fails. Fixes #22
v3.3.0
3.3.0
- Adds support for
DenyPatch
attribute to deny access to annotated property #34
- Internal dependencies updated
v3.2.1
3.2.1
- Fixes an issue where null and empty string test operation of JsonNode was incorrectly handled #31
- Improved performance of JSON patch test operation
v3.2.0
3.2.0
- Adds support for dictionary complex types #29
- Internal dependencies updated
v3.1.0
3.1.0
- Adds .NET 8 target framework
v3.0.1
v3.0.1
- All invalid patch operations now correctly throw JsonPatchTestOperationException and malformed patch documents throw JsonPatchException
v3.0.0
3.0.0
- Library runtime performance is improved by using throw helpers for throwing exceptions #21
- Possibly breaking change:
JsonPatchTestOperationException
type is now thrown for test
-operation failures #22
v2.0.2
- Fixes an issue where dynamic JsonPatchDocument did not follow
JsonNamingPolicy
option for property names. #19
- Small performance improvements da51501