059b4769 Updated undici to a single 8.10.0 copy via a pnpm override
no ref
ghost/core dragged three copies of undici into its tree, and all three
ship in the production image: jsdom pulls 8.x directly, cheerio 1.x (via
@tryghost/url-utils) pulls 7.x, and @elastic/transport (via
@tryghost/logging) pulls 6.x. Nothing declares undici itself, so there
was no version to reconcile in a package.json - an override is the only
lever.
Both consumers being moved across a major only use API that is unchanged
in 8.x: @elastic/transport builds a Pool with buildConnector and reads
statusCode/headers/body off pool.request, and cheerio composes a Client
with interceptors.redirect and errors.ResponseError. Smoke-tested each
against a local server on its original major and on 8.10.0 - same
parsed output, same status/body, same RequestAbortedError mapping for an
aborted request. undici 8 wants node >=22.19.0, which is below the
^22.23.1 || ^24.20.0 the monorepo already requires.
The pin also supersedes the `undici@<6.24.0` advisory override, which is
unreachable now that nothing resolves below 8.x, so it has been removed
rather than left to look like it still does something.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LFn7f6or3xRZEcaUzzgeJX 059b4769 Updated undici to a single 8.10.0 copy via a pnpm override
no ref
ghost/core dragged three copies of undici into its tree, and all three
ship in the production image: jsdom pulls 8.x directly, cheerio 1.x (via
@tryghost/url-utils) pulls 7.x, and @elastic/transport (via
@tryghost/logging) pulls 6.x. Nothing declares undici itself, so there
was no version to reconcile in a package.json - an override is the only
lever.
Both consumers being moved across a major only use API that is unchanged
in 8.x: @elastic/transport builds a Pool with buildConnector and reads
statusCode/headers/body off pool.request, and cheerio composes a Client
with interceptors.redirect and errors.ResponseError. Smoke-tested each
against a local server on its original major and on 8.10.0 - same
parsed output, same status/body, same RequestAbortedError mapping for an
aborted request. undici 8 wants node >=22.19.0, which is below the
^22.23.1 || ^24.20.0 the monorepo already requires.
The pin also supersedes the `undici@<6.24.0` advisory override, which is
unreachable now that nothing resolves below 8.x, so it has been removed
rather than left to look like it still does something.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LFn7f6or3xRZEcaUzzgeJX