- Fixed
omitandomitByso that they can acceptnullas 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
processbefore 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.rejectshould 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.constantfor replacing an object outright. (#10) - Fix handling null differently than undefined.
uand friends will now coerce null to an object if there are updates for it. (#20)
- Remove support for
_.placeholderin 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.mapwill now return the same instance if nothing changes.- Improve performance of
u.map. - Removed a couple lodash dependencies.
- Add
u.isto test predicates in a single path. (#13) - Rename
u.intou.updateIn. Withu.isandu.ifit was too confusing. - Make
uavailable atu.updateas well.
- Add
u.ifandu.ifElseto conditionally update objects. (#12) - Add
u.mapto 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
updatelikewithDefault,map,in, etc. Previously, onlyudid freezing.
- Actually expose
u.in.
- Add
u.freezeto freeze an object deeply. (#7) - Add
u.into update a single value in an object with a specified path. (#6)
- Fix
Object.isFrozenbreaking on null in chrome. (#5)
- Fix
Object.isFrozenbreaking 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_ENVis"production'. - Update README with example for
reject.
- Update README.
- Fix package description.
- Update README and description.
- Initial release