Skip to content

Commit

Permalink
Release 0.15.0
Browse files Browse the repository at this point in the history
  • Loading branch information
sbarzowski committed Feb 9, 2020
1 parent 903e698 commit 7d624c1
Show file tree
Hide file tree
Showing 13 changed files with 52 additions and 51 deletions.
2 changes: 1 addition & 1 deletion cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ add_dependencies(libjsonnet++ jsonnet)
# CMake prepends CMAKE_SHARED_LIBRARY_PREFIX to shared libraries, so without
# this step the output would be |liblibjsonnet|.
set_target_properties(libjsonnet++ PROPERTIES OUTPUT_NAME jsonnet++
VERSION "0.14.0"
VERSION "0.15.0"
SOVERSION "0"
PUBLIC_HEADER "${LIB_HEADER}")
install(TARGETS libjsonnet++
Expand Down
79 changes: 40 additions & 39 deletions doc/ref/stdlib.html
Original file line number Diff line number Diff line change
Expand Up @@ -545,18 +545,19 @@ <h4 id="stripChars">std.stripChars(str, chars)</h4>
<div class="hgroup">
<div class="hgroup-inline">
<div class="panel">
<em>Available since version 0.15.0.</em>
<p>Removes characters <code>chars</code> from the beginning and from the end of <code>str</code>.</p>
</div>
<p>
Example: <code>std.stripChars(" test test test ", " ")</code> yields <code>"test test test"</code>.
</p>
<p>
Example: <code>std.stripChars("aaabbbbcccc", "ac")</code> yields <code>"bbbb"</code>.
</p>
<p>
Example: <code>std.stripChars("cacabbbbaacc", "ac")</code> yields <code>"bbbb"</code>.
</p>
<em>Available in upcoming version.</em>
<p>
Example: <code>std.stripChars(" test test test ", " ")</code> yields <code>"test test test"</code>.
</p>
<p>
Example: <code>std.stripChars("aaabbbbcccc", "ac")</code> yields <code>"bbbb"</code>.
</p>
<p>
Example: <code>std.stripChars("cacabbbbaacc", "ac")</code> yields <code>"bbbb"</code>.
</p>
</div>

<div style="clear: both"></div>
</div>
</div>
Expand All @@ -574,18 +575,18 @@ <h4 id="lstripChars">std.lstripChars(str, chars)</h4>
<div class="hgroup">
<div class="hgroup-inline">
<div class="panel">
<em>Available since version 0.15.0.</em>
<p>Removes characters <code>chars</code> from the beginning of <code>str</code>.</p>
</div>
<p>
Example: <code>std.lstripChars(" test test test ", " ")</code> yields <code>"test test test "</code>.
</p>
<p>
Example: <code>std.lstripChars("aaabbbbcccc", "ac")</code> yields <code>"bbbbcccc"</code>.
</p>
<p>
Example: <code>std.lstripChars("cacabbbbaacc", "ac")</code> yields <code>"bbbbaacc"</code>.
</p>
<em>Available in upcoming version.</em>
<p>
Example: <code>std.lstripChars(" test test test ", " ")</code> yields <code>"test test test "</code>.
</p>
<p>
Example: <code>std.lstripChars("aaabbbbcccc", "ac")</code> yields <code>"bbbbcccc"</code>.
</p>
<p>
Example: <code>std.lstripChars("cacabbbbaacc", "ac")</code> yields <code>"bbbbaacc"</code>.
</p>
` </div>
<div style="clear: both"></div>
</div>
</div>
Expand All @@ -603,18 +604,18 @@ <h4 id="rstripChars">std.rstripChars(str, chars)</h4>
<div class="hgroup">
<div class="hgroup-inline">
<div class="panel">
<em>Available since version 0.15.0.</em>
<p>Removes characters <code>chars</code> from the beginning and from the end of <code>str</code>.</p>
<p>
Example: <code>std.rstripChars(" test test test ", " ")</code> yields <code>" test test test"</code>.
</p>
<p>
Example: <code>std.rstripChars("aaabbbbcccc", "ac")</code> yields <code>"aaabbbb"</code>.
</p>
<p>
Example: <code>std.rstripChars("cacabbbbaacc", "ac")</code> yields <code>"cacabbbb"</code>.
</p>
</div>
<p>
Example: <code>std.rstripChars(" test test test ", " ")</code> yields <code>" test test test"</code>.
</p>
<p>
Example: <code>std.rstripChars("aaabbbbcccc", "ac")</code> yields <code>"aaabbbb"</code>.
</p>
<p>
Example: <code>std.rstripChars("cacabbbbaacc", "ac")</code> yields <code>"cacabbbb"</code>.
</p>
<em>Available in upcoming version.</em>
<div style="clear: both"></div>
</div>
</div>
Expand Down Expand Up @@ -977,10 +978,10 @@ <h4 id="parseHex">std.parseHex(str)</h4>
<div class="hgroup-inline">
<div class="panel">
<h4 id="parseJson">std.parseJson(str)</h4>
<em>Available since version 0.13.0.</em>
<p>
Parses a JSON string.
</p>
<em>Available since version 0.13.0</em>
<p>Example: <code>std.parseJson('{"foo": "bar"}')</code> yields <code>{"foo": "bar"}</code>.</p>
</div>
<div style="clear: both"></div>
Expand All @@ -991,7 +992,7 @@ <h4 id="parseJson">std.parseJson(str)</h4>
<div class="hgroup-inline">
<div class="panel">
<h4 id="encodeUTF8">std.encodeUTF8(str)</h4>
<em>Available since version 0.13.0</em>
<em>Available since version 0.13.0.</em>
<p>
Encode a string using <a href="https://en.wikipedia.org/wiki/UTF-8">UTF8</a>. Returns an array of numbers
representing bytes.
Expand All @@ -1013,7 +1014,7 @@ <h4 id="decodeUTF8">std.decodeUTF8(arr)</h4>
<div class="hgroup">
<div class="hgroup-inline">
<div class="panel">
<em>Available since version 0.13.0</em>
<em>Available since version 0.13.0.</em>
<p>
Decode an array of numbers representing bytes using <a href="https://en.wikipedia.org/wiki/UTF-8">UTF8</a>.
Returns a string.
Expand Down Expand Up @@ -1418,11 +1419,11 @@ <h4 id="member">std.member(arr, x)</h4>
<div class="hgroup">
<div class="hgroup-inline">
<div class="panel">
<em>Available since version 0.15.0.</em>
<p>
Returns whether <code>x</code> occurs in <code>arr</code>.
Argument <code>arr</code> may be an array or a string.
</p>
<em>Available in upcoming version.</em>
</div>
<div style="clear: both"></div>
</div>
Expand Down Expand Up @@ -1660,14 +1661,14 @@ <h4 id="repeat">std.repeat(what, count)</h4>
<div class="hgroup">
<div class="hgroup-inline">
<div class="panel">
<em>Available since version 0.15.0.</em>
<p>Repeats an array or a string <code>what</code> a number of times specified by an integer <code>count</code>.</p>
<p>
Example: <code>std.repeat([1, 2, 3], 3)</code> yields <code>[1, 2, 3, 1, 2, 3, 1, 2, 3]</code>.
</p>
<p>
Example 2: <code>std.repeat("blah", 2)</code> yields <code>"blahblah"</code>.
</p>
<em>Available in upcoming release.</em>
</div>
<div style="clear: both"></div>
</div>
Expand Down Expand Up @@ -1761,8 +1762,8 @@ <h4 id="sort">std.reverse(arr)</h4>
<div class="hgroup">
<div class="hgroup-inline">
<div class="panel">
<em>Available since version 0.13.0.</em>
<p>Reverses an array.</p>
<em>Available since version 0.13.0</em>
</div>
<div style="clear: both"></div>
</div>
Expand Down Expand Up @@ -2101,11 +2102,11 @@ <h4 id="trace">std.trace(str, rest)</h4>
<div class="hgroup">
<div class="hgroup-inline">
<div class="panel">
<em>Available since version 0.11.0.</em>
<p>
Outputs the given string <code>str</code> to stderr and
returns <code>rest</code> as the result.
</p>
<em>Available since version 0.11.0</em>
<p>Example:</p>
<p>
<pre>local conditionalReturn(cond, in1, in2) =
Expand Down
2 changes: 1 addition & 1 deletion include/libjsonnet.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ limitations under the License.
*
* If this isn't the sae as jsonnet_version() then you've got a mismatched binary / header.
*/
#define LIB_JSONNET_VERSION "v0.14.0"
#define LIB_JSONNET_VERSION "v0.15.0"

/** Return the version string of the Jsonnet interpreter. Conforms to semantic versioning
* http://semver.org/ If this does not match LIB_JSONNET_VERSION then there is a mismatch between
Expand Down
2 changes: 1 addition & 1 deletion test_cmd/fmt_help.golden.stdout.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Jsonnet reformatter v0.14.0
Jsonnet reformatter v0.15.0

jsonnetfmt {<option>} { <filename> }

Expand Down
2 changes: 1 addition & 1 deletion test_cmd/fmt_no_args.golden.stderr
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ERROR: must give filename

Jsonnet reformatter v0.14.0
Jsonnet reformatter v0.15.0

jsonnetfmt {<option>} { <filename> }

Expand Down
2 changes: 1 addition & 1 deletion test_cmd/fmt_version1.golden.stdout
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Jsonnet reformatter v0.14.0
Jsonnet reformatter v0.15.0
2 changes: 1 addition & 1 deletion test_cmd/fmt_version2.golden.stdout
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Jsonnet reformatter v0.14.0
Jsonnet reformatter v0.15.0
2 changes: 1 addition & 1 deletion test_cmd/help.golden.stdout.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Jsonnet commandline interpreter v0.14.0
Jsonnet commandline interpreter v0.15.0

jsonnet {<option>} <filename>

Expand Down
2 changes: 1 addition & 1 deletion test_cmd/help.golden.stdout.golang
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Jsonnet commandline interpreter v0.14.0
Jsonnet commandline interpreter v0.15.0

jsonnet {<option>} <filename>

Expand Down
2 changes: 1 addition & 1 deletion test_cmd/no_args.golden.stderr.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ERROR: must give filename

Jsonnet commandline interpreter v0.14.0
Jsonnet commandline interpreter v0.15.0

jsonnet {<option>} <filename>

Expand Down
2 changes: 1 addition & 1 deletion test_cmd/no_args.golden.stderr.golang
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ERROR: must give filename

Jsonnet commandline interpreter v0.14.0
Jsonnet commandline interpreter v0.15.0

jsonnet {<option>} <filename>

Expand Down
2 changes: 1 addition & 1 deletion test_cmd/version1.golden.stdout
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Jsonnet commandline interpreter v0.14.0
Jsonnet commandline interpreter v0.15.0
2 changes: 1 addition & 1 deletion test_cmd/version2.golden.stdout
Original file line number Diff line number Diff line change
@@ -1 +1 @@
Jsonnet commandline interpreter v0.14.0
Jsonnet commandline interpreter v0.15.0

0 comments on commit 7d624c1

Please sign in to comment.