Skip to content

Releases: bsonpatch/bsonpatch

v0.5.0 - KeyRef Values In Array Paths

01 Sep 06:53

Choose a tag to compare

KeyRef Values In Array Paths

Allow pointing to array elements via a reference field

Example path /array/id=123/data

First suggested in #139

This release incorporates that change and brings bsonpatch in line with zjsonpatch v0.5.0

  • New Features

    • Added support for extended JSON Pointer syntax, allowing array elements to be referenced by key-value pairs (e.g. /array/id=123/data).
    • Enhanced escape sequence handling in JSON Pointer paths, including support for ~2 as a literal equals sign.
  • Documentation

    • Updated README to describe the new extended JSON Pointer feature and provide usage examples.
  • Tests

    • Added and expanded tests to verify parsing, evaluation, and escaping for the new array key reference syntax.
    • Introduced new test data for key reference scenarios.

Distribution

Available on Maven Central as

<dependency>
  <groupId>io.github.bsonpatch</groupId>
  <artifactId>bsonpatch</artifactId>
  <version>0.5.0-RELEASE</version>
</dependency>