-
Notifications
You must be signed in to change notification settings - Fork 73
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
Build: Switch from Node 14 to 18, update/remove dependencies #608
Conversation
path = require( "path" ), | ||
rimraf = require( "rimraf" ), | ||
fs = require( "node:fs" ), | ||
fsp = require( "node:fs/promises" ), |
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.
Could all calls be switched to use one or the other?
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.
There are sync-only APIs like existsSync
or createWriteStream
so node:fs/promises
cannot be used for everything. There are some cases that could potentially be migrated to the promises version but validating I didn't break anything would require some time. I'd rather postpone any such code refactors until after jQuery UI <1.12 support is dropped from this repo.
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.
@timmywil I’m going to merge this since I have 1 approval and this blocks multiple other PRs. Let me know if you have further feedback and I’ll address it separately.
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.
+1 by reading
Changes: * switch from Node 14 to 18, including in the Dockerfile * test on Node 18 & 20 * update almost all dependencies * remove some dependencies Removed dependencies: * `rimraf` in favor of native `fs` which now has recursive removal * `dateformat` that was rarely used in favor of native `Date` usage Closes jquerygh-608
…a-bug. Fixes jquery#79". Fixes jquery#131 This reverts commit 4f6405b. Ref jquerygh-608
Changes:
Removed dependencies:
rimraf
in favor of nativefs
which now has recursive removaldateformat
that was rarely used in favor of nativeDate
usageAlso:
Reapply "Remove the workaround to handle asynchronous worker load lzma-bug. Fixes #79". Fixes #131
This reverts commit 4f6405b.
And:
Build: Add .editorconfig, reformat package.json & package-lock.json