Skip to content

Latest commit

 

History

History
211 lines (120 loc) · 12.1 KB

CHANGELOG.md

File metadata and controls

211 lines (120 loc) · 12.1 KB

Changelog

All notable changes to this project will be documented in this file. See standard-version for commit guidelines.

2.2.1 (2021-08-01)

Bug Fixes

  • parser: handle more elementTypes (#34) (472ce82)
  • parser: support retrieving type of destructured forwardRef arg (#33) (b554187)

2.2.0 (2020-09-14)

Features

Performance Improvements

  • parser: use set instead of array for stack (426dd39)

2.1.2 (2020-09-13)

Bug Fixes

2.1.1 (2020-08-17)

Bug Fixes

  • injector: check previous validator source for string literal keys (5d06cfb)

2.1.0 (2020-06-18)

Features

2.0.1 (2020-06-02)

Bug Fixes

  • Use symbol type when there's no baseconstraint (#23) (0b170af)

2.0.0 (2020-05-31)

⚠ BREAKING CHANGES

  • Support for Node versions less than 10.3.0 has been dropped

Features

  • consider squashed call signatures of function components (#20) (514d8ed)

Bug Fixes

Build System

  • drop support for node versions less than 10.3.0 (2fbca64)

1.5.0 (2020-04-06)

Features

  • injector: add reconcilePropTypes (#10) (7b0bff9)
  • add filenames to component and proptype nodes (#9) (ce9a700)
  • injector: add component to shouldInclude (#8) (18a7fce)
  • injector: allow providing babel options (2ab6f43)

Bug Fixes

  • 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)

Bug Fixes

  • build had a broken output (97b0326)

1.4.1 (2020-03-27)

Bug Fixes

  • include string literal object keys as used (#5) (3fd7b70)
  • unknown can be optional (#7) (c5e8ca3)

1.4.0 (2019-11-16)

Bug Fixes

  • parser: handle prop of type ReactElement (adfcca4)

Features

  • parser: support forwardRef (3f5c0c9), closes #2

1.3.0 (2019-09-03)

Features

  • generator: add comment to proptype blocks (2c5627e)

1.2.5 (2019-09-03)

Bug Fixes

  • parser: use doctrine to unwrap comments (53a9d43)

Tests

  • add missing test config (d00c7f2)

1.2.4 (2019-08-16)

Bug Fixes

  • injector: use require.resolve (b9d04ea)

1.2.3 (2019-07-24)

Bug Fixes

  • parser: handle return type of JSX.Element | null (cbe5564)

1.2.2 (2019-07-23)

Bug Fixes

  • parser: remove leftover asterisk (2e720df)

1.2.1 (2019-07-23)

Bug Fixes

  • parser: handle single line comments (0025d53)

1.2.0 (2019-07-23)

Bug Fixes

  • 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)

Features

  • 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)

Bug Fixes

  • generator: don't pass shouldInclude on interfaceNode (1302502)

Features

  • parser: circular references (7de51cc)
  • parser: control included proptypes (2952e78)
  • parser: objects / shapes (81f1a82)

1.0.4 (2019-07-10)

Bug Fixes

  • generator: omit null if proptype is optional (21351a4)
  • parser: reactnode should make proptype optional (c84b611)

1.0.3 (2019-07-10)

Bug Fixes

1.0.2 (2019-07-09)

Bug Fixes

  • injector: don't visit FunctionDeclarations more than once (236276b)

1.0.1 (2019-07-09)

Bug Fixes

  • injector: don't import prop-types if it's already imported (9d4dfd1)
  • injector: insert import after the first one (6cb31a0)

1.0.0 (2019-07-08)

Build System