Releases: tcodes0/react-known-props
Releases · tcodes0/react-known-props
2.4.5
2.3.1 - Add value and defaultValue to select
v2.3.1 2.3.1
2.3.0 - Throw less often.
- 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
v2.2.1 2.2.1
Performance refactor
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
Also refactored all files
onlyReact option
- 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
- Now exports are functions! ⒡ ↬ ✨
- Find props for a certain html element.
- Many React specific props added.
- Option to include legacy props. (default off)