From 7b2049bb0d19a4fa98265a0db147d565bc0bdda1 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Fri, 28 Aug 2026 13:39:09 +0000 Subject: [PATCH 1/3] Update dependency com.halotukozak:made_3 to v0.4.1 --- project.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project.scala b/project.scala index 3ff90c6..3b1eec4 100644 --- a/project.scala +++ b/project.scala @@ -1,6 +1,6 @@ //> using scala 3.9.0-RC6 -//> using dep com.halotukozak::made::0.4.0 +//> using dep com.halotukozak::made::0.4.1 //> using test.dep org.scalameta::munit::1.3.5 //> using test.dep org.scalameta::munit-scalacheck::1.3.0 From 7f5d24f1134ab2ac97317de508b3ade81c329ba2 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Fri, 28 Aug 2026 13:39:14 +0000 Subject: [PATCH 2/3] Update dependency scala3 to v3.9.0 --- README.md | 4 ++-- project.scala | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 5936399..cccd306 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,7 @@ collections (`List`, `Vector`, `Seq`, `Set`, `Map`). ### scala-cli ```scala -//> using scala 3.9.0-RC4 +//> using scala 3.9.0 //> using dep com.halotukozak::mcodec:: ``` @@ -43,7 +43,7 @@ libraryDependencies += "com.halotukozak" %% "mcodec" % "" ### mill ```scala -def scalaVersion = "3.9.0-RC4" +def scalaVersion = "3.9.0" def mvDeps = Seq(mvn"com.halotukozak::mcodec::") ``` diff --git a/project.scala b/project.scala index 3ff90c6..fef5548 100644 --- a/project.scala +++ b/project.scala @@ -1,4 +1,4 @@ -//> using scala 3.9.0-RC6 +//> using scala 3.9.0 //> using dep com.halotukozak::made::0.4.0 From d0b0654d9eb0d812e908739548bf923c73e7dd73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bart=C5=82omiej=20Kozak?= Date: Fri, 28 Aug 2026 15:57:07 +0200 Subject: [PATCH 3/3] Fix BsonRoundTripTest map-object generator to exclude NUL bytes BSON field names are cstrings and cannot contain a NUL byte; the default Arbitrary[String] occasionally generated one as a map key, causing writeCString to fail. Co-Authored-By: Claude Sonnet 5 --- test/mcodec/BsonRoundTripTest.scala | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/mcodec/BsonRoundTripTest.scala b/test/mcodec/BsonRoundTripTest.scala index eb7ee2a..4eda3f3 100644 --- a/test/mcodec/BsonRoundTripTest.scala +++ b/test/mcodec/BsonRoundTripTest.scala @@ -13,6 +13,14 @@ class BsonRoundTripTest extends RoundTrip(BsonBackend): given Arbitrary[Double] = Arbitrary(Arbitrary.arbitrary[Double].suchThat(java.lang.Double.isFinite)) + // BSON field names are cstrings and cannot contain a NUL byte (see BsonOutput.writeCString). + given Arbitrary[Map[String, Int]] = Arbitrary( + Gen.mapOf(for + k <- Arbitrary.arbitrary[String].map(_.filterNot(_ == '\u0000')) + v <- Arbitrary.arbitrary[Int] + yield k -> v), + ) + // FlatShape Arbitrary — copy from FlatDiscriminatorTest (that given is scoped to its own suite). given Arbitrary[FlatShape] = Arbitrary( Gen.oneOf(