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

Bump NodeJs version on CI, fix compatibility with Node >20 in tests #497

Merged
merged 1 commit into from
Nov 24, 2024

Conversation

SiarheiFedartsou
Copy link
Contributor

👋

I was working on something and realised that create_index.js doesn't work on modern Node versions... Also decided to update CI to run on Node 18/20/22 and removed Node 16 (let me know if you think it is still needed, but IMO it is too outdated )

@@ -38,5 +38,5 @@ client.indices.create(req, (err, res) => {
process.exit(1);
}
console.log('[put mapping]', '\t', indexName, res, '\n');
process.exit(!!err);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

In the case of error we do process.exit(1) some lines above. This was incompatible with Node >20, because it checks that argument is number and it is not, then throws...

@SiarheiFedartsou
Copy link
Contributor Author

@missinglink please take a look when you have a chance 🙏🏻

@missinglink missinglink merged commit 0b6f8cc into pelias:master Nov 24, 2024
@missinglink
Copy link
Member

Thanks 🙏

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.

2 participants