Skip to content

fix(express-puppeteer): Move to Puppeteer 25 on Node 22 - #518

Merged
nurof3n merged 1 commit into
mainfrom
andreibesliu/field-1022-puppeteer-node22
Nov 18, 2026
Merged

nurof3n merged 1 commit into
mainfrom
andreibesliu/field-1022-puppeteer-node22

Conversation

@besliuandrei10

Copy link
Copy Markdown
Contributor

Bumps puppeteer from 24 to 25.18.1, which clears the six open Dependabot alerts on this example (extract-zip, basic-ftp, zod). Puppeteer 25 needs Node 22.12, so the build stage moves from debian:bookworm with apt's Node 18 to node:22-bookworm. The Debian-only Node libraries are dropped, and the four libraries Chrome 157 needs (libgbm1, libxcomposite1, libxfixes3, libxrandr2) are installed explicitly.

Tested locally against main: the image builds, / returns 200, and both GET and POST /generate-pdf render the same PDF as before. This supersedes #514 and #517.

The PDF routes return the bytes as JSON on main too, because page.pdf() returns a Uint8Array since Puppeteer 22. That is left for a separate fix.

Related: FIELD-1022

Puppeteer 24 pulls in extract-zip, basic-ftp 5 and zod 3, which
have open Dependabot alerts. Puppeteer 25 drops them, but needs
Node 22.12 and the image installs Node 18 from Debian.

Build on node:22-bookworm, copy its node binary, and drop the
Debian Node libraries. Install the libraries that Chrome 157 needs
and bump puppeteer to 25.18.1.

Signed-off-by: Andrei Besliu <andreibesliu@unikraft.com>
@besliuandrei10

Copy link
Copy Markdown
Contributor Author

I removed the debian base from the dockerfile and did it on chrome instead. To me this seems ok, but if you have more insight do let me know.

The purpose is to fix the ongoing dependabot issues.

@nurof3n nurof3n left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM!

Reviewed-by: Alex-Andrei Cioc andrei.cioc@unikraft.io
Approved-by: Alex-Andrei Cioc andrei.cioc@unikraft.io

@nurof3n
nurof3n merged commit 0e71eac into main Nov 18, 2026
9 checks passed
@nurof3n
nurof3n deleted the andreibesliu/field-1022-puppeteer-node22 branch November 18, 2026 17:04
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