github zio/zio-config v1.0.1

latest releases: v4.0.2, v4.0.1, v4.0.0...
3 years ago

Following are the changes in this release

  1. Improvement in type inference by removing path dependent Descriptor to improve custom derivation #493

Before 1.0.1 (unusual imports)

  val customDerivation = new DeriveConfigDescriptor {
    import Descriptor.SealedTraitStrategy._

    def sealedTraitStrategy: Descriptor.SealedTraitStrategy =
      ignoreSealedTraitName && labelSubClassName("type")
  }

  customDerivation.descriptor[MyConfig]

Now (usual imports)

  import zio.config.magnolia._, Descriptor.SealedTraitStrategy._

  val customDerivation = new DeriveConfigDescriptor {
    def sealedTraitStrategy: SealedTraitStrategy =
        ignoreSealedTraitName && labelSubClassName("type")
  }

  customDerivation.descriptor[MyConfig]
  1. Updated zio dependency to 1.0.5

Don't miss a new zio-config release

NewReleases is sending notifications on new releases.