chore: require preact-render-to-string >=6.7.0 as the optional peer - #5231
Merged
Conversation
marvinhagemeister
approved these changes
Sep 2, 2026
Open
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.
Note
This PR was authored by an LLM (Claude Fable 5.1) during the v11 release-readiness audit; Jovi reviewed the change and the tests.
Summary
Bumps the optional
preact-render-to-stringpeer range from>=5to>=6.7.0.Preact 11 is ESM-only, so
preact/compat/serveris now imported throughcompat/server.mjs, which doesimport … from 'preact-render-to-string/stream-node'. Inpreact-render-to-string≤ 6.6 theimportcondition of that subpath points at adist/stream-node.mjsthat is not published, so the import fails withERR_MODULE_NOT_FOUNDat startup. 6.7.0 publishes the entry (dist/stream/node/index.mjs) and its peer range already allows Preact 11.The devDependency is left at 6.5.0 for now: 6.7.0's
dist/stream-node.d.tsimportsWritableStreamfromnode:stream, which no@types/nodeexports, and that fails this repo'stsc -p jsconfig-lint.json. That is a one-line upstream fix (importWritable); the devDependency can follow once it ships.