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

Add node version testing matrix and specify compatible engines #67

Merged
merged 20 commits into from
Jan 31, 2024

Conversation

sangaline
Copy link
Contributor

@sangaline sangaline commented Jan 31, 2024

This adds a testing matrix that covers node versions 18-21, and specifies the minimum node engine version in package.json as v18.3.0. One blocker to supporting earlier versions is that buffer.File was added in v18.3.0. I took a stab at removing this, but ran into a lot of issues trying to get things to work without it. v16 was EOLed last year though, so I don't think this is that major of an issue. It will be easier to test against earlier versions now with the testing matrix if we do decide we want to support them.

One notable thing is that the --loader vs --import argument depends on versions in fairly complex ways. I think that it's roughly --import for >=18.19.0 < 19.0.0 || >=v20.6.0 and --loader for everything else, and I have a commit in here with something like that working in the ava config, but ultimately went with running ava with tsx like tsx ./node_modules/.bin/ava because I'm more confident that this will work with any node version (despite the fact that it's a bit hackier).

Closes #64

@sangaline sangaline merged commit cabbd99 into main Jan 31, 2024
5 checks passed
@sangaline sangaline deleted the ews-add-testing-matrix branch January 31, 2024 18:33
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.

Specify compatible node versions in package.json and add a testing matrix
1 participant