Actually expose u.in

main
Aaron Jensen 2015-08-04 22:34:02 -07:00
parent c857b534c1
commit 8013605e7b
3 changed files with 9 additions and 2 deletions

View File

@ -2,6 +2,9 @@
## [unreleased]
## [0.3.1]
* Actually expose `u.in`.
## [0.3.0]
* 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)
@ -35,7 +38,8 @@
## 0.1.0
* 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.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

View File

@ -1,4 +1,5 @@
import update from './update';
import updateIn from './updateIn';
import omit from './omit';
import reject from './reject';
import withDefault from './withDefault';
@ -11,9 +12,10 @@ function updateAndFreeze(updates, obj) {
const updeep = curry(updateAndFreeze);
updeep.in = updateIn;
updeep.freeze = freeze;
updeep.omit = omit;
updeep.reject = reject;
updeep.withDefault = withDefault;
updeep.freeze = freeze;
export default updeep;

View File

@ -116,6 +116,7 @@ describe('updeep', () => {
it('has additional functions', () => {
expect(u.freeze).to.be.a('function');
expect(u.in).to.be.a('function');
expect(u.omit).to.be.a('function');
expect(u.withDefault).to.be.a('function');
});