diff --git a/LICENSE b/LICENSE index 4effa7c5..3b225240 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2018 by Rob Norris +Copyright (c) 2018-2021 by Rob Norris Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in diff --git a/build.sbt b/build.sbt index b3840b5b..ba0d741d 100644 --- a/build.sbt +++ b/build.sbt @@ -3,12 +3,12 @@ // Our Scala versions. lazy val `scala-2.12` = "2.12.13" lazy val `scala-2.13` = "2.13.5" -lazy val `scala-3.0-prev` = "3.0.0-M3" -lazy val `scala-3.0-curr` = "3.0.0-RC1" +lazy val `scala-3.0-prev` = "3.0.0-RC1" +lazy val `scala-3.0-curr` = "3.0.0-RC2" // This is used in a couple places -lazy val fs2Version = "3.0.0-M9" -lazy val natchezVersion = "0.1.0-M4" +lazy val fs2Version = "3.0.1" +lazy val natchezVersion = "0.1.0" // We do `evictionCheck` in CI @@ -36,7 +36,7 @@ lazy val commonSettings = Seq( // Headers headerMappings := headerMappings.value + (HeaderFileType.scala -> HeaderCommentStyle.cppStyleLineComment), headerLicense := Some(HeaderLicense.Custom( - """|Copyright (c) 2018-2020 by Rob Norris + """|Copyright (c) 2018-2021 by Rob Norris |This software is licensed under the MIT License (MIT). |For more information see LICENSE or https://opensource.org/licenses/MIT |""".stripMargin @@ -112,19 +112,19 @@ lazy val core = project description := "Tagless, non-blocking data access library for Postgres.", resolvers += "Sonatype OSS Snapshots" at "https://oss.sonatype.org/content/repositories/snapshots", libraryDependencies ++= Seq( - "org.typelevel" %% "cats-core" % "2.4.2", - "org.typelevel" %% "cats-effect" % "3.0.0-RC2", + "org.typelevel" %% "cats-core" % "2.5.0", + "org.typelevel" %% "cats-effect" % "3.0.1", "co.fs2" %% "fs2-core" % fs2Version, "co.fs2" %% "fs2-io" % fs2Version, - "org.scodec" %% "scodec-core" % (if (isDotty.value) "2.0.0-RC1" else "1.11.7"), - "org.scodec" %% "scodec-cats" % "1.1.0-RC1", + "org.scodec" %% "scodec-core" % (if (isDotty.value) "2.0.0-RC2" else "1.11.7"), + "org.scodec" %% "scodec-cats" % "1.1.0-RC2", "org.tpolecat" %% "natchez-core" % natchezVersion, "com.ongres.scram" % "client" % "2.1", - "org.tpolecat" %% "sourcepos" % "0.1.1", + "org.tpolecat" %% "sourcepos" % "0.1.2", ) ++ Seq( "com.beachape" %% "enumeratum" % "1.6.1", ).map(_.withDottyCompat(scalaVersion.value)) ++ Seq( - "org.scala-lang.modules" %% "scala-collection-compat" % "2.4.2", + "org.scala-lang.modules" %% "scala-collection-compat" % "2.4.3", ) ) @@ -135,7 +135,7 @@ lazy val refined = project .settings(commonSettings) .settings( libraryDependencies ++= Seq( - "eu.timepit" %% "refined" % "0.9.21", + "eu.timepit" %% "refined" % "0.9.22", ).map(_.withDottyCompat(scalaVersion.value)) ) @@ -161,11 +161,11 @@ lazy val tests = project publish / skip := true, scalacOptions -= "-Xfatal-warnings", libraryDependencies ++= Seq( - "org.typelevel" %% "scalacheck-effect-munit" % "0.7.1", - "org.typelevel" %% "munit-cats-effect-3" % "0.13.1", - "org.typelevel" %% "cats-free" % "2.4.2", - "org.typelevel" %% "cats-laws" % "2.4.2", - "org.typelevel" %% "discipline-munit" % "1.0.6", + "org.typelevel" %% "scalacheck-effect-munit" % "1.0.0", + "org.typelevel" %% "munit-cats-effect-3" % "1.0.1", + "org.typelevel" %% "cats-free" % "2.5.0", + "org.typelevel" %% "cats-laws" % "2.5.0", + "org.typelevel" %% "discipline-munit" % "1.0.7", ) ++ Seq( "io.chrisdavenport" %% "cats-time" % "0.3.4", ).filterNot(_ => isDotty.value), diff --git a/modules/circe/src/main/scala-2/JsonCodecs.scala b/modules/circe/src/main/scala-2/JsonCodecs.scala index 0af6f4d0..6d3341b6 100644 --- a/modules/circe/src/main/scala-2/JsonCodecs.scala +++ b/modules/circe/src/main/scala-2/JsonCodecs.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/core/src/main/scala-2.12/data/ArrPlatform.scala b/modules/core/src/main/scala-2.12/data/ArrPlatform.scala index 718c64ee..8c433a77 100644 --- a/modules/core/src/main/scala-2.12/data/ArrPlatform.scala +++ b/modules/core/src/main/scala-2.12/data/ArrPlatform.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/core/src/main/scala-2.12/utll/package.scala b/modules/core/src/main/scala-2.12/utll/package.scala index 35eaf71f..c062e315 100644 --- a/modules/core/src/main/scala-2.12/utll/package.scala +++ b/modules/core/src/main/scala-2.12/utll/package.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/core/src/main/scala-2.13+/data/ArrPlatform.scala b/modules/core/src/main/scala-2.13+/data/ArrPlatform.scala index abb6edc9..fd23485b 100644 --- a/modules/core/src/main/scala-2.13+/data/ArrPlatform.scala +++ b/modules/core/src/main/scala-2.13+/data/ArrPlatform.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/core/src/main/scala-2.13/utll/package.scala b/modules/core/src/main/scala-2.13/utll/package.scala index 5864fd95..a3eac480 100644 --- a/modules/core/src/main/scala-2.13/utll/package.scala +++ b/modules/core/src/main/scala-2.13/utll/package.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/core/src/main/scala-2/SqlState.scala b/modules/core/src/main/scala-2/SqlState.scala index ef282bf5..dd3f92e6 100644 --- a/modules/core/src/main/scala-2/SqlState.scala +++ b/modules/core/src/main/scala-2/SqlState.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/core/src/main/scala-2/syntax/AllOps.scala b/modules/core/src/main/scala-2/syntax/AllOps.scala index 2fdc0e28..5a7fc5ac 100644 --- a/modules/core/src/main/scala-2/syntax/AllOps.scala +++ b/modules/core/src/main/scala-2/syntax/AllOps.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/core/src/main/scala-2/syntax/StringContextOps.scala b/modules/core/src/main/scala-2/syntax/StringContextOps.scala index da89042f..3cb2133a 100644 --- a/modules/core/src/main/scala-2/syntax/StringContextOps.scala +++ b/modules/core/src/main/scala-2/syntax/StringContextOps.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/core/src/main/scala-2/util/Twiddler.scala b/modules/core/src/main/scala-2/util/Twiddler.scala index fd41cc7f..e5cbc0f1 100644 --- a/modules/core/src/main/scala-2/util/Twiddler.scala +++ b/modules/core/src/main/scala-2/util/Twiddler.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/core/src/main/scala-3/SqlState.scala b/modules/core/src/main/scala-3/SqlState.scala index 3fdf05fc..07b98cef 100644 --- a/modules/core/src/main/scala-3/SqlState.scala +++ b/modules/core/src/main/scala-3/SqlState.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/core/src/main/scala-3/syntax/AllOps.scala b/modules/core/src/main/scala-3/syntax/AllOps.scala index 3cfa035b..ef41cd1d 100644 --- a/modules/core/src/main/scala-3/syntax/AllOps.scala +++ b/modules/core/src/main/scala-3/syntax/AllOps.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/core/src/main/scala-3/syntax/CodecOps.scala b/modules/core/src/main/scala-3/syntax/CodecOps.scala index 1a1458e6..eaf8e18a 100644 --- a/modules/core/src/main/scala-3/syntax/CodecOps.scala +++ b/modules/core/src/main/scala-3/syntax/CodecOps.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/core/src/main/scala-3/syntax/DecoderOps.scala b/modules/core/src/main/scala-3/syntax/DecoderOps.scala index c6886933..2b34c8f9 100644 --- a/modules/core/src/main/scala-3/syntax/DecoderOps.scala +++ b/modules/core/src/main/scala-3/syntax/DecoderOps.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/core/src/main/scala-3/syntax/EncoderOps.scala b/modules/core/src/main/scala-3/syntax/EncoderOps.scala index 38f19f7b..8b7c53a3 100644 --- a/modules/core/src/main/scala-3/syntax/EncoderOps.scala +++ b/modules/core/src/main/scala-3/syntax/EncoderOps.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/core/src/main/scala-3/syntax/StringContextOps.scala b/modules/core/src/main/scala-3/syntax/StringContextOps.scala index 10ddb084..ff8bda98 100644 --- a/modules/core/src/main/scala-3/syntax/StringContextOps.scala +++ b/modules/core/src/main/scala-3/syntax/StringContextOps.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/core/src/main/scala-3/util/Twiddler.scala b/modules/core/src/main/scala-3/util/Twiddler.scala index d0015a9f..44bd5d47 100644 --- a/modules/core/src/main/scala-3/util/Twiddler.scala +++ b/modules/core/src/main/scala-3/util/Twiddler.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/core/src/main/scala/AppliedFragment.scala b/modules/core/src/main/scala/AppliedFragment.scala index 6c3ec99b..081c29d0 100644 --- a/modules/core/src/main/scala/AppliedFragment.scala +++ b/modules/core/src/main/scala/AppliedFragment.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/core/src/main/scala/Channel.scala b/modules/core/src/main/scala/Channel.scala index c9dc17ce..e7e03b61 100644 --- a/modules/core/src/main/scala/Channel.scala +++ b/modules/core/src/main/scala/Channel.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/core/src/main/scala/Codec.scala b/modules/core/src/main/scala/Codec.scala index 56c74e61..795c716d 100644 --- a/modules/core/src/main/scala/Codec.scala +++ b/modules/core/src/main/scala/Codec.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT @@ -41,6 +41,10 @@ trait Codec[A] extends Encoder[A] with Decoder[A] { outer => def imap[B](f: A => B)(g: B => A): Codec[B] = Codec(b => encode(g(b)), decode(_, _).map(f), types) + /** Contramap inputs from, and map decoded results to a new type `B` or an error, yielding a `Codec[B]`. */ + def eimap[B](f: A => Either[String, B])(g: B => A): Codec[B] = + Codec(b => encode(g(b)), emap(f).decode(_, _), types) + /** Adapt this `Codec` from twiddle-list type A to isomorphic case-class type `B`. */ def gimap[B](implicit ev: Twiddler.Aux[B, A]): Codec[B] = imap(ev.from)(ev.to) diff --git a/modules/core/src/main/scala/Command.scala b/modules/core/src/main/scala/Command.scala index ecfe48db..12b998ca 100644 --- a/modules/core/src/main/scala/Command.scala +++ b/modules/core/src/main/scala/Command.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/core/src/main/scala/Cursor.scala b/modules/core/src/main/scala/Cursor.scala index 2c7f8154..876819a7 100644 --- a/modules/core/src/main/scala/Cursor.scala +++ b/modules/core/src/main/scala/Cursor.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/core/src/main/scala/Decoder.scala b/modules/core/src/main/scala/Decoder.scala index 8e0b32d4..77ebfd9d 100644 --- a/modules/core/src/main/scala/Decoder.scala +++ b/modules/core/src/main/scala/Decoder.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/core/src/main/scala/Encoder.scala b/modules/core/src/main/scala/Encoder.scala index 2955a152..c769e499 100644 --- a/modules/core/src/main/scala/Encoder.scala +++ b/modules/core/src/main/scala/Encoder.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/core/src/main/scala/Fragment.scala b/modules/core/src/main/scala/Fragment.scala index 8abe1935..61083342 100644 --- a/modules/core/src/main/scala/Fragment.scala +++ b/modules/core/src/main/scala/Fragment.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/core/src/main/scala/PreparedCommand.scala b/modules/core/src/main/scala/PreparedCommand.scala index 1d17fc51..f8205e33 100644 --- a/modules/core/src/main/scala/PreparedCommand.scala +++ b/modules/core/src/main/scala/PreparedCommand.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/core/src/main/scala/PreparedQuery.scala b/modules/core/src/main/scala/PreparedQuery.scala index d85c5c96..ca422e62 100644 --- a/modules/core/src/main/scala/PreparedQuery.scala +++ b/modules/core/src/main/scala/PreparedQuery.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/core/src/main/scala/Query.scala b/modules/core/src/main/scala/Query.scala index 7a0ff523..32949106 100644 --- a/modules/core/src/main/scala/Query.scala +++ b/modules/core/src/main/scala/Query.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/core/src/main/scala/SSL.scala b/modules/core/src/main/scala/SSL.scala index 880df924..100f05e7 100644 --- a/modules/core/src/main/scala/SSL.scala +++ b/modules/core/src/main/scala/SSL.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/core/src/main/scala/Session.scala b/modules/core/src/main/scala/Session.scala index 5eb18290..fc9cda94 100644 --- a/modules/core/src/main/scala/Session.scala +++ b/modules/core/src/main/scala/Session.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/core/src/main/scala/Statement.scala b/modules/core/src/main/scala/Statement.scala index 5e94d85a..7cd0dfa8 100644 --- a/modules/core/src/main/scala/Statement.scala +++ b/modules/core/src/main/scala/Statement.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/core/src/main/scala/Transaction.scala b/modules/core/src/main/scala/Transaction.scala index f0d552bc..c560e96a 100644 --- a/modules/core/src/main/scala/Transaction.scala +++ b/modules/core/src/main/scala/Transaction.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/core/src/main/scala/Void.scala b/modules/core/src/main/scala/Void.scala index e2cf0e4c..02737280 100644 --- a/modules/core/src/main/scala/Void.scala +++ b/modules/core/src/main/scala/Void.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/core/src/main/scala/codec/AllCodecs.scala b/modules/core/src/main/scala/codec/AllCodecs.scala index e816d112..ab0dd11e 100644 --- a/modules/core/src/main/scala/codec/AllCodecs.scala +++ b/modules/core/src/main/scala/codec/AllCodecs.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/core/src/main/scala/codec/BinaryCodecs.scala b/modules/core/src/main/scala/codec/BinaryCodecs.scala index 15df570a..05561133 100644 --- a/modules/core/src/main/scala/codec/BinaryCodecs.scala +++ b/modules/core/src/main/scala/codec/BinaryCodecs.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/core/src/main/scala/codec/BooleanCodec.scala b/modules/core/src/main/scala/codec/BooleanCodec.scala index d19fd2f5..d90af7ba 100644 --- a/modules/core/src/main/scala/codec/BooleanCodec.scala +++ b/modules/core/src/main/scala/codec/BooleanCodec.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/core/src/main/scala/codec/EnumCodec.scala b/modules/core/src/main/scala/codec/EnumCodec.scala index 16ebb02e..06a48725 100644 --- a/modules/core/src/main/scala/codec/EnumCodec.scala +++ b/modules/core/src/main/scala/codec/EnumCodec.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/core/src/main/scala/codec/NumericCodecs.scala b/modules/core/src/main/scala/codec/NumericCodecs.scala index 4d9d624b..4be4e062 100644 --- a/modules/core/src/main/scala/codec/NumericCodecs.scala +++ b/modules/core/src/main/scala/codec/NumericCodecs.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/core/src/main/scala/codec/TemporalCodecs.scala b/modules/core/src/main/scala/codec/TemporalCodecs.scala index d38be491..1b8b5b5c 100644 --- a/modules/core/src/main/scala/codec/TemporalCodecs.scala +++ b/modules/core/src/main/scala/codec/TemporalCodecs.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/core/src/main/scala/codec/TextCodecs.scala b/modules/core/src/main/scala/codec/TextCodecs.scala index 769a4976..9fc21c37 100644 --- a/modules/core/src/main/scala/codec/TextCodecs.scala +++ b/modules/core/src/main/scala/codec/TextCodecs.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/core/src/main/scala/codec/UuidCodec.scala b/modules/core/src/main/scala/codec/UuidCodec.scala index 0d9d4e51..7e28098e 100644 --- a/modules/core/src/main/scala/codec/UuidCodec.scala +++ b/modules/core/src/main/scala/codec/UuidCodec.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/core/src/main/scala/data/Arr.scala b/modules/core/src/main/scala/data/Arr.scala index 8a83e8fb..1efe1e29 100644 --- a/modules/core/src/main/scala/data/Arr.scala +++ b/modules/core/src/main/scala/data/Arr.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/core/src/main/scala/data/Completion.scala b/modules/core/src/main/scala/data/Completion.scala index 8be37a03..cf46ec66 100644 --- a/modules/core/src/main/scala/data/Completion.scala +++ b/modules/core/src/main/scala/data/Completion.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/core/src/main/scala/data/Identifier.scala b/modules/core/src/main/scala/data/Identifier.scala index 876599fe..06c994af 100644 --- a/modules/core/src/main/scala/data/Identifier.scala +++ b/modules/core/src/main/scala/data/Identifier.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/core/src/main/scala/data/Notification.scala b/modules/core/src/main/scala/data/Notification.scala index 4de41ba2..b0b02f5c 100644 --- a/modules/core/src/main/scala/data/Notification.scala +++ b/modules/core/src/main/scala/data/Notification.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/core/src/main/scala/data/TransactionAccessMode.scala b/modules/core/src/main/scala/data/TransactionAccessMode.scala index 20a19d74..d8636548 100644 --- a/modules/core/src/main/scala/data/TransactionAccessMode.scala +++ b/modules/core/src/main/scala/data/TransactionAccessMode.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/core/src/main/scala/data/TransactionIsolationLevel.scala b/modules/core/src/main/scala/data/TransactionIsolationLevel.scala index 18b3d78a..52de0546 100644 --- a/modules/core/src/main/scala/data/TransactionIsolationLevel.scala +++ b/modules/core/src/main/scala/data/TransactionIsolationLevel.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/core/src/main/scala/data/TransactionStatus.scala b/modules/core/src/main/scala/data/TransactionStatus.scala index 46ef8b6b..d2853d88 100644 --- a/modules/core/src/main/scala/data/TransactionStatus.scala +++ b/modules/core/src/main/scala/data/TransactionStatus.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/core/src/main/scala/data/Type.scala b/modules/core/src/main/scala/data/Type.scala index 2ef25279..3c49c02e 100644 --- a/modules/core/src/main/scala/data/Type.scala +++ b/modules/core/src/main/scala/data/Type.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/core/src/main/scala/data/TypedRowDescription.scala b/modules/core/src/main/scala/data/TypedRowDescription.scala index 47aefb33..f44e6513 100644 --- a/modules/core/src/main/scala/data/TypedRowDescription.scala +++ b/modules/core/src/main/scala/data/TypedRowDescription.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/core/src/main/scala/exception/ColumnAlignmentException.scala b/modules/core/src/main/scala/exception/ColumnAlignmentException.scala index 18124b03..fcafd9e4 100644 --- a/modules/core/src/main/scala/exception/ColumnAlignmentException.scala +++ b/modules/core/src/main/scala/exception/ColumnAlignmentException.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/core/src/main/scala/exception/CopyNotSupportedException.scala b/modules/core/src/main/scala/exception/CopyNotSupportedException.scala index 44175073..37e8f05d 100644 --- a/modules/core/src/main/scala/exception/CopyNotSupportedException.scala +++ b/modules/core/src/main/scala/exception/CopyNotSupportedException.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/core/src/main/scala/exception/DecodeException.scala b/modules/core/src/main/scala/exception/DecodeException.scala index 3f0f4050..04118581 100644 --- a/modules/core/src/main/scala/exception/DecodeException.scala +++ b/modules/core/src/main/scala/exception/DecodeException.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/core/src/main/scala/exception/EmptyStatementException.scala b/modules/core/src/main/scala/exception/EmptyStatementException.scala index d7969337..f077dabb 100644 --- a/modules/core/src/main/scala/exception/EmptyStatementException.scala +++ b/modules/core/src/main/scala/exception/EmptyStatementException.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/core/src/main/scala/exception/EofException.scala b/modules/core/src/main/scala/exception/EofException.scala index 0c08eb4d..f6b94ccc 100644 --- a/modules/core/src/main/scala/exception/EofException.scala +++ b/modules/core/src/main/scala/exception/EofException.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/core/src/main/scala/exception/NoDataException.scala b/modules/core/src/main/scala/exception/NoDataException.scala index 8845a041..53756169 100644 --- a/modules/core/src/main/scala/exception/NoDataException.scala +++ b/modules/core/src/main/scala/exception/NoDataException.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/core/src/main/scala/exception/PostgresErrorException.scala b/modules/core/src/main/scala/exception/PostgresErrorException.scala index dc915f2f..0dcb6ae3 100644 --- a/modules/core/src/main/scala/exception/PostgresErrorException.scala +++ b/modules/core/src/main/scala/exception/PostgresErrorException.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/core/src/main/scala/exception/ProtocolError.scala b/modules/core/src/main/scala/exception/ProtocolError.scala index b66bf0a7..56dcf6ca 100644 --- a/modules/core/src/main/scala/exception/ProtocolError.scala +++ b/modules/core/src/main/scala/exception/ProtocolError.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/core/src/main/scala/exception/SCRAMProtocolException.scala b/modules/core/src/main/scala/exception/SCRAMProtocolException.scala index e68a03f2..0fe7fbf4 100644 --- a/modules/core/src/main/scala/exception/SCRAMProtocolException.scala +++ b/modules/core/src/main/scala/exception/SCRAMProtocolException.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/core/src/main/scala/exception/SkunkException.scala b/modules/core/src/main/scala/exception/SkunkException.scala index bb7aeda5..bcc6fe7a 100644 --- a/modules/core/src/main/scala/exception/SkunkException.scala +++ b/modules/core/src/main/scala/exception/SkunkException.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/core/src/main/scala/exception/StartupException.scala b/modules/core/src/main/scala/exception/StartupException.scala index 5b4212e9..043ba8a8 100644 --- a/modules/core/src/main/scala/exception/StartupException.scala +++ b/modules/core/src/main/scala/exception/StartupException.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/core/src/main/scala/exception/TooManyParametersException.scala b/modules/core/src/main/scala/exception/TooManyParametersException.scala index 02c7bbd6..29fa0d41 100644 --- a/modules/core/src/main/scala/exception/TooManyParametersException.scala +++ b/modules/core/src/main/scala/exception/TooManyParametersException.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/core/src/main/scala/exception/UnexpectedColumnsException.scala b/modules/core/src/main/scala/exception/UnexpectedColumnsException.scala index 1bd792da..4db6e9f3 100644 --- a/modules/core/src/main/scala/exception/UnexpectedColumnsException.scala +++ b/modules/core/src/main/scala/exception/UnexpectedColumnsException.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/core/src/main/scala/exception/UnexpectedDataException.scala b/modules/core/src/main/scala/exception/UnexpectedDataException.scala index 5003c7bb..8648247f 100644 --- a/modules/core/src/main/scala/exception/UnexpectedDataException.scala +++ b/modules/core/src/main/scala/exception/UnexpectedDataException.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/core/src/main/scala/exception/UnknownOidException.scala b/modules/core/src/main/scala/exception/UnknownOidException.scala index 9571c668..8894faac 100644 --- a/modules/core/src/main/scala/exception/UnknownOidException.scala +++ b/modules/core/src/main/scala/exception/UnknownOidException.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/core/src/main/scala/exception/UnknownTypeException.scala b/modules/core/src/main/scala/exception/UnknownTypeException.scala index dd12361b..d5af2c6f 100644 --- a/modules/core/src/main/scala/exception/UnknownTypeException.scala +++ b/modules/core/src/main/scala/exception/UnknownTypeException.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/core/src/main/scala/exception/UnsupportedAuthenticationSchemeException.scala b/modules/core/src/main/scala/exception/UnsupportedAuthenticationSchemeException.scala index 44f55f02..7b0ee7a7 100644 --- a/modules/core/src/main/scala/exception/UnsupportedAuthenticationSchemeException.scala +++ b/modules/core/src/main/scala/exception/UnsupportedAuthenticationSchemeException.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/core/src/main/scala/exception/UnsupportedSASLMechanismsException.scala b/modules/core/src/main/scala/exception/UnsupportedSASLMechanismsException.scala index 5da1cf0f..1ce33601 100644 --- a/modules/core/src/main/scala/exception/UnsupportedSASLMechanismsException.scala +++ b/modules/core/src/main/scala/exception/UnsupportedSASLMechanismsException.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/core/src/main/scala/exception/package.scala b/modules/core/src/main/scala/exception/package.scala index 4f1d66a6..dd6d2a43 100644 --- a/modules/core/src/main/scala/exception/package.scala +++ b/modules/core/src/main/scala/exception/package.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/core/src/main/scala/net/AbstractMessageSocket.scala b/modules/core/src/main/scala/net/AbstractMessageSocket.scala index 91df1396..f0638186 100644 --- a/modules/core/src/main/scala/net/AbstractMessageSocket.scala +++ b/modules/core/src/main/scala/net/AbstractMessageSocket.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/core/src/main/scala/net/BitVectorSocket.scala b/modules/core/src/main/scala/net/BitVectorSocket.scala index 894cdffb..08c7a878 100644 --- a/modules/core/src/main/scala/net/BitVectorSocket.scala +++ b/modules/core/src/main/scala/net/BitVectorSocket.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/core/src/main/scala/net/BufferedMessageSocket.scala b/modules/core/src/main/scala/net/BufferedMessageSocket.scala index c781c0b2..13a64224 100644 --- a/modules/core/src/main/scala/net/BufferedMessageSocket.scala +++ b/modules/core/src/main/scala/net/BufferedMessageSocket.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT @@ -110,7 +110,7 @@ object BufferedMessageSocket { // These are handled here and are never seen by the higher-level API. case ParameterStatus(k, v) => Stream.exec(paSig.update(_ + (k -> v))) - case NotificationResponse(n) => Stream.exec(noTop.publish1(n)) + case NotificationResponse(n) => Stream.exec(noTop.publish1(n).void) // TODO -- what if it's closed? case NoticeResponse(_) => Stream.empty // TODO -- we're throwing these away! case m @ BackendKeyData(_, _) => Stream.exec(bkDef.complete(m).void) diff --git a/modules/core/src/main/scala/net/MessageSocket.scala b/modules/core/src/main/scala/net/MessageSocket.scala index 795e016d..8891868c 100644 --- a/modules/core/src/main/scala/net/MessageSocket.scala +++ b/modules/core/src/main/scala/net/MessageSocket.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/core/src/main/scala/net/Protocol.scala b/modules/core/src/main/scala/net/Protocol.scala index ede0aac7..4e0266a4 100644 --- a/modules/core/src/main/scala/net/Protocol.scala +++ b/modules/core/src/main/scala/net/Protocol.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/core/src/main/scala/net/SSLNegotiation.scala b/modules/core/src/main/scala/net/SSLNegotiation.scala index a65655c9..de1a586c 100644 --- a/modules/core/src/main/scala/net/SSLNegotiation.scala +++ b/modules/core/src/main/scala/net/SSLNegotiation.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/core/src/main/scala/net/message/AuthenticationCleartextPassword.scala b/modules/core/src/main/scala/net/message/AuthenticationCleartextPassword.scala index 6ab965ef..82d4843d 100644 --- a/modules/core/src/main/scala/net/message/AuthenticationCleartextPassword.scala +++ b/modules/core/src/main/scala/net/message/AuthenticationCleartextPassword.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/core/src/main/scala/net/message/AuthenticationGSS.scala b/modules/core/src/main/scala/net/message/AuthenticationGSS.scala index 83ad41ed..c15ab9c6 100644 --- a/modules/core/src/main/scala/net/message/AuthenticationGSS.scala +++ b/modules/core/src/main/scala/net/message/AuthenticationGSS.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/core/src/main/scala/net/message/AuthenticationGSSContinue.scala b/modules/core/src/main/scala/net/message/AuthenticationGSSContinue.scala index ec5420ec..438bfc08 100644 --- a/modules/core/src/main/scala/net/message/AuthenticationGSSContinue.scala +++ b/modules/core/src/main/scala/net/message/AuthenticationGSSContinue.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/core/src/main/scala/net/message/AuthenticationKerberosV5.scala b/modules/core/src/main/scala/net/message/AuthenticationKerberosV5.scala index 6595b516..aa6094b7 100644 --- a/modules/core/src/main/scala/net/message/AuthenticationKerberosV5.scala +++ b/modules/core/src/main/scala/net/message/AuthenticationKerberosV5.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/core/src/main/scala/net/message/AuthenticationMD5Password.scala b/modules/core/src/main/scala/net/message/AuthenticationMD5Password.scala index 730da3bc..6c27e1b8 100644 --- a/modules/core/src/main/scala/net/message/AuthenticationMD5Password.scala +++ b/modules/core/src/main/scala/net/message/AuthenticationMD5Password.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/core/src/main/scala/net/message/AuthenticationOk.scala b/modules/core/src/main/scala/net/message/AuthenticationOk.scala index a3f47baa..70905270 100644 --- a/modules/core/src/main/scala/net/message/AuthenticationOk.scala +++ b/modules/core/src/main/scala/net/message/AuthenticationOk.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/core/src/main/scala/net/message/AuthenticationRequest.scala b/modules/core/src/main/scala/net/message/AuthenticationRequest.scala index 96fd4bcf..c9304751 100644 --- a/modules/core/src/main/scala/net/message/AuthenticationRequest.scala +++ b/modules/core/src/main/scala/net/message/AuthenticationRequest.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/core/src/main/scala/net/message/AuthenticationSASL.scala b/modules/core/src/main/scala/net/message/AuthenticationSASL.scala index c528e271..4b285d25 100644 --- a/modules/core/src/main/scala/net/message/AuthenticationSASL.scala +++ b/modules/core/src/main/scala/net/message/AuthenticationSASL.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/core/src/main/scala/net/message/AuthenticationSASLContinue.scala b/modules/core/src/main/scala/net/message/AuthenticationSASLContinue.scala index 517ed535..aef897a1 100644 --- a/modules/core/src/main/scala/net/message/AuthenticationSASLContinue.scala +++ b/modules/core/src/main/scala/net/message/AuthenticationSASLContinue.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/core/src/main/scala/net/message/AuthenticationSASLFinal.scala b/modules/core/src/main/scala/net/message/AuthenticationSASLFinal.scala index c4b8174c..b79e6064 100644 --- a/modules/core/src/main/scala/net/message/AuthenticationSASLFinal.scala +++ b/modules/core/src/main/scala/net/message/AuthenticationSASLFinal.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/core/src/main/scala/net/message/AuthenticationSCMCredential.scala b/modules/core/src/main/scala/net/message/AuthenticationSCMCredential.scala index b5b4a861..2eacfab9 100644 --- a/modules/core/src/main/scala/net/message/AuthenticationSCMCredential.scala +++ b/modules/core/src/main/scala/net/message/AuthenticationSCMCredential.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/core/src/main/scala/net/message/AuthenticationSSPI.scala b/modules/core/src/main/scala/net/message/AuthenticationSSPI.scala index 427e4529..8289c8f4 100644 --- a/modules/core/src/main/scala/net/message/AuthenticationSSPI.scala +++ b/modules/core/src/main/scala/net/message/AuthenticationSSPI.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/core/src/main/scala/net/message/BackendKeyData.scala b/modules/core/src/main/scala/net/message/BackendKeyData.scala index 9428b527..a77e5a53 100644 --- a/modules/core/src/main/scala/net/message/BackendKeyData.scala +++ b/modules/core/src/main/scala/net/message/BackendKeyData.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/core/src/main/scala/net/message/BackendMessage.scala b/modules/core/src/main/scala/net/message/BackendMessage.scala index 6413c6b4..3c482761 100644 --- a/modules/core/src/main/scala/net/message/BackendMessage.scala +++ b/modules/core/src/main/scala/net/message/BackendMessage.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/core/src/main/scala/net/message/Bind.scala b/modules/core/src/main/scala/net/message/Bind.scala index 0d521183..2231da3c 100644 --- a/modules/core/src/main/scala/net/message/Bind.scala +++ b/modules/core/src/main/scala/net/message/Bind.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/core/src/main/scala/net/message/BindComplete.scala b/modules/core/src/main/scala/net/message/BindComplete.scala index 811c886a..de5fd27b 100644 --- a/modules/core/src/main/scala/net/message/BindComplete.scala +++ b/modules/core/src/main/scala/net/message/BindComplete.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/core/src/main/scala/net/message/Close.scala b/modules/core/src/main/scala/net/message/Close.scala index ab86ea73..87ee482f 100644 --- a/modules/core/src/main/scala/net/message/Close.scala +++ b/modules/core/src/main/scala/net/message/Close.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/core/src/main/scala/net/message/CloseComplete.scala b/modules/core/src/main/scala/net/message/CloseComplete.scala index 3cc96374..f18e5e04 100644 --- a/modules/core/src/main/scala/net/message/CloseComplete.scala +++ b/modules/core/src/main/scala/net/message/CloseComplete.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/core/src/main/scala/net/message/CommandComplete.scala b/modules/core/src/main/scala/net/message/CommandComplete.scala index 6ec008a1..c00205f2 100644 --- a/modules/core/src/main/scala/net/message/CommandComplete.scala +++ b/modules/core/src/main/scala/net/message/CommandComplete.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/core/src/main/scala/net/message/CopyData.scala b/modules/core/src/main/scala/net/message/CopyData.scala index 4733df2c..d6e4cd7d 100644 --- a/modules/core/src/main/scala/net/message/CopyData.scala +++ b/modules/core/src/main/scala/net/message/CopyData.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/core/src/main/scala/net/message/CopyDone.scala b/modules/core/src/main/scala/net/message/CopyDone.scala index 0c6c793b..2c0d6010 100644 --- a/modules/core/src/main/scala/net/message/CopyDone.scala +++ b/modules/core/src/main/scala/net/message/CopyDone.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/core/src/main/scala/net/message/CopyFail.scala b/modules/core/src/main/scala/net/message/CopyFail.scala index b8989c78..c8ab4664 100644 --- a/modules/core/src/main/scala/net/message/CopyFail.scala +++ b/modules/core/src/main/scala/net/message/CopyFail.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/core/src/main/scala/net/message/CopyInResponse.scala b/modules/core/src/main/scala/net/message/CopyInResponse.scala index e838542c..ba5cff5f 100644 --- a/modules/core/src/main/scala/net/message/CopyInResponse.scala +++ b/modules/core/src/main/scala/net/message/CopyInResponse.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/core/src/main/scala/net/message/CopyOutResponse.scala b/modules/core/src/main/scala/net/message/CopyOutResponse.scala index e879ed50..20d647d1 100644 --- a/modules/core/src/main/scala/net/message/CopyOutResponse.scala +++ b/modules/core/src/main/scala/net/message/CopyOutResponse.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/core/src/main/scala/net/message/Describe.scala b/modules/core/src/main/scala/net/message/Describe.scala index 7d227978..34cd7f2b 100644 --- a/modules/core/src/main/scala/net/message/Describe.scala +++ b/modules/core/src/main/scala/net/message/Describe.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/core/src/main/scala/net/message/EmptyQueryResponse.scala b/modules/core/src/main/scala/net/message/EmptyQueryResponse.scala index 15378a1f..90fa9a5f 100644 --- a/modules/core/src/main/scala/net/message/EmptyQueryResponse.scala +++ b/modules/core/src/main/scala/net/message/EmptyQueryResponse.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/core/src/main/scala/net/message/ErrorResponse.scala b/modules/core/src/main/scala/net/message/ErrorResponse.scala index 527c750e..842e8cf1 100644 --- a/modules/core/src/main/scala/net/message/ErrorResponse.scala +++ b/modules/core/src/main/scala/net/message/ErrorResponse.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/core/src/main/scala/net/message/Execute.scala b/modules/core/src/main/scala/net/message/Execute.scala index add26b87..59b402be 100644 --- a/modules/core/src/main/scala/net/message/Execute.scala +++ b/modules/core/src/main/scala/net/message/Execute.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT @@ -17,7 +17,7 @@ object Execute { val encoder: Encoder[Execute] = (utf8z.asEncoder, int32.asEncoder).contramapN[Execute] { p => - p.portal ~ p.maxRows + (p.portal, p.maxRows) } } \ No newline at end of file diff --git a/modules/core/src/main/scala/net/message/Flush.scala b/modules/core/src/main/scala/net/message/Flush.scala index 5033e718..673e2be0 100644 --- a/modules/core/src/main/scala/net/message/Flush.scala +++ b/modules/core/src/main/scala/net/message/Flush.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/core/src/main/scala/net/message/FrontendMessage.scala b/modules/core/src/main/scala/net/message/FrontendMessage.scala index a70a7192..c2abc43a 100644 --- a/modules/core/src/main/scala/net/message/FrontendMessage.scala +++ b/modules/core/src/main/scala/net/message/FrontendMessage.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/core/src/main/scala/net/message/NoData.scala b/modules/core/src/main/scala/net/message/NoData.scala index f1862af3..5546e401 100644 --- a/modules/core/src/main/scala/net/message/NoData.scala +++ b/modules/core/src/main/scala/net/message/NoData.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/core/src/main/scala/net/message/NoticeResponse.scala b/modules/core/src/main/scala/net/message/NoticeResponse.scala index bb460511..7d6c0a9e 100644 --- a/modules/core/src/main/scala/net/message/NoticeResponse.scala +++ b/modules/core/src/main/scala/net/message/NoticeResponse.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/core/src/main/scala/net/message/NotificationResponse.scala b/modules/core/src/main/scala/net/message/NotificationResponse.scala index 0f0d8745..f882f7b5 100644 --- a/modules/core/src/main/scala/net/message/NotificationResponse.scala +++ b/modules/core/src/main/scala/net/message/NotificationResponse.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/core/src/main/scala/net/message/ParameterDescription.scala b/modules/core/src/main/scala/net/message/ParameterDescription.scala index dc187679..3256b560 100644 --- a/modules/core/src/main/scala/net/message/ParameterDescription.scala +++ b/modules/core/src/main/scala/net/message/ParameterDescription.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/core/src/main/scala/net/message/ParameterStatus.scala b/modules/core/src/main/scala/net/message/ParameterStatus.scala index fd518f14..7c6aa6bb 100644 --- a/modules/core/src/main/scala/net/message/ParameterStatus.scala +++ b/modules/core/src/main/scala/net/message/ParameterStatus.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/core/src/main/scala/net/message/Parse.scala b/modules/core/src/main/scala/net/message/Parse.scala index b454a89d..50f8737a 100644 --- a/modules/core/src/main/scala/net/message/Parse.scala +++ b/modules/core/src/main/scala/net/message/Parse.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/core/src/main/scala/net/message/ParseComplete.scala b/modules/core/src/main/scala/net/message/ParseComplete.scala index 8c6adb8f..c2334fe4 100644 --- a/modules/core/src/main/scala/net/message/ParseComplete.scala +++ b/modules/core/src/main/scala/net/message/ParseComplete.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/core/src/main/scala/net/message/PasswordMessage.scala b/modules/core/src/main/scala/net/message/PasswordMessage.scala index d4d0600b..772f3358 100644 --- a/modules/core/src/main/scala/net/message/PasswordMessage.scala +++ b/modules/core/src/main/scala/net/message/PasswordMessage.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/core/src/main/scala/net/message/PortalSuspended.scala b/modules/core/src/main/scala/net/message/PortalSuspended.scala index 1564db6b..f6de3f59 100644 --- a/modules/core/src/main/scala/net/message/PortalSuspended.scala +++ b/modules/core/src/main/scala/net/message/PortalSuspended.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/core/src/main/scala/net/message/Query.scala b/modules/core/src/main/scala/net/message/Query.scala index 61fed582..a105310b 100644 --- a/modules/core/src/main/scala/net/message/Query.scala +++ b/modules/core/src/main/scala/net/message/Query.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/core/src/main/scala/net/message/ReadyForQuery.scala b/modules/core/src/main/scala/net/message/ReadyForQuery.scala index 9edec9f3..92ab6996 100644 --- a/modules/core/src/main/scala/net/message/ReadyForQuery.scala +++ b/modules/core/src/main/scala/net/message/ReadyForQuery.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/core/src/main/scala/net/message/RowData.scala b/modules/core/src/main/scala/net/message/RowData.scala index 19052f24..4512ca74 100644 --- a/modules/core/src/main/scala/net/message/RowData.scala +++ b/modules/core/src/main/scala/net/message/RowData.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/core/src/main/scala/net/message/RowDescription.scala b/modules/core/src/main/scala/net/message/RowDescription.scala index 3126bbb8..9f4236f5 100644 --- a/modules/core/src/main/scala/net/message/RowDescription.scala +++ b/modules/core/src/main/scala/net/message/RowDescription.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/core/src/main/scala/net/message/SASLInitialResponse.scala b/modules/core/src/main/scala/net/message/SASLInitialResponse.scala index 24900daa..76b1e58a 100644 --- a/modules/core/src/main/scala/net/message/SASLInitialResponse.scala +++ b/modules/core/src/main/scala/net/message/SASLInitialResponse.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/core/src/main/scala/net/message/SASLResponse.scala b/modules/core/src/main/scala/net/message/SASLResponse.scala index b7266d01..05adb7c3 100644 --- a/modules/core/src/main/scala/net/message/SASLResponse.scala +++ b/modules/core/src/main/scala/net/message/SASLResponse.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/core/src/main/scala/net/message/StartupMessage.scala b/modules/core/src/main/scala/net/message/StartupMessage.scala index 40153df5..ae9a2af7 100644 --- a/modules/core/src/main/scala/net/message/StartupMessage.scala +++ b/modules/core/src/main/scala/net/message/StartupMessage.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/core/src/main/scala/net/message/Sync.scala b/modules/core/src/main/scala/net/message/Sync.scala index e5fdb290..cbccb687 100644 --- a/modules/core/src/main/scala/net/message/Sync.scala +++ b/modules/core/src/main/scala/net/message/Sync.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/core/src/main/scala/net/message/Terminate.scala b/modules/core/src/main/scala/net/message/Terminate.scala index 6b915617..2239426e 100644 --- a/modules/core/src/main/scala/net/message/Terminate.scala +++ b/modules/core/src/main/scala/net/message/Terminate.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/core/src/main/scala/net/message/UnknownMessage.scala b/modules/core/src/main/scala/net/message/UnknownMessage.scala index d640d781..13c11956 100644 --- a/modules/core/src/main/scala/net/message/UnknownMessage.scala +++ b/modules/core/src/main/scala/net/message/UnknownMessage.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/core/src/main/scala/net/message/package.scala b/modules/core/src/main/scala/net/message/package.scala index 86fa6fd0..c41c1de4 100644 --- a/modules/core/src/main/scala/net/message/package.scala +++ b/modules/core/src/main/scala/net/message/package.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/core/src/main/scala/net/package.scala b/modules/core/src/main/scala/net/package.scala index 5261dcfb..9a0eddf5 100644 --- a/modules/core/src/main/scala/net/package.scala +++ b/modules/core/src/main/scala/net/package.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/core/src/main/scala/net/protocol/Bind.scala b/modules/core/src/main/scala/net/protocol/Bind.scala index 5587fb01..ad51a0c4 100644 --- a/modules/core/src/main/scala/net/protocol/Bind.scala +++ b/modules/core/src/main/scala/net/protocol/Bind.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT @@ -40,11 +40,12 @@ object Bind { exchange("bind") { for { pn <- nextName("portal").map(PortalId(_)) + ea = statement.statement.encoder.encode(args) // encoded args _ <- Trace[F].put( - "arguments" -> args.toString, + "arguments" -> ea.map(_.orNull).mkString(","), "portal-id" -> pn.value ) - _ <- send(BindMessage(pn.value, statement.id.value, statement.statement.encoder.encode(args))) + _ <- send(BindMessage(pn.value, statement.id.value, ea)) _ <- send(Flush) _ <- flatExpect { case BindComplete => ().pure[F] @@ -58,7 +59,7 @@ object Bind { sqlOrigin = Some(statement.statement.origin), info = info, history = hi, - arguments = statement.statement.encoder.types.zip(statement.statement.encoder.encode(args)), + arguments = statement.statement.encoder.types.zip(ea), argumentsOrigin = Some(argsOrigin) ) } yield a diff --git a/modules/core/src/main/scala/net/protocol/Close.scala b/modules/core/src/main/scala/net/protocol/Close.scala index 7a6ec519..573f3758 100644 --- a/modules/core/src/main/scala/net/protocol/Close.scala +++ b/modules/core/src/main/scala/net/protocol/Close.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/core/src/main/scala/net/protocol/Describe.scala b/modules/core/src/main/scala/net/protocol/Describe.scala index 0ac4c8a0..b843b505 100644 --- a/modules/core/src/main/scala/net/protocol/Describe.scala +++ b/modules/core/src/main/scala/net/protocol/Describe.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/core/src/main/scala/net/protocol/Exchange.scala b/modules/core/src/main/scala/net/protocol/Exchange.scala index 917e8884..a02d86d0 100644 --- a/modules/core/src/main/scala/net/protocol/Exchange.scala +++ b/modules/core/src/main/scala/net/protocol/Exchange.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/core/src/main/scala/net/protocol/Execute.scala b/modules/core/src/main/scala/net/protocol/Execute.scala index 8efd2c0d..5aec6726 100644 --- a/modules/core/src/main/scala/net/protocol/Execute.scala +++ b/modules/core/src/main/scala/net/protocol/Execute.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/core/src/main/scala/net/protocol/Parse.scala b/modules/core/src/main/scala/net/protocol/Parse.scala index 301ee926..7b60c675 100644 --- a/modules/core/src/main/scala/net/protocol/Parse.scala +++ b/modules/core/src/main/scala/net/protocol/Parse.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/core/src/main/scala/net/protocol/Prepare.scala b/modules/core/src/main/scala/net/protocol/Prepare.scala index 4faf28c1..990dc98e 100644 --- a/modules/core/src/main/scala/net/protocol/Prepare.scala +++ b/modules/core/src/main/scala/net/protocol/Prepare.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/core/src/main/scala/net/protocol/Query.scala b/modules/core/src/main/scala/net/protocol/Query.scala index 77e21591..31bde347 100644 --- a/modules/core/src/main/scala/net/protocol/Query.scala +++ b/modules/core/src/main/scala/net/protocol/Query.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT @@ -33,11 +33,11 @@ object Query { def finishCopyOut: F[Unit] = receive.iterateUntil { case CommandComplete(_) => true - case _ => false + case _ => false } .void def finishUp(stmt: Statement[_], multipleStatements: Boolean = false): F[Unit] = - receive.flatMap { + flatExpect { case ReadyForQuery(_) => new SkunkException( @@ -64,7 +64,7 @@ object Query { // If there is an error we just want to receive and discard everything until we have seen // CommandComplete followed by ReadyForQuery. def discard(stmt: Statement[_]): F[Unit] = - receive.flatMap { + flatExpect { case RowData(_) => discard(stmt) case CommandComplete(_) => finishUp(stmt) } diff --git a/modules/core/src/main/scala/net/protocol/Startup.scala b/modules/core/src/main/scala/net/protocol/Startup.scala index 2f748267..fcbd36c0 100644 --- a/modules/core/src/main/scala/net/protocol/Startup.scala +++ b/modules/core/src/main/scala/net/protocol/Startup.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/core/src/main/scala/net/protocol/Unroll.scala b/modules/core/src/main/scala/net/protocol/Unroll.scala index f50a2493..e6fa6f75 100644 --- a/modules/core/src/main/scala/net/protocol/Unroll.scala +++ b/modules/core/src/main/scala/net/protocol/Unroll.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT @@ -71,7 +71,7 @@ private[protocol] class Unroll[F[_]: MessageSocket: Trace]( // N.B. we process all waiting messages to ensure the protocol isn't messed up by decoding // failures later on. def accumulate(accum: List[List[Option[String]]]): F[List[List[Option[String]]] ~ Boolean] = - receive.flatMap { + flatExpect { case rd @ RowData(_) => accumulate(rd.fields :: accum) case CommandComplete(_) => (accum.reverse ~ false).pure[F] case PortalSuspended => (accum.reverse ~ true).pure[F] diff --git a/modules/core/src/main/scala/net/protocol/package.scala b/modules/core/src/main/scala/net/protocol/package.scala index d17a567b..e44dd1cb 100644 --- a/modules/core/src/main/scala/net/protocol/package.scala +++ b/modules/core/src/main/scala/net/protocol/package.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/core/src/main/scala/package.scala b/modules/core/src/main/scala/package.scala index 61376684..e9b95457 100644 --- a/modules/core/src/main/scala/package.scala +++ b/modules/core/src/main/scala/package.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/core/src/main/scala/syntax/IdOps.scala b/modules/core/src/main/scala/syntax/IdOps.scala index 285f0f2f..a21840ad 100644 --- a/modules/core/src/main/scala/syntax/IdOps.scala +++ b/modules/core/src/main/scala/syntax/IdOps.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/core/src/main/scala/syntax/ListOps.scala b/modules/core/src/main/scala/syntax/ListOps.scala index ccf7043f..2597464c 100644 --- a/modules/core/src/main/scala/syntax/ListOps.scala +++ b/modules/core/src/main/scala/syntax/ListOps.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/core/src/main/scala/util/Namer.scala b/modules/core/src/main/scala/util/Namer.scala index 22dae976..5c0c6450 100644 --- a/modules/core/src/main/scala/util/Namer.scala +++ b/modules/core/src/main/scala/util/Namer.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/core/src/main/scala/util/Origin.scala b/modules/core/src/main/scala/util/Origin.scala index 232b2049..b01f9dc0 100644 --- a/modules/core/src/main/scala/util/Origin.scala +++ b/modules/core/src/main/scala/util/Origin.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/core/src/main/scala/util/Pool.scala b/modules/core/src/main/scala/util/Pool.scala index 7d67ce23..fddeb333 100644 --- a/modules/core/src/main/scala/util/Pool.scala +++ b/modules/core/src/main/scala/util/Pool.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/core/src/main/scala/util/Pretty.scala b/modules/core/src/main/scala/util/Pretty.scala index 4ae3540e..4d6c31dd 100644 --- a/modules/core/src/main/scala/util/Pretty.scala +++ b/modules/core/src/main/scala/util/Pretty.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/core/src/main/scala/util/Recycler.scala b/modules/core/src/main/scala/util/Recycler.scala index d78d58c2..edec0884 100644 --- a/modules/core/src/main/scala/util/Recycler.scala +++ b/modules/core/src/main/scala/util/Recycler.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/core/src/main/scala/util/Text.scala b/modules/core/src/main/scala/util/Text.scala index dfe387ed..5c1f40b4 100644 --- a/modules/core/src/main/scala/util/Text.scala +++ b/modules/core/src/main/scala/util/Text.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/core/src/main/scala/util/Typer.scala b/modules/core/src/main/scala/util/Typer.scala index 81603a46..e62d56b5 100644 --- a/modules/core/src/main/scala/util/Typer.scala +++ b/modules/core/src/main/scala/util/Typer.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/docs/src/main/paradox/tutorial/Command.md b/modules/docs/src/main/paradox/tutorial/Command.md index cb6044f4..fca0bfcb 100644 --- a/modules/docs/src/main/paradox/tutorial/Command.md +++ b/modules/docs/src/main/paradox/tutorial/Command.md @@ -268,7 +268,7 @@ object CommandExample extends IOApp { def run(args: List[String]): IO[ExitCode] = session.flatTap(withPetsTable).map(PetService.fromSession(_)).use { s => for { - _ <- s.insert(Pet("Bob", 12)) + _ <- s.insert(bob) _ <- s.insert(beagles) ps <- s.selectAll _ <- ps.traverse(p => IO.println(p)) diff --git a/modules/example/src/main/scala-2/Http4s.scala b/modules/example/src/main/scala-2/Http4s.scala index e023128d..7ebea4aa 100644 --- a/modules/example/src/main/scala-2/Http4s.scala +++ b/modules/example/src/main/scala-2/Http4s.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/example/src/main/scala-2/NatchezHttp4sModule.scala b/modules/example/src/main/scala-2/NatchezHttp4sModule.scala index f746cffd..057d6e58 100644 --- a/modules/example/src/main/scala-2/NatchezHttp4sModule.scala +++ b/modules/example/src/main/scala-2/NatchezHttp4sModule.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/example/src/main/scala/AppliedFragments.scala b/modules/example/src/main/scala/AppliedFragments.scala index 6b22d7a0..9d2e012d 100644 --- a/modules/example/src/main/scala/AppliedFragments.scala +++ b/modules/example/src/main/scala/AppliedFragments.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/example/src/main/scala/Channel.scala b/modules/example/src/main/scala/Channel.scala index 59432346..31740c7a 100644 --- a/modules/example/src/main/scala/Channel.scala +++ b/modules/example/src/main/scala/Channel.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/example/src/main/scala/Error.scala b/modules/example/src/main/scala/Error.scala index 525a5df4..53b65eac 100644 --- a/modules/example/src/main/scala/Error.scala +++ b/modules/example/src/main/scala/Error.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/example/src/main/scala/Join.scala b/modules/example/src/main/scala/Join.scala index 80899386..b8b530ba 100644 --- a/modules/example/src/main/scala/Join.scala +++ b/modules/example/src/main/scala/Join.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/example/src/main/scala/Main.scala b/modules/example/src/main/scala/Main.scala index fc94f5e7..1b14fd6d 100644 --- a/modules/example/src/main/scala/Main.scala +++ b/modules/example/src/main/scala/Main.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT @@ -24,8 +24,8 @@ object Main extends IOApp { def putStrLn(a: Any): IO[Unit] = IO(println(a)) - def anyLinesStdOut[F[_]: Sync]: Pipe[F, Any, Unit] = - _.map(_.toString).showLinesStdOut + def anyLinesStdOut[F[_]: std.Console]: Pipe[F, Any, Unit] = + _.map(_.toString).printlns val fra0 = sql"true" @@ -52,7 +52,7 @@ object Main extends IOApp { def clientEncodingChanged(enc: String): IO[Unit] = putStrLn(s">>>> CLIENT ENCODING IS NOW: $enc") - def hmm[F[_]: Concurrent: Sync](ps: PreparedQuery[F, Int ~ String, _]): F[Unit] = + def hmm[F[_]: Concurrent: std.Console](ps: PreparedQuery[F, Int ~ String, _]): F[Unit] = (ps.stream(100000 ~ "%", 4).take(25) either ps.stream(10000 ~ "%", 4)) .through(anyLinesStdOut) .compile diff --git a/modules/example/src/main/scala/Math1.scala b/modules/example/src/main/scala/Math1.scala index 0ff456eb..d14d79ab 100644 --- a/modules/example/src/main/scala/Math1.scala +++ b/modules/example/src/main/scala/Math1.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/example/src/main/scala/Math2.scala b/modules/example/src/main/scala/Math2.scala index a28c8906..88e5fca9 100644 --- a/modules/example/src/main/scala/Math2.scala +++ b/modules/example/src/main/scala/Math2.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/example/src/main/scala/Minimal1.scala b/modules/example/src/main/scala/Minimal1.scala index 605117f0..ce298de1 100644 --- a/modules/example/src/main/scala/Minimal1.scala +++ b/modules/example/src/main/scala/Minimal1.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/example/src/main/scala/Minimal2.scala b/modules/example/src/main/scala/Minimal2.scala index e046591a..75f66440 100644 --- a/modules/example/src/main/scala/Minimal2.scala +++ b/modules/example/src/main/scala/Minimal2.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/example/src/main/scala/Minimal3.scala b/modules/example/src/main/scala/Minimal3.scala index 3afba20f..f015334d 100644 --- a/modules/example/src/main/scala/Minimal3.scala +++ b/modules/example/src/main/scala/Minimal3.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/example/src/main/scala/Transaction.scala b/modules/example/src/main/scala/Transaction.scala index 34fec548..b243b41e 100644 --- a/modules/example/src/main/scala/Transaction.scala +++ b/modules/example/src/main/scala/Transaction.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/example/src/main/scala/Values.scala b/modules/example/src/main/scala/Values.scala index eb1ac008..c565368b 100644 --- a/modules/example/src/main/scala/Values.scala +++ b/modules/example/src/main/scala/Values.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/refined/src/main/scala/codec/NumericCodecs.scala b/modules/refined/src/main/scala/codec/NumericCodecs.scala index aff3617f..92eb9497 100644 --- a/modules/refined/src/main/scala/codec/NumericCodecs.scala +++ b/modules/refined/src/main/scala/codec/NumericCodecs.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/tests/src/main/scala/ffstest/FFramework.scala b/modules/tests/src/main/scala/ffstest/FFramework.scala index f959a742..dfe80bd2 100644 --- a/modules/tests/src/main/scala/ffstest/FFramework.scala +++ b/modules/tests/src/main/scala/ffstest/FFramework.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/tests/src/test/scala-2/codec/EnumCodecTest.scala b/modules/tests/src/test/scala-2/codec/EnumCodecTest.scala index ab88f404..735dca48 100644 --- a/modules/tests/src/test/scala-2/codec/EnumCodecTest.scala +++ b/modules/tests/src/test/scala-2/codec/EnumCodecTest.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/tests/src/test/scala-2/codec/JsonCodecTest.scala b/modules/tests/src/test/scala-2/codec/JsonCodecTest.scala index 9088e769..c739ee4d 100644 --- a/modules/tests/src/test/scala-2/codec/JsonCodecTest.scala +++ b/modules/tests/src/test/scala-2/codec/JsonCodecTest.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/tests/src/test/scala-2/codec/TemporalCodecTest.scala b/modules/tests/src/test/scala-2/codec/TemporalCodecTest.scala index 5ac16d64..d4222fef 100644 --- a/modules/tests/src/test/scala-2/codec/TemporalCodecTest.scala +++ b/modules/tests/src/test/scala-2/codec/TemporalCodecTest.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/tests/src/test/scala/AppliedFragmentTest.scala b/modules/tests/src/test/scala/AppliedFragmentTest.scala index 857de263..ba253cdf 100644 --- a/modules/tests/src/test/scala/AppliedFragmentTest.scala +++ b/modules/tests/src/test/scala/AppliedFragmentTest.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/tests/src/test/scala/ChannelTest.scala b/modules/tests/src/test/scala/ChannelTest.scala index 0d099f67..aabe3df8 100644 --- a/modules/tests/src/test/scala/ChannelTest.scala +++ b/modules/tests/src/test/scala/ChannelTest.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/tests/src/test/scala/CommandTest.scala b/modules/tests/src/test/scala/CommandTest.scala index 46ea470a..dfd47213 100644 --- a/modules/tests/src/test/scala/CommandTest.scala +++ b/modules/tests/src/test/scala/CommandTest.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/tests/src/test/scala/CompletionTest.scala b/modules/tests/src/test/scala/CompletionTest.scala index 7d26da55..feff032b 100644 --- a/modules/tests/src/test/scala/CompletionTest.scala +++ b/modules/tests/src/test/scala/CompletionTest.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/tests/src/test/scala/CopyInTest.scala b/modules/tests/src/test/scala/CopyInTest.scala index ee8aaa6c..e7779ff9 100644 --- a/modules/tests/src/test/scala/CopyInTest.scala +++ b/modules/tests/src/test/scala/CopyInTest.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/tests/src/test/scala/CopyOutTest.scala b/modules/tests/src/test/scala/CopyOutTest.scala index db67134c..a91f8078 100644 --- a/modules/tests/src/test/scala/CopyOutTest.scala +++ b/modules/tests/src/test/scala/CopyOutTest.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/tests/src/test/scala/CursorTest.scala b/modules/tests/src/test/scala/CursorTest.scala index 6b8c18b2..70c89871 100644 --- a/modules/tests/src/test/scala/CursorTest.scala +++ b/modules/tests/src/test/scala/CursorTest.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/tests/src/test/scala/DisconnectTest.scala b/modules/tests/src/test/scala/DisconnectTest.scala index b9244af7..7b082aac 100644 --- a/modules/tests/src/test/scala/DisconnectTest.scala +++ b/modules/tests/src/test/scala/DisconnectTest.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/tests/src/test/scala/EmptyStatementTest.scala b/modules/tests/src/test/scala/EmptyStatementTest.scala index 9df6c70d..09f9d3ca 100644 --- a/modules/tests/src/test/scala/EmptyStatementTest.scala +++ b/modules/tests/src/test/scala/EmptyStatementTest.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/tests/src/test/scala/ErrorResponseTest.scala b/modules/tests/src/test/scala/ErrorResponseTest.scala index 77a201a0..7833e9ce 100644 --- a/modules/tests/src/test/scala/ErrorResponseTest.scala +++ b/modules/tests/src/test/scala/ErrorResponseTest.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/tests/src/test/scala/ExtendedQueryErrorTest.scala b/modules/tests/src/test/scala/ExtendedQueryErrorTest.scala index c2791408..a343142c 100644 --- a/modules/tests/src/test/scala/ExtendedQueryErrorTest.scala +++ b/modules/tests/src/test/scala/ExtendedQueryErrorTest.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/tests/src/test/scala/FragmentTest.scala b/modules/tests/src/test/scala/FragmentTest.scala index 804aecd3..a77f496b 100644 --- a/modules/tests/src/test/scala/FragmentTest.scala +++ b/modules/tests/src/test/scala/FragmentTest.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/tests/src/test/scala/ListTest.scala b/modules/tests/src/test/scala/ListTest.scala index ae2965ee..3ed75401 100644 --- a/modules/tests/src/test/scala/ListTest.scala +++ b/modules/tests/src/test/scala/ListTest.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/tests/src/test/scala/MultipleStatementsTest.scala b/modules/tests/src/test/scala/MultipleStatementsTest.scala index c556d897..cf0facb2 100644 --- a/modules/tests/src/test/scala/MultipleStatementsTest.scala +++ b/modules/tests/src/test/scala/MultipleStatementsTest.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/tests/src/test/scala/PoolTest.scala b/modules/tests/src/test/scala/PoolTest.scala index 23b86e34..5fa5dcc8 100644 --- a/modules/tests/src/test/scala/PoolTest.scala +++ b/modules/tests/src/test/scala/PoolTest.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/tests/src/test/scala/QueryTest.scala b/modules/tests/src/test/scala/QueryTest.scala index fa321233..06fba429 100644 --- a/modules/tests/src/test/scala/QueryTest.scala +++ b/modules/tests/src/test/scala/QueryTest.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/tests/src/test/scala/QuickQueryErrorTest.scala b/modules/tests/src/test/scala/QuickQueryErrorTest.scala index 3219d1e6..1e6e8e48 100644 --- a/modules/tests/src/test/scala/QuickQueryErrorTest.scala +++ b/modules/tests/src/test/scala/QuickQueryErrorTest.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/tests/src/test/scala/RedshiftTest.scala b/modules/tests/src/test/scala/RedshiftTest.scala index 5c2cd47c..034241df 100644 --- a/modules/tests/src/test/scala/RedshiftTest.scala +++ b/modules/tests/src/test/scala/RedshiftTest.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/tests/src/test/scala/SkunkTest.scala b/modules/tests/src/test/scala/SkunkTest.scala index 10824e12..f14cdb68 100644 --- a/modules/tests/src/test/scala/SkunkTest.scala +++ b/modules/tests/src/test/scala/SkunkTest.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/tests/src/test/scala/SqlStateTest.scala b/modules/tests/src/test/scala/SqlStateTest.scala index a931c0d1..1cf3bffa 100644 --- a/modules/tests/src/test/scala/SqlStateTest.scala +++ b/modules/tests/src/test/scala/SqlStateTest.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/tests/src/test/scala/SslTest.scala b/modules/tests/src/test/scala/SslTest.scala index 6a03ccc0..8ad1ae46 100644 --- a/modules/tests/src/test/scala/SslTest.scala +++ b/modules/tests/src/test/scala/SslTest.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/tests/src/test/scala/StartupTest.scala b/modules/tests/src/test/scala/StartupTest.scala index 86755ef6..b620946e 100644 --- a/modules/tests/src/test/scala/StartupTest.scala +++ b/modules/tests/src/test/scala/StartupTest.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/tests/src/test/scala/TransactionAccessModeChangeTest.scala b/modules/tests/src/test/scala/TransactionAccessModeChangeTest.scala index 27c822c4..783532ba 100644 --- a/modules/tests/src/test/scala/TransactionAccessModeChangeTest.scala +++ b/modules/tests/src/test/scala/TransactionAccessModeChangeTest.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/tests/src/test/scala/TransactionIsolationLevelChangeTest.scala b/modules/tests/src/test/scala/TransactionIsolationLevelChangeTest.scala index 27bfbff8..80856d7d 100644 --- a/modules/tests/src/test/scala/TransactionIsolationLevelChangeTest.scala +++ b/modules/tests/src/test/scala/TransactionIsolationLevelChangeTest.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/tests/src/test/scala/TransactionStatusTest.scala b/modules/tests/src/test/scala/TransactionStatusTest.scala index 7ba4345d..65dc2474 100644 --- a/modules/tests/src/test/scala/TransactionStatusTest.scala +++ b/modules/tests/src/test/scala/TransactionStatusTest.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/tests/src/test/scala/codec/BinaryCodecTest.scala b/modules/tests/src/test/scala/codec/BinaryCodecTest.scala index a3d027c1..d448f80b 100644 --- a/modules/tests/src/test/scala/codec/BinaryCodecTest.scala +++ b/modules/tests/src/test/scala/codec/BinaryCodecTest.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/tests/src/test/scala/codec/BooleanCodecTest.scala b/modules/tests/src/test/scala/codec/BooleanCodecTest.scala index 75f6751f..2393c145 100644 --- a/modules/tests/src/test/scala/codec/BooleanCodecTest.scala +++ b/modules/tests/src/test/scala/codec/BooleanCodecTest.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/tests/src/test/scala/codec/CodecTest.scala b/modules/tests/src/test/scala/codec/CodecTest.scala index 8751c4ac..fdbe4beb 100644 --- a/modules/tests/src/test/scala/codec/CodecTest.scala +++ b/modules/tests/src/test/scala/codec/CodecTest.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT @@ -89,14 +89,26 @@ class CodecCombinatorsTest extends FTest { assertEqual("sql", c.sql.runA(1).value, "$1, $2, $3, $4") } - test("contramapped codec generated corrext sql") { + test("contramapped codec generated correct sql") { assertEqual("sql", c.contramap[Short ~ (Int ~ Double) ~ String](identity).sql.runA(1).value, "$1, $2, $3, $4") } - test("imapped codec generated corrext sql") { + test("imapped codec generated correct sql") { assertEqual("sql", c.imap[Short ~ (Int ~ Double) ~ String](identity)(identity).sql.runA(1).value, "$1, $2, $3, $4") } + test("eimapped codec generated correct sql") { + assertEqual("sql", c.eimap[Short ~ (Int ~ Double) ~ String](_.asRight)(identity).sql.runA(1).value, "$1, $2, $3, $4") + } + + test("text.eimap (fail)") { + text.eimap(value => Either.catchNonFatal(value.toInt).leftMap(_ => "Not an Int"))(String.valueOf) + .decode(1, List(Some("foo"))) match { + case Left(err) => assertEqual("error", err, Decoder.Error(1, 1, "Not an Int", None)) + case Right(n) => fail(s"Expected failure, got $n") + } + } + test("invariant semigroupal (coverage)") { val c = skunk.codec.all.int4 InvariantSemigroupal[Codec].imap(c)(identity)(identity) diff --git a/modules/tests/src/test/scala/codec/DecoderTest.scala b/modules/tests/src/test/scala/codec/DecoderTest.scala index 5a547c56..16db8d8e 100644 --- a/modules/tests/src/test/scala/codec/DecoderTest.scala +++ b/modules/tests/src/test/scala/codec/DecoderTest.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/tests/src/test/scala/codec/EncoderTest.scala b/modules/tests/src/test/scala/codec/EncoderTest.scala index 6c0e0c41..2bdfda1d 100644 --- a/modules/tests/src/test/scala/codec/EncoderTest.scala +++ b/modules/tests/src/test/scala/codec/EncoderTest.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/tests/src/test/scala/codec/NumericCodecTest.scala b/modules/tests/src/test/scala/codec/NumericCodecTest.scala index d71ab8d7..93c0b006 100644 --- a/modules/tests/src/test/scala/codec/NumericCodecTest.scala +++ b/modules/tests/src/test/scala/codec/NumericCodecTest.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/tests/src/test/scala/codec/TextCodecTest.scala b/modules/tests/src/test/scala/codec/TextCodecTest.scala index 1bec329f..c3b788cc 100644 --- a/modules/tests/src/test/scala/codec/TextCodecTest.scala +++ b/modules/tests/src/test/scala/codec/TextCodecTest.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/tests/src/test/scala/codec/UuidCodecTest.scala b/modules/tests/src/test/scala/codec/UuidCodecTest.scala index a2a9b02e..a41f2e8b 100644 --- a/modules/tests/src/test/scala/codec/UuidCodecTest.scala +++ b/modules/tests/src/test/scala/codec/UuidCodecTest.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/tests/src/test/scala/data/ArrTest.scala b/modules/tests/src/test/scala/data/ArrTest.scala index 59074b74..64cc0369 100644 --- a/modules/tests/src/test/scala/data/ArrTest.scala +++ b/modules/tests/src/test/scala/data/ArrTest.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/tests/src/test/scala/data/IdentifierTest.scala b/modules/tests/src/test/scala/data/IdentifierTest.scala index 90a73b0a..2c01e564 100644 --- a/modules/tests/src/test/scala/data/IdentifierTest.scala +++ b/modules/tests/src/test/scala/data/IdentifierTest.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/tests/src/test/scala/exception/TooManyParametersExceptionTest.scala b/modules/tests/src/test/scala/exception/TooManyParametersExceptionTest.scala index 754e2ab4..da7ebf5e 100644 --- a/modules/tests/src/test/scala/exception/TooManyParametersExceptionTest.scala +++ b/modules/tests/src/test/scala/exception/TooManyParametersExceptionTest.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/tests/src/test/scala/exception/UnknownOidExceptionTest.scala b/modules/tests/src/test/scala/exception/UnknownOidExceptionTest.scala index 3fab8d43..7876484e 100644 --- a/modules/tests/src/test/scala/exception/UnknownOidExceptionTest.scala +++ b/modules/tests/src/test/scala/exception/UnknownOidExceptionTest.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/tests/src/test/scala/issue/129.scala b/modules/tests/src/test/scala/issue/129.scala index fc22ecab..45b785a2 100644 --- a/modules/tests/src/test/scala/issue/129.scala +++ b/modules/tests/src/test/scala/issue/129.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/tests/src/test/scala/issue/181.scala b/modules/tests/src/test/scala/issue/181.scala index 60bc45b0..d21b7c16 100644 --- a/modules/tests/src/test/scala/issue/181.scala +++ b/modules/tests/src/test/scala/issue/181.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/tests/src/test/scala/issue/210.scala b/modules/tests/src/test/scala/issue/210.scala index cadf0fca..f1e448c7 100644 --- a/modules/tests/src/test/scala/issue/210.scala +++ b/modules/tests/src/test/scala/issue/210.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/tests/src/test/scala/issue/231.scala b/modules/tests/src/test/scala/issue/231.scala index 4154fe4b..4247a26f 100644 --- a/modules/tests/src/test/scala/issue/231.scala +++ b/modules/tests/src/test/scala/issue/231.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/tests/src/test/scala/issue/238.scala b/modules/tests/src/test/scala/issue/238.scala index 67b1149b..ea608f47 100644 --- a/modules/tests/src/test/scala/issue/238.scala +++ b/modules/tests/src/test/scala/issue/238.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/tests/src/test/scala/issue/313.scala b/modules/tests/src/test/scala/issue/313.scala index fe27b438..60c91ec4 100644 --- a/modules/tests/src/test/scala/issue/313.scala +++ b/modules/tests/src/test/scala/issue/313.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/tests/src/test/scala/simulation/ProtocolErrorSimTest.scala b/modules/tests/src/test/scala/simulation/ProtocolErrorSimTest.scala index 89cf84d9..e9dd943e 100644 --- a/modules/tests/src/test/scala/simulation/ProtocolErrorSimTest.scala +++ b/modules/tests/src/test/scala/simulation/ProtocolErrorSimTest.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/tests/src/test/scala/simulation/SimMessageSocket.scala b/modules/tests/src/test/scala/simulation/SimMessageSocket.scala index 4f417108..2374331a 100644 --- a/modules/tests/src/test/scala/simulation/SimMessageSocket.scala +++ b/modules/tests/src/test/scala/simulation/SimMessageSocket.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/tests/src/test/scala/simulation/SimTest.scala b/modules/tests/src/test/scala/simulation/SimTest.scala index 56660eda..385e40b3 100644 --- a/modules/tests/src/test/scala/simulation/SimTest.scala +++ b/modules/tests/src/test/scala/simulation/SimTest.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/tests/src/test/scala/simulation/SimpleSimTest.scala b/modules/tests/src/test/scala/simulation/SimpleSimTest.scala index 8255871c..44697c3c 100644 --- a/modules/tests/src/test/scala/simulation/SimpleSimTest.scala +++ b/modules/tests/src/test/scala/simulation/SimpleSimTest.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/modules/tests/src/test/scala/simulation/StartupSimTest.scala b/modules/tests/src/test/scala/simulation/StartupSimTest.scala index 4fbce5fa..02926d8b 100644 --- a/modules/tests/src/test/scala/simulation/StartupSimTest.scala +++ b/modules/tests/src/test/scala/simulation/StartupSimTest.scala @@ -1,4 +1,4 @@ -// Copyright (c) 2018-2020 by Rob Norris +// Copyright (c) 2018-2021 by Rob Norris // This software is licensed under the MIT License (MIT). // For more information see LICENSE or https://opensource.org/licenses/MIT diff --git a/project/build.properties b/project/build.properties index 0b2e09c5..dbae93bc 100644 --- a/project/build.properties +++ b/project/build.properties @@ -1 +1 @@ -sbt.version=1.4.7 +sbt.version=1.4.9 diff --git a/project/plugins.sbt b/project/plugins.sbt index 5e290721..9c263ca5 100644 --- a/project/plugins.sbt +++ b/project/plugins.sbt @@ -1,11 +1,11 @@ -addSbtPlugin("com.geirsson" % "sbt-ci-release" % "1.5.5") +addSbtPlugin("com.geirsson" % "sbt-ci-release" % "1.5.7") addSbtPlugin("de.heikoseeberger" % "sbt-header" % "5.6.0") addSbtPlugin("com.lightbend.paradox" % "sbt-paradox" % "0.9.2") addSbtPlugin("com.typesafe.sbt" % "sbt-site" % "1.4.1") addSbtPlugin("com.typesafe.sbt" % "sbt-ghpages" % "0.6.3") -addSbtPlugin("com.timushev.sbt" % "sbt-updates" % "0.5.1") -addSbtPlugin("io.github.davidgregory084" % "sbt-tpolecat" % "0.1.16") -addSbtPlugin("org.scalameta" % "sbt-mdoc" % "2.2.18") +addSbtPlugin("com.timushev.sbt" % "sbt-updates" % "0.5.2") +addSbtPlugin("io.github.davidgregory084" % "sbt-tpolecat" % "0.1.17") +addSbtPlugin("org.scalameta" % "sbt-mdoc" % "2.2.19") addSbtPlugin("org.scoverage" % "sbt-scoverage" % "1.6.1") -addSbtPlugin("ch.epfl.lamp" % "sbt-dotty" % "0.5.3") +addSbtPlugin("ch.epfl.lamp" % "sbt-dotty" % "0.5.4") addSbtPlugin("ch.epfl.scala" % "sbt-eviction-rules" % "1.0.0-RC1")