chore(release): 9.11.3 [skip ci]

## [9.11.3](https://github.com/harttle/liquidjs/compare/v9.11.2...v9.11.3) (2020-03-14)

### Performance Improvements

* introduce AST to avoid reparse ([d2d6a38](https://github.com/harttle/liquidjs/commit/d2d6a38))
* remove instanceof DelimitedToken ([1673e84](https://github.com/harttle/liquidjs/commit/1673e84))
This commit is contained in:
semantic-release-bot
2020-03-14 18:54:31 +00:00
parent 1673e84e27
commit 14b04688b5
76 changed files with 8730 additions and 2453 deletions
+140 -23
View File
@@ -76,65 +76,170 @@
<li class="tsd-kind-class tsd-parent-kind-external-module"><a href="../classes/_render_expression_.expression.html" class="tsd-kind-icon">Expression</a></li>
</ul>
</section>
<section class="tsd-index-section tsd-is-not-exported">
<section class="tsd-index-section ">
<h3>Functions</h3>
<ul class="tsd-index-list">
<li class="tsd-kind-function tsd-parent-kind-external-module tsd-is-not-exported"><a href="_render_expression_.html#isrange" class="tsd-kind-icon">is<wbr>Range</a></li>
<li class="tsd-kind-function tsd-parent-kind-external-module tsd-is-not-exported"><a href="_render_expression_.html#rangevalue" class="tsd-kind-icon">range<wbr>Value</a></li>
<li class="tsd-kind-function tsd-parent-kind-external-module tsd-is-not-exported"><a href="_render_expression_.html#evalliteraltoken" class="tsd-kind-icon">eval<wbr>Literal<wbr>Token</a></li>
<li class="tsd-kind-function tsd-parent-kind-external-module tsd-is-not-exported"><a href="_render_expression_.html#evalnumbertoken" class="tsd-kind-icon">eval<wbr>Number<wbr>Token</a></li>
<li class="tsd-kind-function tsd-parent-kind-external-module tsd-is-not-exported"><a href="_render_expression_.html#evaloperatortoken" class="tsd-kind-icon">eval<wbr>Operator<wbr>Token</a></li>
<li class="tsd-kind-function tsd-parent-kind-external-module"><a href="_render_expression_.html#evalquotedtoken" class="tsd-kind-icon">eval<wbr>Quoted<wbr>Token</a></li>
<li class="tsd-kind-function tsd-parent-kind-external-module tsd-is-not-exported"><a href="_render_expression_.html#evalrangetoken" class="tsd-kind-icon">eval<wbr>Range<wbr>Token</a></li>
<li class="tsd-kind-function tsd-parent-kind-external-module"><a href="_render_expression_.html#evaltoken" class="tsd-kind-icon">eval<wbr>Token</a></li>
<li class="tsd-kind-function tsd-parent-kind-external-module tsd-is-not-exported"><a href="_render_expression_.html#topostfix" class="tsd-kind-icon">to<wbr>Postfix</a></li>
</ul>
</section>
</div>
</section>
</section>
<section class="tsd-panel-group tsd-member-group tsd-is-not-exported">
<section class="tsd-panel-group tsd-member-group ">
<h2>Functions</h2>
<section class="tsd-panel tsd-member tsd-kind-function tsd-parent-kind-external-module tsd-is-not-exported">
<a name="isrange" class="tsd-anchor"></a>
<h3>is<wbr>Range</h3>
<a name="evalliteraltoken" class="tsd-anchor"></a>
<h3>eval<wbr>Literal<wbr>Token</h3>
<ul class="tsd-signatures tsd-kind-function tsd-parent-kind-external-module tsd-is-not-exported">
<li class="tsd-signature tsd-kind-icon">is<wbr>Range<span class="tsd-signature-symbol">(</span>str<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span></li>
<li class="tsd-signature tsd-kind-icon">eval<wbr>Literal<wbr>Token<span class="tsd-signature-symbol">(</span>token<span class="tsd-signature-symbol">: </span><a href="../classes/_tokens_literal_token_.literaltoken.html" class="tsd-signature-type">LiteralToken</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/harttle/liquidjs/blob/master/src/render/expression.ts#L64">render/expression.ts:64</a></li>
<li>Defined in <a href="https://github.com/harttle/liquidjs/blob/master/src/render/expression.ts#L70">render/expression.ts:70</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>str: <span class="tsd-signature-type">string</span></h5>
<h5>token: <a href="../classes/_tokens_literal_token_.literaltoken.html" class="tsd-signature-type">LiteralToken</a></h5>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">any</span></h4>
</li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-function tsd-parent-kind-external-module tsd-is-not-exported">
<a name="evalnumbertoken" class="tsd-anchor"></a>
<h3>eval<wbr>Number<wbr>Token</h3>
<ul class="tsd-signatures tsd-kind-function tsd-parent-kind-external-module tsd-is-not-exported">
<li class="tsd-signature tsd-kind-icon">eval<wbr>Number<wbr>Token<span class="tsd-signature-symbol">(</span>token<span class="tsd-signature-symbol">: </span><a href="../classes/_tokens_number_token_.numbertoken.html" class="tsd-signature-type">NumberToken</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/harttle/liquidjs/blob/master/src/render/expression.ts#L56">render/expression.ts:56</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>token: <a href="../classes/_tokens_number_token_.numbertoken.html" class="tsd-signature-type">NumberToken</a></h5>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span></h4>
</li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-function tsd-parent-kind-external-module tsd-is-not-exported">
<a name="evaloperatortoken" class="tsd-anchor"></a>
<h3>eval<wbr>Operator<wbr>Token</h3>
<ul class="tsd-signatures tsd-kind-function tsd-parent-kind-external-module tsd-is-not-exported">
<li class="tsd-signature tsd-kind-icon">eval<wbr>Operator<wbr>Token<span class="tsd-signature-symbol">(</span>token<span class="tsd-signature-symbol">: </span><a href="../classes/_tokens_operator_token_.operatortoken.html" class="tsd-signature-type">OperatorToken</a>, lhs<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span>, rhs<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">boolean</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/harttle/liquidjs/blob/master/src/render/expression.ts#L65">render/expression.ts:65</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>token: <a href="../classes/_tokens_operator_token_.operatortoken.html" class="tsd-signature-type">OperatorToken</a></h5>
</li>
<li>
<h5>lhs: <span class="tsd-signature-type">any</span></h5>
</li>
<li>
<h5>rhs: <span class="tsd-signature-type">any</span></h5>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">boolean</span></h4>
</li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-function tsd-parent-kind-external-module tsd-is-not-exported">
<a name="rangevalue" class="tsd-anchor"></a>
<h3>range<wbr>Value</h3>
<ul class="tsd-signatures tsd-kind-function tsd-parent-kind-external-module tsd-is-not-exported">
<li class="tsd-signature tsd-kind-icon">range<wbr>Value<span class="tsd-signature-symbol">(</span>token<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, ctx<span class="tsd-signature-symbol">: </span><a href="../classes/_context_context_.context.html" class="tsd-signature-type">Context</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">IterableIterator</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">IterableIterator</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span></li>
<section class="tsd-panel tsd-member tsd-kind-function tsd-parent-kind-external-module">
<a name="evalquotedtoken" class="tsd-anchor"></a>
<h3>eval<wbr>Quoted<wbr>Token</h3>
<ul class="tsd-signatures tsd-kind-function tsd-parent-kind-external-module">
<li class="tsd-signature tsd-kind-icon">eval<wbr>Quoted<wbr>Token<span class="tsd-signature-symbol">(</span>token<span class="tsd-signature-symbol">: </span><a href="../classes/_tokens_quoted_token_.quotedtoken.html" class="tsd-signature-type">QuotedToken</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/harttle/liquidjs/blob/master/src/render/expression.ts#L55">render/expression.ts:55</a></li>
<li>Defined in <a href="https://github.com/harttle/liquidjs/blob/master/src/render/expression.ts#L61">render/expression.ts:61</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>token: <span class="tsd-signature-type">string</span></h5>
<h5>token: <a href="../classes/_tokens_quoted_token_.quotedtoken.html" class="tsd-signature-type">QuotedToken</a></h5>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4>
</li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-function tsd-parent-kind-external-module tsd-is-not-exported">
<a name="evalrangetoken" class="tsd-anchor"></a>
<h3>eval<wbr>Range<wbr>Token</h3>
<ul class="tsd-signatures tsd-kind-function tsd-parent-kind-external-module tsd-is-not-exported">
<li class="tsd-signature tsd-kind-icon">eval<wbr>Range<wbr>Token<span class="tsd-signature-symbol">(</span>token<span class="tsd-signature-symbol">: </span><a href="../classes/_tokens_range_token_.rangetoken.html" class="tsd-signature-type">RangeToken</a>, ctx<span class="tsd-signature-symbol">: </span><a href="../classes/_context_context_.context.html" class="tsd-signature-type">Context</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">[]</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/harttle/liquidjs/blob/master/src/render/expression.ts#L74">render/expression.ts:74</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>token: <a href="../classes/_tokens_range_token_.rangetoken.html" class="tsd-signature-type">RangeToken</a></h5>
</li>
<li>
<h5>ctx: <a href="../classes/_context_context_.context.html" class="tsd-signature-type">Context</a></h5>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">IterableIterator</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">undefined</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">[]</span><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">IterableIterator</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">&gt;</span></h4>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol">[]</span></h4>
</li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-function tsd-parent-kind-external-module">
<a name="evaltoken" class="tsd-anchor"></a>
<h3>eval<wbr>Token</h3>
<ul class="tsd-signatures tsd-kind-function tsd-parent-kind-external-module">
<li class="tsd-signature tsd-kind-icon">eval<wbr>Token<span class="tsd-signature-symbol">(</span>token<span class="tsd-signature-symbol">: </span><a href="../classes/_tokens_token_.token.html" class="tsd-signature-type">Token</a><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">undefined</span>, ctx<span class="tsd-signature-symbol">: </span><a href="../classes/_context_context_.context.html" class="tsd-signature-type">Context</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">any</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/harttle/liquidjs/blob/master/src/render/expression.ts#L42">render/expression.ts:42</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>token: <a href="../classes/_tokens_token_.token.html" class="tsd-signature-type">Token</a><span class="tsd-signature-symbol"> | </span><span class="tsd-signature-type">undefined</span></h5>
</li>
<li>
<h5>ctx: <a href="../classes/_context_context_.context.html" class="tsd-signature-type">Context</a></h5>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">any</span></h4>
</li>
</ul>
</section>
@@ -142,22 +247,22 @@
<a name="topostfix" class="tsd-anchor"></a>
<h3>to<wbr>Postfix</h3>
<ul class="tsd-signatures tsd-kind-function tsd-parent-kind-external-module tsd-is-not-exported">
<li class="tsd-signature tsd-kind-icon">to<wbr>Postfix<span class="tsd-signature-symbol">(</span>tokens<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">IterableIterator</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">IterableIterator</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">&gt;</span></li>
<li class="tsd-signature tsd-kind-icon">to<wbr>Postfix<span class="tsd-signature-symbol">(</span>tokens<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">IterableIterator</span><span class="tsd-signature-symbol">&lt;</span><a href="../classes/_tokens_token_.token.html" class="tsd-signature-type">Token</a><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">IterableIterator</span><span class="tsd-signature-symbol">&lt;</span><a href="../classes/_tokens_token_.token.html" class="tsd-signature-type">Token</a><span class="tsd-signature-symbol">&gt;</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/harttle/liquidjs/blob/master/src/render/expression.ts#L40">render/expression.ts:40</a></li>
<li>Defined in <a href="https://github.com/harttle/liquidjs/blob/master/src/render/expression.ts#L80">render/expression.ts:80</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>tokens: <span class="tsd-signature-type">IterableIterator</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">&gt;</span></h5>
<h5>tokens: <span class="tsd-signature-type">IterableIterator</span><span class="tsd-signature-symbol">&lt;</span><a href="../classes/_tokens_token_.token.html" class="tsd-signature-type">Token</a><span class="tsd-signature-symbol">&gt;</span></h5>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">IterableIterator</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">&gt;</span></h4>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">IterableIterator</span><span class="tsd-signature-symbol">&lt;</span><a href="../classes/_tokens_token_.token.html" class="tsd-signature-type">Token</a><span class="tsd-signature-symbol">&gt;</span></h4>
</li>
</ul>
</section>
@@ -180,10 +285,22 @@
<a href="../classes/_render_expression_.expression.html" class="tsd-kind-icon">Expression</a>
</li>
<li class=" tsd-kind-function tsd-parent-kind-external-module tsd-is-not-exported">
<a href="_render_expression_.html#isrange" class="tsd-kind-icon">is<wbr>Range</a>
<a href="_render_expression_.html#evalliteraltoken" class="tsd-kind-icon">eval<wbr>Literal<wbr>Token</a>
</li>
<li class=" tsd-kind-function tsd-parent-kind-external-module tsd-is-not-exported">
<a href="_render_expression_.html#rangevalue" class="tsd-kind-icon">range<wbr>Value</a>
<a href="_render_expression_.html#evalnumbertoken" class="tsd-kind-icon">eval<wbr>Number<wbr>Token</a>
</li>
<li class=" tsd-kind-function tsd-parent-kind-external-module tsd-is-not-exported">
<a href="_render_expression_.html#evaloperatortoken" class="tsd-kind-icon">eval<wbr>Operator<wbr>Token</a>
</li>
<li class=" tsd-kind-function tsd-parent-kind-external-module">
<a href="_render_expression_.html#evalquotedtoken" class="tsd-kind-icon">eval<wbr>Quoted<wbr>Token</a>
</li>
<li class=" tsd-kind-function tsd-parent-kind-external-module tsd-is-not-exported">
<a href="_render_expression_.html#evalrangetoken" class="tsd-kind-icon">eval<wbr>Range<wbr>Token</a>
</li>
<li class=" tsd-kind-function tsd-parent-kind-external-module">
<a href="_render_expression_.html#evaltoken" class="tsd-kind-icon">eval<wbr>Token</a>
</li>
<li class=" tsd-kind-function tsd-parent-kind-external-module tsd-is-not-exported">
<a href="_render_expression_.html#topostfix" class="tsd-kind-icon">to<wbr>Postfix</a>