Skip to content

Releases: dwickern/scala-nameof

v5.0.0

12 Mar 00:42
f14ed85

Choose a tag to compare

This release adds qualifiedNameOf. Unlike nameOf, it evaluates to the entire path:

case class Pet(age: Int) case class Person(name: String, pet: Pet) nameOf[Person](_.pet.age) // "age" qualifiedNameOf[Person](_.pet.age) // "pet.age"

This method is useful for interacting with Elasticsearch and Spark APIs.

What's Changed

New Contributors

Full Changelog: v4.1.0...v5.0.0

v4.1.0

01 Mar 18:04
29e14f9

Choose a tag to compare

What's Changed

New Contributors

  • @froth made their first contribution in #26

Full Changelog: v4.0.0...v4.1.0

v4.0.0

19 Dec 18:16

Choose a tag to compare

Adds Scala 3 support

v3.0.0

07 Feb 18:00

Choose a tag to compare

  1. Adds support for compile-time constants
println(nameOf(java.lang.Integer.MAX_VALUE)) // compiles to: println("MAX_VALUE")
  1. APIs now return compile-time constants, which allows them to be used in annotations:
@Resource(name = nameOfType[SomeClass]) class SomeClass // compiles to: @Resource(name = "SomeClass") class SomeClass