Commit Graph

277 Commits

Author SHA1 Message Date
Andy Brown
932da9f7d5 report correct arity for curried functions
fixes #31
2015-08-21 09:11:16 -07:00
Aaron Jensen
dea78333ff Add some jsdoc 2015-08-19 07:29:06 -07:00
Aaron Jensen
fe1d881412 Update README 2015-08-19 05:58:08 -07:00
Aaron Jensen
53eb8e15aa Speed up eslint 2015-08-19 00:31:06 -07:00
Aaron Jensen
0cf608c2c4 Revert "Replace chai with expect"
This reverts commit f7e570934d.

Fixes #30
2015-08-19 00:24:32 -07:00
Aaron Jensen
bc81dcd852 0.7.1 2015-08-18 04:28:43 -07:00
Aaron Jensen
c083f4a330 Allow update to preserve empty objects
fixes #29
2015-08-18 04:28:19 -07:00
Aaron Jensen
e53aa11b27 Add more examples for u.updateIn 2015-08-13 20:57:57 -07:00
Aaron Jensen
7d03d350be Merge pull request #25 from substantial/simplify-map-documentation-example
remove unnecessary function from docs example
2015-08-13 06:52:25 -07:00
Aaron Jensen
62f12884fb Update README.md 2015-08-13 06:52:07 -07:00
Derek Maffett
af623a5be4 remove unnecessary function from docs example 2015-08-13 00:38:31 -07:00
Aaron Jensen
f7e570934d Replace chai with expect
Fixes #17
2015-08-12 22:31:01 -07:00
Aaron Jensen
f0648c89f9 0.7.0 2015-08-12 22:20:49 -07:00
Aaron Jensen
75b5ca2fee Update changelog 2015-08-12 22:20:45 -07:00
Aaron Jensen
287c4fefad Add u.constant for replacing an object outright
Fixes #10
2015-08-12 22:19:32 -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
e99d575972 Update curry benchmark 2015-08-12 21:19:09 -07:00
Aaron Jensen
9b1b6bb44a Merge pull request #21 from substantial/add-placeholder
Add u._
2015-08-12 08:54:35 -07:00
Aaron Jensen
571102d947 Add u._ 2015-08-12 08:35:10 -07:00
Aaron Jensen
f32dba4a03 Clean up benchmarks 2015-08-12 07:22:45 -07:00
Aaron Jensen
3857d33d1b Add spec for curry4 2015-08-12 00:53:29 -07:00
Aaron Jensen
50fe8155e1 Update CHANGELOG.md 2015-08-12 00:34:31 -07:00
Aaron Jensen
cfe2a8e317 Update CHANGELOG.md 2015-08-12 00:30:19 -07:00
Aaron Jensen
7fcd5719dd 0.6.0 2015-08-12 00:26:04 -07:00
Aaron Jensen
a6b39fb21e Update changelog 2015-08-12 00:25:55 -07:00
Aaron Jensen
324b165e2a Use lodash's map, it's faster 2015-08-12 00:23:51 -07:00
Aaron Jensen
1e9e43b118 Add lots of benchmark stuff 2015-08-12 00:08:36 -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
ff195645cd Add curry 2015-08-11 23:55:23 -07:00
Aaron Jensen
70d8d1d1e3 Update README.md 2015-08-11 22:17:19 -07:00
Aaron Jensen
7fff8982e2 Update README.md 2015-08-11 22:16:07 -07:00
Aaron Jensen
efb669f017 Use lodash's forEach
It's a lot faster
2015-08-10 00:02:49 -07:00
Aaron Jensen
167760fb24 Do not use update in map if iteratee is a function
Performance bump, especially while curry is slow.
2015-08-10 00:02:49 -07:00
Aaron Jensen
5c64c7fbf6 Add ability to benchmark things 2015-08-10 00:02:49 -07:00
Aaron Jensen
b1701b09bd Build the minified version in production mode
This is probably not the way to do this, I may want to just have
multiple versions, dev+production * full+min
2015-08-10 00:02:49 -07:00
Aaron Jensen
32f69339a5 Update README 2015-08-09 22:10:11 -07:00
Aaron Jensen
6511166806 Update README.md 2015-08-09 22:03:48 -07:00
Aaron Jensen
e5836877a6 Merge pull request #18 from hedgerh/master
Updated README.md - examples
2015-08-09 22:01:09 -07:00
Harry Hedger
456283c622 Updated README.md - examples 2015-08-09 11:53:43 -04:00
Aaron Jensen
92ae098659 Make u.map return same instance if nothing changes 2015-08-09 00:21:24 -07:00
Aaron Jensen
8e82692be2 Refactor update.js and remove some lodash 2015-08-08 23:35:53 -07:00
Aaron Jensen
f8ea61ede0 Update README 2015-08-07 14:58:49 -07:00
Aaron Jensen
070c367810 Update changelog 2015-08-06 21:41:55 -07:00
Aaron Jensen
4a66e8a389 0.5.0 2015-08-06 21:41:10 -07:00
Aaron Jensen
b6b2daf824 Add u.update as alias to u 2015-08-06 21:40:57 -07:00
Aaron Jensen
339904aace Add note to readme 2015-08-06 21:30:55 -07:00
Aaron Jensen
333ca47cfd Rename u.in to u.updateIn
With u.if and u.is, it was too confusing. Originally I thought that because
u stood for update, it would make sense, but as I add more functions,
I think that was wrong.
2015-08-06 20:52:06 -07:00
Aaron Jensen
5c0855b9df Add u.is 2015-08-06 20:48:04 -07:00
Aaron Jensen
59ec770a88 Fix example in readme 2015-08-06 20:13:46 -07:00
Aaron Jensen
556ada11f3 Update changelog 2015-08-05 23:12:00 -07:00