NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
npm, #1903 most downloaded on npm
Simple JSON Addressing.
Latest stable
5.0.1
Last release 4 years ago
no release in 18 months
Release timing varies
gaps range from 2 weeks to 3.5 years
Most releases are documented
notes for 9 of 11 stable releases
Nothing withdrawn
no release was ever pulled
15 years old
11 releases · first in 2011
Drag across the ruler to compare, or tap a release to open it.
Fix incorrect typings for compile get/set methods (#58, thanks to @haakemon)
null and undefined assertions (https://github.com/janl/node-jsonpointer/commit/a5706e821c9b1d9d821c79ab00140c25c7cafe08)The original, non-mutated objects are now returned if any of the keys __proto__, constructor or prototype are used in a json pointer. `js // returns t
Fix prototype pollution (#51)
__proto__, constructor or prototype are used in a json pointer.// returns the unmodified input {}
jsonpointer.set({}, '/foo/__proto__/boo', 'polluted')
.set operation, an error is thrown:// throws `new Error('Invalid JSON pointer. Must be of type string or number.')`
jsonpointer.set({}, [['__proto__'], ['__proto__'], 'boo'], 'polluted')
Your coding agent can read these notes before it upgrades. Set up the MCP server →
# 4.1.0 (2020-07-03) ### Bug Fixes * prototype pollution (234e343) ### Features * docs: thank contributors (b67e402) * docs: use npm test (ad96a94) *
Whitelist production relevant files in package.json. This decreases the npm package size a bit. https://github.com/janl/node-jsonpointer/pull/26
Whitelist production relevant files in package.json. This decreases the npm package size a bit. https://github.com/janl/node-jsonpointer/pull/26
null values now get set properly
null values now get set properlyWhen setting a null value, it now gets set as actual value.
Previously we've deleted the property.
var obj = {foo: 'bar'}
jsonpointer.set(obj, '/foo', null)
// results in obj = {foo: null}
When getting a non-existent value, we previously returned null.
We've now changed that to undefined.
var obj = {}
jsonpointer.get(obj, '/foo')
// returns `undefined`
// with earlier versions, we've returned `null`
Split getter & setter to improve readability and improve the performance
Split getter & setter to improve readability and improve the performance
Split getter & setter to improve readability and improve the performance
Support /- getter and setter and nested properties #19
Remove unused console module #18
feat(docs): use npm test
feat(docs): use npm test
Nothing published for this version
Nothing published for this version
One column per quarter.