Skip to content

Commit

Permalink
chore(release): 2.4.0 [skip ci]
Browse files Browse the repository at this point in the history
# [2.4.0](v2.3.2...v2.4.0) (2020-12-07)

### Features

* s-data 注释转义特殊字符消除 XSS 隐患 ([f957d11](f957d11))
  • Loading branch information
semantic-release-bot committed Dec 7, 2020
1 parent f957d11 commit b362dd0
Show file tree
Hide file tree
Showing 29 changed files with 235 additions and 190 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# [2.4.0](https://github.com/searchfe/san-ssr-target-php/compare/v2.3.2...v2.4.0) (2020-12-07)


### Features

* s-data 注释转义特殊字符消除 XSS 隐患 ([f957d11](https://github.com/searchfe/san-ssr-target-php/commit/f957d11bcf4f1d11993a839641320c6c5460ce8f))

## [2.3.2](https://github.com/searchfe/san-ssr-target-php/compare/v2.3.1...v2.3.2) (2020-11-25)


Expand Down
2 changes: 1 addition & 1 deletion docs/assets/js/search.json

Large diffs are not rendered by default.

42 changes: 21 additions & 21 deletions docs/classes/_src_compilers_anode_compiler_.anodecompiler.html
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ <h3>constructor</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/searchfe/san-ssr-target-php/blob/2737b08/src/compilers/anode-compiler.ts#L20">src/compilers/anode-compiler.ts:20</a></li>
<li>Defined in <a href="https://github.com/searchfe/san-ssr-target-php/blob/f957d11/src/compilers/anode-compiler.ts#L20">src/compilers/anode-compiler.ts:20</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -182,7 +182,7 @@ <h3><span class="tsd-flag ts-flagPrivate">Private</span> element<wbr>Compiler</h
<div class="tsd-signature tsd-kind-icon">element<wbr>Compiler<span class="tsd-signature-symbol">:</span> <a href="_src_compilers_element_compiler_.elementcompiler.html" class="tsd-signature-type">ElementCompiler</a></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/searchfe/san-ssr-target-php/blob/2737b08/src/compilers/anode-compiler.ts#L19">src/compilers/anode-compiler.ts:19</a></li>
<li>Defined in <a href="https://github.com/searchfe/san-ssr-target-php/blob/f957d11/src/compilers/anode-compiler.ts#L19">src/compilers/anode-compiler.ts:19</a></li>
</ul>
</aside>
</section>
Expand All @@ -192,7 +192,7 @@ <h3><span class="tsd-flag ts-flagPrivate">Private</span> emitter</h3>
<div class="tsd-signature tsd-kind-icon">emitter<span class="tsd-signature-symbol">:</span> <a href="_src_emitters_emitter_.phpemitter.html" class="tsd-signature-type">PHPEmitter</a></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/searchfe/san-ssr-target-php/blob/2737b08/src/compilers/anode-compiler.ts#L31">src/compilers/anode-compiler.ts:31</a></li>
<li>Defined in <a href="https://github.com/searchfe/san-ssr-target-php/blob/f957d11/src/compilers/anode-compiler.ts#L31">src/compilers/anode-compiler.ts:31</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -207,7 +207,7 @@ <h3><span class="tsd-flag ts-flagPrivate">Private</span> id</h3>
<div class="tsd-signature tsd-kind-icon">id<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span><span class="tsd-signature-symbol"> = 0</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/searchfe/san-ssr-target-php/blob/2737b08/src/compilers/anode-compiler.ts#L17">src/compilers/anode-compiler.ts:17</a></li>
<li>Defined in <a href="https://github.com/searchfe/san-ssr-target-php/blob/f957d11/src/compilers/anode-compiler.ts#L17">src/compilers/anode-compiler.ts:17</a></li>
</ul>
</aside>
</section>
Expand All @@ -217,7 +217,7 @@ <h3><span class="tsd-flag ts-flagPrivate">Private</span> in<wbr>Script</h3>
<div class="tsd-signature tsd-kind-icon">in<wbr>Script<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">boolean</span><span class="tsd-signature-symbol"> = false</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/searchfe/san-ssr-target-php/blob/2737b08/src/compilers/anode-compiler.ts#L20">src/compilers/anode-compiler.ts:20</a></li>
<li>Defined in <a href="https://github.com/searchfe/san-ssr-target-php/blob/f957d11/src/compilers/anode-compiler.ts#L20">src/compilers/anode-compiler.ts:20</a></li>
</ul>
</aside>
</section>
Expand All @@ -227,7 +227,7 @@ <h3><span class="tsd-flag ts-flagPrivate">Private</span> info</h3>
<div class="tsd-signature tsd-kind-icon">info<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">ComponentInfo</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/searchfe/san-ssr-target-php/blob/2737b08/src/compilers/anode-compiler.ts#L29">src/compilers/anode-compiler.ts:29</a></li>
<li>Defined in <a href="https://github.com/searchfe/san-ssr-target-php/blob/f957d11/src/compilers/anode-compiler.ts#L29">src/compilers/anode-compiler.ts:29</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -242,7 +242,7 @@ <h3>options</h3>
<div class="tsd-signature tsd-kind-icon">options<span class="tsd-signature-symbol">:</span> <a href="../interfaces/_src_compile_options_.normalizedcompileoptions.html" class="tsd-signature-type">NormalizedCompileOptions</a></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/searchfe/san-ssr-target-php/blob/2737b08/src/compilers/anode-compiler.ts#L30">src/compilers/anode-compiler.ts:30</a></li>
<li>Defined in <a href="https://github.com/searchfe/san-ssr-target-php/blob/f957d11/src/compilers/anode-compiler.ts#L30">src/compilers/anode-compiler.ts:30</a></li>
</ul>
</aside>
</section>
Expand All @@ -252,7 +252,7 @@ <h3><span class="tsd-flag ts-flagPrivate">Private</span> source<wbr>File</h3>
<div class="tsd-signature tsd-kind-icon">source<wbr>File<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">SanSourceFile</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/searchfe/san-ssr-target-php/blob/2737b08/src/compilers/anode-compiler.ts#L28">src/compilers/anode-compiler.ts:28</a></li>
<li>Defined in <a href="https://github.com/searchfe/san-ssr-target-php/blob/f957d11/src/compilers/anode-compiler.ts#L28">src/compilers/anode-compiler.ts:28</a></li>
</ul>
</aside>
</section>
Expand All @@ -269,7 +269,7 @@ <h3>compile</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/searchfe/san-ssr-target-php/blob/2737b08/src/compilers/anode-compiler.ts#L42">src/compilers/anode-compiler.ts:42</a></li>
<li>Defined in <a href="https://github.com/searchfe/san-ssr-target-php/blob/f957d11/src/compilers/anode-compiler.ts#L42">src/compilers/anode-compiler.ts:42</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -307,7 +307,7 @@ <h3>compile<wbr>Component</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/searchfe/san-ssr-target-php/blob/2737b08/src/compilers/anode-compiler.ts#L225">src/compilers/anode-compiler.ts:225</a></li>
<li>Defined in <a href="https://github.com/searchfe/san-ssr-target-php/blob/f957d11/src/compilers/anode-compiler.ts#L225">src/compilers/anode-compiler.ts:225</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -347,7 +347,7 @@ <h3><span class="tsd-flag ts-flagPrivate">Private</span> compile<wbr>Element</h3
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/searchfe/san-ssr-target-php/blob/2737b08/src/compilers/anode-compiler.ts#L206">src/compilers/anode-compiler.ts:206</a></li>
<li>Defined in <a href="https://github.com/searchfe/san-ssr-target-php/blob/f957d11/src/compilers/anode-compiler.ts#L206">src/compilers/anode-compiler.ts:206</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
Expand All @@ -373,7 +373,7 @@ <h3>compile<wbr>For</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/searchfe/san-ssr-target-php/blob/2737b08/src/compilers/anode-compiler.ts#L114">src/compilers/anode-compiler.ts:114</a></li>
<li>Defined in <a href="https://github.com/searchfe/san-ssr-target-php/blob/f957d11/src/compilers/anode-compiler.ts#L114">src/compilers/anode-compiler.ts:114</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
Expand All @@ -396,7 +396,7 @@ <h3>compile<wbr>Fragment</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/searchfe/san-ssr-target-php/blob/2737b08/src/compilers/anode-compiler.ts#L80">src/compilers/anode-compiler.ts:80</a></li>
<li>Defined in <a href="https://github.com/searchfe/san-ssr-target-php/blob/f957d11/src/compilers/anode-compiler.ts#L80">src/compilers/anode-compiler.ts:80</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
Expand All @@ -419,7 +419,7 @@ <h3>compile<wbr>If</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/searchfe/san-ssr-target-php/blob/2737b08/src/compilers/anode-compiler.ts#L90">src/compilers/anode-compiler.ts:90</a></li>
<li>Defined in <a href="https://github.com/searchfe/san-ssr-target-php/blob/f957d11/src/compilers/anode-compiler.ts#L90">src/compilers/anode-compiler.ts:90</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
Expand All @@ -442,7 +442,7 @@ <h3><span class="tsd-flag ts-flagPrivate">Private</span> compile<wbr>Reference</
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/searchfe/san-ssr-target-php/blob/2737b08/src/compilers/anode-compiler.ts#L58">src/compilers/anode-compiler.ts:58</a></li>
<li>Defined in <a href="https://github.com/searchfe/san-ssr-target-php/blob/f957d11/src/compilers/anode-compiler.ts#L58">src/compilers/anode-compiler.ts:58</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
Expand All @@ -465,7 +465,7 @@ <h3>compile<wbr>Slot</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/searchfe/san-ssr-target-php/blob/2737b08/src/compilers/anode-compiler.ts#L141">src/compilers/anode-compiler.ts:141</a></li>
<li>Defined in <a href="https://github.com/searchfe/san-ssr-target-php/blob/f957d11/src/compilers/anode-compiler.ts#L141">src/compilers/anode-compiler.ts:141</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
Expand All @@ -488,7 +488,7 @@ <h3><span class="tsd-flag ts-flagPrivate">Private</span> compile<wbr>Slot<wbr>Re
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/searchfe/san-ssr-target-php/blob/2737b08/src/compilers/anode-compiler.ts#L187">src/compilers/anode-compiler.ts:187</a></li>
<li>Defined in <a href="https://github.com/searchfe/san-ssr-target-php/blob/f957d11/src/compilers/anode-compiler.ts#L187">src/compilers/anode-compiler.ts:187</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
Expand All @@ -511,7 +511,7 @@ <h3>compile<wbr>Template</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/searchfe/san-ssr-target-php/blob/2737b08/src/compilers/anode-compiler.ts#L76">src/compilers/anode-compiler.ts:76</a></li>
<li>Defined in <a href="https://github.com/searchfe/san-ssr-target-php/blob/f957d11/src/compilers/anode-compiler.ts#L76">src/compilers/anode-compiler.ts:76</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
Expand All @@ -534,7 +534,7 @@ <h3>compile<wbr>Text</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/searchfe/san-ssr-target-php/blob/2737b08/src/compilers/anode-compiler.ts#L67">src/compilers/anode-compiler.ts:67</a></li>
<li>Defined in <a href="https://github.com/searchfe/san-ssr-target-php/blob/f957d11/src/compilers/anode-compiler.ts#L67">src/compilers/anode-compiler.ts:67</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
Expand All @@ -557,7 +557,7 @@ <h3><span class="tsd-flag ts-flagPrivate">Private</span> expr</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/searchfe/san-ssr-target-php/blob/2737b08/src/compilers/anode-compiler.ts#L269">src/compilers/anode-compiler.ts:269</a></li>
<li>Defined in <a href="https://github.com/searchfe/san-ssr-target-php/blob/f957d11/src/compilers/anode-compiler.ts#L269">src/compilers/anode-compiler.ts:269</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
Expand All @@ -583,7 +583,7 @@ <h3><span class="tsd-flag ts-flagPrivate">Private</span> nextID</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/searchfe/san-ssr-target-php/blob/2737b08/src/compilers/anode-compiler.ts#L273">src/compilers/anode-compiler.ts:273</a></li>
<li>Defined in <a href="https://github.com/searchfe/san-ssr-target-php/blob/f957d11/src/compilers/anode-compiler.ts#L273">src/compilers/anode-compiler.ts:273</a></li>
</ul>
</aside>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">string</span></h4>
Expand Down
20 changes: 10 additions & 10 deletions docs/classes/_src_compilers_element_compiler_.elementcompiler.html
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ <h3>constructor</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/searchfe/san-ssr-target-php/blob/2737b08/src/compilers/element-compiler.ts#L11">src/compilers/element-compiler.ts:11</a></li>
<li>Defined in <a href="https://github.com/searchfe/san-ssr-target-php/blob/f957d11/src/compilers/element-compiler.ts#L11">src/compilers/element-compiler.ts:11</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
Expand Down Expand Up @@ -157,7 +157,7 @@ <h3><span class="tsd-flag ts-flagPrivate">Private</span> a<wbr>Node<wbr>Compiler
<div class="tsd-signature tsd-kind-icon">a<wbr>Node<wbr>Compiler<span class="tsd-signature-symbol">:</span> <a href="_src_compilers_anode_compiler_.anodecompiler.html" class="tsd-signature-type">ANodeCompiler</a></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/searchfe/san-ssr-target-php/blob/2737b08/src/compilers/element-compiler.ts#L13">src/compilers/element-compiler.ts:13</a></li>
<li>Defined in <a href="https://github.com/searchfe/san-ssr-target-php/blob/f957d11/src/compilers/element-compiler.ts#L13">src/compilers/element-compiler.ts:13</a></li>
</ul>
</aside>
</section>
Expand All @@ -167,7 +167,7 @@ <h3><span class="tsd-flag ts-flagPrivate">Private</span> emitter</h3>
<div class="tsd-signature tsd-kind-icon">emitter<span class="tsd-signature-symbol">:</span> <a href="_src_emitters_emitter_.phpemitter.html" class="tsd-signature-type">PHPEmitter</a></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/searchfe/san-ssr-target-php/blob/2737b08/src/compilers/element-compiler.ts#L15">src/compilers/element-compiler.ts:15</a></li>
<li>Defined in <a href="https://github.com/searchfe/san-ssr-target-php/blob/f957d11/src/compilers/element-compiler.ts#L15">src/compilers/element-compiler.ts:15</a></li>
</ul>
</aside>
</section>
Expand All @@ -177,7 +177,7 @@ <h3><span class="tsd-flag ts-flagPrivate">Private</span> expr</h3>
<div class="tsd-signature tsd-kind-icon">expr<span class="tsd-signature-symbol">:</span> <a href="_src_compilers_expr_compiler_.exprcompiler.html" class="tsd-signature-type">ExprCompiler</a></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/searchfe/san-ssr-target-php/blob/2737b08/src/compilers/element-compiler.ts#L14">src/compilers/element-compiler.ts:14</a></li>
<li>Defined in <a href="https://github.com/searchfe/san-ssr-target-php/blob/f957d11/src/compilers/element-compiler.ts#L14">src/compilers/element-compiler.ts:14</a></li>
</ul>
</aside>
</section>
Expand All @@ -194,7 +194,7 @@ <h3><span class="tsd-flag ts-flagPrivate">Private</span> compile<wbr>Bind<wbr>Pr
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/searchfe/san-ssr-target-php/blob/2737b08/src/compilers/element-compiler.ts#L148">src/compilers/element-compiler.ts:148</a></li>
<li>Defined in <a href="https://github.com/searchfe/san-ssr-target-php/blob/f957d11/src/compilers/element-compiler.ts#L148">src/compilers/element-compiler.ts:148</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
Expand All @@ -220,7 +220,7 @@ <h3><span class="tsd-flag ts-flagPrivate">Private</span> compile<wbr>Property</h
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/searchfe/san-ssr-target-php/blob/2737b08/src/compilers/element-compiler.ts#L86">src/compilers/element-compiler.ts:86</a></li>
<li>Defined in <a href="https://github.com/searchfe/san-ssr-target-php/blob/f957d11/src/compilers/element-compiler.ts#L86">src/compilers/element-compiler.ts:86</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down Expand Up @@ -263,7 +263,7 @@ <h3>inner</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/searchfe/san-ssr-target-php/blob/2737b08/src/compilers/element-compiler.ts#L68">src/compilers/element-compiler.ts:68</a></li>
<li>Defined in <a href="https://github.com/searchfe/san-ssr-target-php/blob/f957d11/src/compilers/element-compiler.ts#L68">src/compilers/element-compiler.ts:68</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
Expand All @@ -286,7 +286,7 @@ <h3><span class="tsd-flag ts-flagPrivate">Private</span> is<wbr>Literal</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/searchfe/san-ssr-target-php/blob/2737b08/src/compilers/element-compiler.ts#L144">src/compilers/element-compiler.ts:144</a></li>
<li>Defined in <a href="https://github.com/searchfe/san-ssr-target-php/blob/f957d11/src/compilers/element-compiler.ts#L144">src/compilers/element-compiler.ts:144</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
Expand All @@ -309,7 +309,7 @@ <h3>tag<wbr>End</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/searchfe/san-ssr-target-php/blob/2737b08/src/compilers/element-compiler.ts#L46">src/compilers/element-compiler.ts:46</a></li>
<li>Defined in <a href="https://github.com/searchfe/san-ssr-target-php/blob/f957d11/src/compilers/element-compiler.ts#L46">src/compilers/element-compiler.ts:46</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand All @@ -334,7 +334,7 @@ <h3>tag<wbr>Start</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/searchfe/san-ssr-target-php/blob/2737b08/src/compilers/element-compiler.ts#L23">src/compilers/element-compiler.ts:23</a></li>
<li>Defined in <a href="https://github.com/searchfe/san-ssr-target-php/blob/f957d11/src/compilers/element-compiler.ts#L23">src/compilers/element-compiler.ts:23</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
Expand Down
Loading

0 comments on commit b362dd0

Please sign in to comment.