Skip to content

Conversation

@gabegorelick
Copy link
Contributor

Drop versions that are EOL and add newer versions.

Node 18 has been end of life since March 27, 2025

@gabegorelick
Copy link
Contributor Author

Not sure what these test failures are about. Will have to fix them.

@gabegorelick
Copy link
Contributor Author

Tests are fixed.

var FILES_ENABLED = false;
try {
new File([""], ""); // eslint-disable-line no-new
new FileReaderSync(); // eslint-disable-line no-new
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Node 20 added a File global, but not FileReaderSync or FileReader. We need those or else tests fail when we try to instantiate a FileReaderSync: https://github.com/gabegorelick/PapaParse/blob/be7e72cfd4baf3c25d8631b5823e1b4ae88364be/papaparse.js#L667-L681

Copy link
Collaborator

Choose a reason for hiding this comment

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

Could you add a comment on the code explaning why FileReader is needed.

Copy link
Collaborator

Choose a reason for hiding this comment

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

I fixed it by myself!

@pokoli pokoli assigned pokoli and unassigned pokoli Jun 18, 2025
Drop versions that are EOL and add newer versions.

Node 18 has been end of life since March 27, 2025
@pokoli pokoli merged commit 530357f into mholt:master Jun 18, 2025
3 checks passed
@pokoli
Copy link
Collaborator

pokoli commented Jun 18, 2025

@gabegorelick Merged it, thanks for taking your time on updating the versions.

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