Skip to content

Commit

Permalink
1.0.0-alpha.8
Browse files Browse the repository at this point in the history
  • Loading branch information
lahmatiy committed Feb 7, 2019
1 parent 60d414f commit 86ae012
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 13 deletions.
11 changes: 5 additions & 6 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
## next
## 1.0.0-alpha.8 (February 7, 2019)

- Fixed a function consumption, now it's greedy and a parentheses needed **only** around expressions with `>` operator when used outside braces, since `>` will end a function definition (i.e. `<a > 20>` causes to a parse error, but `<(a > 20)>` or `<foo.[a > 20]>` is not)
- Allowed a block inside a function, i.e. function can be empty (returns a current in this case) and definitions are allowed in function's body
- Reworked tolerant parsing mode
- Improved suggestions
- Reduced lib size: 64Kb -> 37Kb
- Reworked tolerant parsing mode, less failures and better suggestions
- Reworked lib building, lib size reduced from 64Kb to 37Kb
- Fixed a function parsing, now it's greedy and a parentheses needed **only** around expressions with `>` operator when used outside braces, since `>` will end a function definition (i.e. `<a > 20>` causes to a parse error, but `<(a > 20)>` or `<foo.[a > 20]>` is not)
- Allowed a block inside a function, i.e. function can be empty (returns a `current` in this case) and definitions are allowed in function's body
- Added `has` and `has no` operators as inverse of `in` and `not in`
- Fixed `and` and `or` operators to evaluate left expression only once (good for performance and eliminates duplicates in suggestions)

Expand Down
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ Features:
- Stat collecting mode (powers suggestions)
- Tolerant parsing mode (useful to provide suggestions on a query editing in an editor)
- Extensible DSL by providing a additional method list on query build
ntl

Related projects:

- [Discovery](https://github.com/discoveryjs/discovery) – Hackable JSON discovery tool. Uses jora to query a data for views
- [JsonDiscovery](https://github.com/discoveryjs/browser-extension-json-discovery) – Chrome extension built on Discovery which allows you to discover a JSON documents and make beautiful reports on the fly

TODO:

Expand All @@ -26,11 +32,7 @@ TODO:
- [ ] Query transforming, e.g. query merge, subquery to a query, context inlining
- [ ] Method namespaces, e.g. semver, path, math etc
- [ ] Prettifier

Related projects:

- [Discovery](https://github.com/discoveryjs/discovery) – Hackable JSON discovery tool. Uses jora to query a data for views
- [JsonDiscovery](https://github.com/discoveryjs/browser-extension-json-discovery) – Chrome extension built on Discovery which allows you to discover a JSON documents and make beautiful reports on the fly
- [ ] Move jison to dev dependencies

Table of content:

Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "jora",
"version": "1.0.0-alpha.7",
"version": "1.0.0-alpha.8",
"description": "JavaScript object query engine",
"keywords": [],
"homepage": "https://github.com/lahmatiy/jora",
Expand Down

0 comments on commit 86ae012

Please sign in to comment.