Releases: jusx/object-dot
Releases · jusx/object-dot
v1.7.0
1.7.0 (2019-03-13)
Features
- set: By default, when calling set with dot notation applied to an object where one of the properties already have a value, it is over-written. The API now allows a flag to not over-write but instead silently do nothing.. (910c1f8)
v1.6.2
1.6.2 (2019-03-11)
Bug Fixes
- set: When set is used to deeply set a chained object and one of the properties in the middle of the chain already exists, overwrite the property. For example
set({ a: { b: { c: 'a' } } }, 'a.b.c.d.e', 'foo')
used to throw an error. It now overwrites the value of the property c
where 'a.b.c.d.e'==='foo'
(949d42c)
v1.6.1
1.6.1 (2019-03-09)
Bug Fixes
- Stop mutating the path array. This was happening when using arrays instead of dot notation in the
get
and exists
methods. (f10f6ed)
v1.6.0
1.6.0 (2019-03-06)
Features
- extend: New
extend
method to add the methods from object-dot to the Object protoype chain so that you can call it directly like so: Object.get(...)
(9aabe4b)
v1.5.0
1.5.0 (2019-03-06)
Features
- exists: The exists function is useful to find out if a chained object exists. (5837ff7)
v1.4.0
1.4.0 (2019-03-05)
Features
- get: Support arguments as parameter in addition to destructing object. (8956ba0)
- get: Support path parameter using arrays in addition to a string of dot notation. (219d7fe)
v1.3.1
1.3.1 (2019-03-03)
Bug Fixes
- stop requiring npm in depedencies. (b07e2f6)
v1.3.0
1.3.0 (2019-03-03)
Features
- set: Support for arguments as parameters. (02bc072)
v1.2.0
chore(release): 1.2.0 [skip ci]