Skip to content

Releases: scala-tsi/scala-tsi

0.8.3

13 Feb 19:44
Compare
Choose a tag to compare

Decreases the chances of hitting the 64KB method bytecode limit during Typescript generation, see issue #304, fixed by @hagl.

0.8.2

02 Feb 11:49
4b209d9
Compare
Choose a tag to compare

Improves Scala 3 support by adding Type Class Derivation for TSType.
This adds support for some unsupported scenario's mentioned in the 0.8.0 release notes.

The Scala 3 version should now have feature parity with the Scala 2 version.

0.8.1

01 Feb 21:21
23eabb3
Compare
Choose a tag to compare

Fixes an issue with the 0.8.0 SBT plugin, rendering it unusable.

0.8.0

30 Jan 14:27
62d582a
Compare
Choose a tag to compare

Scala 3 is now mostly supported

Thanks @jdsalchow for the initial contribution!

Missing Scala 3 features:

  • Automatic recursive definitions are still unsupported: #278
  • Auto-generated definitions inside generics types (Seq[YourClass]) will not always work: #278

Other changes:

  • Failures in finding the TSType of a type are now reported as compile warnings and as messages in the generated Typescript code instead of aborting compilation.

Full Changelog: 0.7.0...0.8.0

0.7.0

13 Jul 14:18
5b6f9f2
Compare
Choose a tag to compare

Improvements:

  • Add support for string enums in TSEnum (#236 by @b-eyselein) and several factory methods in the TSType companion object.

Bugfixes:

  • Fix a bug where custom definitions did not always work when used as a generic parameter (#242)

Breaking changes:

  • TSEnum entries changed from ListMap[String, Option[Int]] to ListMap[String, Option[TSLiteralType[_]]

Full Changelog: 0.6.1...0.7.0

0.6.1

12 Jun 11:17
86afdb1
Compare
Choose a tag to compare

Improvements:

0.6.0

05 Jan 17:53
Compare
Choose a tag to compare

Improvements:

  • Adds unknown type
  • Unions are now flattened more often

Breaking changes:

  • TSTuple is no longer generic

Removed deprecated features:

  • sbt-plugin no longer automatically activates, .enablePlugins(ScalaTsiPlugin) is now required, recommended since 0.4.1
  • Library is no longer published under nl.codestar.scalatsi, deprecated since 0.3.0
  • All deprecated methods and settings have been removed

Full Changelog: 0.5.1...0.6.0

0.5.1

06 Nov 17:02
Compare
Choose a tag to compare
  • When using your own classes inside generic types like Seq[T], the required implicits are now automatically created (feature/bugfix: #180)

0.5.0

14 Mar 14:15
Compare
Choose a tag to compare
  • Sealed traits will now add a field with the class name to the output, defaulting to type: "ClassName". (#140 by @vincentdehaan)
    This behavior can be disabled with the typescriptTaggedUnionDiscriminator SBT setting
  • Add a configurable header to the generated file (#137 by @vincentdehaan )
  • extends DefaultTSTypes or import DefaultTSTypes._ is now usually superfluous (#143)
  • Support higher amount of nested classes (bugfix: #146)

0.4.1

30 Sep 11:57
Compare
Choose a tag to compare
  • Exporter application will now be deleted after generation (#106)
  • It is now recommended adding .enablePlugins(ScalaTsiPlugin) to your sbt project. This will become mandatory in a future release (#110)
  • Improve error message on missing implicits (#111)