Skip to content

Commit cf81578

Browse files
authored
Merge pull request #2947 from eikek/update-dependencies
Update dependencies
2 parents 2f8f4cc + 2d5d961 commit cf81578

File tree

27 files changed

+82
-84
lines changed

27 files changed

+82
-84
lines changed

build.sbt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ val scalafixSettings = Seq(
1515

1616
val sharedSettings = Seq(
1717
organization := "com.github.eikek",
18-
scalaVersion := "2.13.14",
18+
scalaVersion := "2.13.16",
1919
organizationName := "Eike K. & Contributors",
2020
licenses += (
2121
"AGPL-3.0-or-later",
@@ -681,7 +681,7 @@ val restapi = project
681681
openapiPackage := Pkg("docspell.restapi.model"),
682682
openapiSpec := (Compile / resourceDirectory).value / "docspell-openapi.yml",
683683
openapiStaticGen := OpenApiDocGenerator.Redoc,
684-
openapiRedoclyCmd := Seq("redocly-cli"),
684+
openapiRedoclyCmd := Seq("redocly"),
685685
openapiRedoclyConfig := Some(
686686
(LocalRootProject / baseDirectory).value / "project" / "redocly.yml"
687687
)
@@ -705,7 +705,7 @@ val joexapi = project
705705
openapiPackage := Pkg("docspell.joexapi.model"),
706706
openapiSpec := (Compile / resourceDirectory).value / "joex-openapi.yml",
707707
openapiStaticGen := OpenApiDocGenerator.Redoc,
708-
openapiRedoclyCmd := Seq("redocly-cli"),
708+
openapiRedoclyCmd := Seq("redocly"),
709709
openapiRedoclyConfig := Some(
710710
(LocalRootProject / baseDirectory).value / "project" / "redocly.yml"
711711
)

flake.lock

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

flake.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
description = "Docspell";
33

44
inputs = {
5-
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.05";
5+
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.11";
66
devshell-tools.url = "github:eikek/devshell-tools";
77
flake-utils.url = "github:numtide/flake-utils";
88
};
@@ -24,7 +24,7 @@
2424
zola
2525
yarn
2626
nodejs
27-
redocly-cli
27+
redocly
2828
tailwindcss
2929
];
3030
devshellPkgs =

modules/backend/src/main/scala/docspell/backend/ops/OFileRepository.scala

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ package docspell.backend.ops
99
import cats.data.OptionT
1010
import cats.effect._
1111
import cats.implicits._
12+
import fs2.hashing.{HashAlgorithm, Hashing}
1213

1314
import docspell.backend.JobFactory
1415
import docspell.backend.ops.OFileRepository.IntegrityResult
@@ -73,9 +74,10 @@ object OFileRepository {
7374
) *>
7475
store.fileRepo
7576
.getBytes(key)
76-
.through(fs2.hash.sha256)
77+
.through(Hashing.forSync[F].hash(HashAlgorithm.SHA256))
78+
.map(_.bytes)
7779
.compile
78-
.foldChunks(ByteVector.empty)(_ ++ _.toByteVector)
80+
.fold(ByteVector.empty)(_ ++ _.toByteVector)
7981
)
8082
res = IntegrityResult(expectedHash == actualHash, key)
8183
_ <- OptionT.liftF {

modules/common/src/main/scala/docspell/common/syntax/StreamSyntax.scala

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ package docspell.common.syntax
99
import cats.effect.Sync
1010
import cats.implicits._
1111
import fs2.Stream
12+
import fs2.hashing.{HashAlgorithm, Hashing}
1213

1314
import io.circe._
1415
import io.circe.parser._
@@ -29,9 +30,10 @@ trait StreamSyntax {
2930
implicit final class ByteStreamSyntax[F[_]](self: Stream[F, Byte]) {
3031
def sha256Hex(implicit F: Sync[F]): F[String] =
3132
self
32-
.through(fs2.hash.sha256)
33+
.through(Hashing.forSync[F].hash(HashAlgorithm.SHA256))
34+
.map(_.bytes)
3335
.compile
34-
.foldChunks(ByteVector.empty)(_ ++ _.toByteVector)
36+
.fold(ByteVector.empty)(_ ++ _.toByteVector)
3537
.map(_.toHex)
3638
}
3739
}

modules/extract/src/test/scala/docspell/extract/pdfbox/PdfboxPreviewTest.scala

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ package docspell.extract.pdfbox
99
import cats.effect._
1010
import cats.effect.unsafe.implicits.global
1111
import fs2.Stream
12+
import fs2.hashing.{HashAlgorithm, Hashing}
1213
import fs2.io.file.Files
1314
import fs2.io.file.Path
1415

@@ -33,8 +34,8 @@ class PdfboxPreviewTest extends FunSuite with TestLoggingConfig {
3334
.eval(PdfboxPreview[IO](PreviewConfig(48)))
3435
.evalMap(_.previewPNG(data))
3536
.flatMap(_.get)
36-
.through(fs2.hash.sha256)
37-
.chunks
37+
.through(Hashing.forSync[IO].hash(HashAlgorithm.SHA256))
38+
.map(_.bytes)
3839
.map(_.toByteVector)
3940
.fold1(_ ++ _)
4041
.compile

modules/extract/src/test/scala/docspell/extract/poi/PoiExtractTest.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import munit._
1818
class PoiExtractTest extends FunSuite with TestLoggingConfig {
1919

2020
val officeFiles = List(
21-
ExampleFiles.examples_sample_doc -> 6241,
21+
ExampleFiles.examples_sample_doc -> 6245,
2222
ExampleFiles.examples_sample_docx -> 6179,
2323
ExampleFiles.examples_sample_xlsx -> 660,
2424
ExampleFiles.examples_sample_xls -> 660

modules/fts-psql/src/test/scala/docspell/ftspsql/MigrationTest.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class MigrationTest
2424
with TestContainerForAll
2525
with TestLoggingConfig {
2626
override val containerDef: PostgreSQLContainer.Def =
27-
PostgreSQLContainer.Def(DockerImageName.parse("postgres:14"))
27+
PostgreSQLContainer.Def(DockerImageName.parse("postgres:17"))
2828

2929
override def docspellLogConfig: LogConfig =
3030
super.docspellLogConfig.docspellLevel(Level.Error)

modules/fts-psql/src/test/scala/docspell/ftspsql/PsqlFtsClientTest.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class PsqlFtsClientTest
2525
with TestContainerForAll
2626
with TestLoggingConfig {
2727
override val containerDef: PostgreSQLContainer.Def =
28-
PostgreSQLContainer.Def(DockerImageName.parse("postgres:14"))
28+
PostgreSQLContainer.Def(DockerImageName.parse("postgres:17"))
2929

3030
val logger = docspell.logging.getLogger[IO]
3131

modules/scheduler/impl/src/main/scala/docspell/scheduler/impl/QJob.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ import docspell.store.qb._
1717
import docspell.store.records.{RJob, RJobGroupUse}
1818

1919
import doobie.ConnectionIO
20+
import doobie.implicits._
2021

2122
object QJob {
2223
private[this] val cioLogger = docspell.logging.getLogger[ConnectionIO]

0 commit comments

Comments
 (0)