Skip to content

Commit 7d624c1

Browse files
committed
Release 0.15.0
1 parent 903e698 commit 7d624c1

13 files changed

+52
-51
lines changed

cpp/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ add_dependencies(libjsonnet++ jsonnet)
1515
# CMake prepends CMAKE_SHARED_LIBRARY_PREFIX to shared libraries, so without
1616
# this step the output would be |liblibjsonnet|.
1717
set_target_properties(libjsonnet++ PROPERTIES OUTPUT_NAME jsonnet++
18-
VERSION "0.14.0"
18+
VERSION "0.15.0"
1919
SOVERSION "0"
2020
PUBLIC_HEADER "${LIB_HEADER}")
2121
install(TARGETS libjsonnet++

doc/ref/stdlib.html

+40-39
Original file line numberDiff line numberDiff line change
@@ -545,18 +545,19 @@ <h4 id="stripChars">std.stripChars(str, chars)</h4>
545545
<div class="hgroup">
546546
<div class="hgroup-inline">
547547
<div class="panel">
548+
<em>Available since version 0.15.0.</em>
548549
<p>Removes characters <code>chars</code> from the beginning and from the end of <code>str</code>.</p>
549-
</div>
550-
<p>
551-
Example: <code>std.stripChars(" test test test ", " ")</code> yields <code>"test test test"</code>.
552-
</p>
553-
<p>
554-
Example: <code>std.stripChars("aaabbbbcccc", "ac")</code> yields <code>"bbbb"</code>.
555-
</p>
556-
<p>
557-
Example: <code>std.stripChars("cacabbbbaacc", "ac")</code> yields <code>"bbbb"</code>.
558-
</p>
559-
<em>Available in upcoming version.</em>
550+
<p>
551+
Example: <code>std.stripChars(" test test test ", " ")</code> yields <code>"test test test"</code>.
552+
</p>
553+
<p>
554+
Example: <code>std.stripChars("aaabbbbcccc", "ac")</code> yields <code>"bbbb"</code>.
555+
</p>
556+
<p>
557+
Example: <code>std.stripChars("cacabbbbaacc", "ac")</code> yields <code>"bbbb"</code>.
558+
</p>
559+
</div>
560+
560561
<div style="clear: both"></div>
561562
</div>
562563
</div>
@@ -574,18 +575,18 @@ <h4 id="lstripChars">std.lstripChars(str, chars)</h4>
574575
<div class="hgroup">
575576
<div class="hgroup-inline">
576577
<div class="panel">
578+
<em>Available since version 0.15.0.</em>
577579
<p>Removes characters <code>chars</code> from the beginning of <code>str</code>.</p>
578-
</div>
579-
<p>
580-
Example: <code>std.lstripChars(" test test test ", " ")</code> yields <code>"test test test "</code>.
581-
</p>
582-
<p>
583-
Example: <code>std.lstripChars("aaabbbbcccc", "ac")</code> yields <code>"bbbbcccc"</code>.
584-
</p>
585-
<p>
586-
Example: <code>std.lstripChars("cacabbbbaacc", "ac")</code> yields <code>"bbbbaacc"</code>.
587-
</p>
588-
<em>Available in upcoming version.</em>
580+
<p>
581+
Example: <code>std.lstripChars(" test test test ", " ")</code> yields <code>"test test test "</code>.
582+
</p>
583+
<p>
584+
Example: <code>std.lstripChars("aaabbbbcccc", "ac")</code> yields <code>"bbbbcccc"</code>.
585+
</p>
586+
<p>
587+
Example: <code>std.lstripChars("cacabbbbaacc", "ac")</code> yields <code>"bbbbaacc"</code>.
588+
</p>
589+
` </div>
589590
<div style="clear: both"></div>
590591
</div>
591592
</div>
@@ -603,18 +604,18 @@ <h4 id="rstripChars">std.rstripChars(str, chars)</h4>
603604
<div class="hgroup">
604605
<div class="hgroup-inline">
605606
<div class="panel">
607+
<em>Available since version 0.15.0.</em>
606608
<p>Removes characters <code>chars</code> from the beginning and from the end of <code>str</code>.</p>
609+
<p>
610+
Example: <code>std.rstripChars(" test test test ", " ")</code> yields <code>" test test test"</code>.
611+
</p>
612+
<p>
613+
Example: <code>std.rstripChars("aaabbbbcccc", "ac")</code> yields <code>"aaabbbb"</code>.
614+
</p>
615+
<p>
616+
Example: <code>std.rstripChars("cacabbbbaacc", "ac")</code> yields <code>"cacabbbb"</code>.
617+
</p>
607618
</div>
608-
<p>
609-
Example: <code>std.rstripChars(" test test test ", " ")</code> yields <code>" test test test"</code>.
610-
</p>
611-
<p>
612-
Example: <code>std.rstripChars("aaabbbbcccc", "ac")</code> yields <code>"aaabbbb"</code>.
613-
</p>
614-
<p>
615-
Example: <code>std.rstripChars("cacabbbbaacc", "ac")</code> yields <code>"cacabbbb"</code>.
616-
</p>
617-
<em>Available in upcoming version.</em>
618619
<div style="clear: both"></div>
619620
</div>
620621
</div>
@@ -977,10 +978,10 @@ <h4 id="parseHex">std.parseHex(str)</h4>
977978
<div class="hgroup-inline">
978979
<div class="panel">
979980
<h4 id="parseJson">std.parseJson(str)</h4>
981+
<em>Available since version 0.13.0.</em>
980982
<p>
981983
Parses a JSON string.
982984
</p>
983-
<em>Available since version 0.13.0</em>
984985
<p>Example: <code>std.parseJson('{"foo": "bar"}')</code> yields <code>{"foo": "bar"}</code>.</p>
985986
</div>
986987
<div style="clear: both"></div>
@@ -991,7 +992,7 @@ <h4 id="parseJson">std.parseJson(str)</h4>
991992
<div class="hgroup-inline">
992993
<div class="panel">
993994
<h4 id="encodeUTF8">std.encodeUTF8(str)</h4>
994-
<em>Available since version 0.13.0</em>
995+
<em>Available since version 0.13.0.</em>
995996
<p>
996997
Encode a string using <a href="https://en.wikipedia.org/wiki/UTF-8">UTF8</a>. Returns an array of numbers
997998
representing bytes.
@@ -1013,7 +1014,7 @@ <h4 id="decodeUTF8">std.decodeUTF8(arr)</h4>
10131014
<div class="hgroup">
10141015
<div class="hgroup-inline">
10151016
<div class="panel">
1016-
<em>Available since version 0.13.0</em>
1017+
<em>Available since version 0.13.0.</em>
10171018
<p>
10181019
Decode an array of numbers representing bytes using <a href="https://en.wikipedia.org/wiki/UTF-8">UTF8</a>.
10191020
Returns a string.
@@ -1418,11 +1419,11 @@ <h4 id="member">std.member(arr, x)</h4>
14181419
<div class="hgroup">
14191420
<div class="hgroup-inline">
14201421
<div class="panel">
1422+
<em>Available since version 0.15.0.</em>
14211423
<p>
14221424
Returns whether <code>x</code> occurs in <code>arr</code>.
14231425
Argument <code>arr</code> may be an array or a string.
14241426
</p>
1425-
<em>Available in upcoming version.</em>
14261427
</div>
14271428
<div style="clear: both"></div>
14281429
</div>
@@ -1660,14 +1661,14 @@ <h4 id="repeat">std.repeat(what, count)</h4>
16601661
<div class="hgroup">
16611662
<div class="hgroup-inline">
16621663
<div class="panel">
1664+
<em>Available since version 0.15.0.</em>
16631665
<p>Repeats an array or a string <code>what</code> a number of times specified by an integer <code>count</code>.</p>
16641666
<p>
16651667
Example: <code>std.repeat([1, 2, 3], 3)</code> yields <code>[1, 2, 3, 1, 2, 3, 1, 2, 3]</code>.
16661668
</p>
16671669
<p>
16681670
Example 2: <code>std.repeat("blah", 2)</code> yields <code>"blahblah"</code>.
16691671
</p>
1670-
<em>Available in upcoming release.</em>
16711672
</div>
16721673
<div style="clear: both"></div>
16731674
</div>
@@ -1761,8 +1762,8 @@ <h4 id="sort">std.reverse(arr)</h4>
17611762
<div class="hgroup">
17621763
<div class="hgroup-inline">
17631764
<div class="panel">
1765+
<em>Available since version 0.13.0.</em>
17641766
<p>Reverses an array.</p>
1765-
<em>Available since version 0.13.0</em>
17661767
</div>
17671768
<div style="clear: both"></div>
17681769
</div>
@@ -2101,11 +2102,11 @@ <h4 id="trace">std.trace(str, rest)</h4>
21012102
<div class="hgroup">
21022103
<div class="hgroup-inline">
21032104
<div class="panel">
2105+
<em>Available since version 0.11.0.</em>
21042106
<p>
21052107
Outputs the given string <code>str</code> to stderr and
21062108
returns <code>rest</code> as the result.
21072109
</p>
2108-
<em>Available since version 0.11.0</em>
21092110
<p>Example:</p>
21102111
<p>
21112112
<pre>local conditionalReturn(cond, in1, in2) =

include/libjsonnet.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ limitations under the License.
3131
*
3232
* If this isn't the sae as jsonnet_version() then you've got a mismatched binary / header.
3333
*/
34-
#define LIB_JSONNET_VERSION "v0.14.0"
34+
#define LIB_JSONNET_VERSION "v0.15.0"
3535

3636
/** Return the version string of the Jsonnet interpreter. Conforms to semantic versioning
3737
* http://semver.org/ If this does not match LIB_JSONNET_VERSION then there is a mismatch between

test_cmd/fmt_help.golden.stdout.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Jsonnet reformatter v0.14.0
1+
Jsonnet reformatter v0.15.0
22

33
jsonnetfmt {<option>} { <filename> }
44

test_cmd/fmt_no_args.golden.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
ERROR: must give filename
22

3-
Jsonnet reformatter v0.14.0
3+
Jsonnet reformatter v0.15.0
44

55
jsonnetfmt {<option>} { <filename> }
66

test_cmd/fmt_version1.golden.stdout

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Jsonnet reformatter v0.14.0
1+
Jsonnet reformatter v0.15.0

test_cmd/fmt_version2.golden.stdout

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Jsonnet reformatter v0.14.0
1+
Jsonnet reformatter v0.15.0

test_cmd/help.golden.stdout.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Jsonnet commandline interpreter v0.14.0
1+
Jsonnet commandline interpreter v0.15.0
22

33
jsonnet {<option>} <filename>
44

test_cmd/help.golden.stdout.golang

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Jsonnet commandline interpreter v0.14.0
1+
Jsonnet commandline interpreter v0.15.0
22

33
jsonnet {<option>} <filename>
44

test_cmd/no_args.golden.stderr.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
ERROR: must give filename
22

3-
Jsonnet commandline interpreter v0.14.0
3+
Jsonnet commandline interpreter v0.15.0
44

55
jsonnet {<option>} <filename>
66

test_cmd/no_args.golden.stderr.golang

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
ERROR: must give filename
22

3-
Jsonnet commandline interpreter v0.14.0
3+
Jsonnet commandline interpreter v0.15.0
44

55
jsonnet {<option>} <filename>
66

test_cmd/version1.golden.stdout

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Jsonnet commandline interpreter v0.14.0
1+
Jsonnet commandline interpreter v0.15.0

test_cmd/version2.golden.stdout

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Jsonnet commandline interpreter v0.14.0
1+
Jsonnet commandline interpreter v0.15.0

0 commit comments

Comments
 (0)