- Fixes #108: Class components are now differentiated from functional components by
.isComponent
instead of.prototype.isReactComponent
, fixing an issue with terser.
- Fixes #104: Class Components do not populate their ref attribute.
- Merged #101.
- Undo: Removes all
*Capture
event listener types. They were never supported.
- Fixes #97: support
disabled
on<link>
element. - Fixes #94: supports
forwardRef
anduseImperativeHandle
. - Fixes #68: exports more types.
- Bumped TypeScript definition sync with
@types/react
at #e05c7e9. - Removes all
*Capture
event listener types. They were never supported.
- Added support for using
DOMTokenList
(e.g.element.classList
) forclassName
. - Renamed
ClassList
type declaration toBasicClassList
to not confuse with the browser’s class list type.
- Bug fix:
import("jsx-dom").ShadowRoot
was not properly exported.
- Breaking change:
- [https://github.com/proteriax/jsx-dom/issues/65](Disabled rendering
false
as attribute to custom components).
- [https://github.com/proteriax/jsx-dom/issues/65](Disabled rendering
- #61 Support rich data properties
- Breaking change:
- TypeScript 4 is required. This particular release only requires TypeScript 3, but further updates may require TypeScript 4 specific features without a major version bump.
- Remove
jsx-dom/svg
alias. - CommonJS builds are removed.
jsx-dom
are meant to be consumed in the browser and its nature already requires a compiler tool.
- Merges #39 - “Fix solution for #33”.
- Merges #38 - “Added support for Class Components”.
- Updates type definition with upstream (#d498b7c).
- Fixes #27
- Makes
props
an optional parameter increateElement
.
- Update type definitions with React upstream.
- Introduce
useText
,useClassList
API.
- Fix: default import for
import React from "jsx-dom/svg"
.
- Expands
HTML
type alias namespace. No runtime code changed.
- Adds support for
import React from "jsx-dom"
.
- Assigns event listener directly instead of
addEventListener
. - Exports
HTML
helper type alias namespace.
- Adds
React.createFactory
support.
- Now requires
Object.assign
polyfill for old browsers.
- Adds
defaultProps
support to functional components.
- Adds JSX.Fragment support.
- Deprecates undocumented
DOM
shortcut functions.
- Fixes a bug with xlink attributes for SVG elements.
- Fixes a bug where
null
y value gets passed to dataset.
- Exports
h
variable as an alias forcreateElement
for hyperscript users.
- Fixes an issue with
spellCheck
attribute.
- Adds support for
spellCheck
.
- Nested arrays are now supported as a className input.
Attribute is now optional forDOM
shortcut functions.- Added more tests.
- Breaking Change: SVG support is now migrated to a dedicated file.