typelevel / Laika

Site and E-book Generator and Customizable Text Markup Transformer for sbt, Scala and Scala.js
https://typelevel.org/Laika/
Apache License 2.0
410 stars 44 forks source link

convert public case classes in laika.rewrite.link #490

Closed jenshalm closed 1 year ago

jenshalm commented 1 year ago

Applies the pattern described in #482 (section 2.) to public case classes in the package laika.rewrite.link:

apply methods in the companions are reduced to arguments for all non-optional properties. Since LinkConfig is heavily used in builds, deprecations for the old apply method will be introduced in 0.19.4 to ease the transition.

Finally, IconRegistry is no longer a case class (the above pattern has not been applied here).