Skip to content

v1.1.0

Latest

Choose a tag to compare

@7PH 7PH released this 23 Jan 00:03
· 1 commit to master since this release

πŸ”₯ Release preview

Improved robustness for edge cases: proper handling of escaped characters in strings and malformed JSON with trailing
commas.

// Escaped characters now correctly calculated in string indices                                                           
getJsonCursorPath('{"key": "hello\\"world"}', 18);                                                                         
// Returns correct path accounting for escape sequences                                                                    

πŸš€ Features

  • Implement escape-aware string index calculation (#4)

πŸ€” Changes

n/a

πŸ’» Code quality

  • Implement 100% branch coverage (#4)
  • Refactor code to use re-usable constants (#4)

🐞 Bug fixes

  • Fix stack overflow on malformed JSON arrays with trailing commas (#4)
  • Add boundary check in parseObjectKey (#4)

πŸ‘₯ Thanks

  • @7PH for all contributions in this release