developit / unistore

🌶 350b / 650b state container with component actions for Preact & React
https://npm.im/unistore
2.86k stars 139 forks source link

Fix JSX now namespaced (preact-X) #158

Closed pmkroeker closed 4 years ago

pmkroeker commented 5 years ago

As of preact X, JSX is now namespaced under preact. Updated the typings to reflect this change.

developit commented 5 years ago

@pmkroeker any idea if this breaks Preact 8 compatibility?

pmkroeker commented 5 years ago

Unfortunately it does. Building with Preact 8 gives a preact has no exported member 'JSX' error.

developit commented 5 years ago

Update: we published Preact 8.5.2, which brings Preact 8's typings in line with those in X, so this change should be safe now.

38elements commented 4 years ago

@developit Would you please merge this pull request and publish new version?