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

Releases: Khan/flow-to-ts

v0.5.2

Choose a tag to compare

@k4b7 k4b7 released this 27 Apr 18:49

Bug fix:

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

v0.5.1

Choose a tag to compare

@k4b7 k4b7 released this 08 Apr 02:30
b2949cf

New Features

  • Adding decorators support #271 (Fixes #143)

v0.5.0

Choose a tag to compare

@k4b7 k4b7 released this 21 Mar 00:32

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

Choose a tag to compare

@k4b7 k4b7 released this 07 Mar 17:44

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

Choose a tag to compare

@k4b7 k4b7 released this 02 Mar 19:08

Bug fixes:

  • Improve import/export conversion (#229)

Breaking changes:

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

v0.2.2

Choose a tag to compare

@k4b7 k4b7 released this 01 Mar 03:49

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

Choose a tag to compare

@k4b7 k4b7 released this 28 Feb 20:04

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

Choose a tag to compare

@k4b7 k4b7 released this 28 Feb 17:05

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

Choose a tag to compare

@k4b7 k4b7 released this 19 Dec 17:35

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

Choose a tag to compare

@k4b7 k4b7 released this 19 Dec 17:34

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)