Details for why the leak happens are in the issue, https://github.com/alanshaw/stream-to-it/issues/6. This code is heavily influenced by the fix for writeToStream in streaming-iterables but avoids breaking any functionality here.
Fix leak by removing Promise.race use
Adds the leak reproduction code to a benchmarks folder. Run instructions leveraging Clinic.js are inline in the file. I can add to the readme if desired.
Updates deps :)
Added package.files to restrict what gets uploaded (tests were being packaged)
Travis now runs Node.js stable(14) and lts(12)
Clinic.js Reports
I've also listed the IPFS CIDs (linked to the gateway) if you want to peruse in detail.
Details for why the leak happens are in the issue, https://github.com/alanshaw/stream-to-it/issues/6. This code is heavily influenced by the fix for writeToStream in streaming-iterables but avoids breaking any functionality here.
package.files
to restrict what gets uploaded (tests were being packaged)stable
(14) andlts
(12)Clinic.js Reports
I've also listed the IPFS CIDs (linked to the gateway) if you want to peruse in detail.
After bafybeidzy5otcicczh43ifdcg55btdl4q5j75vfolhsygr3oomqjavj6p4
Before bafybeig3sw5t326is6e7rknf7ena3ffubekperpsdgf2dty7w74pkvmhai
Package file changes
fixes https://github.com/alanshaw/stream-to-it/issues/6