Skip to content

Commit

Permalink
Release 0.4.2
Browse files Browse the repository at this point in the history
  • Loading branch information
szeiger committed Nov 30, 2021
1 parent 4a5ffa8 commit 0b8ce80
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 11 deletions.
2 changes: 1 addition & 1 deletion build.sc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import mill._, scalalib._, publish._, scalajslib._, scalanativelib._, scalanativelib.api._
val sjsonnetVersion = "0.4.1"
val sjsonnetVersion = "0.4.3-SNAPSHOT"

object sjsonnet extends Cross[SjsonnetModule]("2.12.13", "2.13.4")
class SjsonnetModule(val crossScalaVersion: String) extends Module {
Expand Down
26 changes: 16 additions & 10 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Sjsonnet can be used from Java:
<dependency>
<groupId>com.databricks</groupId>
<artifactId>sjsonnet_2.13</artifactId>
<version>0.4.1</version>
<version>0.4.2</version>
</dependency>
```

Expand All @@ -30,8 +30,8 @@ sjsonnet.SjsonnetMain.main0(
From Scala:

```scala
"com.databricks" %% "sjsonnet" % "0.4.1" // SBT
ivy"com.databricks::sjsonnet:0.4.1" // Mill
"com.databricks" %% "sjsonnet" % "0.4.2" // SBT
ivy"com.databricks::sjsonnet:0.4.2" // Mill
```

```scala
Expand All @@ -48,10 +48,10 @@ sjsonnet.SjsonnetMain.main0(

As a standalone executable assembly:

- <https://github.com/lihaoyi/sjsonnet/releases/download/0.4.1/sjsonnet.jar>
- <https://github.com/databricks/sjsonnet/releases/download/0.4.2/sjsonnet.jar>

```bash
$ curl -L https://github.com/lihaoyi/sjsonnet/releases/download/0.4.1/sjsonnet.jar > sjsonnet.jar
$ curl -L https://github.com/databricks/sjsonnet/releases/download/0.4.2/sjsonnet.jar > sjsonnet.jar

$ chmod +x sjsonnet.jar

Expand All @@ -71,7 +71,7 @@ $ ./sjsonnet.jar foo.jsonnet
Or from Javascript:

```javascript
$ curl -L https://github.com/databricks/sjsonnet/releases/download/0.4.1/sjsonnet.js > sjsonnet.js
$ curl -L https://github.com/databricks/sjsonnet/releases/download/0.4.2/sjsonnet.js > sjsonnet.js

$ node

Expand Down Expand Up @@ -127,7 +127,7 @@ phases:

- `sjsonnet.StaticOptimizer` is a single AST transform that performs static
checking, essential rewriting (e.g. assigning indices in the symbol table for
variables) and optimizations. The result is another `jsonnet.Expr` per input
variables) and optimizations. The result is another `sjsonnet.Expr` per input
file that can be stored in the parse cache and reused.

- `sjsonnet.Evaluator`: recurses over the `sjsonnet.Expr` produced by the
Expand Down Expand Up @@ -186,7 +186,7 @@ f59758d1904bccda99598990f582dd2e1e9ad263, while google/go-jsonnet was
benchmark in
[SjsonnetTestMain.scala](https://github.com/databricks/sjsonnet/blob/master/sjsonnet/test/src-jvm/sjsonnet/SjsonnetTestMain.scala)

Sjsonnet 0.4.0 and 0.5.0 further improve the performance significantly on our
Sjsonnet 0.4.0 and 0.4.1 further improve the performance significantly on our
internal benchmarks. A set of new JMH benchmarks provide detailed
performance data of an entire run (`MainBenchmark`) and the
non-evaluation-related parts (`MaterializerBenchmark`, `OptimizerBenchmark`,
Expand Down Expand Up @@ -269,17 +269,23 @@ programmatically via `new Interpreter(...).interpret(...)`.

## Publishing

To publish, run the following commands:
To publish, make sure the version number in `build.sc` is correct, then run the following commands:

```bash
./mill -i mill.scalalib.PublishModule/publishAll lihaoyi:$SONATYPE_PASSWORD $GPG_PASSWORD --publishArtifacts __.publishArtifacts --release true
./mill -i mill.scalalib.PublishModule/publishAll --sonatypeCreds lihaoyi:$SONATYPE_PASSWORD --publishArtifacts __.publishArtifacts --release true

./mill -i show sjsonnet[2.13.4].js.fullOpt
./mill -i show sjsonnet[2.13.4].jvm.assembly
```

## Changelog

### 0.4.2

- Make lazy initialization of static Val.Obj thread-safe [#136](https://github.com/databricks/sjsonnet/pull/136)
- Deduplicate strings in the parser [#137](https://github.com/databricks/sjsonnet/pull/137)
- Update the JS example [#141](https://github.com/databricks/sjsonnet/pull/141)

### 0.4.1

- Additional significant performance improvements [#119](https://github.com/databricks/sjsonnet/pull/119)
Expand Down

0 comments on commit 0b8ce80

Please sign in to comment.