Actually expose u.in
This commit is contained in:
parent
c857b534c1
commit
8013605e7b
@ -2,6 +2,9 @@
|
|||||||
|
|
||||||
## [unreleased]
|
## [unreleased]
|
||||||
|
|
||||||
|
## [0.3.1]
|
||||||
|
* Actually expose `u.in`.
|
||||||
|
|
||||||
## [0.3.0]
|
## [0.3.0]
|
||||||
* Add `u.freeze` to freeze an object deeply. (https://github.com/substantial/updeep/issues/7)
|
* Add `u.freeze` to freeze an object deeply. (https://github.com/substantial/updeep/issues/7)
|
||||||
* Add `u.in` to update a single value in an object with a specified path. (https://github.com/substantial/updeep/issues/6)
|
* Add `u.in` to update a single value in an object with a specified path. (https://github.com/substantial/updeep/issues/6)
|
||||||
@ -35,7 +38,8 @@
|
|||||||
## 0.1.0
|
## 0.1.0
|
||||||
* Initial release
|
* Initial release
|
||||||
|
|
||||||
[unreleased]: https://github.com/aaronjensen/updeep/compare/v0.3.0...HEAD
|
[unreleased]: https://github.com/aaronjensen/updeep/compare/v0.3.1...HEAD
|
||||||
|
[0.3.1]: https://github.com/aaronjensen/updeep/compare/v0.3.0...v0.3.1
|
||||||
[0.3.0]: https://github.com/aaronjensen/updeep/compare/v0.2.3...v0.3.0
|
[0.3.0]: https://github.com/aaronjensen/updeep/compare/v0.2.3...v0.3.0
|
||||||
[0.2.3]: https://github.com/aaronjensen/updeep/compare/v0.2.2...v0.2.3
|
[0.2.3]: https://github.com/aaronjensen/updeep/compare/v0.2.2...v0.2.3
|
||||||
[0.2.2]: https://github.com/aaronjensen/updeep/compare/v0.2.1...v0.2.2
|
[0.2.2]: https://github.com/aaronjensen/updeep/compare/v0.2.1...v0.2.2
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
import update from './update';
|
import update from './update';
|
||||||
|
import updateIn from './updateIn';
|
||||||
import omit from './omit';
|
import omit from './omit';
|
||||||
import reject from './reject';
|
import reject from './reject';
|
||||||
import withDefault from './withDefault';
|
import withDefault from './withDefault';
|
||||||
@ -11,9 +12,10 @@ function updateAndFreeze(updates, obj) {
|
|||||||
|
|
||||||
const updeep = curry(updateAndFreeze);
|
const updeep = curry(updateAndFreeze);
|
||||||
|
|
||||||
|
updeep.in = updateIn;
|
||||||
|
updeep.freeze = freeze;
|
||||||
updeep.omit = omit;
|
updeep.omit = omit;
|
||||||
updeep.reject = reject;
|
updeep.reject = reject;
|
||||||
updeep.withDefault = withDefault;
|
updeep.withDefault = withDefault;
|
||||||
updeep.freeze = freeze;
|
|
||||||
|
|
||||||
export default updeep;
|
export default updeep;
|
||||||
|
@ -116,6 +116,7 @@ describe('updeep', () => {
|
|||||||
|
|
||||||
it('has additional functions', () => {
|
it('has additional functions', () => {
|
||||||
expect(u.freeze).to.be.a('function');
|
expect(u.freeze).to.be.a('function');
|
||||||
|
expect(u.in).to.be.a('function');
|
||||||
expect(u.omit).to.be.a('function');
|
expect(u.omit).to.be.a('function');
|
||||||
expect(u.withDefault).to.be.a('function');
|
expect(u.withDefault).to.be.a('function');
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user