Releases: 7PH/json-cursor-path
Releases · 7PH/json-cursor-path
v1.1.0
🔥 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
🐞 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
v1.0.1
🐞 Bug fixes
- Fix cursor paths when placed in empty strings
- Fix arrays as root object in JSON
Full Changelog: v1.0.0...v1.0.1