Skip to content

Commit

Permalink
Add a convenience trait instead of a type alias
Browse files Browse the repository at this point in the history
  • Loading branch information
pomadchin committed May 18, 2021
1 parent cca20b1 commit 7d37122
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
## [Unreleased]
### Added
- Add Scala 2.13 cross compilation [#310](https://github.com/azavea/stac4s/pull/310)
- Add a convenience StacClient trait instead of a type alias [#325](https://github.com/azavea/stac4s/pull/325)

## [0.4.0] - 2021-05-12
### Fixed
Expand Down
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ lazy val commonSettings = Seq(
git.gitDescribedVersion.value.get
},
scalaVersion := "2.12.13",
crossScalaVersions := List("2.12.13", "2.13.5"),
crossScalaVersions := List("2.12.13", "2.13.6"),
Global / cancelable := true,
scalafmtOnCompile := true,
ThisBuild / scapegoatVersion := Versions.Scapegoat,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
package com.azavea.stac4s.api.client

trait StacClient[F[_]] extends StacClientF[F, SearchFilters]
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.azavea.stac4s.api

package object client {
type StacClient[F[_]] = StacClientF[F, SearchFilters]
type SttpStacClient[F[_]] = SttpStacClientF[F, SearchFilters]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
package com.azavea.stac4s.api.client

trait StacClient[F[_]] extends StacClientF[F, SearchFilters]
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package com.azavea.stac4s.api

package object client {
type StacClient[F[_]] = StacClientF[F, SearchFilters]
type SttpStacClient[F[_]] = SttpStacClientF[F, SearchFilters]
}

0 comments on commit 7d37122

Please sign in to comment.