You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+45-1Lines changed: 45 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,48 @@
1
-
## CHANGELOG
1
+
# CHANGELOG
2
+
3
+
## v5.0.0
4
+
5
+
### API Versions
6
+
7
+
| API Name | API Version |
8
+
|----------|-------------|
9
+
| assignments | 1.0.35 |
10
+
| campaigns | 1.0.37 |
11
+
| catalogs | 1.0.42 |
12
+
| cdn-api-process-apis | 1.0.39 |
13
+
| cors-preferences | 1.0.5 |
14
+
| coupons | 1.0.39 |
15
+
| customers | 1.0.32 |
16
+
| gift-certificates | 1.0.39 |
17
+
| orders | 1.4.10 |
18
+
| preferences | 1.1.3 |
19
+
| products | 1.0.40 |
20
+
| promotions | 1.0.33 |
21
+
| shopper-baskets | 1.9.0 |
22
+
| shopper-baskets | 2.1.0 |
23
+
| shopper-consents | 1.1.0 |
24
+
| shopper-context | 1.1.1 |
25
+
| shopper-customers | 1.1.1 |
26
+
| shopper-experience | 1.0.7 |
27
+
| shopper-gift-certificates | 1.0.26 |
28
+
| shopper-login | 1.39.41 |
29
+
| shopper-orders | 1.5.0 |
30
+
| shopper-products | 1.0.37 |
31
+
| shopper-promotions | 1.0.36 |
32
+
| shopper-search | 1.3.0 |
33
+
| shopper-seo | 1.0.13 |
34
+
| shopper-stores | 1.0.17 |
35
+
| slas-admin | 1.12.30 |
36
+
| source-code-groups | 1.0.37 |
37
+
38
+
### Enchancements
39
+
- Enum types have been added for certain operations and types
40
+
- Certain operations have had types updated for query parameters
41
+
- SLAS helpers have been refactored to accept a single `options` object argument, where the properties are the old arguments
42
+
-`loginGuestUserPrivate` now passes `usid` under `options.parameters`
43
+
- Path parameter special characters are encoded by default
44
+
- API family layer and API namespace has been removed. To import API classes, please refer to the [README](https://github.com/SalesforceCommerceCloud/commerce-sdk?tab=readme-ov-file#sample-code)
45
+
- Docs Site has been upgraded to reflect new directory structure [#426](https://github.com/SalesforceCommerceCloud/commerce-sdk/pull/426)
Copy file name to clipboardExpand all lines: README.md
+42-9Lines changed: 42 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,28 @@ The Salesforce Commerce SDK allows easy interaction with the Salesforce B2C Comm
4
4
5
5
Visit the [Commerce Cloud Developer Center](https://developer.salesforce.com/developer-centers/commerce-cloud) to learn more about Salesforce Commerce. The developer center has API documentation, getting started guides, community forums, and more.
6
6
7
+
## Documentation
8
+
9
+
An auto-generated [documentation site](https://salesforcecommercecloud.github.io/commerce-sdk/) provides comprehensive reference for all available endpoints and types across API classes. Following the v5.0.0 release, the underlying SDK file structure has been reorganized, introducing additional layers of imports/exports that may affect navigation.
10
+
11
+
### Navigating the Documentation
12
+
13
+
**For API Classes:**
14
+
15
+
1.**Accessing API Classes:** Click on the API class name (e.g., `shopperProducts`) on the right hand side
16
+
2.**Viewing Endpoints:** Scroll to the `Classes` section and click the corresponding API class link (e.g., `ShopperProducts`) to see available endpoints and their parameters
17
+
3.**Type Definitions:** Scroll to the `Type aliases` section for available types
18
+
4.**Navigating Back to API Classes**: To return to the main documentation page with all API classes listed on the right sidebar, click on `Globals` in the navigation.
19
+
20
+
**Utility Classes:** Utility classes and methods such as `clientConfig` and `helpers` maintain the same structure as previous versions.
21
+
22
+
**NOTES:**
23
+
24
+
1.**Type Access**: API class types are accessible through the `<api_class>Types` namespace (e.g., `ShopperProductsTypes`). Individual types can be accessed as `ShopperProductsTypes.Product`.
25
+
2.**Type References**: The `References` section under API classes in the generated documentation may show duplicate entries. This occurs because types are exported both at their original definition and under the API class namespace. Both references point to the same underlying type definition.
26
+
3.**V4 Migration Guide**: Starting in v5, API classes will no longer be exported under API family namespaces. See the [Sample Code](#sample-code) section for migration examples.
27
+
4.**Supporting Files**: The SDK includes additional supporting modules beyond the `helpers` SLAS functions. The `types` module provides common type definitions shared across API classes, while the `version` module automatically implements user agent headers for all requests. The user agent value follows the format `commerce-sdk@<version>` based on the current SDK version.
28
+
7
29
## :warning: Planned API Changes :warning:
8
30
9
31
### Shopper Context
@@ -64,14 +86,25 @@ To use an SDK client, instantiate an object of that client and configure these p
64
86
65
87
// Import the SDK in TypeScript
66
88
// tsc requires the --esModuleInterop flag for this
0 commit comments