Remove Nim 1.6.x support

Fixes #1311
This commit is contained in:
Zed
2025-11-23 17:28:11 +01:00
parent b0d9c1d51a
commit f8a17fdaa5
3 changed files with 3 additions and 4 deletions

View File

@@ -50,8 +50,7 @@ template with*(ident, value, body): untyped =
template with*(ident; value: JsonNode; body): untyped =
if true:
let ident {.inject.} = value
# value.notNull causes a compilation error for versions < 1.6.14
if notNull(value): body
if value.notNull: body
template getCursor*(js: JsonNode): string =
js{"content", "operation", "cursor", "value"}.getStr