Open niftylettuce opened 5 years ago
Hi @davidmarkclements, I wouldn't bother adding fast-clone to the benchmark. As I mentioned in the referenced issue, I wrote that library a few years ago and while it was the fastest I could find at the time, other libraries have since improved and overtaken it (such as your own). I don't have time to optimise/enhance it further so I'll most likely depreciate it.
hey @codeandcats - theres two alternatives if you're interested
replace https://github.com/codeandcats/fast-clone/blob/master/src/index.ts#L38 with rfdc(value)
, you could also remove https://github.com/codeandcats/fast-clone/blob/master/src/index.ts#L28-L32. The only difference is it would reference any functions from the original object, so that might take some documenting
deprecate as planned, but would you consider passing on the namespace? - it's a crowded area hence rfdc
Hi David,
Yeah it's pretty hard to find a decent name for packages on npm these days (hence why I recently created this little site to help find/suggest a name 😉).
Option 2: If you want to rename rfdc
to fast-clone
then I'm happy to add you as a collaborator on npm so you can deploy your repo there. Though, what would you do with the rfdc
name on npm? Leave it as is and stop publishing new versions to it? Deprecate it and point to fast-clone
? Push new versions to both?
I left a few comments over on https://github.com/codeandcats/fast-clone/issues/27 a bit ago.
Also I wanted to share this blog post https://medium.com/@roman.zenka/the-twin-volcanoes-of-javascript-533fc7a9c3e6 which discusses the extensive amount of packages that do cloning. It's a good read.
@niftylettuce very cool!
@codeandcats While rfdc has 20k shy of 1m dl's p/w it only has 13 dependents, so I'd deploy fast-clone v2.0.0 (which would be rfdc) and then PR the 13 dependents letting them know. I wouldn't deprecate until log4js has accepted the PR, because log4js is responsible for the majority of downloads and I'd rather not freak out a fraction of their millions of users, which then may cause unnecessary overhead for the log4js authors as they interact with users opening issues etc. But yeah if this works for you, it works for me
@davidmarkclements cool, sounds like a responsible plan of action. 👌
I have added you as a maintainer for fast-clone
on npm. Go for it. 😃
Ref: