From 8cbad9626509608f0dc38e6880a30d979622b0b7 Mon Sep 17 00:00:00 2001 From: Jasper Van der Jeugt Date: Thu, 19 Mar 2020 01:59:13 +0700 Subject: [PATCH] Bump version to 0.9.0 --- CHANGELOG.md | 8 ++++++++ fregot.cabal | 2 +- tests/golden/cli/repl-input.stderr | 2 +- tests/golden/repl/break-data.stderr | 2 +- tests/golden/repl/break-source.stderr | 2 +- tests/golden/repl/debug-cache.stderr | 2 +- tests/golden/repl/debug-context.stderr | 2 +- tests/golden/repl/debug-error.stderr | 2 +- tests/golden/repl/help.stderr | 2 +- tests/golden/repl/input-doc.stderr | 2 +- tests/golden/repl/input-yaml.stderr | 2 +- tests/golden/repl/load.stderr | 2 +- tests/golden/repl/open.stderr | 2 +- tests/golden/repl/plain-call.stderr | 2 +- tests/golden/repl/rewind.stderr | 2 +- tests/golden/repl/set.stderr | 2 +- tests/golden/repl/step-into.stderr | 2 +- tests/golden/repl/step-over.stderr | 2 +- tests/golden/repl/test.stderr | 2 +- tests/golden/repl/watch-input.stderr | 2 +- tests/golden/repl/watch-warn.stderr | 2 +- tests/golden/types/comprehensions.stderr | 2 +- tests/golden/types/granular.stderr | 2 +- tests/golden/types/rules.stderr | 2 +- 24 files changed, 31 insertions(+), 23 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index eede8e4c..265465f0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # CHANGELOG + - 0.9.0 (2020-03-19) + * Support `with data` statements in addition to `with input` statements. + * Fix issue when using REPL reloading and the `--input` argument. + * Fix a crashing when indexing the `null` value with a key. + * Fix scoping of `with` statements. `with` statements used to (wrongly) + affect the input for the entirety of the query, whereas they should + really only affect the current statement. + - 0.8.0 (2020-02-27) * Small performance tweaks. * Add `copyHandle` to interpreter module. diff --git a/fregot.cabal b/fregot.cabal index 4b0dd901..3ca49f59 100644 --- a/fregot.cabal +++ b/fregot.cabal @@ -1,5 +1,5 @@ Name: fregot -Version: 0.8.0 +Version: 0.9.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 8089e90b..e90b02f3 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.8.0 repl - use :help for usage info +fregot v0.9.0 repl - use :help for usage info diff --git a/tests/golden/repl/break-data.stderr b/tests/golden/repl/break-data.stderr index 8089e90b..e90b02f3 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.8.0 repl - use :help for usage info +fregot v0.9.0 repl - use :help for usage info diff --git a/tests/golden/repl/break-source.stderr b/tests/golden/repl/break-source.stderr index 8089e90b..e90b02f3 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.8.0 repl - use :help for usage info +fregot v0.9.0 repl - use :help for usage info diff --git a/tests/golden/repl/debug-cache.stderr b/tests/golden/repl/debug-cache.stderr index 12561fab..4ddab85a 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.8.0 repl - use :help for usage info +fregot v0.9.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 8089e90b..e90b02f3 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.8.0 repl - use :help for usage info +fregot v0.9.0 repl - use :help for usage info diff --git a/tests/golden/repl/debug-error.stderr b/tests/golden/repl/debug-error.stderr index b9b95f20..0e43e008 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.8.0 repl - use :help for usage info +fregot v0.9.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/help.stderr b/tests/golden/repl/help.stderr index e0e7682d..36b11b73 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.8.0 repl - use :help for usage info +fregot v0.9.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 8089e90b..e90b02f3 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.8.0 repl - use :help for usage info +fregot v0.9.0 repl - use :help for usage info diff --git a/tests/golden/repl/input-yaml.stderr b/tests/golden/repl/input-yaml.stderr index 8089e90b..e90b02f3 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.8.0 repl - use :help for usage info +fregot v0.9.0 repl - use :help for usage info diff --git a/tests/golden/repl/load.stderr b/tests/golden/repl/load.stderr index 39870ae1..71a90a07 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.8.0 repl - use :help for usage info +fregot v0.9.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 d6bc756c..f1ffdcd5 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.8.0 repl - use :help for usage info +fregot v0.9.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 8089e90b..e90b02f3 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.8.0 repl - use :help for usage info +fregot v0.9.0 repl - use :help for usage info diff --git a/tests/golden/repl/rewind.stderr b/tests/golden/repl/rewind.stderr index 620dc252..c5604cd2 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.8.0 repl - use :help for usage info +fregot v0.9.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 8089e90b..e90b02f3 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.8.0 repl - use :help for usage info +fregot v0.9.0 repl - use :help for usage info diff --git a/tests/golden/repl/step-into.stderr b/tests/golden/repl/step-into.stderr index 8089e90b..e90b02f3 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.8.0 repl - use :help for usage info +fregot v0.9.0 repl - use :help for usage info diff --git a/tests/golden/repl/step-over.stderr b/tests/golden/repl/step-over.stderr index 8089e90b..e90b02f3 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.8.0 repl - use :help for usage info +fregot v0.9.0 repl - use :help for usage info diff --git a/tests/golden/repl/test.stderr b/tests/golden/repl/test.stderr index 69edb5da..72d98c88 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.8.0 repl - use :help for usage info +fregot v0.9.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 cc2dc2cf..62330abe 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.8.0 repl - use :help for usage info +fregot v0.9.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 c4121e1c..5ddba790 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.8.0 repl - use :help for usage info +fregot v0.9.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 8089e90b..e90b02f3 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.8.0 repl - use :help for usage info +fregot v0.9.0 repl - use :help for usage info diff --git a/tests/golden/types/granular.stderr b/tests/golden/types/granular.stderr index ba76c7cb..d255af74 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.8.0 repl - use :help for usage info +fregot v0.9.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 4ca413dd..35c32e8f 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.8.0 repl - use :help for usage info +fregot v0.9.0 repl - use :help for usage info Loading rules.rego... Loaded package rules