Skip to content

Commit

Permalink
chore(release): 1.3.0 [skip ci]
Browse files Browse the repository at this point in the history
# [1.3.0](v1.2.1...v1.3.0) (2019-11-08)

### Features

* configuable module content for CommonJS loader, fixes [#12](#12) ([92e6b16](92e6b16))
  • Loading branch information
semantic-release-bot committed Nov 8, 2019
1 parent 92e6b16 commit 3fe0197
Show file tree
Hide file tree
Showing 68 changed files with 543 additions and 458 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# [1.3.0](https://github.com/searchfe/san-ssr/compare/v1.2.1...v1.3.0) (2019-11-08)


### Features

* configuable module content for CommonJS loader, fixes [#12](https://github.com/searchfe/san-ssr/issues/12) ([92e6b16](https://github.com/searchfe/san-ssr/commit/92e6b1696d8742b252b4f84bdc02d6e556e0f09f))

## [1.2.1](https://github.com/searchfe/san-ssr/compare/v1.2.0...v1.2.1) (2019-11-07)


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

Large diffs are not rendered by default.

75 changes: 64 additions & 11 deletions docs/classes/_loaders_common_js_.commonjs.html
Original file line number Diff line number Diff line change
Expand Up @@ -91,12 +91,14 @@ <h3>Constructors</h3>
<h3>Properties</h3>
<ul class="tsd-index-list">
<li class="tsd-kind-property tsd-parent-kind-class"><a href="_loaders_common_js_.commonjs.html#cache" class="tsd-kind-icon">cache</a></li>
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-private"><a href="_loaders_common_js_.commonjs.html#readfile" class="tsd-kind-icon">read<wbr>File</a></li>
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-private"><a href="_loaders_common_js_.commonjs.html#modules" class="tsd-kind-icon">modules</a></li>
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-private"><a href="_loaders_common_js_.commonjs.html#readfileimpl" class="tsd-kind-icon">read<wbr>File<wbr>Impl</a></li>
</ul>
</section>
<section class="tsd-index-section ">
<h3>Methods</h3>
<ul class="tsd-index-list">
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-private"><a href="_loaders_common_js_.commonjs.html#readmodulecontent" class="tsd-kind-icon">read<wbr>Module<wbr>Content</a></li>
<li class="tsd-kind-method tsd-parent-kind-class"><a href="_loaders_common_js_.commonjs.html#require" class="tsd-kind-icon">require</a></li>
</ul>
</section>
Expand All @@ -109,17 +111,20 @@ <h2>Constructors</h2>
<a name="constructor" class="tsd-anchor"></a>
<h3>constructor</h3>
<ul class="tsd-signatures tsd-kind-constructor tsd-parent-kind-class">
<li class="tsd-signature tsd-kind-icon">new <wbr>CommonJS<span class="tsd-signature-symbol">(</span>readFile<span class="tsd-signature-symbol">?: </span><a href="../modules/_loaders_common_js_.html#fileloader" class="tsd-signature-type">FileLoader</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="_loaders_common_js_.commonjs.html" class="tsd-signature-type">CommonJS</a></li>
<li class="tsd-signature tsd-kind-icon">new <wbr>CommonJS<span class="tsd-signature-symbol">(</span>modules<span class="tsd-signature-symbol">?: </span><a href="../modules/_loaders_common_js_.html#modules" class="tsd-signature-type">Modules</a>, readFile<span class="tsd-signature-symbol">?: </span><a href="../modules/_loaders_common_js_.html#fileloader" class="tsd-signature-type">FileLoader</a><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="_loaders_common_js_.commonjs.html" class="tsd-signature-type">CommonJS</a></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/searchfe/san-ssr/blob/b112ed5/src/loaders/common-js.ts#L25">loaders/common-js.ts:25</a></li>
<li>Defined in <a href="https://github.com/searchfe/san-ssr/blob/92e6b16/src/loaders/common-js.ts#L30">loaders/common-js.ts:30</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5><span class="tsd-flag ts-flagDefault value">Default value</span> modules: <a href="../modules/_loaders_common_js_.html#modules" class="tsd-signature-type">Modules</a><span class="tsd-signature-symbol"> =&nbsp;{}</span></h5>
</li>
<li>
<h5><span class="tsd-flag ts-flagDefault value">Default value</span> readFile: <a href="../modules/_loaders_common_js_.html#fileloader" class="tsd-signature-type">FileLoader</a><span class="tsd-signature-symbol"> =&nbsp;defaultFileLoader</span></h5>
</li>
Expand All @@ -137,41 +142,80 @@ <h3>cache</h3>
<div class="tsd-signature tsd-kind-icon">cache<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">Map</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">&gt;</span><span class="tsd-signature-symbol"> =&nbsp;new Map()</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/searchfe/san-ssr/blob/b112ed5/src/loaders/common-js.ts#L25">loaders/common-js.ts:25</a></li>
<li>Defined in <a href="https://github.com/searchfe/san-ssr/blob/92e6b16/src/loaders/common-js.ts#L30">loaders/common-js.ts:30</a></li>
</ul>
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-private">
<a name="readfile" class="tsd-anchor"></a>
<h3><span class="tsd-flag ts-flagPrivate">Private</span> read<wbr>File</h3>
<div class="tsd-signature tsd-kind-icon">read<wbr>File<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">any</span></div>
<a name="modules" class="tsd-anchor"></a>
<h3><span class="tsd-flag ts-flagPrivate">Private</span> modules</h3>
<div class="tsd-signature tsd-kind-icon">modules<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">any</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/searchfe/san-ssr/blob/b112ed5/src/loaders/common-js.ts#L24">loaders/common-js.ts:24</a></li>
<li>Defined in <a href="https://github.com/searchfe/san-ssr/blob/92e6b16/src/loaders/common-js.ts#L29">loaders/common-js.ts:29</a></li>
</ul>
</aside>
</section>
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-class tsd-is-private">
<a name="readfileimpl" class="tsd-anchor"></a>
<h3><span class="tsd-flag ts-flagPrivate">Private</span> read<wbr>File<wbr>Impl</h3>
<div class="tsd-signature tsd-kind-icon">read<wbr>File<wbr>Impl<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">any</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/searchfe/san-ssr/blob/92e6b16/src/loaders/common-js.ts#L28">loaders/common-js.ts:28</a></li>
</ul>
</aside>
</section>
</section>
<section class="tsd-panel-group tsd-member-group ">
<h2>Methods</h2>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-private">
<a name="readmodulecontent" class="tsd-anchor"></a>
<h3><span class="tsd-flag ts-flagPrivate">Private</span> read<wbr>Module<wbr>Content</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-private">
<li class="tsd-signature tsd-kind-icon">read<wbr>Module<wbr>Content<span class="tsd-signature-symbol">(</span>filepath<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, specifier<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">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/searchfe/san-ssr/blob/92e6b16/src/loaders/common-js.ts#L62">loaders/common-js.ts:62</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>filepath: <span class="tsd-signature-type">string</span></h5>
</li>
<li>
<h5>specifier: <span class="tsd-signature-type">string</span></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-method tsd-parent-kind-class">
<a name="require" class="tsd-anchor"></a>
<h3>require</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
<li class="tsd-signature tsd-kind-icon">require<span class="tsd-signature-symbol">(</span>filepath<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">any</span></li>
<li class="tsd-signature tsd-kind-icon">require<span class="tsd-signature-symbol">(</span>filepath<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, specifier<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">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/searchfe/san-ssr/blob/b112ed5/src/loaders/common-js.ts#L35">loaders/common-js.ts:35</a></li>
<li>Defined in <a href="https://github.com/searchfe/san-ssr/blob/92e6b16/src/loaders/common-js.ts#L41">loaders/common-js.ts:41</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
<ul class="tsd-parameters">
<li>
<h5>filepath: <span class="tsd-signature-type">string</span></h5>
</li>
<li>
<h5><span class="tsd-flag ts-flagDefault value">Default value</span> specifier: <span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> =&nbsp;filepath</span></h5>
</li>
</ul>
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">any</span></h4>
</li>
Expand Down Expand Up @@ -204,7 +248,13 @@ <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">any</span
<a href="_loaders_common_js_.commonjs.html#cache" class="tsd-kind-icon">cache</a>
</li>
<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-private">
<a href="_loaders_common_js_.commonjs.html#readfile" class="tsd-kind-icon">read<wbr>File</a>
<a href="_loaders_common_js_.commonjs.html#modules" class="tsd-kind-icon">modules</a>
</li>
<li class=" tsd-kind-property tsd-parent-kind-class tsd-is-private">
<a href="_loaders_common_js_.commonjs.html#readfileimpl" class="tsd-kind-icon">read<wbr>File<wbr>Impl</a>
</li>
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-private">
<a href="_loaders_common_js_.commonjs.html#readmodulecontent" class="tsd-kind-icon">read<wbr>Module<wbr>Content</a>
</li>
<li class=" tsd-kind-method tsd-parent-kind-class">
<a href="_loaders_common_js_.commonjs.html#require" class="tsd-kind-icon">require</a>
Expand All @@ -219,6 +269,9 @@ <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">any</span
<li class=" tsd-kind-type-alias tsd-parent-kind-external-module tsd-is-not-exported">
<a href="../modules/_loaders_common_js_.html#fileloader" class="tsd-kind-icon">File<wbr>Loader</a>
</li>
<li class=" tsd-kind-type-alias tsd-parent-kind-external-module">
<a href="../modules/_loaders_common_js_.html#modules" class="tsd-kind-icon">Modules</a>
</li>
<li class=" tsd-kind-variable tsd-parent-kind-external-module tsd-is-not-exported">
<a href="../modules/_loaders_common_js_.html#debug" class="tsd-kind-icon">debug</a>
</li>
Expand Down
11 changes: 7 additions & 4 deletions docs/classes/_loaders_common_js_.module.html
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ <h3>constructor</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/searchfe/san-ssr/blob/b112ed5/src/loaders/common-js.ts#L11">loaders/common-js.ts:11</a></li>
<li>Defined in <a href="https://github.com/searchfe/san-ssr/blob/92e6b16/src/loaders/common-js.ts#L15">loaders/common-js.ts:15</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
Expand All @@ -135,7 +135,7 @@ <h3>content</h3>
<div class="tsd-signature tsd-kind-icon">content<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/searchfe/san-ssr/blob/b112ed5/src/loaders/common-js.ts#L10">loaders/common-js.ts:10</a></li>
<li>Defined in <a href="https://github.com/searchfe/san-ssr/blob/92e6b16/src/loaders/common-js.ts#L14">loaders/common-js.ts:14</a></li>
</ul>
</aside>
</section>
Expand All @@ -145,7 +145,7 @@ <h3>exports</h3>
<div class="tsd-signature tsd-kind-icon">exports<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">object</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/searchfe/san-ssr/blob/b112ed5/src/loaders/common-js.ts#L11">loaders/common-js.ts:11</a></li>
<li>Defined in <a href="https://github.com/searchfe/san-ssr/blob/92e6b16/src/loaders/common-js.ts#L15">loaders/common-js.ts:15</a></li>
</ul>
</aside>
<div class="tsd-type-declaration">
Expand All @@ -160,7 +160,7 @@ <h3>filepath</h3>
<div class="tsd-signature tsd-kind-icon">filepath<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/searchfe/san-ssr/blob/b112ed5/src/loaders/common-js.ts#L9">loaders/common-js.ts:9</a></li>
<li>Defined in <a href="https://github.com/searchfe/san-ssr/blob/92e6b16/src/loaders/common-js.ts#L13">loaders/common-js.ts:13</a></li>
</ul>
</aside>
</section>
Expand Down Expand Up @@ -206,6 +206,9 @@ <h3>filepath</h3>
<li class=" tsd-kind-type-alias tsd-parent-kind-external-module tsd-is-not-exported">
<a href="../modules/_loaders_common_js_.html#fileloader" class="tsd-kind-icon">File<wbr>Loader</a>
</li>
<li class=" tsd-kind-type-alias tsd-parent-kind-external-module">
<a href="../modules/_loaders_common_js_.html#modules" class="tsd-kind-icon">Modules</a>
</li>
<li class=" tsd-kind-variable tsd-parent-kind-external-module tsd-is-not-exported">
<a href="../modules/_loaders_common_js_.html#debug" class="tsd-kind-icon">debug</a>
</li>
Expand Down
16 changes: 8 additions & 8 deletions docs/classes/_models_component_.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ <h3>a<wbr>Node</h3>
<div class="tsd-signature tsd-kind-icon">a<wbr>Node<span class="tsd-signature-symbol">:</span> <a href="../interfaces/_models_anode_.anode.html" class="tsd-signature-type">ANode</a></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/searchfe/san-ssr/blob/b112ed5/src/models/component.ts#L13">models/component.ts:13</a></li>
<li>Defined in <a href="https://github.com/searchfe/san-ssr/blob/92e6b16/src/models/component.ts#L13">models/component.ts:13</a></li>
</ul>
</aside>
</section>
Expand All @@ -122,7 +122,7 @@ <h3><span class="tsd-flag ts-flagOptional">Optional</span> components</h3>
<div class="tsd-signature tsd-kind-icon">components<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">object</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/searchfe/san-ssr/blob/b112ed5/src/models/component.ts#L11">models/component.ts:11</a></li>
<li>Defined in <a href="https://github.com/searchfe/san-ssr/blob/92e6b16/src/models/component.ts#L11">models/component.ts:11</a></li>
</ul>
</aside>
<div class="tsd-type-declaration">
Expand All @@ -140,7 +140,7 @@ <h3>data</h3>
<div class="tsd-signature tsd-kind-icon">data<span class="tsd-signature-symbol">:</span> <a href="_models_component_.data.html" class="tsd-signature-type">Data</a></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/searchfe/san-ssr/blob/b112ed5/src/models/component.ts#L14">models/component.ts:14</a></li>
<li>Defined in <a href="https://github.com/searchfe/san-ssr/blob/92e6b16/src/models/component.ts#L14">models/component.ts:14</a></li>
</ul>
</aside>
</section>
Expand All @@ -150,7 +150,7 @@ <h3><span class="tsd-flag ts-flagOptional">Optional</span> get<wbr>Component<wbr
<div class="tsd-signature tsd-kind-icon">get<wbr>Component<wbr>Type<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">function</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/searchfe/san-ssr/blob/b112ed5/src/models/component.ts#L15">models/component.ts:15</a></li>
<li>Defined in <a href="https://github.com/searchfe/san-ssr/blob/92e6b16/src/models/component.ts#L15">models/component.ts:15</a></li>
</ul>
</aside>
<div class="tsd-type-declaration">
Expand Down Expand Up @@ -181,7 +181,7 @@ <h3><span class="tsd-flag ts-flagOptional">Optional</span> template</h3>
<div class="tsd-signature tsd-kind-icon">template<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/searchfe/san-ssr/blob/b112ed5/src/models/component.ts#L8">models/component.ts:8</a></li>
<li>Defined in <a href="https://github.com/searchfe/san-ssr/blob/92e6b16/src/models/component.ts#L8">models/component.ts:8</a></li>
</ul>
</aside>
</section>
Expand All @@ -191,7 +191,7 @@ <h3><span class="tsd-flag ts-flagStatic">Static</span> <span class="tsd-flag ts-
<div class="tsd-signature tsd-kind-icon">components<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">object</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/searchfe/san-ssr/blob/b112ed5/src/models/component.ts#L10">models/component.ts:10</a></li>
<li>Defined in <a href="https://github.com/searchfe/san-ssr/blob/92e6b16/src/models/component.ts#L10">models/component.ts:10</a></li>
</ul>
</aside>
<div class="tsd-type-declaration">
Expand All @@ -209,7 +209,7 @@ <h3><span class="tsd-flag ts-flagStatic">Static</span> sanssr<wbr>Cid</h3>
<div class="tsd-signature tsd-kind-icon">sanssr<wbr>Cid<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">number</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/searchfe/san-ssr/blob/b112ed5/src/models/component.ts#L17">models/component.ts:17</a></li>
<li>Defined in <a href="https://github.com/searchfe/san-ssr/blob/92e6b16/src/models/component.ts#L17">models/component.ts:17</a></li>
</ul>
</aside>
</section>
Expand All @@ -219,7 +219,7 @@ <h3><span class="tsd-flag ts-flagStatic">Static</span> <span class="tsd-flag ts-
<div class="tsd-signature tsd-kind-icon">template<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div>
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/searchfe/san-ssr/blob/b112ed5/src/models/component.ts#L7">models/component.ts:7</a></li>
<li>Defined in <a href="https://github.com/searchfe/san-ssr/blob/92e6b16/src/models/component.ts#L7">models/component.ts:7</a></li>
</ul>
</aside>
</section>
Expand Down
2 changes: 1 addition & 1 deletion docs/classes/_models_component_.data.html
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ <h3>get</h3>
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/searchfe/san-ssr/blob/b112ed5/src/models/component.ts#L36">models/component.ts:36</a></li>
<li>Defined in <a href="https://github.com/searchfe/san-ssr/blob/92e6b16/src/models/component.ts#L36">models/component.ts:36</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
Expand Down
Loading

0 comments on commit 3fe0197

Please sign in to comment.