We are pleased to announce the availability of Lift 4.0.0-M3. This is the first milestone build for Lift 4.0.0 that cross-builds for both Scala 2.13 and Scala 3 LTS with a fully passing test suite in Scala 2.13 across all supported JVM versions.
Breaking ChangesA number of breaking changes are included in this milestone in order to facilitate cross-building between Scala 2 and Scala 3. Particularly impactful changes are going to be called out in these release notes, but there may be smaller breaking changes that we didn't expect. Please report any issues using this build that occurred since using Lift 4.0.0-M2.
Removal of lift-jsonThis one is bittersweet. I cut my teeth on the Scala 2 type system heavily on contributing to Lift JSON. I'm still insanely proud of what we were able to accomplish with that library. When it was in active development I will still contend that, at the time, it was the best JSON library for Scala. However, as the Lift Committers have had busy lives other solutions continued marching forward and improving.
With Lift 4.0.0-M3 we've fully removed lift-json and replaced it with json4s. Json4s was originally forked from lift-json, so the work to migrate to it made a lot more sense than trying to get lift-json caught up on all the changes required to build under Scala 3. There are some small differences in how json4s handles fields in objects, but by and large the public API is the same.
Most of the time replacing your imports with the json4s equivalents will be enough.
Scala 3 doesn't support structural types. In order to support cross building we've removed them from the API across all modules that were using them. Where possible we replaced these with specific classes. Where that wasn't possible we do have some use of Any. We welcome any contributions to improve that further in these milestones.
Method Renames, removalsSome notable method renames and removals occurred:
Please please please take this out for a spin and let us know what you find. These changes certainly had unintended consequences and we would love to be able to enumerate or fix those for the final Lift 4.0 release.
Credit where dueMy personal life is full. I want to note that getting this done and getting caught up on all the changes with Scala 3 since I've been inactive in the community wouldn't be possible without Claude Code.
What's ChangedFull Changelog: 4.0.0-M2-release...4.0.0-M3-release