- Fixed
omit
andomitBy
so that they can acceptnull
as the object - Thanks @ianschuster for the report.
- No changes
- Omitting a key that does not exist will reuse the object, rather than creating a new, identical object - Thanks @yanick
- Improved TypeScript types - Thanks @yanick
- Check for existence of
process
before testing environment variables - Thanks @yanick
- Add TypeScript types - Thanks @yanick (#83)
- Add _.omitted to omit properties - Thanks @yanick (#78)
- Allow Number type in updateIn function - Thanks @AveVlad (#67)
- Do not freeze regexp (#65)
u.reject
should return same instance if no changes (#62)
- Add
u.omitBy
(#60) - Add
dangerously_never_freeze
, which I wouldn't recommend using unless you absolutely have to and you know exactly what the effects will be. (#59)
- Allow updeep to be required from CommonJS (#56)
- Upgrade to lodash ^4.2.0 (#50)
- BREAKING CHANGE Revert: "Default to empty array if update keys are integers." A new object will always be created. If you need an array, use
u.withDefault
. (#42)
- Fix support for Date objects and other non-plain objects (#36)
- Add support for wildcards (
*
) tou.updateIn
. (#27)
- Do not add object during false branch of
u.if
. (#35)
- Default to empty array if update keys are integers. (#22)
- Fix curried functions not reporting their correct arity. (#31)
- Fix update omitting empty object. (#29)
- Add
u._
placeholder for curried functions. - Add
u.constant
for replacing an object outright. (#10) - Fix handling null differently than undefined.
u
and friends will now coerce null to an object if there are updates for it. (#20)
- Remove support for
_.placeholder
in curried methods. This may come back, but it was necessary for the next item. - Improve performance of curried methods. (#16)
- Improve examples in docs, thanks hedgerh.
u.map
will now return the same instance if nothing changes.- Improve performance of
u.map
. - Removed a couple lodash dependencies.
- Add
u.is
to test predicates in a single path. (#13) - Rename
u.in
tou.updateIn
. Withu.is
andu.if
it was too confusing. - Make
u
available atu.update
as well.
- Add
u.if
andu.ifElse
to conditionally update objects. (#12) - Add
u.map
to update all values in an array or object. - Replace object outright if null or constant provided as
updates
. - Freeze objects returned by helper methods that use
update
likewithDefault
,map
,in
, etc. Previously, onlyu
did freezing.
- Actually expose
u.in
.
- Add
u.freeze
to freeze an object deeply. (#7) - Add
u.in
to update a single value in an object with a specified path. (#6)
- Fix
Object.isFrozen
breaking on null in chrome. (#5)
- Fix
Object.isFrozen
breaking on non-freezables in PhantomJS. (#1)
- Freeze objects returned by default. It doesn't actually make sense to return
unfrozen objects, as the original object could be mutated and it would
affect the new object. Object freezing is disabled if
NODE_ENV
is"production'
. - Update README with example for
reject
.
- Update README.
- Fix package description.
- Update README and description.
- Initial release