Skip to content

Commit 8bb1c37

Browse files
committed
Merge branch 'main' into 3.8.0
2 parents ed7108f + ec246de commit 8bb1c37

File tree

22 files changed

+58
-67
lines changed

22 files changed

+58
-67
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ jobs:
123123

124124
- name: Upload target directories
125125
if: github.event_name != 'pull_request' && (startsWith(github.ref, 'refs/tags/v') || github.ref == 'refs/heads/main')
126-
uses: actions/upload-artifact@v4
126+
uses: actions/upload-artifact@v5
127127
with:
128128
name: target-${{ matrix.os }}-${{ matrix.java }}-${{ matrix.scala }}-${{ matrix.project }}
129129
path: targets.tar
@@ -173,7 +173,7 @@ jobs:
173173
run: sbt +update
174174

175175
- name: Download target directories (2.12, rootJS)
176-
uses: actions/download-artifact@v4
176+
uses: actions/download-artifact@v6
177177
with:
178178
name: target-${{ matrix.os }}-${{ matrix.java }}-2.12-rootJS
179179

@@ -183,7 +183,7 @@ jobs:
183183
rm targets.tar
184184
185185
- name: Download target directories (2.12, rootJVM)
186-
uses: actions/download-artifact@v4
186+
uses: actions/download-artifact@v6
187187
with:
188188
name: target-${{ matrix.os }}-${{ matrix.java }}-2.12-rootJVM
189189

@@ -193,7 +193,7 @@ jobs:
193193
rm targets.tar
194194
195195
- name: Download target directories (2.12, rootNative)
196-
uses: actions/download-artifact@v4
196+
uses: actions/download-artifact@v6
197197
with:
198198
name: target-${{ matrix.os }}-${{ matrix.java }}-2.12-rootNative
199199

@@ -203,7 +203,7 @@ jobs:
203203
rm targets.tar
204204
205205
- name: Download target directories (2.13, rootJS)
206-
uses: actions/download-artifact@v4
206+
uses: actions/download-artifact@v6
207207
with:
208208
name: target-${{ matrix.os }}-${{ matrix.java }}-2.13-rootJS
209209

@@ -213,7 +213,7 @@ jobs:
213213
rm targets.tar
214214
215215
- name: Download target directories (2.13, rootJVM)
216-
uses: actions/download-artifact@v4
216+
uses: actions/download-artifact@v6
217217
with:
218218
name: target-${{ matrix.os }}-${{ matrix.java }}-2.13-rootJVM
219219

@@ -223,7 +223,7 @@ jobs:
223223
rm targets.tar
224224
225225
- name: Download target directories (2.13, rootNative)
226-
uses: actions/download-artifact@v4
226+
uses: actions/download-artifact@v6
227227
with:
228228
name: target-${{ matrix.os }}-${{ matrix.java }}-2.13-rootNative
229229

@@ -233,7 +233,7 @@ jobs:
233233
rm targets.tar
234234
235235
- name: Download target directories (3, rootJS)
236-
uses: actions/download-artifact@v4
236+
uses: actions/download-artifact@v6
237237
with:
238238
name: target-${{ matrix.os }}-${{ matrix.java }}-3-rootJS
239239

@@ -243,7 +243,7 @@ jobs:
243243
rm targets.tar
244244
245245
- name: Download target directories (3, rootJVM)
246-
uses: actions/download-artifact@v4
246+
uses: actions/download-artifact@v6
247247
with:
248248
name: target-${{ matrix.os }}-${{ matrix.java }}-3-rootJVM
249249

@@ -253,7 +253,7 @@ jobs:
253253
rm targets.tar
254254
255255
- name: Download target directories (3, rootNative)
256-
uses: actions/download-artifact@v4
256+
uses: actions/download-artifact@v6
257257
with:
258258
name: target-${{ matrix.os }}-${{ matrix.java }}-3-rootNative
259259

.scalafmt.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
version = "3.9.9"
1+
version = "3.9.10"
22

33
style = default
44

