Skip to content

Commit

Permalink
version 0.4.0-1.6.2
Browse files Browse the repository at this point in the history
  • Loading branch information
mliarakos committed May 30, 2020
1 parent d3b30d4 commit 0054b4b
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 11 deletions.
34 changes: 24 additions & 10 deletions README.md
Expand Up @@ -6,17 +6,15 @@ Checkout the [lagom-scalajs-example](https://github.com/mliarakos/lagom-scalajs-

## Compatibility

Lagom.js is built against specific versions of Lagom:
Lagom.js is built against specific versions of Lagom, the latest are:

| Lagom.js | Lagom | Scala | Scala.js |
|-------------|-------|-----------------|----------|
| 0.1.2-1.5.1 | 1.5.1 | 2.11 <br> 2.12 | 0.6.31+ |
| 0.1.2-1.5.3 | 1.5.3 | 2.11 <br> 2.12 | 0.6.31+ |
| 0.1.2-1.5.4 | 1.5.4 | 2.11 <br> 2.12 | 0.6.31+ |
| 0.1.2-1.5.5 | 1.5.5 | 2.11 <br> 2.12 | 0.6.31+ |
| 0.2.1-1.6.0 | 1.6.0 | 2.12 | 0.6.31+ |
| 0.3.1-1.6.1 | 1.6.1 | 2.12 <br> 2.13 | 0.6.32+ |
| 0.3.2-1.6.2 | 1.6.2 | 2.12 <br> 2.13 | 0.6.33+ |
| 0.4.0-1.6.2 | 1.6.2 | 2.12 <br> 2.13 | 1.0.1+ |

Lagom.js moved to Scala.js 1.x starting with version `0.4.0-1.6.2`. Scala.js 0.6 is no longer supported, the last version to support it was `0.3.2-1.6.2 `. For all past releases, see [releases](#Releases).

Lagom.js does not support the Lagom Java API. It only supports the Lagom Scala API because Scala.js only supports Scala.

Expand All @@ -29,7 +27,7 @@ Lagom.js provides JavaScript versions of several Lagom artifacts. The two most i
The `lagomjs-scaladsl-api` artifact provides the JavaScript implementation of the Lagom service API:

```sbt
"com.github.mliarakos.lagomjs" %%% "lagomjs-scaladsl-api" % "0.3.2-1.6.2"
"com.github.mliarakos.lagomjs" %%% "lagomjs-scaladsl-api" % "0.4.0-1.6.2"
```

To use it you'll need to configure your service API as a [Scala.js cross project](https://github.com/portable-scala/sbt-crossproject) for the JVM and JS platforms. Then, add the `lagomjs-scaladsl-api` dependency to the JS platform:
Expand All @@ -41,7 +39,7 @@ lazy val `service-api` = crossProject(JVMPlatform, JSPlatform)
libraryDependencies += lagomScaladslApi
)
.jsSettings(
libraryDependencies += "com.github.mliarakos.lagomjs" %%% "lagomjs-scaladsl-api" % "0.3.2-1.6.2"
libraryDependencies += "com.github.mliarakos.lagomjs" %%% "lagomjs-scaladsl-api" % "0.4.0-1.6.2"
)
```

Expand All @@ -52,15 +50,15 @@ This enables your Lagom service definition to be compiled into JavaScript. In ad
The `lagomjs-scaladsl-client` artifact provides the JavaScript implementation of the Lagom service client:

```sbt
"com.github.mliarakos.lagomjs" %%% "lagomjs-scaladsl-client" % "0.3.2-1.6.2"
"com.github.mliarakos.lagomjs" %%% "lagomjs-scaladsl-client" % "0.4.0-1.6.2"
```

You can use it in a Scala.js project along with your service API to generate a service client:

```scala
lazy val `client-js` = project
.settings(
libraryDependencies += "com.github.mliarakos.lagomjs" %%% "lagomjs-scaladsl-client" % "0.3.2-1.6.2"
libraryDependencies += "com.github.mliarakos.lagomjs" %%% "lagomjs-scaladsl-client" % "0.4.0-1.6.2"
)
.enablePlugins(ScalaJSPlugin)
.dependsOn(`service-api`.js)
Expand All @@ -81,3 +79,19 @@ However, the service client does not support a few the features available in Lag
- full circuit breaker metrics: circuit breakers are fully supported, but the built-in circuit breaker metrics implementation only collects a few basic metrics
- subscribing to topics: topic definitions are available in the service client, but attempting to subscribe to the topic throws an exception
- advanced service locators: service locators outside of the built-in service locators, such as `AkkaDiscoveryServiceLocator`, are not available

## Releases

Lagom.js tracks Lagom and generally doesn't continue development on previous Lagom releases. Since Lagom maintains a stable API within a minor release (e.g., 1.6.x) any version of Lagom.js built for that minor release should work. However, if you need Lagom.js for a specific previous Lagom release the previous Lagom.js releases are listed below. If you have an issue with a previous Lagom.js release please open an [issue](https://github.com/mliarakos/lagom-js/issues) and it will be considered on a case-by-case basis.

| Lagom.js | Lagom | Scala | Scala.js |
|-------------|-------|-----------------|----------|
| 0.1.2-1.5.1 | 1.5.1 | 2.11 <br> 2.12 | 0.6.31+ |
| 0.1.2-1.5.3 | 1.5.3 | 2.11 <br> 2.12 | 0.6.31+ |
| 0.1.2-1.5.4 | 1.5.4 | 2.11 <br> 2.12 | 0.6.31+ |
| 0.1.2-1.5.5 | 1.5.5 | 2.11 <br> 2.12 | 0.6.31+ |
| 0.2.1-1.6.0 | 1.6.0 | 2.12 | 0.6.31+ |
| 0.3.1-1.6.1 | 1.6.1 | 2.12 <br> 2.13 | 0.6.32+ |
| 0.3.2-1.6.2 | 1.6.2 | 2.12 <br> 2.13 | 0.6.33+ |
| 0.4.0-1.6.2 | 1.6.2 | 2.12 <br> 2.13 | 1.0.1+ |

2 changes: 1 addition & 1 deletion build.sbt
Expand Up @@ -50,7 +50,7 @@ lazy val publishSettings = Seq(

lazy val commonSettings = scalaSettings ++ publishSettings ++ Seq(
organization := "com.github.mliarakos.lagomjs",
version := s"0.3.3-$baseLagomVersion-SNAPSHOT"
version := s"0.4.0-$baseLagomVersion"
)

lazy val commonJsSettings = Seq(
Expand Down

0 comments on commit 0054b4b

Please sign in to comment.