101 icon indicating copy to clipboard operation
101 copied to clipboard

2.0.0

Open tjmehta opened this issue 9 years ago • 3 comments

es6 utils removal or deprecations?

rename mutable methods to mutable- rename put and omit to set and delete/del

tjmehta avatar Aug 25 '16 06:08 tjmehta

Another suggestion would be to have a 101/mut/ namespace for mutable functions. This makes it easier to spot which are immutable, and allows you to use the same names for immutable and mutable versions.

require('101/delete')
require('101/mut/delete')

rstacruz avatar Aug 25 '16 06:08 rstacruz

On the README, it'd be nice to have pointers to what is not implemented (eg, deprecations). So something like:

Deprecations

These functions are no longer available in 2.0.

Function Equivalent
map Array.prototype.map, npm: object-loops/map
assign Object.assign, npm: object-assign
find Array.prototype.find
isArray Array.isArray

rstacruz avatar Aug 25 '16 06:08 rstacruz

Re: ES6 transpilation (#42): I'd like to avoid build steps if it's avoidable. 101 is about small micro-utilities. Writing in ES6 syntax isn't going to give any significant productivity boost, nor will it make 101 more useful in any way.

If you do decide on writing in es6, just avoid using export default myFunction — it'll make non-Babelers need to do require('101/del').default :(

(Just my personal opinion, of course!)

rstacruz avatar Aug 25 '16 06:08 rstacruz