Skip to content

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

Merged
missinglink merged 1 commit into
pelias:masterfrom
SiarheiFedartsou:sf-nodejs-ci2
Nov 24, 2024
Merged

missinglink merged 1 commit into
pelias:masterfrom
SiarheiFedartsou:sf-nodejs-ci2

Conversation

@SiarheiFedartsou

Copy link
Copy Markdown
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 )

Comment thread scripts/create_index.js
process.exit(1);
}
console.log('[put mapping]', '\t', indexName, res, '\n');
process.exit(!!err);

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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