Skip to content

feat: support Preact v11 in wouter-preact - #573

Merged
molefrog merged 2 commits into
molefrog:mainfrom
JoviDeCroock:preact-v11
Sep 29, 2026
Merged

molefrog merged 2 commits into
molefrog:mainfrom
JoviDeCroock:preact-v11

Conversation

@JoviDeCroock

Copy link
Copy Markdown
Contributor

This adds support for the soon to be released Preact v11

Preact 11 no longer exposes DOM attribute and event handler types such as
HTMLAttributes and MouseEventHandler on the JSX namespace. Derive the Link
attributes from JSX.IntrinsicElements["a"] and declare the asChild click
handler locally, so the types resolve on both Preact 10 and 11.
@bolt-new-by-stackblitz

Copy link
Copy Markdown

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

"license": "Unlicense",
"peerDependencies": {
"preact": "^10.0.0"
"preact": "^10.0.0 || ^11.0.0-0"

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This ensures that the rc can also be installed without warnings

@molefrog

Copy link
Copy Markdown
Owner

This is great, thanks @JoviDeCroock !

@molefrog
molefrog merged commit aa7e910 into molefrog:main Sep 29, 2026
1 of 2 checks passed
@molefrog

Copy link
Copy Markdown
Owner

Released in v3.12.0

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