-
-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Test on all minimum supported Node.js versions #1170
Conversation
Seems like this uncovered some issues that needs to be fixed:
edit: I'm not sure about the last one, would love some input! |
I don't know either, but like the looks of this PR |
Don't know where all the old maintainers/contributors have gone... vacation maybe? Want to push for the v3 and the ESM PR out for stable release soonish Also speculating if WeakRef/Finalizers could help to clean up un-used pipe/stream if it's necessary for one of the 2nd stream to finish. It seems to be the major issue for developers that have that problem. That it won't finish the 2nd stream if the 1st one is buffered/filled and forgotten/unused. It was also the reason why setting a none standard highWatherMark was added... Ideally i would like to get rid of the No commits has happen for 2 months and it feels like we have goten stuck somewhere, where everybody expect someone else to fix/review/accept things or no longer have time |
looking back at old PR's it seems like @davesidious has a solution/pr that i have overlooked that solves highWaterMark #1162 ? Don't know if it's related to node v16 or just some old mistake we have done in v3 Edit: tried 1162 on my machine, didn't solve v16 |
hmmmm, this is strange:
🤔 |
Found what was wrong with fetch-blob and fixed it. it's released now. Dose the changes looks good to be merged @LinusU ? I'm rdy to merge |
function isNodeLowerThan(version) { | ||
return !~process.version.localeCompare(version, undefined, {numeric: true}); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Neat! 👍
Looks great! Thanks for landing this 🚀 |
* Use ESM import in runkit example file * Update dependencies, version and transition to ESM * Use ESM imports, add ESM-related info * Remove rollup * Lint TypeScript-related files * Update dependency * Lint & update dependency * Lint * Remove commonjs tests * chore: update changelog * Remove commonjs GitHub action * Update funding.yml * Update linter rules * Lint * Fix tsd * Remove unnecessary types * Simplify * Use top-level await * Update GitHub Actions * Use Mocha with ESM * Revamp * specify what node version * update formdata-node dep * remove lint from example using top await * updated name and link to formdata-polyfill * Stop recommend form-data * filter example - it has many duplicate variables * Update type definitions to ESM * Remove unused lint rule disable comment * Remove leftover rollup and dist folder * updated depn * updated d.ts * lint * Fix breaking changes with blob v3 stream() * revert eslint comment * revert back to xo 0.39 Don't want to deal with all those new rules right now. will fix it later fixed some of them... * none TS fan trying to fix type definition * Give me a break * Test on all minimum supported Node.js versions (#1170) * Test on all minimum supported Node.js versions * Tweak Node.js workaround version range * Handle Node.js 16 aborted error message * fix node version string compare Co-authored-by: Jimmy Wärting <jimmy@warting.se> * bumped fetch-blob version * import from dom lib * rm unused comment * updated required version in docs * fixed named import * set lowest support to 12.20.0 * comment explaining both * rm log Co-authored-by: Jimmy Wärting <jimmy@warting.se> Co-authored-by: Linus Unnebäck <linus@folkdatorn.se>
What is the purpose of this pull request?
What changes did you make? (provide an overview)
When switching to ESM in #1141 we are introducing three new minimum Node.js versions that we support:
12.20.0
14.13.1
16.0.0
In order to not accidentally break any of those versions I propose that we test on them all.
This was previously sort of done with the
minimum-node-version
but it only supports a single version, so would thus only run on12.20.0
.Which issue (if any) does this pull request address?
n/a
Is there anything you'd like reviewers to know?
n/a
ping @jimmywarting: I didn't push this directly to the
esm
branch since this might something we want to discuss first?