Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .scalafmt.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version="3.8.1"
version="3.8.3"
runner.dialect=scala3
align.preset=most
maxColumn=120
4 changes: 2 additions & 2 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ lazy val commonSettings = Seq(
)

lazy val exampleApps = Seq(
"org.twelvehart.unstructured4s.examples.BasicApp",
"org.twelvehart.unstructured4s.examples.ZIOApp",
"org.twelvehart.unstructured4s.examples.CatsEffectApp"
"org.twelvehart.unstructured4s.examples.CatsEffectApp",
"org.twelvehart.unstructured4s.examples.BasicApp"
)

lazy val runExamples = exampleApps.map(app => s"examples/runMain $app").mkString(";")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import sttp.client3.*
import sttp.model.Uri
import sttp.model.Part

import scala.annotation.unused
import java.io.File

export CanMultipart.given
Expand All @@ -32,9 +31,8 @@ enum OCRStrategy(val value: String):
case Auto extends OCRStrategy("auto")

enum OutputFormat(val value: String):
case Json extends OutputFormat("json")

@unused("csv output is not yet supported by the api") case `Text/Csv` extends OutputFormat("text/csv")
case Json extends OutputFormat("application/json")
case `Text/Csv` extends OutputFormat("text/csv")

sealed trait Endpoint(val value: Uri):
case object V0 extends Endpoint(uri"https://api.unstructured.io/general/v0/general")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ object BasicApp:
result match
case Left(error) =>
println(s"Error: ${error.getMessage}")
System.exit(1)
case Right(value) =>
println(s"Result: $value")
System.exit(0)
}
10 changes: 5 additions & 5 deletions project/Dependencies.scala
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
import sbt.*

object V {
lazy val zio = "2.0.21"
lazy val zio = "2.0.22"
lazy val zioCats = "23.0.0.8"
lazy val sttp = "3.9.5"
lazy val circe = "0.14.6"
lazy val circe = "0.14.10"
}

object Dependencies {
lazy val cats = "org.typelevel" %% "cats-core" % "2.10.0"
lazy val cats = "org.typelevel" %% "cats-core" % "2.12.0"
lazy val catsEffect = "org.typelevel" %% "cats-effect" % "3.5.4"
lazy val catsEffectTesting = "org.typelevel" %% "cats-effect-testing-scalatest" % "1.5.0" % Test

lazy val scalaTest = "org.scalatest" %% "scalatest" % "3.2.18" % Test
lazy val scalaTest = "org.scalatest" %% "scalatest" % "3.2.19" % Test
lazy val scalaCheck = "org.scalacheck" %% "scalacheck" % "1.17.0" % Test

lazy val sttpFs2 = "com.softwaremill.sttp.client3" %% "fs2" % V.sttp
Expand All @@ -28,7 +28,7 @@ object Dependencies {
lazy val zio = "dev.zio" %% "zio" % V.zio
lazy val zioTestSbt = "dev.zio" %% "zio-test-sbt" % V.zio
lazy val zioCats = "dev.zio" %% "zio-interop-cats" % V.zioCats
lazy val loggingFrontend = "ch.qos.logback" % "logback-classic" % "1.5.3"
lazy val loggingFrontend = "ch.qos.logback" % "logback-classic" % "1.5.8"
lazy val zioSlf4j = "dev.zio" %% "zio-logging-slf4j" % "2.2.2"

lazy val core: Seq[ModuleID] = Seq(
Expand Down
2 changes: 1 addition & 1 deletion project/build.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
sbt.version = 1.9.9
sbt.version = 1.10.2

10 changes: 5 additions & 5 deletions project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "3.10.0")
addSbtPlugin("org.xerial.sbt" % "sbt-sonatype" % "3.11.3")
addSbtPlugin("com.github.sbt" % "sbt-pgp" % "2.2.1")
addSbtPlugin("org.scalameta" % "sbt-scalafmt" % "2.5.2")
addSbtPlugin("com.github.sbt" % "sbt-ci-release" % "1.5.12")
addSbtPlugin("com.github.sbt" % "sbt-site-paradox" % "1.6.0")
addSbtPlugin("com.github.sbt" % "sbt-ci-release" % "1.6.1")
addSbtPlugin("com.github.sbt" % "sbt-site-paradox" % "1.7.0")
addSbtPlugin("com.github.sbt" % "sbt-paradox-material-theme" % "0.7.0")
addSbtPlugin("com.github.sbt" % "sbt-ghpages" % "0.8.0")
addSbtPlugin("com.typesafe" % "sbt-mima-plugin" % "1.1.3")
addSbtPlugin("com.typesafe" % "sbt-mima-plugin" % "1.1.4")
addSbtPlugin("nl.gn0s1s" % "sbt-dotenv" % "3.0.0")
addSbtPlugin("org.typelevel" % "sbt-tpolecat" % "0.5.0")
addSbtPlugin("org.typelevel" % "sbt-tpolecat" % "0.5.2")
2 changes: 1 addition & 1 deletion publish.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ ThisBuild / developers := List(
)

ThisBuild / description := "Unstructured4s is a Scala library for working with unstructured.io API"
ThisBuild / licenses := List("The MIT License" -> new URL("https://opensource.org/license/mit/"))
ThisBuild / licenses := List("The MIT License" -> url("https://opensource.org/license/mit/"))
ThisBuild / homepage := Some(url("https://unstructured4s.twelvehart.org/"))

// Remove all additional repository other than Maven Central from POM
Expand Down