Skip to content

Latest commit

 

History

History
235 lines (182 loc) · 9.41 KB

CHANGELOG.md

File metadata and controls

235 lines (182 loc) · 9.41 KB

3.10.1 (2019-03-31)

  • Fix parsing of a<b>c in TypeScript. (#438)
  • Add support for new TypeScript 3.4 syntax, other parser improvements. (#439, #440)
  • Elide TS import = statements that are only used as a type (#441)
  • Properly handle async arrow functions with multiline type parameters (#443)

3.10.0 (2019-03-11)

  • Fix bug where /*/ was being parsed incorrectly. (#430)
  • Properly parse and compile JSX spread children. (#431)
  • Implement TypeScript export elision for exported types. (#433)

3.9.6 (2019-03-01)

  • Fix Flow bug where implements caused the class name to be incorrectly recognized. (#409)
  • Correctly handle !: in TS variable declarations. (#410)
  • Move more import code into helper functions in prep for some upcoming changes.
  • Fix bug where some JSX component names were incorrectly turned into strings. (#425) (Yang Zhang)

3.9.5 (2019-01-13)

  • Fix bug when processing a declaration that looks like an export assignment. (#402)
  • Fix TS import elision for JSX fragments and custom pragmas. (#403)
  • Treat reserved words as invalid identifiers when handling enums. (#405)

3.9.4 (2019-01-07)

  • Avoid false positive when detecting if a class has a superclass. (#399)

3.9.3 (2019-01-06)

  • Fix syntax error on arrow functions with multiline return types. (#393)

3.9.2 (2019-01-02)

  • Fix crash on optional arrow function params without type annotations. (#389)
  • Usability bug fixes for website. (#390)

3.9.1 (2018-12-31)

  • Fix react-hot-loader transform syntax error with some export styles. (#384)
  • Fix website to properly show react-hot-loader Babel transform output. (#386)

3.9.0 (2018-12-30)

  • Add a react-hot-loader transform. (#376)
  • Add support for dynamic import() syntax in TS types. (#380)
  • Many improvements to the website, including faster initial pageloads.
  • Small performance improvements.

3.8.1 (2018-12-03)

  • Fix infinite loop when a file ends with a short identifier (#363)
  • Small perf improvements.

3.8.0 (2018-11-25)

  • Various simplifications in prep for compiling the project with AssemblyScript.
  • Performance improvements, varying from 10% to 70% better performance depending on use case.
  • Fix infinite loop in flow declare module parsing (#359)

3.7.1 (2018-11-18)

  • Fix crash on empty export expressions (#338)
  • Fix crash on TypeScript declare global (#339)
  • Fix crash when using overloaded constructors in TypeScript (#340)
  • Fix TypeScript import elision when imported names are shadowed by variables (#342)
  • Fix import name transform to work in code without semicolons (#337) (Alec Larson)

3.7.0 (2018-11-11)

  • Fix perf regression in TypeScript parsing (#327)
  • Fix broken line numbers in syntax errors, improve parser backtracking performance (#331)
  • Add Parser features and bugfixes from the Babel parser, including TypeScript 3.0 support (#333)

3.6.0 (2018-10-29)

  • Add CLI support for jsx pragmas (#321) (Josiah Savary)
  • Allow super.method() calls in constructor (#324) (Erik Arvidsson)

3.5.0 (2018-09-30)

  • Change class field implementation to use initializer methods (#313)
  • Update TypeScript and Flow support to include new language features recently supported by Babel. (#314, #315, #316)
  • Properly handle function name inference in named exports (#317)

3.4.2 (2018-08-27)

  • Implement destructuring in export declarations (#305)
  • Properly handle function name inference in named exports (#308)

3.4.1 (2018-07-06)

  • Quote shorthand prop keys that contain a hyphen (#292) (Kevin Gao)
  • Fix infinite loop on incomplete JSX. (#296)

3.4.0 (2018-07-01)

  • Add a sucrase-node CLI that wraps node. (#288)
  • Allow exported generator functions. (#290)

3.3.0 (2018-06-28)

  • Add a --out-extension option to the CLI. (#282)
  • Add a -q/--quiet option in the CLI and use it in the build script. (#284)
  • Don't emit semicolons in class bodies. (#285)
  • Fix ugly emitted comments when removing code between tokens. (#286)

3.2.1 (2018-06-27)

  • Allow TS type parameters on object member methods. (#276)
  • Simplify identity source map generator. (#265)
  • Fix crash on destructured params in arrow function types. (#278)
  • Remove @flow directives from comments when the flow transform is enabled. (#279)

3.2.0 (2018-06-25)

  • Fix crash when using JSX elements as props. (#268) (Erik Arvidsson)
  • Fix incorrect compilation of TypeScript optional class properties with an initializer. (#264)
  • Fix crash on class fields that don't end in a semicolon. (#271)
  • Allow trailing commas after rest elements. (#272)
  • Don't crash on class bodies with an index signature. (#273)
  • Allow member expression identifiers when determining React displayName. (#274)
  • Add production option and use it for JSX. (#270) (Erik Arvidsson)
  • Fix off-by-one error in parsing JSX fragments. (#275)

3.1.0 (2018-06-18)

  • Add basic support for source maps (#257, #261)

3.0.1 (2018-06-11)

  • Fix crash in getVersion.

3.0.0 (2018-06-10)

Breaking Changes

  • transform now returns an object (#244). You now should write transform(...).code instead of just transform(...). code is the only property for now, but this allows Sucrase to return source maps and possibly other values.
  • The package's dist folder has been restructured, so direct internal module imports may break.

Other changes

  • Overhaul build system to use Sucrase for everything (#243)
  • Omit import helpers when unused (#237) (Alec Larson)
  • Fix files accidentally included in final package (#233)
  • Various refactors and performance improvements.

2.2.0 (2018-05-19)

  • Add support for JSX fragment syntax.
  • Add support for custom JSX pragmas rather than defaulting to React.createElement and React.Fragment.