Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Releases: Khan/flow-to-ts

v0.5.2

27 Apr 18:49
Compare
Choose a tag to compare

Bug fix:

  • Transform mixed type/value imports to type-only imports (#273)

v0.5.1

08 Apr 02:30
b2949cf
Compare
Choose a tag to compare

New Features

  • Adding decorators support #271 (Fixes #143)

v0.5.0

21 Mar 00:32
Compare
Choose a tag to compare

Breaking:

  • flow-to-ts node module now exports convert as a named export

Other:

  • upgrade dev dependencies (jest, babel modules, etc.) in root and playground/
  • replace babel-traverse/ and babel-types/ with babel submodule
  • skip metlife build for dependant PRs

v0.4.1

07 Mar 17:44
Compare
Choose a tag to compare

Breaking Changes:

  • Use Record for object types with a single indexer (#244)

Fixes:

  • Attach comments to replacement nodes, track comments for more nodes (#233)
  • Remove all flow pragmas, convert flow suppressions (#241)

New Features:

  • Add support for callables, fixes #128 (#242)
  • Inline PropertyType utility type (#238)
  • Convert ElementConfig to JSX.LibraryManagedAttributes, fixes #155 (#240)
  • Handle variance sigils on class properties, fixes #149 (#243)
  • Handle private/global React types, fixes #195 (#245)
  • extract utility-types.js and convert FlowFixMe to any, fixes #200 (#247)

Other changes:

  • Split transform.js into multiple files (#246)

v0.3.0

02 Mar 19:08
Compare
Choose a tag to compare

Bug fixes:

  • Improve import/export conversion (#229)

Breaking changes:

  • Update prettier to v2 to support new TypeScript syntax (#227)

v0.2.2

01 Mar 03:49
Compare
Choose a tag to compare

Bug fixes:

  • Wrap function types in parens when processing nullable types (#222) (fixes #197)

New features:

  • Support type-only imports and exports (#224)

v0.2.1

28 Feb 20:04
Compare
Choose a tag to compare

Bug fixes:

  • Remove Errors Indication when it fixes away (#215)
  • Don't include a type param list if it's empty (#217)
  • Convert $Rest to $Diff, fixes #204 (#218)
  • Fix #159, always unwrap $Exact types (#220)
  • Fix #152: handle type alias indexers (#221)

v0.2.0

28 Feb 17:05
Compare
Choose a tag to compare

Bug fixes:

  • prettier can now be used with code that uses optional chaining and nullish coalescing

Breaking changes:

  • babel dependencies have been upgraded and vendored version of @babel/generator has been abandoned. The result is that some blank lines will be removed and in some case trailing comments that would normally appear on the next line now appear at the end of the previous line.

v0.1.9

19 Dec 17:35
Compare
Choose a tag to compare

New features:

  • Handle historical object generic type annotation (#186)
  • Handle historical Function GenericTypeAnnotation (#187)
  • Read prettier config file if exists to determine prettier options (#172)

v0.1.7

19 Dec 17:34
Compare
Choose a tag to compare

New features:

  • Handle ParenthesizedType (#179)
  • Specify location of options (#176)

Bug fixes:

  • fix: transform SyntheticInputEvent to SyntheticEvent (#170)
  • Fixes #134: Make param w/ initializer non-optional (#151)

Documentation:

  • Fixed typo in README.md (#157)