Skip to content

Commit

Permalink
Merge pull request #2549 from rossabaker/deprecation-versions
Browse files Browse the repository at this point in the history
Fix deprecation versions
mpilquist authored Aug 7, 2021

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
2 parents 5aec161 + 02ba1c8 commit c6a16c6
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion core/shared/src/main/scala/fs2/Stream.scala
Original file line number Diff line number Diff line change
@@ -2583,7 +2583,7 @@ final class Stream[+F[_], +O] private[fs2] (private[fs2] val underlying: Pull[F,

/** Converts the input to a stream of 1-element chunks.
*/
@deprecated("Use .chunkLimit(1).unchunks instead.", "3.0.7")
@deprecated("Use .chunkLimit(1).unchunks instead.", "3.1.0")
def unchunk: Stream[F, O] =
this.repeatPull {
_.uncons1.flatMap {
8 changes: 4 additions & 4 deletions core/shared/src/main/scala/fs2/text.scala
Original file line number Diff line number Diff line change
@@ -180,12 +180,12 @@ object text {
}

/** Converts UTF-8 encoded byte stream to a stream of `String`. */
@deprecated("Use text.utf8.decode", "3.0.7")
@deprecated("Use text.utf8.decode", "3.1.0")
def utf8Decode[F[_]]: Pipe[F, Byte, String] =
utf8.decode

/** Converts UTF-8 encoded `Chunk[Byte]` inputs to `String`. */
@deprecated("Use text.utf8.decodeC", "3.0.7")
@deprecated("Use text.utf8.decodeC", "3.1.0")
def utf8DecodeC[F[_]]: Pipe[F, Chunk[Byte], String] =
utf8.decodeC

@@ -198,12 +198,12 @@ object text {
_.mapChunks(_.map(s => Chunk.array(s.getBytes(charset))))

/** Encodes a stream of `String` in to a stream of bytes using the UTF-8 charset. */
@deprecated("Use text.utf8.encode", "3.0.7")
@deprecated("Use text.utf8.encode", "3.1.0")
def utf8Encode[F[_]]: Pipe[F, String, Byte] =
utf8.encode

/** Encodes a stream of `String` in to a stream of `Chunk[Byte]` using the UTF-8 charset. */
@deprecated("Use text.utf8.encodeC", "3.0.7")
@deprecated("Use text.utf8.encodeC", "3.1.0")
def utf8EncodeC[F[_]]: Pipe[F, String, Chunk[Byte]] =
utf8.encodeC

0 comments on commit c6a16c6

Please sign in to comment.