a nonogram game implemented in React with TypeScript
The app runs in the browser. Node.js runs only the tools (Vite, Vitest, TypeScript, ESLint) for development, the tests and the GitHub Pages build, and all of them use one Node.js version: the latest release of Node.js 26. .nvmrc names it, the GitHub workflows read it from there, and engines.node and @types/node in package.json follow it, so that the types offer no Node.js API of a newer version.
With nvm, install and switch to it in the project folder:
nvm installWith fnm:
fnm use --install-if-missingengines.node is a declaration, not a lock: Node.js itself ignores it, and npm only warns about another version unless engine-strict is set.
npm run node:checkfails ifengines.node,@types/nodeand.nvmrcdon't match, if a package inpackage-lock.jsonexcludes a Node.js version thatengines.nodeincludes, or from the end of life of the Node.js version on. It warns in the 90 days before. CI runs it on every push and pull request, and weekly with--strict, so that a near end of life fails the weekly run.npm run node:updateraises the Node.js version: it shows the Node.js release lines with their status, end of life and matching@types/node, and whether all packages accept them. It then writesengines.node,@types/nodeand.nvmrc, and offers to install that Node.js version (with nvm, nvm-windows or fnm) and to run install, lint, type check, tests and build with it.
Dependabot does not raise the major version of @types/node.
- level selection
- pausing
- quitting
- make this a proper PWA
- dynamic penalty for mistakes (optional)
- highlighting complete blocks in top/side numbers (optional)