Skip to content
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

Merged
merged 3 commits into from
Apr 21, 2024

Conversation

mgol
Copy link
Member

@mgol mgol commented Apr 19, 2024

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

Also:
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

@mgol mgol requested review from fnagel and timmywil April 19, 2024 13:15
@mgol mgol self-assigned this Apr 19, 2024
path = require( "path" ),
rimraf = require( "rimraf" ),
fs = require( "node:fs" ),
fsp = require( "node:fs/promises" ),
Copy link
Member

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?

Copy link
Member Author

@mgol mgol Apr 19, 2024

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.

Copy link
Member Author

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.

Copy link
Member

@fnagel fnagel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 by reading

mgol added 3 commits April 21, 2024 20:40
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
@mgol mgol merged commit 3a5968b into jquery:main Apr 21, 2024
3 checks passed
@mgol mgol deleted the updates branch April 21, 2024 18:43
@mgol mgol removed the Needs review label Apr 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

zThemeParams doens't work on IE<10.0 Remove the workaround to handle asynchronous worker load lzma-bug
3 participants