Releases: scala-tsi/scala-tsi
Releases · scala-tsi/scala-tsi
0.8.3
0.8.2
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
Fixes an issue with the 0.8.0 SBT plugin, rendering it unusable.
0.8.0
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
Improvements:
- Add support for string enums in
TSEnum
(#236 by @b-eyselein) and several factory methods in theTSType
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 fromListMap[String, Option[Int]]
toListMap[String, Option[TSLiteralType[_]]
Full Changelog: 0.6.1...0.7.0
0.6.1
Improvements:
- Add initial support for function types (#136 by @vincentdehaan)
0.6.0
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
0.5.0
- 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 thetypescriptTaggedUnionDiscriminator
SBT setting - Add a configurable header to the generated file (#137 by @vincentdehaan )
extends DefaultTSTypes
orimport DefaultTSTypes._
is now usually superfluous (#143)- Support higher amount of nested classes (bugfix: #146)