Skip to content

fix: compatibility with Node 12 #253

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

Merged
merged 5 commits into from
Apr 16, 2025
Merged

fix: compatibility with Node 12 #253

merged 5 commits into from
Apr 16, 2025

Conversation

ota-meshi
Copy link
Member

@ota-meshi ota-meshi commented Apr 16, 2025

This PR fixes a compatibility issue with Node.js v12 so that CI will fail if there is a compatibility issue with Node.js v12.

fixes #252


Memo:

  • I've modified and run CI several times and debugged with echo $? and it seems that in case of syntax errors it returns exit code 0 in tests using mocha 🤔

  • When I try it locally, it seems the exit code is 0 only when using Node12.

  • I made sure we caught the syntax error by calling node src/index.mjs.

@ota-meshi ota-meshi changed the title WIP: fix: compatibility with Node 12 fix: compatibility with Node 12 Apr 16, 2025
@ota-meshi ota-meshi requested a review from a team April 16, 2025 08:13
@ota-meshi ota-meshi marked this pull request as ready for review April 16, 2025 08:13
run: |
npm run test

# Load sec/index.js to check for syntax errors.
Copy link

Choose a reason for hiding this comment

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

src/index.mjs

Copy link

Choose a reason for hiding this comment

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

Still missed m..

Copy link
Member Author

Choose a reason for hiding this comment

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

Oh... 😓

@ota-meshi ota-meshi merged commit 9c1dbf8 into main Apr 16, 2025
17 checks passed
@ota-meshi ota-meshi deleted the fix-node-12 branch April 16, 2025 12:30
Copy link

🎉 This PR is included in version 4.6.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Compatibility issues : 4.6.0 not support node@12
2 participants