diff --git a/CHANGELOG.md b/CHANGELOG.md index a22a73b0..14ff5741 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,23 @@ # CHANGELOG + - 0.10.0 (2020-05-04) + * Add `json.marshal` builtin function. + * Fix isssue where `{}` was treated as an empty set, not an empty object. + * Add `base64` builtin functions: + + - `base64.encode` + - `base64.decode` + - `base64url.encode` + - `base64url.decode` + * Add `io.jwt` builtin functions: + + - `io.jwt.encode_sign` + - `io.jwt.decode` + - `io.jwt.decode_verify` + + These use an external library and will not work for all key types. We + can resolve that as demand for other key types comes up. + - 0.9.1 (2020-04-17) * Better error for foo.bar() if foo is not imported * Disallow :reload while debugging diff --git a/fregot.cabal b/fregot.cabal index 02c5b716..30f4de0c 100644 --- a/fregot.cabal +++ b/fregot.cabal @@ -1,5 +1,5 @@ Name: fregot -Version: 0.9.1 +Version: 0.10.0 Synopsis: Fugue Rego Toolkit License: Apache-2.0 License-file: LICENSE diff --git a/tests/golden/cli/repl-input.stderr b/tests/golden/cli/repl-input.stderr index e08ac8b7..21ae90c6 100644 --- a/tests/golden/cli/repl-input.stderr +++ b/tests/golden/cli/repl-input.stderr @@ -1,2 +1,2 @@ F u g u e R E G O T o o l k i t -fregot v0.9.1 repl - use :help for usage info +fregot v0.10.0 repl - use :help for usage info diff --git a/tests/golden/repl/break-data.stderr b/tests/golden/repl/break-data.stderr index e08ac8b7..21ae90c6 100644 --- a/tests/golden/repl/break-data.stderr +++ b/tests/golden/repl/break-data.stderr @@ -1,2 +1,2 @@ F u g u e R E G O T o o l k i t -fregot v0.9.1 repl - use :help for usage info +fregot v0.10.0 repl - use :help for usage info diff --git a/tests/golden/repl/break-source.stderr b/tests/golden/repl/break-source.stderr index e08ac8b7..21ae90c6 100644 --- a/tests/golden/repl/break-source.stderr +++ b/tests/golden/repl/break-source.stderr @@ -1,2 +1,2 @@ F u g u e R E G O T o o l k i t -fregot v0.9.1 repl - use :help for usage info +fregot v0.10.0 repl - use :help for usage info diff --git a/tests/golden/repl/debug-cache.stderr b/tests/golden/repl/debug-cache.stderr index 066db81b..7de371ce 100644 --- a/tests/golden/repl/debug-cache.stderr +++ b/tests/golden/repl/debug-cache.stderr @@ -1,4 +1,4 @@ F u g u e R E G O T o o l k i t -fregot v0.9.1 repl - use :help for usage info +fregot v0.10.0 repl - use :help for usage info Loading debug-cache.rego... Loaded package fregot.tests.repl.debug_cache diff --git a/tests/golden/repl/debug-context.stderr b/tests/golden/repl/debug-context.stderr index e08ac8b7..21ae90c6 100644 --- a/tests/golden/repl/debug-context.stderr +++ b/tests/golden/repl/debug-context.stderr @@ -1,2 +1,2 @@ F u g u e R E G O T o o l k i t -fregot v0.9.1 repl - use :help for usage info +fregot v0.10.0 repl - use :help for usage info diff --git a/tests/golden/repl/debug-error.stderr b/tests/golden/repl/debug-error.stderr index 3b6c7622..597035d9 100644 --- a/tests/golden/repl/debug-error.stderr +++ b/tests/golden/repl/debug-error.stderr @@ -1,5 +1,5 @@ F u g u e R E G O T o o l k i t -fregot v0.9.1 repl - use :help for usage info +fregot v0.10.0 repl - use :help for usage info fregot (eval error): "debug-error.rego" (line 5, column 3): builtin type error: diff --git a/tests/golden/repl/debug-reload.stderr b/tests/golden/repl/debug-reload.stderr index 73a7d835..c637a347 100644 --- a/tests/golden/repl/debug-reload.stderr +++ b/tests/golden/repl/debug-reload.stderr @@ -1,4 +1,4 @@ F u g u e R E G O T o o l k i t -fregot v0.9.1 repl - use :help for usage info +fregot v0.10.0 repl - use :help for usage info Rule rule added Reloading when debugging is not possible as it would modify the code currently running. diff --git a/tests/golden/repl/help.stderr b/tests/golden/repl/help.stderr index 4e805599..5a6a5225 100644 --- a/tests/golden/repl/help.stderr +++ b/tests/golden/repl/help.stderr @@ -1,5 +1,5 @@ F u g u e R E G O T o o l k i t -fregot v0.9.1 repl - use :help for usage info +fregot v0.10.0 repl - use :help for usage info Enter an expression to evaluate it. Enter a rule to add it to the current package. diff --git a/tests/golden/repl/input-doc.stderr b/tests/golden/repl/input-doc.stderr index e08ac8b7..21ae90c6 100644 --- a/tests/golden/repl/input-doc.stderr +++ b/tests/golden/repl/input-doc.stderr @@ -1,2 +1,2 @@ F u g u e R E G O T o o l k i t -fregot v0.9.1 repl - use :help for usage info +fregot v0.10.0 repl - use :help for usage info diff --git a/tests/golden/repl/input-yaml.stderr b/tests/golden/repl/input-yaml.stderr index e08ac8b7..21ae90c6 100644 --- a/tests/golden/repl/input-yaml.stderr +++ b/tests/golden/repl/input-yaml.stderr @@ -1,2 +1,2 @@ F u g u e R E G O T o o l k i t -fregot v0.9.1 repl - use :help for usage info +fregot v0.10.0 repl - use :help for usage info diff --git a/tests/golden/repl/load.stderr b/tests/golden/repl/load.stderr index ab88e255..e62234c2 100644 --- a/tests/golden/repl/load.stderr +++ b/tests/golden/repl/load.stderr @@ -1,4 +1,4 @@ F u g u e R E G O T o o l k i t -fregot v0.9.1 repl - use :help for usage info +fregot v0.10.0 repl - use :help for usage info Loading load.rego... Loaded package fregot.tests.repl.load diff --git a/tests/golden/repl/open.stderr b/tests/golden/repl/open.stderr index 7a2a3e33..772adb95 100644 --- a/tests/golden/repl/open.stderr +++ b/tests/golden/repl/open.stderr @@ -1,5 +1,5 @@ F u g u e R E G O T o o l k i t -fregot v0.9.1 repl - use :help for usage info +fregot v0.10.0 repl - use :help for usage info Created new package mypkg1 Rule r added Created new package mypkg2 diff --git a/tests/golden/repl/plain-call.stderr b/tests/golden/repl/plain-call.stderr index e08ac8b7..21ae90c6 100644 --- a/tests/golden/repl/plain-call.stderr +++ b/tests/golden/repl/plain-call.stderr @@ -1,2 +1,2 @@ F u g u e R E G O T o o l k i t -fregot v0.9.1 repl - use :help for usage info +fregot v0.10.0 repl - use :help for usage info diff --git a/tests/golden/repl/rewind.stderr b/tests/golden/repl/rewind.stderr index 95e0cb01..603e1554 100644 --- a/tests/golden/repl/rewind.stderr +++ b/tests/golden/repl/rewind.stderr @@ -1,5 +1,5 @@ F u g u e R E G O T o o l k i t -fregot v0.9.1 repl - use :help for usage info +fregot v0.10.0 repl - use :help for usage info fregot (eval error): "rewind.rego" (line 5, column 3): builtin type error: diff --git a/tests/golden/repl/set.stderr b/tests/golden/repl/set.stderr index e08ac8b7..21ae90c6 100644 --- a/tests/golden/repl/set.stderr +++ b/tests/golden/repl/set.stderr @@ -1,2 +1,2 @@ F u g u e R E G O T o o l k i t -fregot v0.9.1 repl - use :help for usage info +fregot v0.10.0 repl - use :help for usage info diff --git a/tests/golden/repl/step-into.stderr b/tests/golden/repl/step-into.stderr index e08ac8b7..21ae90c6 100644 --- a/tests/golden/repl/step-into.stderr +++ b/tests/golden/repl/step-into.stderr @@ -1,2 +1,2 @@ F u g u e R E G O T o o l k i t -fregot v0.9.1 repl - use :help for usage info +fregot v0.10.0 repl - use :help for usage info diff --git a/tests/golden/repl/step-over.stderr b/tests/golden/repl/step-over.stderr index e08ac8b7..21ae90c6 100644 --- a/tests/golden/repl/step-over.stderr +++ b/tests/golden/repl/step-over.stderr @@ -1,2 +1,2 @@ F u g u e R E G O T o o l k i t -fregot v0.9.1 repl - use :help for usage info +fregot v0.10.0 repl - use :help for usage info diff --git a/tests/golden/repl/test.stderr b/tests/golden/repl/test.stderr index d99ec96d..2f0b0b63 100644 --- a/tests/golden/repl/test.stderr +++ b/tests/golden/repl/test.stderr @@ -1,4 +1,4 @@ F u g u e R E G O T o o l k i t -fregot v0.9.1 repl - use :help for usage info +fregot v0.10.0 repl - use :help for usage info Loading test.rego... Loaded package fregot.tests.repl.test diff --git a/tests/golden/repl/watch-input.stderr b/tests/golden/repl/watch-input.stderr index 1763ab42..04770d49 100644 --- a/tests/golden/repl/watch-input.stderr +++ b/tests/golden/repl/watch-input.stderr @@ -1,3 +1,3 @@ F u g u e R E G O T o o l k i t -fregot v0.9.1 repl - use :help for usage info +fregot v0.10.0 repl - use :help for usage info Reloaded watch-input-2.json diff --git a/tests/golden/repl/watch-warn.stderr b/tests/golden/repl/watch-warn.stderr index 45f4475e..d0a8f775 100644 --- a/tests/golden/repl/watch-warn.stderr +++ b/tests/golden/repl/watch-warn.stderr @@ -1,3 +1,3 @@ F u g u e R E G O T o o l k i t -fregot v0.9.1 repl - use :help for usage info +fregot v0.10.0 repl - use :help for usage info Restart the with `--watch` to enable watching. diff --git a/tests/golden/types/comprehensions.stderr b/tests/golden/types/comprehensions.stderr index e08ac8b7..21ae90c6 100644 --- a/tests/golden/types/comprehensions.stderr +++ b/tests/golden/types/comprehensions.stderr @@ -1,2 +1,2 @@ F u g u e R E G O T o o l k i t -fregot v0.9.1 repl - use :help for usage info +fregot v0.10.0 repl - use :help for usage info diff --git a/tests/golden/types/granular.stderr b/tests/golden/types/granular.stderr index 1855f1d6..8cae6b97 100644 --- a/tests/golden/types/granular.stderr +++ b/tests/golden/types/granular.stderr @@ -1,4 +1,4 @@ F u g u e R E G O T o o l k i t -fregot v0.9.1 repl - use :help for usage info +fregot v0.10.0 repl - use :help for usage info Loading granular.rego... Loaded package granular diff --git a/tests/golden/types/rules.stderr b/tests/golden/types/rules.stderr index 19197062..a1d8553f 100644 --- a/tests/golden/types/rules.stderr +++ b/tests/golden/types/rules.stderr @@ -1,4 +1,4 @@ F u g u e R E G O T o o l k i t -fregot v0.9.1 repl - use :help for usage info +fregot v0.10.0 repl - use :help for usage info Loading rules.rego... Loaded package rules