Skip to content

use with keyword for import assertions #382

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 1 commit into from
Apr 15, 2025
Merged

Conversation

anonrig
Copy link
Contributor

@anonrig anonrig commented Apr 1, 2025

Without this change, we can't run the benchmarks on Node.js v23.

Signed-off-by: Yagiz Nizipli <yagiz@nizipli.com>
@mcollina
Copy link
Member

mcollina commented Apr 1, 2025

I don't think this will pass because we still support v20 and v22 here. So maybe can you refactor this and use a readFile approach?

@anonrig
Copy link
Contributor Author

anonrig commented Apr 4, 2025

I don't think this will pass because we still support v20 and v22 here. So maybe can you refactor this and use a readFile approach?

The CI seems to succeed. Is it not enough? @mcollina

@Fdawgs
Copy link
Member

Fdawgs commented Apr 15, 2025

I don't think this will pass because we still support v20 and v22 here. So maybe can you refactor this and use a readFile approach?

Node 20 supports the with keyword: https://nodejs.org/docs/latest-v20.x/api/esm.html#json-modules.

@mcollina mcollina merged commit 06804dd into fastify:main Apr 15, 2025
4 checks passed
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.

3 participants