Skip to content

Releases: MartinHH/scalacheck-derived

v0.7.1

01 Mar 13:35
30d639d
Compare
Choose a tag to compare

This realeses fixes a Shrink-related bug (where derived Shrinks would result in deprecated-warnings due to the internal use of Stream).

What's Changed

  • fix: leaking Shrink-related deprecations by @MartinHH in #92
  • docs: update README.md before 0.7.1 release by @MartinHH in #93

Full Changelog: v0.7.0...v0.7.1

v0.7.0

27 Feb 10:46
9a7c406
Compare
Choose a tag to compare

The main change in this release is:

  • Derivation for "sum types" (i.e. enums / sealed traits) was optimized to reduce recursive inlining. You can now derive instances for enums with more than 32 members without hitting the Maximal number of successive inlines (32) exceeded error. This optimization leverages changes of the Scala compiler that were introduced in Scala 3.4.0, so to benefit from this, you'd need to use Scala 3.4.0 or higher. (The same optimization was already applied for product types (i.e. case classes) in the previous release.)

What's Changed

Full Changelog: v0.6.0...v0.7.0

v0.6.0

15 Feb 10:11
4546ff5
Compare
Choose a tag to compare

The main changes in this release are:

  • A new submodule scalacheck-derived-extras provides instances for literal and union types. Read here for the details. Note that derivation for union-types is a relatively new feature - you might encounter bugs.
  • Derivation for "product types" (i.e. case classes) was optimized to reduce recursive inlining. You can now derive instances for case classes with more than 32 members without hitting the Maximal number of successive inlines (32) exceeded error. This optimization leverages changes of the Scala compiler that were introduced in Scala 3.4.0, so to benefit from this, you'd need to use Scala 3.4.0 or higher.

What's Changed

Full Changelog: v0.5.0...v0.6.0

v0.5.0

20 Apr 10:33
Compare
Choose a tag to compare

This release does not provide any new functionality, but it updates the scalacheck dependency to version 1.18.0, thereby allowing to support scala-native 0.5.x.

Futhermore, the scala-js version was updated to 1.16.0.

What's Changed

  • docs: update version in "getting started" by @MartinHH in #40
  • ci: bump scala-cli to 1.2.2 by @MartinHH in #41
  • feat: scala-native 0.5.x / scalacheck 1.18.0 by @MartinHH in #42
  • docs: update README.md before 0.5.0 release by @MartinHH in #43

Full Changelog: v0.4.2...v0.5.0

v0.4.2

23 Sep 19:13
Compare
Choose a tag to compare

This release fixes two bugs where derivation would not lead to the expected results.

What's Changed

Full Changelog: v0.4.1...v0.4.2

v0.4.1

09 Aug 08:22
Compare
Choose a tag to compare

This release fixes incompatibility to older JVM versions (the JVM artifact is now compiled with Java 8).

What's Changed

  • docs: update version in "getting started" by @MartinHH in #24
  • build: downgrade jvm version to 8 by @MartinHH in #26
  • docs: update README.md before 0.4.1 release by @MartinHH in #27

Full Changelog: v0.4.0...v0.4.1

v0.4.0

02 Aug 09:08
Compare
Choose a tag to compare

This release adds support for reursive structures.

It includes a change that is somewhat breaking:
Up to two further inlining step(s) had to be added to derivation (one for Arbitrary and Cogen, two for Shrink), thus increasing the risk to hit "Maximal number of successive inlines (32) exceeded".
In case you experience that after upgrading to this version, consider incrementing that limit by 1 or 2 using the -Xmax-inlines compiler setting.

What's Changed

  • docs: update version in "getting started" by @MartinHH in #19
  • feat!: support for recursive structures by @MartinHH in #22
  • docs: update README.md before 0.4.0 release by @MartinHH in #23

Full Changelog: v0.3.0...v0.4.0

v0.3.0

30 Jul 13:37
Compare
Choose a tag to compare

This release introduces support for derivation of Shrink-instances. Futhermore, it bumps the scala version to 3.3.0 and the scala-native version to 0.4.14.

What's Changed

New Contributors

Full Changelog: v0.2.0...v0.3.0

v0.2.0

23 Apr 07:50
Compare
Choose a tag to compare

This release introduces support for derivation of Cogen-instances and improves the error messaging for "maximal number of successive inlines exceeded".

What's Changed

  • docs: add "getting started" section to README.md by @MartinHH in #1
  • docs: add "version matrix" section to README.md by @MartinHH in #2
  • feat: support derivation of Cogen instances by @MartinHH in #3
  • test: add tests that document inlining limits by @MartinHH in #4
  • fix!: non-helpful max inlines error messages by @MartinHH in #5
  • docs: add some badges to README.md by @MartinHH in #6
  • docs: update README.md before 0.2.0 release by @MartinHH in #7

New Contributors

Full Changelog: v0.1.0...v0.2.0

v0.1.0

07 Apr 09:14
Compare
Choose a tag to compare