diff --git a/manifest.json b/manifest.json index a784fadc..7f610802 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "id": "dataview", "name": "Dataview", - "version": "0.2.5", + "version": "0.2.6", "minAppVersion": "0.10.13", "description": "Complex data views for the data-obsessed.", "author": "Michael Brenan ", diff --git a/package.json b/package.json index c70f78b5..5419bbed 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "obsidian-dataview", - "version": "0.2.5", + "version": "0.2.6", "description": "Advanced data views for Obsidian.md.", "main": "main.js", "scripts": { diff --git a/src/parse.ts b/src/parse.ts index 12b91bf4..e45659a2 100644 --- a/src/parse.ts +++ b/src/parse.ts @@ -33,7 +33,7 @@ export const DURATION_TYPES = { * Keywords which cannot be used as variables directly. Use `row.` if it is a variable you have defined and want * to access. */ -export const KEYWORDS = ["FROM", "WHERE", "LIMIT", "GROUP", "SORT", "FLATTEN", "TABLE", "LIST", "TASK"]; +export const KEYWORDS = ["FROM", "WHERE", "LIMIT", "GROUP", "FLATTEN"]; /////////////// // Utilities // @@ -225,7 +225,7 @@ export const EXPRESSION = P.createLanguage({ // Field parsing. variableField: q => q.identifier.chain(r => { - if (KEYWORDS.contains(r.toUpperCase())) { + if (KEYWORDS.includes(r.toUpperCase())) { return P.fail("Variable fields cannot be a keyword (" + KEYWORDS.join(" or ") + ")"); } else { return P.succeed(Fields.variable(r)); diff --git a/versions.json b/versions.json index 63af354f..0ff1f164 100644 --- a/versions.json +++ b/versions.json @@ -17,5 +17,6 @@ "0.2.2": "0.10.13", "0.2.3": "0.10.13", "0.2.4": "0.10.13", - "0.2.5": "0.10.13" + "0.2.5": "0.10.13", + "0.2.6": "0.10.13" }