build.sbt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ ThisBuild / organization := "co.fs2"
88
ThisBuild / organizationName := "Functional Streams for Scala"
99
ThisBuild / startYear := Some(2013)
1010

11-
val Scala213 = "2.13.16"
11+
val Scala213 = "2.13.18"
1212

1313
ThisBuild / scalaVersion := Scala213
14-
ThisBuild / crossScalaVersions := Seq("2.12.20", Scala213, "3.3.6")
14+
ThisBuild / crossScalaVersions := Seq("2.12.20", Scala213, "3.3.7")
1515
ThisBuild / tlVersionIntroduced := Map("3" -> "3.0.3")
1616

1717
ThisBuild / githubWorkflowOSes := Seq("ubuntu-latest")
@@ -450,7 +450,7 @@ lazy val io = crossProject(JVMPlatform, JSPlatform, NativePlatform)
450450
.jvmSettings(
451451
Test / fork := true,
452452
libraryDependencies ++= Seq(
453-
"com.github.jnr" % "jnr-unixsocket" % "0.38.23" % Optional,
453+
"com.github.jnr" % "jnr-unixsocket" % "0.38.24" % Optional,
454454
"com.google.jimfs" % "jimfs" % "1.3.1" % Test
455455
)
456456
)

core/shared/src/main/scala-3/fs2/ChunkPlatform.scala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ package fs2
2424
import scodec.bits.ByteVector
2525

2626
import scala.collection.immutable.ArraySeq
27-
import scala.collection.immutable
2827
import scala.reflect.ClassTag
2928

3029
private[fs2] trait ChunkPlatform[+O] extends Chunk213And3Compat[O] {

core/shared/src/main/scala/fs2/Chunk.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1459,6 +1459,7 @@ object Chunk
14591459

14601460
/** `Traverse`, `Monad`, `Alternative`, and `TraverseFilter` instance for `Chunk`.
14611461
*/
1462+
@nowarn213("msg=parameterless")
14621463
implicit val instance
14631464
: Traverse[Chunk] with Monad[Chunk] with Alternative[Chunk] with TraverseFilter[Chunk] =
14641465
new Traverse[Chunk] with Monad[Chunk] with Alternative[Chunk] with TraverseFilter[Chunk] {

core/shared/src/main/scala/fs2/Stream.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3816,6 +3816,7 @@ object Stream extends StreamLowPriority {
38163816
* are dequeued and emitted as a single chunk.
38173817
*/
38183818
@nowarn("msg=never used")
3819+
@nowarn3("msg=unused implicit parameter")
38193820
def fromQueueNoneTerminated[F[_]: Functor, A](
38203821
queue: QueueSource[F, Option[A]],
38213822
limit: Int = Int.MaxValue

flake.lock

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

integration/src/test/scala/fs2/MemoryLeakSpec.scala

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -218,16 +218,11 @@ class MemoryLeakSpec extends FunSuite {
218218

219219
leakTest("constant eval") {
220220
var cnt = 0
221-
var start = System.currentTimeMillis
222221
Stream
223222
.constant(())
224223
.flatMap { _ =>
225224
Stream.eval(IO {
226225
cnt = (cnt + 1) % 1000000
227-
if (cnt == 0) {
228-
val now = System.currentTimeMillis
229-
start = now
230-
}
231226
})
232227
}
233228
}

io/js/src/main/scala/fs2/io/internal/facade/net.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ private[io] object net {
8282
@js.native
8383
class Socket extends fs2.io.Duplex {
8484

85-
def this(options: SocketOptions) = this()
85+
def this(@unused options: SocketOptions) = this()
8686

8787
def connect(path: String, connectListener: js.Function0[Unit]): Socket = js.native
8888

io/js/src/main/scala/fs2/io/internal/facade/tls.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ private[io] object tls {
183183
@js.native
184184
class TLSSocket extends Socket {
185185

186-
def this(socket: fs2.io.Duplex, options: TLSSocketOptions) = this()
186+
def this(@unused socket: fs2.io.Duplex, @unused options: TLSSocketOptions) = this()
187187

188188
def alpnProtocol: String | Boolean = js.native
189189

0 commit comments

Comments
 (0)