Commit Graph

23 Commits

Author SHA1 Message Date
Aaron Jensen
dcee2038b6
Format code with prettier 2017-04-18 17:55:46 -07:00
Aaron Jensen
02c6057aaf
Upgrade eslint config 2017-04-18 17:50:29 -07:00
Aaron Jensen
d823fb0186 Upgrade to lodash4 2016-02-04 06:19:27 -08:00
Aaron Jensen
a9418b6f00 Upgrade eslint and friends 2016-01-13 08:19:56 -08:00
Aaron Jensen
485bde7b9b Revert "Merge pull request #34 from substantial/default-to-array"
This reverts commit 12bf952d64, reversing
changes made to 7a35404ae1.
2015-11-16 08:13:01 -08:00
Aaron Jensen
d2d0703ef1 Add support for non-plain objects
Fixes #36
2015-09-15 07:50:36 -07:00
Andy Brown
0b0f6dc376 default to array when update keys are integers 2015-08-30 16:54:22 -07:00
Aaron Jensen
dea78333ff Add some jsdoc 2015-08-19 07:29:06 -07:00
Aaron Jensen
c083f4a330 Allow update to preserve empty objects
fixes #29
2015-08-18 04:28:19 -07:00
Aaron Jensen
5b58b8cfc8 Fix handling null differently than undefined.
`u` and friends will now coerce null to an object if there are updates for it.

Fixes #20
2015-08-12 22:04:31 -07:00
Aaron Jensen
3ce001a4f6 Replace lodash curry with our own
lodash's curry is great and does a lot, but we don't need it all. This
is quite a bit faster.

Currently, it does away with placeholder support.

updeep curry partial call x 9,951,410 ops/sec ±1.61% (62 runs sampled)
lodash curry partial call x 988,949 ops/sec ±1.36% (62 runs sampled)
2015-08-11 23:58:54 -07:00
Aaron Jensen
8e82692be2 Refactor update.js and remove some lodash 2015-08-08 23:35:53 -07:00
Aaron Jensen
a7156e29a1 Fix lint 2015-08-05 08:39:42 -07:00
Aaron Jensen
b1e000b06d Freeze objects returned by helper methods 2015-08-05 04:44:14 -07:00
Aaron Jensen
cc42bbb2a4 Replace object outright when updates are constant 2015-08-05 04:28:32 -07:00
Aaron Jensen
78c30e038a Rename obj to object 2015-08-05 00:31:10 -07:00
Aaron Jensen
08ebbf5c89 Allow updating to null
Fixes #8
2015-08-04 21:34:05 -07:00
Aaron Jensen
772e92789b Freeze results by default 2015-08-02 00:32:32 -07:00
Aaron Jensen
f199cd335a Add some javadoc to update 2015-08-01 23:38:27 -07:00
Aaron Jensen
54137398ea use airbnb's eslint 2015-08-01 23:25:08 -07:00
Aaron Jensen
0e48adc468 Use lodash assign instead 2015-08-01 09:09:52 -07:00
Aaron Jensen
743b603216 Convert to es6 modules 2015-08-01 08:13:25 -07:00
Aaron Jensen
35fe73e080 Add initial code, tests don't work yet. 2015-07-31 09:16:19 -07:00