Skip to content

chore: drop support for old node versions #1181

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
Feb 18, 2025

Conversation

nfischer
Copy link
Member

@nfischer nfischer commented Feb 14, 2025

Dropping support for everything before node v18, which is the current
maintenance LTS and also the version in Ubuntu 24.04 LTS.

This also updates all devDependencies while trying to minimize the
required source code changes. Some devDependencies can go higher still
(ava, chalk), but this is going to require extensive refactoring.

Test: npm run test-with-coverage
Test: npm run lint
Test: npm run check-node-support

@nfischer nfischer added the chore label Feb 14, 2025
Copy link

codecov bot commented Feb 14, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.28%. Comparing base (9e51217) to head (2c6d8c9).
Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1181   +/-   ##
=======================================
  Coverage   97.28%   97.28%           
=======================================
  Files          36       36           
  Lines        1361     1361           
=======================================
  Hits         1324     1324           
  Misses         37       37           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@nfischer nfischer force-pushed the chore-drop-old-node-versions branch from f2cf6eb to a9014dc Compare February 14, 2025 19:14
Copy link
Contributor

@kmashint kmashint left a comment

Choose a reason for hiding this comment

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

Works for me cleanly on Windows 10, node 18.20.6. Had the known failures with pushd and popd on node 22.9.0.

  2 tests failed
  6 tests skipped

  pushd » quiet mode off

  D:\_Project\shelljs-kmashint\test\resources\pushd\test\pushd.js:343

  Difference:

  - `D:\\_Project\\shelljs-kmashint\\test\\resources\\pushd D:\\_Project\\shelljs-kmashint␊
  + `D:\\_Project\\shelljs-kmashint\\test\\resources\\pushd D:\\_Project\\shelljs-kmashint␊
    `

  popd » quiet mode off

  D:\_Project\shelljs-kmashint\test\popd.js:130

   129:     t.is(stdout, '');
   130:     t.is(stderr, `${rootDir}\n`);
   131:     t.is(process.cwd(), trail[0]);

  Difference:

  - `D:\\_Project\\shelljs-kmashint␊
  + `D:\\_Project\\shelljs-kmashint␊

@nfischer nfischer force-pushed the chore-drop-old-node-versions branch 2 times, most recently from c470678 to 2d393ac Compare February 16, 2025 19:07
Dropping support for everything before node v18, which is the current
maintenance LTS and also the version in Ubuntu 24.04 LTS.

This also updates all devDependencies while trying to minimize the
required source code changes. Some devDependencies can go higher still
(ava, chalk), but this is going to require extensive refactoring.

Test: npm run test-with-coverage
Test: npm run lint
Test: npm run check-node-support
@nfischer nfischer force-pushed the chore-drop-old-node-versions branch from 2d393ac to 2c6d8c9 Compare February 16, 2025 19:08
@nfischer nfischer merged commit 7e71b26 into master Feb 18, 2025
20 checks passed
@nfischer nfischer deleted the chore-drop-old-node-versions branch February 18, 2025 06:31
@nfischer nfischer added this to the v0.9.0 milestone Feb 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants