Releases: TroyAlford/react-jsx-parser
Releases · TroyAlford/react-jsx-parser
bugfix: options tags & key generation
- key generation now honors any pre-allocated
key
props on children (@jonw09 #192)
<option>
tag correctly renders/binds children, not [object Object]
(@rostber #197)
- bumped several dependency versions for security reasons (#193, #194, #195)
bugfix: patch-package postinstall script
- fixes an issue with the
postinstall
use of patch-package
(#180)
components prop typing
components
prop TS typing now handles ExoticComponent declarations (such as forwardRef
) (#174)
@types/react & @types/react-dom => optionalDependencies
- moved typescript type dependencies to
optionalDependencies
(#164)
autoCloseVoidElements (<hr> and <hr/> both work)
- added
autoCloseVoidElements
prop, allowing HTML-compliant void elements to parse correctly (#163)
Fragments, TS, and peerDependencies
- Add support for <></> Fragment shorthand (#155)
- Update peerDependencies to allow react 17 (#159)
- Another fix for TypeScript typings (#157)
TypeScript Types
- Change mechanism for defining TypeScript types (#145, #151, #152, #153)
- Update all dependencies
- Add contributors list, for npm
Special thanks to @bitPogo for suggestions on how to correct the TS generation!
Support for IE11
- Add an
es5
build target to output, which fully transpiles acorn-jsx
(#124)
TypeScript, className, and renderUnrecognized
- All code is now written in TypeScript, and release contains TS typing. (#123)
- Support
className
prop, with output on wrapper div, if enabled (#132)
- Support
renderUnrecognized()
prop, for rendering unrecognized tags (#131)