From 8013605e7b422f14a2ed530b96807473a2281207 Mon Sep 17 00:00:00 2001 From: Aaron Jensen Date: Tue, 4 Aug 2015 22:34:02 -0700 Subject: [PATCH] Actually expose u.in --- CHANGELOG.md | 6 +++++- lib/index.js | 4 +++- test/updeep-spec.js | 1 + 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e33025d..d153fce 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/lib/index.js b/lib/index.js index 2db718f..53f5ffe 100644 --- a/lib/index.js +++ b/lib/index.js @@ -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; diff --git a/test/updeep-spec.js b/test/updeep-spec.js index c8a4619..a1e5cdf 100644 --- a/test/updeep-spec.js +++ b/test/updeep-spec.js @@ -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'); });