Skip to content

chore: bump Node, Angular, and remaining dependencies - #27

Merged
sis0k0 merged 4 commits into
mainfrom
chore/bump-deps
Nov 15, 2026
Merged

sis0k0 merged 4 commits into
mainfrom
chore/bump-deps

Conversation

@sis0k0

@sis0k0 sis0k0 commented Nov 15, 2026

Copy link
Copy Markdown
Member

Refreshes the toolchain and dependency versions across CI, client, and server. Split into four commits so each layer can be reviewed on its own.

Commits

ci: bump Node matrix and GitHub Actions versions

  • Node matrix to the latest of each line: 24.18.0 -> 24.22.3, 26.5.0 -> 26.13.1. Both still satisfy the Angular 22 engines range (^22.22.3 || ^24.15.0 || >=26.0.0).
  • actions/checkout v4 -> v7, actions/setup-node v4 -> v7, actions/github-script v7 -> v9. The v4 actions targeted Node.js 20, which is deprecated on GitHub runners and was being force-run on Node.js 24.

chore(client): Angular 22.2.x and client dependencies

  • ng update for @angular/core, @angular/cli, @angular/cdk, @angular/material: 22.0.x -> 22.2.x.
  • express 4 -> 5, @types/express 4 -> 5, vitest 4 -> 5, jsdom 28 -> 31, plus @types/node and tslib patches.
  • Two transitive advisories (browserslist, baseline-browser-mapping) resolved via npm audit fix.

chore(server): server dependencies and ESLint flat config

  • express 4 -> 5, mongodb driver 6 -> 7, dotenv 16 -> 18, cors patch.
  • TypeScript 5.3 -> 6.0, @types/node 20 -> 26, mongodb-memory-server 10 -> 11, supertest and tsx to latest.
  • ESLint 8 -> 10 requires flat config, so .eslintrc.cjs is replaced by eslint.config.mjs, and the separate @typescript-eslint/eslint-plugin + parser packages are swapped for the unified typescript-eslint.
  • The stricter default rules flagged an unused catch binding in the GET /employees/:id handler; now an optional catch binding.

chore: concurrently 9 -> 10

  • Clears the two critical shell-quote advisories pulled in transitively.

Verification

All three CI steps pass locally (npm run build, npm run test:server, npm run test:integration — 2/2 tests).

The app was also run end-to-end against a local MongoDB on Node 26.8.1:

  • npm run seed seeds 5 records.
  • Full CRUD exercised over HTTP: GET /healthcheck, GET /employees, GET /employees/:id, POST, PUT, DELETE, and a 404 after delete — all correct on Express 5 + driver 7.
  • Schema validation from EDD.md still enforced: an invalid level and a position under minLength: 5 both return 400 Document failed validation.
  • The Angular dev server renders all 5 seeded employees in its SSR HTML, confirming the client talks to the API.

Notes for the reviewer

  • TypeScript stays on 6.0, not 7. Angular 22 pins its peer range to >=6.0 <6.1, and typescript-eslint 8 supports <6.1.0. TypeScript 7 is blocked on both until upstream support lands.
  • 7 moderate advisories remain in the server, all in the typescript-eslint -> minimatch chain. There is no fix: the advisory covers every version up to and including the latest (8.72.2), and npm audit fix --force would downgrade to 8.36.0, which is still in range. Dev-only lint dependency.
  • Pre-existing and untouched: npm run test fails at test:client because the client has no *.spec.ts files and the Angular unit-test builder errors when it finds none. This predates the bump and CI does not run that script (it runs test:server and test:integration separately). Worth a follow-up.
  • ubuntu-latest was left alone; pin it to ubuntu-24.04 if you want to control the Ubuntu 26 migration.

🤖 Generated with Claude Code

sis0k0 and others added 4 commits November 15, 2026 08:22
Update the CI Node matrix to the latest releases of each line
(24.18.0 -> 24.22.3, 26.5.0 -> 26.13.1); both still satisfy the
Angular 22 engines range.

Bump actions/checkout v4 -> v7, actions/setup-node v4 -> v7, and
actions/github-script v7 -> v9. The v4 actions targeted Node.js 20,
which is deprecated on GitHub Actions runners and was being forced
onto Node.js 24.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Run `ng update` for @angular/core, @angular/cli, @angular/cdk and
@angular/material, moving the Angular packages from 22.0.x to 22.2.x.

Also refresh the non-Angular client dependencies:
- express 4 -> 5 and @types/express 4 -> 5
- vitest 4 -> 5 (supported by @angular/build 22.2's peer range)
- jsdom 28 -> 31
- @types/node and tslib to latest patches

TypeScript stays on ~6.0.3: Angular 22 pins its peer range to
>=6.0 <6.1, so TypeScript 7 is not yet an option here.

Resolve two transitive advisories (browserslist, baseline-browser-mapping)
via `npm audit fix`; the client now audits clean.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
…nfig

Runtime dependencies:
- express 4 -> 5 (and @types/express 4 -> 5)
- mongodb driver 6 -> 7
- dotenv 16 -> 18
- cors to latest patch

Tooling:
- typescript 5.3 -> 6.0, matching the client and staying inside
  typescript-eslint's supported range (>=4.8.4 <6.1.0), which is why
  TypeScript 7 is not adopted here
- @types/node 20 -> 26
- mongodb-memory-server 10 -> 11, supertest and tsx to latest

ESLint 8 -> 10 requires flat config, so replace .eslintrc.cjs with
eslint.config.mjs and swap the separate @typescript-eslint/eslint-plugin
and @typescript-eslint/parser packages for the unified typescript-eslint
package.

The stricter default rules flagged an unused `catch` binding in the
GET /employees/:id handler; use an optional catch binding instead.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Resolves the two critical shell-quote advisories that concurrently 9.2.1
pulled in transitively. The root workspace now audits clean.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@sis0k0
sis0k0 requested a review from a team as a code owner November 15, 2026 06:31
@sis0k0
sis0k0 merged commit 6eb136b into main Nov 15, 2026
4 checks passed
@sis0k0
sis0k0 deleted the chore/bump-deps branch November 15, 2026 06:37
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.

1 participant