Skip to content

Releases: tcodes0/react-known-props

2.4.5

20 Jul 15:34
3cde673
Compare
Choose a tag to compare

fix vulnerabilities

2.3.1 - Add value and defaultValue to select

05 Jul 14:34
b075693
Compare
Choose a tag to compare

2.3.0 - Throw less often.

05 Jul 14:34
f3f2e93
Compare
Choose a tag to compare
  • getElementProps will return global props for HTML and SVG and warn to console if it sees an unkown element.
  • getEventProps will warn if it receives any arguments at all.
  • Improved warnings.

Fixed missing h2-h6 HTML tags

29 Jun 13:37
Compare
Choose a tag to compare

Performance refactor

29 Jun 11:43
Compare
Choose a tag to compare

Before refactor

  • getAllProps() x 31 thousand ops/sec
  • getElementProps('label') x 35 thousand ops/sec
  • getGlobalProps() x 1,6 million ops/sec
  • getEventProps() x 926 million ops/sec

After refactor

  • getAllProps() x 326 thousand ops/sec
  • getElementProps('label') x 914 thousand ops/sec
  • getGlobalProps() x 1,6 million ops/sec
  • getEventProps() x 973 million ops/sec

Also

Added benchmark.

Renamed and moved code around in files.

Added script to create lists.

Separated base lists from lists I create with script.

GetElementProps is now more robust against invalid elements.

Invalid option objects now throw. It used to only warn and return undefined.

Added aria props

12 Jun 03:19
Compare
Choose a tag to compare

Also refactored all files

onlyReact option

10 Jun 01:47
Compare
Choose a tag to compare
  • Fixed minor issues
  • Added option to return only React (JSX) props. (default off)
  • For some props, functions now return both React and html names (used to return only react)
    -e.g class and className, for and htmlFor

Now exposing functions

10 Jun 01:43
Compare
Choose a tag to compare
  • Now exports are functions! ⒡ ↬
  • Find props for a certain html element.
  • Many React specific props added.
  • Option to include legacy props. (default off)