Node.js version
Every Source Academy repository that uses Node.js uses Node 24, and says so in the same way. This page is the one place to refer to. When the version changes, change it here first.
Decided on 27 November 2026.
Why one version
Node matters to us for building, testing and continuous integration: the frontend runs in browsers, and the evaluators run in workers or on AWS Lambda. Mixing versions costs contributors time: the tools that we use have a minimum version (the spell checker of this repository needs Node 22.18 or later, for one), so a contributor who moves from one repository to another meets failures that have nothing to do with their change.
A version is also supported only for so long. At the time of the decision:
| Node | State | End of life |
|---|---|---|
| 20 | ended | 30 Apr 2026 |
| 22 | maintenance | 30 Apr 2027 |
| 24 | maintenance (LTS) | 30 Apr 2028 |
| 26 | active LTS since 28 Oct | 30 Apr 2029 |
24 is the version that most of our repositories could move to with the least risk, and that the repositories with the most to lose (the grader, the modules) already use. The next move, to 26, is made the same way as this one.
How a repository says it
A repository that uses Node has all of these, and nothing else that states a Node version:
.node-versionwith the line24. It is the single source in the repository. The major version only: a patch version in it is something to keep up to date in every repository for no gain.- Continuous integration takes it from there:
actions/setup-nodewithnode-version-file: .node-version, not a number of its own. package.jsonhas"engines": { "node": ">=24" }, or a higher minimum where one of the repository's own dependencies needs it. Babel 8 declares^22.18.0 || >=24.11.0, so a repository that uses it, directly (the frontend) or through another tool (the plugins, through their coverage tool), says">=24.11.0": with>=24, Node 24.0 to 24.10 would be accepted, where the tools do not run. This is the floor of the tools, not a pin:.node-versionstays24.@types/nodeis at^24, the version that the code runs on.- The README says in its build instructions that the repository needs Node 24, with a link to this page.
- Renovate (or Dependabot) does not raise Node or
@types/nodepast 24 on its own. The next version is a decision, made here, and then made in every repository.
Code that runs in a host's own Node is the one exception, and it is to point 4 only. A VS Code extension, or a language server that it starts, runs in the Node that VS Code brings, not in ours. Its @types/node follows the oldest VS Code that its engines.vscode allows, so that the types describe the runtime that the code really has; the build and CI still use Node 24. The README says which version the types follow.
Any other repository with a real need for another version says why, in its README and in an issue; there is none now.
Using it on your machine
A version manager that reads .node-version, such as fnm or mise, selects the version when you enter the repository (check its setting for version files of other tools). With nvm, run nvm use $(cat .node-version).
The version file says 24, and a version manager picks the latest 24.x that is installed. If you installed Node 24 a while ago you may have an older 24.x, and a few tools need a minimum minor version (point 3, engines.node). So after you enter a repository, update to the latest 24.x with your manager: fnm install, mise upgrade node (mise install does not: it only installs versions that are missing, so an old 24.x stays), or nvm install $(cat .node-version). Installing is not always switching: then check with node --version that it says the version that the repository needs (24.11 or later where point 3 says so), and if it still shows the old one, switch to the new one (fnm use, nvm use) or open a new shell. Continuous integration is not affected: setup-node with node-version-file turns 24 into the latest 24.x. The version file stays at the major version (point 1): it names the version to run, not a minimum, and a minor version in it would have to be kept up to date in every repository.
Changing the version
- Update this page: the version, the table and the date.
- Check what depends on it that is not in a repository's files: the AWS Lambda runtime of the grader has to be one that AWS offers, and the runtime in the backend's Terraform (
deployment/terraform/lambda.tf) has to say the same as the grader's build. - Open one pull request per repository that changes the five things above, and run its tests on the new version. Track them in one issue.