diff --git a/.changeset/tiny-tools-share.md b/.changeset/tiny-tools-share.md deleted file mode 100644 index 7834844d..00000000 --- a/.changeset/tiny-tools-share.md +++ /dev/null @@ -1,25 +0,0 @@ ---- -"@styra/ucast-prisma": patch ---- - -Introduce laxer handling of empty compound conditions - -This aligns better with common Rego patterns, like using multi-value -rules for generating conditions: - -```rego -conditions.or contains {"tickets.resolved": false} if { ... } -``` - -If the RHS is not satisfied, the conditions would yield - -```json -{ - "conditions": { - "or": [] - } -} -``` - -and with this change, this will be valid. The condition itself is -going to be dropped. diff --git a/packages/ucast-prisma/CHANGELOG.md b/packages/ucast-prisma/CHANGELOG.md index f276b281..ab4cbfb2 100644 --- a/packages/ucast-prisma/CHANGELOG.md +++ b/packages/ucast-prisma/CHANGELOG.md @@ -1,5 +1,31 @@ # @styra/ucast-prisma +## 0.0.4 + +### Patch Changes + +- 3920db7: Introduce laxer handling of empty compound conditions + + This aligns better with common Rego patterns, like using multi-value + rules for generating conditions: + + ```rego + conditions.or contains {"tickets.resolved": false} if { ... } + ``` + + If the RHS is not satisfied, the conditions would yield + + ```json + { + "conditions": { + "or": [] + } + } + ``` + + and with this change, this will be valid. The condition itself is + going to be dropped. + ## 0.0.3 ### Patch Changes diff --git a/packages/ucast-prisma/package.json b/packages/ucast-prisma/package.json index a297427a..b7fd176d 100644 --- a/packages/ucast-prisma/package.json +++ b/packages/ucast-prisma/package.json @@ -1,6 +1,6 @@ { "name": "@styra/ucast-prisma", - "version": "0.0.3", + "version": "0.0.4", "repository": { "type": "git", "url": "https://github.com/StyraInc/opa-typescript.git",