Skip to content

Conversation

@xerial
Copy link
Member

@xerial xerial commented Jul 19, 2025

Summary

  • Upgrades Scala version from 2.13.12 to 3.7.1
  • Updates scalafmt configuration to use Scala 3 dialect and modern formatting rules
  • Fixes all Scala 3 compatibility issues in test files

Changes

  • build.sbt: Updated scalaVersion to "3.7.1"
  • .scalafmt.conf: Updated to use scala3 dialect with modern formatting options including:
    • Scala 3 syntax conversion and optional brace removal
    • Shorter line length (100 characters)
    • Enhanced formatting for docstrings and top-level statements
  • Test files: Fixed lambda syntax and removed deprecated function reference syntax

Test plan

  • Code compiles successfully with Scala 3.7.1
  • All existing tests pass
  • Scalafmt formatting applied to all Scala files
  • No functional changes to library behavior

🤖 Generated with Claude Code

xerial and others added 3 commits July 19, 2025 10:26
- Upgrade Scala version from 2.13.12 to 3.7.1 in build.sbt - Update scalafmt.conf to use Scala 3 dialect and modern formatting rules - Fix Scala 3 compatibility issues in test files: - Update lambda syntax to use parentheses around parameters - Remove deprecated underscore suffix from function references - Apply Scala 3 formatting with scalafmt 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
- Resolve merge conflict in MessagePackTest.scala by using Scala 3 compatible syntax - Update scalafmt version from 3.9.4 to 3.9.8 - Apply formatting with updated scalafmt version
- Fix build command to use modern sbt syntax: Test / compile instead of test:compile - Update Scala version reference to 3.7.1 in testing structure - Update scalafmt configuration notes to reflect Scala 3 dialect and 100 char limit
@github-actions github-actions bot added the doc label Jul 19, 2025
xerial added 3 commits July 19, 2025 10:32
- Change specific version reference to 'always use the latest Scala 3 version' - This ensures the documentation remains current as new Scala 3 versions are released
- Fix sbt command syntax: change test:compile to 'Test / compile' - Add note about Scala 3 dialect and latest version recommendation - Ensure developer documentation matches current project configuration
- Change comment from 'Format Scala test code' to 'Format all Scala and sbt code' - More accurately reflects what scalafmtAll does (formats all Scala files, not just tests) - Apply change to both README.md and CLAUDE.md for consistency
@xerial xerial enabled auto-merge (squash) July 19, 2025 17:34
@xerial xerial merged commit 2bb4834 into main Jul 19, 2025
8 checks passed
@xerial xerial deleted the upgrade-scala-3.7.1 branch July 19, 2025 17:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

2 participants