github scalapb/ScalaPB v1.0.0-alpha.8

pre-releaseone hour ago

Publication status: ScalaPB alpha.8 is available on Maven Central. Its companion scalapb-json4s alpha.4 has passed validation, but Maven publication is currently blocked by the Sonatype organization’s monthly release-size quota. Final verification of the downloaded pair is pending that publication.

Changes since 1.0.0-alpha.6. Pair with scalapb-json4s 1.0.0-alpha.4.
The alpha.7 publication attempt was withdrawn after a Scala 3 JS compile failure;
alpha.8 fixes the shared JS/Native call syntax. The alpha.7 Git tag is retained.

  • Support stable Editions 2023, 2024 and 2026: resolve inherited features,
    presence, packing, enum openness, UTF-8 and DELIMITED encoding. Reject unknown
    and unstable editions. Validate newer naming, visibility and structure rules
    through protoc, including explicit compatibility overrides.
  • Align protoc, protobuf-java and vendored descriptor schemas on 36.2; improve
    Java naming/conversions for mixed nesting, large enums and migrated group-like
    field capitalization.
  • Support known/unknown groups and registered message-valued text extensions;
    preserve MessageSet extension ordering and encoding. Scalar text extensions
    remain unsupported. Group recursion accounting remains separate work.
  • Honor closed enums in Editions; add opt-in proto2_closed_enums for legacy
    schemas. Unknown closed values are retained as unknown fields, not enum values.
  • Honor schema UTF-8 features in Editions and string extension accessors; retain
    the legacy-schema opt-in. Add lazy UTF-8 string fields and Java conversion fixes.
  • Improve text-format presence, separators, enum numbers, floating-point syntax,
    negative zero, Unicode escapes, expanded Any and unknown-field printing.
  • Harden delimited framing and bound text-parser depth and integer literals.
  • Improve Scala 3-only generation for -source:future, unify generated lens bases,
    narrow enum values to recognized values and fix streaming gRPC status mapping.
    Parenthesize named-given intersection types so Java conversions also compile
    with Scala 3-only output on the supported Scala 3 compilers.
  • Update gRPC to 1.86.0, protobuf-runtime-scala to 0.9.0, Scala 3 to 3.3.9,
    Scala.js to 1.23.0 and Scala Native to 0.5.13; refresh dependency security fixes.
    The repository build uses sbt 2.1.1 and sbt-protoc 1.1.0-RC3.
  • Run all stable fixtures available in the protobuf 36.2 conformance runner,
    including recommended tests. Report expected failures and unstable skips
    explicitly; use dedicated actual schemas for Editions 2024/2026.

Migration: upgrade the generator and runtime together and regenerate sources.
Generated descriptor case classes (including FeatureSet and FeatureSupport)
change constructor/extractor shape; new generated code calls new runtime helpers.
Text output now omits implicit defaults. UnknownFieldSet.Field gains group data,
changing its product/extractor arity. Scala 3-only output requires Scala 3; use
regular output for Scala 2. This alpha does not promise development-to-development
binary compatibility. Detailed changes and migration notes follow below.

Validation: 6,486 conformance successes, 68 documented expected failures, four unstable skips, and zero unexpected failures. Actual Edition 2024/2026 JSON fixtures are checked separately by the artifact-only verification build.

Don't miss a new ScalaPB release

NewReleases is sending notifications on new releases.