Repository navigation
build(deps): bump the three shipped runtime majors - #56
Merged
Merged
Conversation
From the npm-major group of 17, the part that ships inside the product
rather than building it, all in maximal-core:
undici 7 -> 8
gpt-tokenizer 3 -> 4
proxy-from-env 1 -> 2
proxy-from-env 2 is the real change of the three: it is ESM-only and
replaces url.parse with the WHATWG URL API. maximal-core is ESM, and
src/lib/http/proxy.ts already passes a full URL string
(origin.toString()), which is the shape the new parser wants.
None of the three has direct test coverage -- proxy.ts has no test and
the tokenizer has none -- so a green suite says little about them. They
were exercised directly instead, against the exact call shapes the code
uses:
getProxyForUrl through an ESM named import, returning the proxy for a
matching URL and "" for one covered by NO_PROXY
undici's Agent, ProxyAgent and setGlobalDispatcher bindings, and
Agent#dispatch, which is what proxy.ts delegates to
all five gpt-tokenizer encoding subpaths ENCODING_MAP imports lazily,
each encoding to a non-empty token array
Verified: maximal-core check:deep:host passes, the container suite is
15/15, and verify:workspace passes with the lockfile re-resolved and
stripped of rotating shard hosts.
This was referenced Sep 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Group 2 of 4 replacing #37. These ship inside the product rather than
building it, so a behaviour change reaches users. All in
maximal-core.undicigpt-tokenizerproxy-from-envproxy-from-env 2 is the real change
It is ESM-only and replaces
url.parsewith the WHATWGURLAPI.Both land safely here:
maximal-coreis ESM, andsrc/lib/http/proxy.tsalready passes a full URL string(
origin.toString()) rather than a parsed object — which is the shape the newparser wants.
Why a green suite was not enough
None of these three has direct test coverage.
proxy.tshas no test at alland the tokenizer has none, so the container suite passing says very little
about the two genuinely breaking changes. I exercised them directly instead,
against the exact call shapes the code uses:
That covers
getProxyForUrlthrough an ESM named import (both the proxied andNO_PROXY-bypassed paths), the three undici bindingsproxy.tsimports plusthe
Agent#dispatchit delegates to, and all fivegpt-tokenizerencodingsubpaths that
ENCODING_MAPimports lazily.The gap is worth naming rather than papering over: this bump is verified by
construction, not by regression tests. If proxy routing is worth protecting,
proxy.tswants a test of its own — but writing one belongs in its own change,not smuggled into a dependency bump.
Verification
maximal-corecheck:deep:hostpasses end to end.verify:workspacepasses; lockfile re-resolved and stripped of rotating shardhosts per SOURCES.md.
Replaces part of #37.