Skip to content

Preact 11 backwards compatibility concern #4903

@maxpatiiuk

Description

@maxpatiiuk

Context

I am a web component library developer. I provide Preact JSX typings for my web components.
Preact 11 changes the JSX namespace. That will cause my JSX typings to no longer work - I can update them for Preact 11 but I don't think I can support both 10 and 11 with the same file.

Request

Could you please re-export the HTMLAttributes interface from the JSX namespace (as deprecated if you wish) for one more major release? That will give time for users to update to Preact 11

For an example typings file see dist/types/preact.d.ts in https://www.npmjs.com/package/@esri/calcite-components?activeTab=code
You could use it for compatibility testing if it helps.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions