Closed ronjouch closed 2 years ago
@davidlumley does that make sense? If merging this, please make a release for it :pray: .
In need for this Solution as well, can you please merge it
Please merge @davidlumley @maccman @bendrucker @robholland @dcadenas @tristandunn @gregors
FYI everybody, official message (emphasis mine) from Clearbit's head of support after following up with them every 2 months.
Hi Ronan,
Thanks for reaching out again. To best serve our wide customer base, we continue to make regular updates to our product, improving breadth, depth, and accuracy of our data. We follow industry standard prioritization of engineering resources based on impact and urgency. We are not able to dedicate resources to the node.js library.
Best,
<Name censored, I don't want to name names> | Head of Customer Support | Clearbit
In summary: don't use this library and make REST calls on your own. Which is acceptable, but why pretend to paying customers you're maintaining a library, then?
Follow-up issue: https://github.com/clearbit/clearbit-node/issues/54
This will solve git/ssh-less CI builds failing (#45, #49) with:
This happens because needle is specified in
clearbit-node
's package.json as https://github.com/clearbit/clearbit-node/blob/ee04e8475fa0461fc88d31eed96bc4f0989475fb/package.json#L28, and this is unusable in CI machines that don't have git or ssh. But this
clearbit/needle#84d28b5f
is needle 0.7.1, plus two patches sitting on top of it. Are these patches still required?1. First patch: require(package.json)
As described in https://github.com/clearbit/clearbit-node/pull/37 ,
So, clearbit forked needle and patched the
JSON.parse(fs.readFileSync(...package.json))
into arequire(package.json)
; https://github.com/clearbit/needle/commit/84d28b5f2c3916db1e7eb84aeaa9d976cc40054bThankfully, this fork & patch is no longer required since latest
needle
does the properrequire()
call 🙂. See the latest upstreamneedle
code at https://github.com/tomas/needle/blob/master/lib/needle.js around line 24:2. Second patch: stringifyArray
https://github.com/clearbit/needle/commit/ea566981076fb1f3864e4d736f522831364333ae patched needle's
stringifyArray
that is also the current upstream behavior: https://github.com/tomas/needle/blob/master/lib/querystring.js#L29→ The fork is no longer necessary. This PR replaces usage of the fork and comes back to the public npm version, which will no longer be problematic in CI builds.
If this PR is accepted and merged, please please don't come back to such forking & patching, it is problematic: