Rohit Jangid
ae9a67d6e5
Add argument in parseXmlJsonml function
2023-06-27 13:35:59 +05:30
Rohit Jangid
a2105c2532
feat: Implement std.parseXmlJsonml
2023-06-27 13:09:11 +05:30
zephyros-dev
fed90cd9cd
fix: add std.objectKeysValues to jsonnet-lint ( #706 )
2023-06-26 20:40:39 +01:00
Charles Korn
7b9f5fd4b4
Expose "unparse", FormatNode and RawAST ( #710 )
...
* Export FormatNode so external users can pretty print an AST
Signed-off-by: Tom Wilkie <tom@grafana.com>
* Expose RawAST function.
Signed-off-by: Tom Wilkie <tom@grafana.com>
* Add comment
Signed-off-by: Tom Wilkie <tom@grafana.com>
---------
Signed-off-by: Tom Wilkie <tom@grafana.com>
Co-authored-by: Tom Wilkie <tom@grafana.com>
2023-06-14 19:56:49 +01:00
Sean Gillespie
9639773cf0
Teach jsonnet-lint about optional parameters of std.manifestYamlDoc ( #705 )
...
manifestYamlDoc takes two optional parameters, `indent_array_in_object` and `quote_keys`. This commit teaches jsonnet-lint about them so that it doesn't raise errors when you use them.
There are other stdlib library functions with this problem; the true solution is probably to auto-generate this from the stdlib AST, but this at least gets the linter happy with this particular function.
2023-06-13 21:18:35 +01:00
Tareq Al-Maamari
16a10df1a7
chore: bump go to 1.20 ( #707 )
...
This will also resolve few vulnerabilities.
2023-06-13 21:17:47 +01:00
take
b7d09417d8
Remove .DS_Store ( #703 )
2023-06-13 21:13:31 +01:00
Jayme Bird
5fb0b0b578
feat: add std reverse linter ( #709 )
...
* feat: add std.reverse to linter
* feat: add linter test case
* feat: fix linter golden test data
2023-06-13 20:15:23 +01:00
Rohit Jangid
2a7260d60c
feat: Add more math functions ( #702 )
...
Co-authored-by: Dave Cunningham <sparkprime@gmail.com>
2023-06-13 20:14:26 +01:00
Deep Goel
572c054137
feat: implement std.avg ( #700 )
...
* feat: implement std.avg
2023-06-13 17:42:05 +01:00
Rohit Jangid
aece6e9b90
feat: add more crypto functions ( #699 )
...
* feat: add more crypto functions
2023-06-13 17:18:02 +01:00
Morten Mjelva
1096691eec
feat: Add support for bzlmod ( #698 )
...
* Add support for bzlmod
2023-06-13 16:57:38 +01:00
Tejesh Raut
fae841124f
Implement std.trim for string ( #684 )
...
* Implement std.trim for string
2023-06-13 13:05:28 +01:00
Jonathan Regehr
44538a33e1
Adds std.any and std.all to jsonnet-lint ( #695 )
...
Co-authored-by: Dave Cunningham <sparkprime@gmail.com>
2023-05-25 14:09:56 +01:00
Deep Goel
7edd5d373b
feat: implement std.maxArray ( #696 )
2023-05-25 13:45:24 +01:00
Rohit Jangid
4bb6e388b7
feat: implement std.equalsIgnoreCase ( #692 )
2023-05-25 13:32:39 +01:00
Rohit Jangid
25d3372c98
feat: implement std.remove and std.removeAt ( #689 )
...
* feat: implement std.remove and std.removeAt
* Update builtins.go
---------
Co-authored-by: Dave Cunningham <sparkprime@gmail.com>
2023-05-25 13:32:21 +01:00
Rohit Jangid
3c7c0cbac8
feat: implement objectRemoveKey ( #686 )
2023-05-25 12:55:30 +01:00
Yuki Yugui Sonoda
868d9c6f11
Resolves a false-positive detection of multi-doc YAML streams ( #693 )
...
Fixes #673 .
2023-05-03 19:37:04 +01:00
Deep Goel
9c0b362ba7
feat: implement std.minArray ( #685 )
...
* feat: implement std.minArray
2023-05-03 19:13:56 +01:00
Rohit Jangid
76e4fc2221
feat: implement std.contains ( #691 )
2023-05-03 19:06:07 +01:00
Dave Cunningham
7903819abf
Bump version to 0.20.0 ( #688 )
2023-04-17 20:44:57 +01:00
Dave Cunningham
0e07fcda92
Update cpp version ( #687 )
2023-04-17 18:29:20 +01:00
Dave Cunningham
c484aec526
increase go rules version to fix bazel build
2023-04-14 16:34:55 +01:00
Dave Cunningham
5afe130669
fix newline issue breaking test
2023-04-13 15:33:24 +01:00
Rohit Jangid
18377e6f9f
Add std.round
function in standard library. ( #683 )
...
Co-authored-by: Dave Cunningham <sparkprime@gmail.com>
2023-04-13 15:32:54 +01:00
Dave Cunningham
b0ff20a87c
fix tests
2023-04-13 15:28:29 +01:00
Tejesh Raut
c63eb61eb3
Implement std.isEmpty for string ( #678 )
...
* Implement std.isEmpty for string
2023-04-13 15:24:47 +01:00
Saloni Juneja
ff691b0f18
Fixing test cases
2023-04-13 15:14:10 +01:00
Saloni Juneja
91ebf4b09e
Add std.xor for 2 booleans
2023-04-13 15:14:10 +01:00
Rohit Jangid
772ebba669
Add support to return int based value from native functions golang implementations
2023-04-13 14:51:53 +01:00
Saloni Juneja
4df8c17aa3
Updated test cases
2023-03-28 17:13:31 +01:00
Saloni Juneja
4c83cff898
Fixed test cases
2023-03-28 17:13:31 +01:00
Saloni Juneja
67c8bf4a53
Implement std.xor for booleans
2023-03-28 17:13:31 +01:00
Rohit Jangid
83b9f8341f
feat: implement std.sum
2023-02-17 13:19:50 +00:00
Jordan Cohen
b38dfbb86e
adding jsonnet-deps to release ( #667 )
...
Co-authored-by: Jordan Cohen <jordan.cohen@digitalasset.com>
2023-02-02 19:29:28 +00:00
Sheridan C Rawlins
a39e181c51
[661] Update stdlib to get std.escapeStringXml ( #662 )
...
See
- https://github.com/google/jsonnet/issues/1037
- https://github.com/google/jsonnet/pull/1038
2023-01-29 17:54:54 +00:00
Iain Lane
506b37365e
fix: Make lstripChars and rStripChars work with multibyte characters ( #663 )
...
We're currently working with the length of the string itself, which is
the number of bytes. That's wrong in these functions which operate at
the level of characters. When applied to a string with a multibyte
character they can return the wrong result. For example, evaluating
`std.rstripChars('• foo\n', '\n')` results in `"• f"`.
What we need to do instead is get the number of runes, and remove one
rune at a time.
2023-01-29 17:44:20 +00:00
Jonathan Regehr
123396675b
Adds jsonnet-lint to the releases ( #664 )
2023-01-16 20:12:40 +00:00
Jack
353caa131c
docs: explicit addition for installing other tools ( #658 )
2022-11-28 22:54:29 +00:00
Salva Corts
0504998e1e
Fix std.member matching sub strings ( #657 )
...
* Fix std.member for strings
* Add test case for matching substr in std.member
2022-11-23 20:42:49 +00:00
August Karlstedt
b4633b66f8
Update deps.bzl
2022-10-31 14:49:09 +00:00
Aaron Jheng
f30e2329be
Bump go to 1.17
2022-10-31 14:46:30 +00:00
Dave Cunningham
c298238534
Bump version to v0.19.1
2022-10-27 20:58:41 +01:00
Dave Cunningham
1b99719599
Update python to match cpp version
2022-10-27 20:41:44 +01:00
Dave Cunningham
ec039600bc
Update version to v0.19.0
2022-10-26 20:56:31 +01:00
Dave Cunningham
c1825dc54d
Update to latest CPP version
2022-10-26 16:13:21 +01:00
Angus Lees
3f664d81b3
Add a CI test that exercises bazel builds
...
If it's not tested, then it doesn't work. Add a CI test that
executes `bazel build //...` and `bazel test //...`, in addition to
the non-bazel build system.
2022-10-26 13:51:42 +01:00
Angus Lees
0a32b8c327
Fix //c-bindings bazel build
...
Add missing bazel dependency so `bazel build //c-bindings` works again.
2022-10-26 13:03:12 +01:00
Angus Lees
e33730a31e
Fix jsonnet-lint bazel build
...
Update BUILD.bazel files so `bazel build //cmd/jsonnet-lint` works
again.
2022-10-26 13:02:57 +01:00