Skip to content

Commit

Permalink
0.2.6
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Brenan committed Apr 6, 2021
1 parent a15d6de commit 2a5968a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -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 <blacksmithgu@gmail.com>",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
4 changes: 2 additions & 2 deletions src/parse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export const DURATION_TYPES = {
* Keywords which cannot be used as variables directly. Use `row.<thing>` 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 //
Expand Down Expand Up @@ -225,7 +225,7 @@ export const EXPRESSION = P.createLanguage<ExpressionLanguage>({

// 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));
Expand Down
3 changes: 2 additions & 1 deletion versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}

0 comments on commit 2a5968a

Please sign in to comment.