All notable changes to this project will be documented in this file. See standard-version for commit guidelines.
2.2.1 (2021-08-01)
- parser: handle more
elementType
s (#34) (472ce82) - parser: support retrieving type of destructured forwardRef arg (#33) (b554187)
2.2.0 (2020-09-14)
- parser: use set instead of array for stack (426dd39)
2.1.2 (2020-09-13)
2.1.1 (2020-08-17)
- injector: check previous validator source for string literal keys (5d06cfb)
2.1.0 (2020-06-18)
2.0.1 (2020-06-02)
2.0.0 (2020-05-31)
- Support for Node versions less than 10.3.0 has been dropped
- drop support for node versions less than 10.3.0 (2fbca64)
1.5.0 (2020-04-06)
- injector: add reconcilePropTypes (#10) (7b0bff9)
- add
filenames
to component and proptype nodes (#9) (ce9a700) - injector: add
component
toshouldInclude
(#8) (18a7fce) - injector: allow providing babel options (2ab6f43)
- check nodeType for dom elements (#13) (fd028e6)
- replace existing propTypes when removeExistingPropTypes (#15) (3166104)
- injector: always call injectPropTypes to allow shouldInclude to run (277258d)
- handle all props getting ignored by shouldInclude (b69112e)
- parser: export ParserOptions (3a5d55e)
1.4.2 (2020-03-27)
- build had a broken output (97b0326)
1.4.1 (2020-03-27)
1.4.0 (2019-11-16)
- parser: handle prop of type ReactElement (adfcca4)
1.3.0 (2019-09-03)
- generator: add comment to proptype blocks (2c5627e)
1.2.5 (2019-09-03)
- parser: use doctrine to unwrap comments (53a9d43)
- add missing test config (d00c7f2)
1.2.4 (2019-08-16)
- injector: use require.resolve (b9d04ea)
1.2.3 (2019-07-24)
- parser: handle return type of JSX.Element | null (cbe5564)
1.2.2 (2019-07-23)
- parser: remove leftover asterisk (2e720df)
1.2.1 (2019-07-23)
- parser: handle single line comments (0025d53)
1.2.0 (2019-07-23)
- generator: multiline comments (d576597)
- generator: sort interface correctly (f88c5fb)
- generator: wrap prop name in quotes (709a819)
- parser: don't modify comments (95cd63e)
- parser: fallback to object if element is undefined (eadaf3f)
- parser: handle comments with just tags (d0b0a82)
- parser: handle comments with tags (ad4dddd)
- parser: handle optional any (30f56ec)
- parser: handle optional React.ElementType (c7a87fd)
- parser: treat ComponentType as elementType (53f1e21)
- export typescript as ts (ba90e22)
- generator: support instanceOf (6bd563a)
- injector: control included props (4f8eaa1)
- injector: remove existing proptypes (d2a978c)
- parser: check const declarations of React.ComponentType (cbd2eb6)
- parser: handle React.Component and Element instanceOf (570d73b)
- parser: support elementType (448d5a6)
1.1.0 (2019-07-15)
- generator: don't pass shouldInclude on interfaceNode (1302502)
- parser: circular references (7de51cc)
- parser: control included proptypes (2952e78)
- parser: objects / shapes (81f1a82)
1.0.4 (2019-07-10)
- generator: omit null if proptype is optional (21351a4)
- parser: reactnode should make proptype optional (c84b611)
1.0.3 (2019-07-10)
- export types (7583291)
1.0.2 (2019-07-09)
- injector: don't visit FunctionDeclarations more than once (236276b)
1.0.1 (2019-07-09)
- injector: don't import prop-types if it's already imported (9d4dfd1)
- injector: insert import after the first one (6cb31a0)
- disable incremental (37b0277)