Skip to content

Commit 20e9aa8

Browse files
committed
Update for v1.7.1
1 parent f6fee00 commit 20e9aa8

File tree

4 files changed

+26
-10
lines changed

4 files changed

+26
-10
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# CHANGELOG
22

3+
## v1.8.0
4+
5+
#### Bug fixes
6+
7+
* Fix SLAS callback error handling
8+
* Fix SLAS logout function
9+
310
## v1.7.0
411

512
* Export API type definitions. They are available as top-level exports, following the pattern `<API Name>Types`.

docs/index.html

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ <h1>commerce-sdk-isomorphic</h1>
6868
<h1>commerce-sdk-isomorphic</h1>
6969
</a>
7070
<p><a href="https://circleci.com/gh/SalesforceCommerceCloud/commerce-sdk-isomorphic"><img src="https://circleci.com/gh/SalesforceCommerceCloud/commerce-sdk-isomorphic.svg?style=svg&circle-token=379eaa6f00e0840e10dd80585b2b045d02a8f3b7" alt="CircleCI"></a></p>
71-
<p>The Salesforce Commerce SDK Isomorphic allows easy interaction with the Salesforce B2C Commerce platform Shopper APIs through a lightweight SDK that works both on browsers and NodeJS applications. For a more robust SDK, which includes our B2C Data APIS and Shopper APIs, see <a href="https://github.com/SalesforceCommerceCloud/commerce-sdk">our Node.js Commerce SDK</a>.</p>
71+
<p>The Salesforce Commerce SDK (Isomorphic) allows easy interaction with the B2C Commerce platform’s Shopper APIs on the Node.js runtime and works both in browsers and Node applications. For a Node-based SDK that can access the Admin APIs in addition to the Shopper APIs, see the main <a href="https://github.com/SalesforceCommerceCloud/commerce-sdk">Commerce SDK</a>. </p>
7272
<a href="#getting-started" id="getting-started" style="color: inherit; text-decoration: none;">
7373
<h2>Getting Started</h2>
7474
</a>
@@ -112,6 +112,9 @@ <h3>Usage</h3>
112112
<td align="left">Name of the site to access data from, for example, RefArch or SiteGenesis.</td>
113113
</tr>
114114
</tbody></table>
115+
<a href="#configure-the-isomorphic-sdk" id="configure-the-isomorphic-sdk" style="color: inherit; text-decoration: none;">
116+
<h3>Configure the Isomorphic SDK</h3>
117+
</a>
115118
<pre><code class="language-javascript"><span class="hljs-comment">/**
116119
* Configure required parameters
117120
*
@@ -150,9 +153,9 @@ <h3>Usage</h3>
150153
<a href="#cors" id="cors" style="color: inherit; text-decoration: none;">
151154
<h4>CORS</h4>
152155
</a>
153-
<p>The Salesforce Commerce API (SCAPI) does not support CORS, so a proxy must be used to be able to use the SDK. Code example on SDK usage with a proxy can be seen above.</p>
156+
<p>The Salesforce Commerce API (SCAPI) does not support CORS, so a proxy must be used to be able to use the SDK.</p>
154157
<a href="#advanced-options" id="advanced-options" style="color: inherit; text-decoration: none;">
155-
<h3>Advanced options</h3>
158+
<h3>Advanced Options</h3>
156159
</a>
157160
<p>Commerce SDK Isomorphic supports Fetch API options for <a href="https://github.com/node-fetch/node-fetch/1#api">node-fetch</a> on server and <a href="https://github.github.io/fetch/">whatwg-fetch</a> on browser with a simple configuration.
158161
This sample code shows how to configure HTTP timeout and agent options.</p>

docs/modules/helpers.html

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ <h3>login<wbr>Guest<wbr>User</h3>
475475
<li class="tsd-description">
476476
<aside class="tsd-sources">
477477
<ul>
478-
<li>Defined in src/lib/helpers/slasHelper.ts:154</li>
478+
<li>Defined in src/lib/helpers/slasHelper.ts:156</li>
479479
</ul>
480480
</aside>
481481
<div class="tsd-comment tsd-typography">
@@ -524,7 +524,7 @@ <h3>login<wbr>Registered<wbr>User<wbr>B2C</h3>
524524
<li class="tsd-description">
525525
<aside class="tsd-sources">
526526
<ul>
527-
<li>Defined in src/lib/helpers/slasHelper.ts:196</li>
527+
<li>Defined in src/lib/helpers/slasHelper.ts:198</li>
528528
</ul>
529529
</aside>
530530
<div class="tsd-comment tsd-typography">
@@ -587,13 +587,13 @@ <h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">Promise</
587587
<a name="logout-1" class="tsd-anchor"></a>
588588
<h3>logout</h3>
589589
<ul class="tsd-signatures tsd-kind-function tsd-parent-kind-module">
590-
<li class="tsd-signature tsd-kind-icon">logout<span class="tsd-signature-symbol">(</span>slasClient<span class="tsd-signature-symbol">: </span><a href="../classes/shopperlogin.shopperlogin-1.html" class="tsd-signature-type">ShopperLogin</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-symbol">{ </span>clientId<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>organizationId<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>shortCode<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>siteId<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> }</span><span class="tsd-signature-symbol">&gt;</span>, parameters<span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">{ </span>refreshToken<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-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="shopperlogin.html#tokenresponse" class="tsd-signature-type">TokenResponse</a><span class="tsd-signature-symbol">&gt;</span></li>
590+
<li class="tsd-signature tsd-kind-icon">logout<span class="tsd-signature-symbol">(</span>slasClient<span class="tsd-signature-symbol">: </span><a href="../classes/shopperlogin.shopperlogin-1.html" class="tsd-signature-type">ShopperLogin</a><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-symbol">{ </span>clientId<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>organizationId<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>shortCode<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>siteId<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> }</span><span class="tsd-signature-symbol">&gt;</span>, parameters<span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">{ </span>accessToken<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>refreshToken<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-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><a href="shopperlogin.html#tokenresponse" class="tsd-signature-type">TokenResponse</a><span class="tsd-signature-symbol">&gt;</span></li>
591591
</ul>
592592
<ul class="tsd-descriptions">
593593
<li class="tsd-description">
594594
<aside class="tsd-sources">
595595
<ul>
596-
<li>Defined in src/lib/helpers/slasHelper.ts:302</li>
596+
<li>Defined in src/lib/helpers/slasHelper.ts:305</li>
597597
</ul>
598598
</aside>
599599
<div class="tsd-comment tsd-typography">
@@ -610,11 +610,17 @@ <h5>slasClient: <a href="../classes/shopperlogin.shopperlogin-1.html" class="tsd
610610
</div>
611611
</li>
612612
<li>
613-
<h5>parameters: <span class="tsd-signature-symbol">{ </span>refreshToken<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> }</span></h5>
613+
<h5>parameters: <span class="tsd-signature-symbol">{ </span>accessToken<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">; </span>refreshToken<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol"> }</span></h5>
614614
<div class="tsd-comment tsd-typography">
615615
<p>parameters to pass in the API calls.</p>
616616
</div>
617617
<ul class="tsd-parameters">
618+
<li class="tsd-parameter">
619+
<h5>access<wbr>Token<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></h5>
620+
<div class="tsd-comment tsd-typography">
621+
<p>a valid access token to exchange for a new access token (and refresh token).</p>
622+
</div>
623+
</li>
618624
<li class="tsd-parameter">
619625
<h5>refresh<wbr>Token<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span></h5>
620626
<div class="tsd-comment tsd-typography">
@@ -639,7 +645,7 @@ <h3>refresh<wbr>Access<wbr>Token</h3>
639645
<li class="tsd-description">
640646
<aside class="tsd-sources">
641647
<ul>
642-
<li>Defined in src/lib/helpers/slasHelper.ts:278</li>
648+
<li>Defined in src/lib/helpers/slasHelper.ts:280</li>
643649
</ul>
644650
</aside>
645651
<div class="tsd-comment tsd-typography">

docs/modules/version.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ <h3><span class="tsd-flag ts-flagConst">Const</span> USER_<wbr>AGENT_<wbr>HEADER
9595
<section class="tsd-panel tsd-member tsd-kind-variable tsd-parent-kind-module">
9696
<a name="user_agent_value" class="tsd-anchor"></a>
9797
<h3><span class="tsd-flag ts-flagConst">Const</span> USER_<wbr>AGENT_<wbr>VALUE</h3>
98-
<div class="tsd-signature tsd-kind-icon">USER_<wbr>AGENT_<wbr>VALUE<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">"commerce-sdk-isomorphic@1.6.0"</span><span class="tsd-signature-symbol"> = &quot;commerce-sdk-isomorphic@1.6.0&quot;</span></div>
98+
<div class="tsd-signature tsd-kind-icon">USER_<wbr>AGENT_<wbr>VALUE<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">"commerce-sdk-isomorphic@1.7.0"</span><span class="tsd-signature-symbol"> = &quot;commerce-sdk-isomorphic@1.7.0&quot;</span></div>
9999
<aside class="tsd-sources">
100100
<ul>
101101
<li>Defined in src/lib/version.ts:2</li>

0 commit comments

Comments
 (0)