Skip to content

v2.1.2

Latest

Choose a tag to compare

@MateuszKubuszok MateuszKubuszok released this 01 Dec 13:57
18d5100

Changelog:

  • fixed transforming non-public Scala 3 enums: deriving transformations to and from private and private[pkg] enums (and other non-public singletons), which worked in 2.1.0, failed in 2.1.1. Thanks to @johanmast for the report (#998, #1002)
  • :: (non-empty List) is supported as a collection again, as it was in 1.x. That includes total ::[A] into ::[B] transformations (mapping a non-empty list keeps it non-empty), .everyItem in DSL paths on ::, and merging :: with fallbacks (#989)
  • fixed a field whose type is a sealed trait or an enum reached through a Scala 3 export alias, which crashed the derivation with Expected at least one subtype pattern-match case. Thanks to @fru1tworld for the regression test (#986, #987)
  • fixed the compile-error hint for missing default values: it suggested .enableDefaultValueForType, which doesn't exist; it now names .enableDefaultValueOfType (#1007)
  • docs fixes: wrong flag and DSL method names in the cookbook and cheat sheet (e.g. .enableIgnoreUnmatchedBeanSetters, .enableUnmatchedSubtypePolicyCheck), which chimney-protobufs conversions need import io.scalaland.chimney.protobufs._ (Empty and Duration don't), and several broken examples (#1007)
  • Scala.js 1.23: Scala.js artifacts are now built with Scala.js 1.23.0, so Scala.js projects need sbt-scalajs (or the Scala.js CLI) 1.23.0 or newer to link them (#1004)
  • bumped Hearth to 0.4.6 (test-scoped kindlings-cats-integration to 0.4.1), Scala Native to 0.5.13, scala-java-time to 2.11.0, sbt to 2.1.1

Agent skills

Chimney now has agent skills for coding agents (Claude Code, Codex, Cursor, Copilot, OpenCode, Gemini CLI, ...). The 10 skills cover:

  • derivation of Transformers, PartialTransformers, Patchers, Codecs and Isos;
  • flags and their customization;
  • integrations, including your own types and macro extensions;
  • migration from 1.x and from other mapping libraries;
  • troubleshooting compilation errors.

In Claude Code:

/plugin marketplace add scalalandio/agent-skills
/plugin install chimney@scalaland

See the README for other agents.