Skip to content

Commit

Permalink
Merge pull request #214 from 47deg/update-cats-monix-deps
Browse files Browse the repository at this point in the history
Release 1.2.0
  • Loading branch information
purrgrammer authored Sep 16, 2019
2 parents bb6eb50 + a560720 commit 7248651
Show file tree
Hide file tree
Showing 7 changed files with 36 additions and 30 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Changelog

## 09/16/2019 - Version 1.2.0

Release changes:

* Update cats-effect dependency to 2.0.0 (thanks to @paulpdaniels)
* Renew docs site https://47deg.github.io/fetch/

## 06/04/2019 - Version 1.1.0

Release changes:
Expand Down
36 changes: 18 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ For Scala 2.11.x and 2.12.x:
[comment]: # (Start Replace)

```scala
"com.47deg" %% "fetch" % "1.1.0"
"com.47deg" %% "fetch" % "1.2.0"
```

Or, if using Scala.js (0.6.x):

```scala
"com.47deg" %%% "fetch" % "1.1.0"
"com.47deg" %%% "fetch" % "1.2.0"
```

[comment]: # (End Replace)
Expand Down Expand Up @@ -137,8 +137,8 @@ import scala.concurrent.duration._
// import scala.concurrent.duration._

Fetch.run[IO](fetchOne).unsafeRunTimed(5.seconds)
// --> [342] One ToString 1
// <-- [342] One ToString 1
// --> [106] One ToString 1
// <-- [106] One ToString 1
// res0: Option[String] = Some(1)
```

Expand All @@ -157,8 +157,8 @@ When executing the above fetch, note how the three identities get batched, and t

```scala
Fetch.run[IO](fetchThree).unsafeRunTimed(5.seconds)
// --> [342] Batch ToString NonEmptyList(1, 2, 3)
// <-- [342] Batch ToString NonEmptyList(1, 2, 3)
// --> [106] Batch ToString NonEmptyList(1, 2, 3)
// <-- [106] Batch ToString NonEmptyList(1, 2, 3)
// res1: Option[(String, String, String)] = Some((1,2,3))
```

Expand Down Expand Up @@ -196,12 +196,12 @@ When executing the above fetch, note how the three identities get requested in p

```scala
Fetch.run[IO](fetchUnbatchedThree).unsafeRunTimed(5.seconds)
// --> [342] One UnbatchedToString 1
// --> [344] One UnbatchedToString 2
// --> [343] One UnbatchedToString 3
// <-- [342] One UnbatchedToString 1
// <-- [344] One UnbatchedToString 2
// <-- [343] One UnbatchedToString 3
// --> [106] One UnbatchedToString 1
// --> [109] One UnbatchedToString 2
// --> [108] One UnbatchedToString 3
// <-- [106] One UnbatchedToString 1
// <-- [109] One UnbatchedToString 2
// <-- [108] One UnbatchedToString 3
// res2: Option[(String, String, String)] = Some((1,2,3))
```

Expand Down Expand Up @@ -247,10 +247,10 @@ Note how the two independent data fetches run in parallel, minimizing the latenc

```scala
Fetch.run[IO](fetchMulti).unsafeRunTimed(5.seconds)
// --> [342] One ToString 1
// --> [345] One Length one
// <-- [342] One ToString 1
// <-- [345] One Length one
// --> [106] One ToString 1
// --> [107] One Length one
// <-- [106] One ToString 1
// <-- [107] One Length one
// res3: Option[(String, Int)] = Some((1,3))
```

Expand All @@ -271,8 +271,8 @@ While running it, notice that the data source is only queried once. The next tim

```scala
Fetch.run[IO](fetchTwice).unsafeRunTimed(5.seconds)
// --> [344] One ToString 1
// <-- [344] One ToString 1
// --> [109] One ToString 1
// <-- [109] One ToString 1
// res4: Option[(String, String)] = Some((1,1))
```

Expand Down
6 changes: 3 additions & 3 deletions docs/src/main/tut/docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@ To begin, add the following dependency to your SBT build file:
[comment]: # (Start Replace)

```scala
"com.47deg" %% "fetch" % "1.1.0"
"com.47deg" %% "fetch" % "1.2.0"
```

Or, if using Scala.js:

```scala
"com.47deg" %%% "fetch" % "1.1.0"
"com.47deg" %%% "fetch" % "1.2.0"
```

[comment]: # (End Replace)
Expand Down Expand Up @@ -867,7 +867,7 @@ a fetch execution given an execution log.
Add the following line to your dependencies for including Fetch's debugging facilities:

```scala
"com.47deg" %% "fetch-debug" % "1.1.0"
"com.47deg" %% "fetch-debug" % "1.2.0"
```

## Fetch execution
Expand Down
1 change: 0 additions & 1 deletion examples/src/test/scala/MonixExample.scala
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ import org.scalatest.{AsyncFreeSpec, Matchers, WordSpec}
class MonixExample extends AsyncFreeSpec with Matchers {
implicit val scheduler: Scheduler = Scheduler.io(name = "test-scheduler")
override val executionContext: ExecutionContext = scheduler
implicit val t: Timer[Task] = scheduler.timer

import DatabaseExample._

Expand Down
10 changes: 5 additions & 5 deletions project/ProjectPlugin.scala
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ object ProjectPlugin extends AutoPlugin {
lazy val commonCrossDependencies =
Seq(
libraryDependencies ++=
Seq("org.typelevel" %% "cats-effect" % "1.2.0",
Seq("org.typelevel" %% "cats-effect" % "2.0.0",
%%("scalatest") % "test"))

lazy val micrositeSettings: Seq[Def.Setting[_]] = Seq(
Expand Down Expand Up @@ -79,11 +79,11 @@ object ProjectPlugin extends AutoPlugin {
%%("circe-generic"),
%%("doobie-core"),
%%("doobie-h2"),
"org.tpolecat" %% "atto-core" % "0.6.5",
"org.http4s" %% "http4s-blaze-client" % "0.19.0-M2",
"org.http4s" %% "http4s-circe" % "0.19.0-M2",
"org.tpolecat" %% "atto-core" % "0.7.0",
"org.http4s" %% "http4s-blaze-client" % "0.21.0-M4",
"org.http4s" %% "http4s-circe" % "0.21.0-M4",
"redis.clients" % "jedis" % "2.9.0",
"io.monix" %% "monix" % "3.0.0-RC2"
"io.monix" %% "monix" % "3.0.0"
)) ++ commonCrossDependencies
}

Expand Down
4 changes: 2 additions & 2 deletions tut/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@ For Scala 2.11.x and 2.12.x:
[comment]: # (Start Replace)

```scala
"com.47deg" %% "fetch" % "1.1.0"
"com.47deg" %% "fetch" % "1.2.0"
```

Or, if using Scala.js (0.6.x):

```scala
"com.47deg" %%% "fetch" % "1.1.0"
"com.47deg" %%% "fetch" % "1.2.0"
```

[comment]: # (End Replace)
Expand Down
2 changes: 1 addition & 1 deletion version.sbt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version in ThisBuild := "1.1.1-SNAPSHOT"
version in ThisBuild := "1.2.0"

0 comments on commit 7248651

Please sign in to comment.