From 94118acc678f192d092e8fe6045a1da9f1cf9694 Mon Sep 17 00:00:00 2001 From: Ashutosh Narkar Date: Fri, 20 Dec 2024 12:33:52 -0800 Subject: [PATCH] docs/website/scripts: Control eval behavior via the rego.v1 import rather than setting the compatiblity flag Signed-off-by: Ashutosh Narkar --- .../website/scripts/live-blocks/src/preprocess/localEval.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/docs/website/scripts/live-blocks/src/preprocess/localEval.js b/docs/website/scripts/live-blocks/src/preprocess/localEval.js index bdd9b85c9f..dfa8e87783 100644 --- a/docs/website/scripts/live-blocks/src/preprocess/localEval.js +++ b/docs/website/scripts/live-blocks/src/preprocess/localEval.js @@ -70,12 +70,6 @@ export default async function localEval(groups, groupName, opaVersion) { async function prepEval(groups, groupName, opaVersion) { const {module, package: pkg, query, input, included} = getGroupData(groups, groupName) const base = ['eval', '--fail'] // Fail on undefined - - // eval pre-1.0 policies in v0 compatible mode. - if (semver.valid(opaVersion) && semver.satisfies(semver.coerce(opaVersion), '<1.0.0')) { - base.push('--v0-compatible') - } - const rest = [] const moduleFilenameMap = {}