Skip to content

Conversation

mureinik
Copy link
Contributor

@mureinik mureinik commented Apr 20, 2025

Although it doesn't explicitly state it, [email protected] uses os.machine that was introduced in Node.js 18.9.0 (and then backported to 16.18.0).

[email protected] fixes this issue, so in most cases this problem would go undetected. However, there's still a chance a project that uses superagent or one of its dependencies explicitly requires [email protected], and would thus break under older Node.js versions.
Bumping the requirement to formidable@^3.5.4 solve this potential issue.

Fixes #1831

Checklist

  • I have ensured my pull request is not behind the main or master branch of the original repository.
  • I have rebased all commits where necessary so that reviewing this pull request can be done without having to merge it first.
  • I have written a commit message that passes commitlint linting.
  • I have ensured that my code changes pass linting tests.
  • I have ensured that my code changes pass unit tests.
  • I have described my pull request and the reasons for code changes along with context if necessary.

@mureinik mureinik force-pushed the formidble-3.5.2 branch 2 times, most recently from cdf7b16 to 9e5ce96 Compare April 23, 2025 09:45
@mureinik mureinik changed the title Lock down formidable version to 3.5.2 Bump formidable version to ^3.5.4 Apr 23, 2025
Although it doesn't explicitly state it, [email protected] uses os.machine
(https://nodejs.org/api/os.html#osmachine) that was introduced in Node.js 18.9.0
(and then backported to 16.18.0).

Since superagent should support Node.js 14.18.0 and above, it cannot use this
new version of formidable. Bumping the requirement to ^3.5.4 solves this issue.

Fixes forwardemail#1831
@titanism titanism merged commit 5425b28 into forwardemail:master May 5, 2025
2 checks passed
@titanism
Copy link
Collaborator

titanism commented May 5, 2025

v10.2.1 released to npm, thank you for your contribution 🙏

https://github.com/ladjs/superagent/releases/tag/v10.2.1

@mureinik mureinik deleted the formidble-3.5.2 branch May 5, 2025 11:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[fix] npm build fails with Node.js versions that don't provide os.machine

2 participants