Skip to content

Releases: TroyAlford/react-jsx-parser

@types/react & @types/react-dom => optionalDependencies

30 Nov 23:07
972e162
Compare
Choose a tag to compare
  • moved typescript type dependencies to optionalDependencies (#164)

autoCloseVoidElements (<hr> and <hr/> both work)

14 Nov 21:08
fd97894
Compare
Choose a tag to compare
  • added autoCloseVoidElements prop, allowing HTML-compliant void elements to parse correctly (#163)

Fragments, TS, and peerDependencies

09 Nov 23:43
fae48c8
Compare
Choose a tag to compare
  • Add support for <></> Fragment shorthand (#155)
  • Update peerDependencies to allow react 17 (#159)
  • Another fix for TypeScript typings (#157)

TypeScript Types

16 Oct 23:59
Compare
Choose a tag to compare
  • 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

07 Jun 18:42
cda0c1e
Compare
Choose a tag to compare
  • Add an es5 build target to output, which fully transpiles acorn-jsx (#124)

TypeScript, className, and renderUnrecognized

02 Jun 08:07
d0ff9d3
Compare
Choose a tag to compare
  • 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)

Bugfix for bound functions, eg `value={foo.bar.baz()}`

28 May 06:41
e5afc56
Compare
Choose a tag to compare
  • Fixes a bug raised in 1.24.0 for multi-layer nested object value functions, like {foo.bar.baz()} (#125)

Better Member Expressions, and CJS + UMD builds

27 May 07:49
f126b5d
Compare
Choose a tag to compare
  • Added a commonjs build target, and set it as the default for better compatibility (#108)
  • Improved MemberExpression parsing to include [] notation, deep paths, and computed property names (#125)

Improved key generation for child nodes

29 Apr 00:19
Compare
Choose a tag to compare

<, <=, >, >=, & template strings

25 Apr 05:46
Compare
Choose a tag to compare
  • Support <, <=, >, >= (#117)
  • Support Template Strings, with bindings interpolation (#115)