diff --git a/CHANGELOG.md b/CHANGELOG.md index e6f2135d..563d0576 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,10 @@ # CHANGELOG + - 0.12.3 (2020-09-02) + * Fix a bug in indexing set rules using literal values. + * Improve typing for arrays. We allow more granular, per-index types + which is especially helpful when using arrays as tuples. + - 0.12.2 (2020-08-07) * Support using data imports as variables directly diff --git a/fregot.cabal b/fregot.cabal index d4e41b57..eca1c82a 100644 --- a/fregot.cabal +++ b/fregot.cabal @@ -1,5 +1,5 @@ Name: fregot -Version: 0.12.2 +Version: 0.12.3 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 664fd4ec..a3f4ec69 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.12.2 repl - use :help for usage info +fregot v0.12.3 repl - use :help for usage info diff --git a/tests/golden/repl/break-data.stderr b/tests/golden/repl/break-data.stderr index 68b884e6..4d263173 100644 --- a/tests/golden/repl/break-data.stderr +++ b/tests/golden/repl/break-data.stderr @@ -1,3 +1,3 @@ F u g u e R E G O T o o l k i t -fregot v0.12.2 repl - use :help for usage info +fregot v0.12.3 repl - use :help for usage info Set breakpoint at step.test_step diff --git a/tests/golden/repl/break-source.stderr b/tests/golden/repl/break-source.stderr index 59ebed64..22ac4243 100644 --- a/tests/golden/repl/break-source.stderr +++ b/tests/golden/repl/break-source.stderr @@ -1,3 +1,3 @@ F u g u e R E G O T o o l k i t -fregot v0.12.2 repl - use :help for usage info +fregot v0.12.3 repl - use :help for usage info Set breakpoint at step.rego:5 diff --git a/tests/golden/repl/break-unset.stderr b/tests/golden/repl/break-unset.stderr index 1eed1301..a7c89e49 100644 --- a/tests/golden/repl/break-unset.stderr +++ b/tests/golden/repl/break-unset.stderr @@ -1,5 +1,5 @@ F u g u e R E G O T o o l k i t -fregot v0.12.2 repl - use :help for usage info +fregot v0.12.3 repl - use :help for usage info Set breakpoint at step.rego:5 Removed breakpoint at step.rego:5 no breakpoints set diff --git a/tests/golden/repl/debug-cache.stderr b/tests/golden/repl/debug-cache.stderr index 33201c16..cc26d8ff 100644 --- a/tests/golden/repl/debug-cache.stderr +++ b/tests/golden/repl/debug-cache.stderr @@ -1,5 +1,5 @@ F u g u e R E G O T o o l k i t -fregot v0.12.2 repl - use :help for usage info +fregot v0.12.3 repl - use :help for usage info Loading debug-cache.rego... Loaded package fregot.tests.repl.debug_cache Set breakpoint at fregot.tests.repl.debug_cache.test_allow diff --git a/tests/golden/repl/debug-context.stderr b/tests/golden/repl/debug-context.stderr index 6b89ea27..693c24c5 100644 --- a/tests/golden/repl/debug-context.stderr +++ b/tests/golden/repl/debug-context.stderr @@ -1,3 +1,3 @@ F u g u e R E G O T o o l k i t -fregot v0.12.2 repl - use :help for usage info +fregot v0.12.3 repl - use :help for usage info Set breakpoint at debug_context.valid_security_groups diff --git a/tests/golden/repl/debug-error.stderr b/tests/golden/repl/debug-error.stderr index e0a1e1b6..3016be61 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.12.2 repl - use :help for usage info +fregot v0.12.3 repl - use :help for usage info Set breakpoint at debug_error.test_crash fregot (eval error): "debug-error.rego" (line 5, column 3): diff --git a/tests/golden/repl/debug-reload.stderr b/tests/golden/repl/debug-reload.stderr index 762939a0..320c9752 100644 --- a/tests/golden/repl/debug-reload.stderr +++ b/tests/golden/repl/debug-reload.stderr @@ -1,5 +1,5 @@ F u g u e R E G O T o o l k i t -fregot v0.12.2 repl - use :help for usage info +fregot v0.12.3 repl - use :help for usage info Rule rule added Set breakpoint at repl.rule 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 68948799..bf1a3572 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.12.2 repl - use :help for usage info +fregot v0.12.3 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 664fd4ec..a3f4ec69 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.12.2 repl - use :help for usage info +fregot v0.12.3 repl - use :help for usage info diff --git a/tests/golden/repl/input-yaml.stderr b/tests/golden/repl/input-yaml.stderr index 664fd4ec..a3f4ec69 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.12.2 repl - use :help for usage info +fregot v0.12.3 repl - use :help for usage info diff --git a/tests/golden/repl/load-data.stderr b/tests/golden/repl/load-data.stderr index 9f69c00c..3b90cd96 100644 --- a/tests/golden/repl/load-data.stderr +++ b/tests/golden/repl/load-data.stderr @@ -1,4 +1,4 @@ F u g u e R E G O T o o l k i t -fregot v0.12.2 repl - use :help for usage info +fregot v0.12.3 repl - use :help for usage info Loading data.yaml... OK diff --git a/tests/golden/repl/load.stderr b/tests/golden/repl/load.stderr index 28f89634..ee20eab7 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.12.2 repl - use :help for usage info +fregot v0.12.3 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 da8df46e..da6cfbf9 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.12.2 repl - use :help for usage info +fregot v0.12.3 repl - use :help for usage info Warning: package mypkg1 contains no rules Rule r added Warning: package mypkg2 contains no rules diff --git a/tests/golden/repl/plain-call.stderr b/tests/golden/repl/plain-call.stderr index 664fd4ec..a3f4ec69 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.12.2 repl - use :help for usage info +fregot v0.12.3 repl - use :help for usage info diff --git a/tests/golden/repl/prefix-data.stderr b/tests/golden/repl/prefix-data.stderr index 5076dff7..8741a8a8 100644 --- a/tests/golden/repl/prefix-data.stderr +++ b/tests/golden/repl/prefix-data.stderr @@ -1,4 +1,4 @@ F u g u e R E G O T o o l k i t -fregot v0.12.2 repl - use :help for usage info +fregot v0.12.3 repl - use :help for usage info Loading prefix-data.json... OK diff --git a/tests/golden/repl/pretty.stderr b/tests/golden/repl/pretty.stderr index 70f35fa6..db620d77 100644 --- a/tests/golden/repl/pretty.stderr +++ b/tests/golden/repl/pretty.stderr @@ -1,4 +1,4 @@ F u g u e R E G O T o o l k i t -fregot v0.12.2 repl - use :help for usage info +fregot v0.12.3 repl - use :help for usage info Loading pretty.rego... Loaded package pretty diff --git a/tests/golden/repl/rewind.stderr b/tests/golden/repl/rewind.stderr index 7e63b439..5ac61104 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.12.2 repl - use :help for usage info +fregot v0.12.3 repl - use :help for usage info Set breakpoint at rewind.crashing_rule fregot (eval error): "rewind.rego" (line 5, column 3): diff --git a/tests/golden/repl/set.stderr b/tests/golden/repl/set.stderr index 664fd4ec..a3f4ec69 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.12.2 repl - use :help for usage info +fregot v0.12.3 repl - use :help for usage info diff --git a/tests/golden/repl/step-into.stderr b/tests/golden/repl/step-into.stderr index 68b884e6..4d263173 100644 --- a/tests/golden/repl/step-into.stderr +++ b/tests/golden/repl/step-into.stderr @@ -1,3 +1,3 @@ F u g u e R E G O T o o l k i t -fregot v0.12.2 repl - use :help for usage info +fregot v0.12.3 repl - use :help for usage info Set breakpoint at step.test_step diff --git a/tests/golden/repl/step-over.stderr b/tests/golden/repl/step-over.stderr index 68b884e6..4d263173 100644 --- a/tests/golden/repl/step-over.stderr +++ b/tests/golden/repl/step-over.stderr @@ -1,3 +1,3 @@ F u g u e R E G O T o o l k i t -fregot v0.12.2 repl - use :help for usage info +fregot v0.12.3 repl - use :help for usage info Set breakpoint at step.test_step diff --git a/tests/golden/repl/test.stderr b/tests/golden/repl/test.stderr index 48d0eb6c..9b6da650 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.12.2 repl - use :help for usage info +fregot v0.12.3 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 524d99bd..031072df 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.12.2 repl - use :help for usage info +fregot v0.12.3 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 4332874a..142efdd9 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.12.2 repl - use :help for usage info +fregot v0.12.3 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 664fd4ec..a3f4ec69 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.12.2 repl - use :help for usage info +fregot v0.12.3 repl - use :help for usage info diff --git a/tests/golden/types/granular.stderr b/tests/golden/types/granular.stderr index 0f1428bf..27457185 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.12.2 repl - use :help for usage info +fregot v0.12.3 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 a10359be..9ae8d4f4 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.12.2 repl - use :help for usage info +fregot v0.12.3 repl - use :help for usage info Loading rules.rego... Loaded package rules