Skip to content

v0.2.0

Choose a tag to compare

@github-actions github-actions released this 25 Oct 12:16
0c63284

Changes

  • objectPath puts a key with ., [ or ] in quoted brackets: objectPath("$", "a.b") gives $['a.b']. Before, it gave $.a.b, the same path as the nested key { a: { b } }. A backslash escapes ' and \ in a quoted key. Other keys keep the dot form.
  • pathDepth counts a quoted key as one level, as a key after a dot. A dot in a quoted key does not count. Before, pathDepth("$.a.b") gave 3 for the key a.b.

The path of a key with ., [ or ] changes. Thus this version is a breaking change (before 1.0.0, MINOR).