commerce-sdk-isomorphic 1.5.2 → 1.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +35 -0
- package/README.md +4 -0
- package/lib/index.cjs.d.ts +468 -175
- package/lib/index.cjs.js +1 -1
- package/lib/index.esm.d.ts +468 -175
- package/lib/index.esm.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,40 @@
|
|
|
1
1
|
# CHANGELOG
|
|
2
2
|
|
|
3
|
+
## v1.6.0
|
|
4
|
+
|
|
5
|
+
#### API Changes
|
|
6
|
+
|
|
7
|
+
*Shopper Login*
|
|
8
|
+
|
|
9
|
+
* New Endpoints
|
|
10
|
+
|
|
11
|
+
| **Endpoint Name** | **Description** |
|
|
12
|
+
| ------------- |-------------|
|
|
13
|
+
| getPasswordResetToken | Request a reset password token |
|
|
14
|
+
| resetPassword | Creates a new password |
|
|
15
|
+
|
|
16
|
+
#### Enchancements
|
|
17
|
+
|
|
18
|
+
* More error handling has been added in the SLAS helpers
|
|
19
|
+
|
|
20
|
+
#### Bug fixes
|
|
21
|
+
|
|
22
|
+
* SLAS helper `loginRegisteredUserB2C` no longer calls `redirectURI` when running server side
|
|
23
|
+
#### Documentation
|
|
24
|
+
|
|
25
|
+
* `README` updated to explicitly note lack of CORS support for SCAPI
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
## v1.5.2
|
|
29
|
+
|
|
30
|
+
### New Features
|
|
31
|
+
|
|
32
|
+
* If the `throwOnBadResponse` flag is set, the error thrown now includes the full HTTP response object.
|
|
33
|
+
|
|
34
|
+
### Bug Fixes
|
|
35
|
+
|
|
36
|
+
* An error about invalid user-agent is no longer printed to console when making requests in a browser.
|
|
37
|
+
|
|
3
38
|
## v1.5.1
|
|
4
39
|
|
|
5
40
|
#### Documentation
|
package/README.md
CHANGED
|
@@ -65,6 +65,10 @@ const searchResult = await shopperSearch.productSearch({
|
|
|
65
65
|
});
|
|
66
66
|
```
|
|
67
67
|
|
|
68
|
+
#### CORS
|
|
69
|
+
|
|
70
|
+
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.
|
|
71
|
+
|
|
68
72
|
### Advanced options
|
|
69
73
|
|
|
70
74
|
Commerce SDK Isomorphic supports Fetch API options for [node-fetch](https://github.com/node-fetch/node-fetch/1#api) on server and [whatwg-fetch](https://github.github.io/fetch/) on browser with a simple configuration.
|