Skip to content

Commit

Permalink
Release v4.0.0 (#407)
Browse files Browse the repository at this point in the history
* update APIs

* update changelog/readme

* update CHANGELOG

* add shopper context RAML description changes

* update docs through docs script

* bump to major version
  • Loading branch information
joeluong-sfcc authored Jul 18, 2024
1 parent 422610a commit d05459d
Show file tree
Hide file tree
Showing 236 changed files with 6,252 additions and 2,615 deletions.
42 changes: 38 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,48 @@

## v4.0.0

### :warning: Planned Shopper Context Changes :warning:
### :warning: Planned API Changes :warning:

Starting July 31st 2024, all endpoints in the Shopper context API will require the `siteId` parameter for new customers. This field is marked as optional for backward compatibility and will be changed to mandatory tentatively by January 2025.
#### Shopper Context

Starting July 31st 2024, all endpoints in the Shopper context API will require the `siteId` parameter for new customers. This field is marked as optional for backward compatibility and will be changed to mandatory tentatively by January 2025. You can read more about the planned change [here](https://developer.salesforce.com/docs/commerce/commerce-api/references/shopper-context?meta=Summary) in the notes section.

#### Shopper Login (SLAS)

SLAS will soon require new tenants to pass `channel_id` as an argument for retrieving guest access tokens. You can read more about the planned change [here](https://developer.salesforce.com/docs/commerce/commerce-api/guide/slas.html#guest-tokens).

Please be aware that existing tenants are on a temporary allow list and will see no immediate disruption to service. We do ask that all users seek to adhere to the `channel_id` requirement before the end of August to enhance your security posture before the holiday peak season.

In practice, we recommend that customers using the SLAS helper functions upgrade to `v4.0.0` of the `commerce-sdk`.

### Enchancements

- Update SLAS helper function `loginGuestUserPrivate` to require `channel_id` as SLAS requires `channel_id` when requesting a guest access token with a `grant_type` of `client_credentials` starting July 31st 2024 [#406](https://github.com/SalesforceCommerceCloud/commerce-sdk/pull/406)
- See the [announcement on the developer docs](https://developer.salesforce.com/docs/commerce/commerce-api/guide/slas.html#guest-tokens) for more information
- Update SLAS helper function `loginGuestUserPrivate` to require `channel_id` and `loginGuestUser` to pass in `channel_id` to SLAS through `clientConfig.parameters.siteId` [#406](https://github.com/SalesforceCommerceCloud/commerce-sdk/pull/406)

### API Changes

*CDN Zones API*

* Endpoints added
| **Endpoint Name** | **Description** |
| ------------- |-----------------------------------|
| getOwaspWafPackage | Get a OWASP ModSecurity Core Rule Set. |
| patchOwaspWafPackage | Patch a OWASP ModSecurity Core Rule Set. |
| getWafManagedRulesInRuleset | Retrieves all rules in the specified WAFv2 managed ruleset. |
| updateWafManagedRuleInRuleset | Updates a WAF managed rule in the specified WAFv2 managed ruleset. |
| migrateZoneToWafV2 | Migrates a zone to WAFv2. Only applicable for existing zones using WAFv1. |
| upsertOriginHeaderModification | Upsert origin header modification. |
| getOriginHeaderModification | Get origin header modification associated with a zone. |
| deleteOriginHeaderModification | Delete the origin header modification associated with a zone. |

* **BREAKING**: Removed deprecated endpoints
* getFirewallRules
* createFirewallRule
* getFirewallRule
* updateFirewallRule
* deleteFirewallRule

NOTE: As of February 6th, 2024, firewall rules are deprecated and customers can use [eCDN custom rules](https://developer.salesforce.com/docs/commerce/commerce-api/guide/cdn-zones-custom-rules.html) moving forward.

## v3.1.0

Expand Down
14 changes: 12 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,19 @@ The Salesforce Commerce SDK allows easy interaction with the Salesforce B2C Comm

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.
## :warning: Planned Shopper Context Changes :warning:
## :warning: Planned API Changes :warning:

Starting July 31st 2024, all endpoints in the Shopper context API will require the `siteId` parameter for new customers. This field is marked as optional for backward compatibility and will be changed to mandatory tentatively by January 2025.
### Shopper Context

Starting July 31st 2024, all endpoints in the Shopper context API will require the `siteId` parameter for new customers. This field is marked as optional for backward compatibility and will be changed to mandatory tentatively by January 2025. You can read more about the planned change [here](https://developer.salesforce.com/docs/commerce/commerce-api/references/shopper-context?meta=Summary) in the notes section.

### Shopper Login (SLAS)

SLAS will soon require new tenants to pass `channel_id` as an argument for retrieving guest access tokens. You can read more about the planned change [here](https://developer.salesforce.com/docs/commerce/commerce-api/guide/slas.html#guest-tokens).

Please be aware that existing tenants are on a temporary allow list and will see no immediate disruption to service. We do ask that all users seek to adhere to the `channel_id` requirement before the end of August to enhance your security posture before the holiday peak season.

In practice, we recommend that customers using the SLAS helper functions upgrade to `v4.0.0` of the `commerce-sdk`.

## Prerequisites

Expand Down
4 changes: 2 additions & 2 deletions apis/cdn/cdn-api-process-apis/.metadata.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"id": "893f605e-10e2-423a-bdb4-f952f56eb6d8/cdn-api-process-apis/1.0.30",
"id": "893f605e-10e2-423a-bdb4-f952f56eb6d8/cdn-api-process-apis/1.0.32",
"name": "CDN Zones",
"description": "Extend your eCDN beyond Business Manager configuration.",
"groupId": "893f605e-10e2-423a-bdb4-f952f56eb6d8",
"assetId": "cdn-api-process-apis",
"version": "1.0.30",
"version": "1.0.32",
"categories": {
"API layer": [
"Process"
Expand Down
2 changes: 2 additions & 0 deletions apis/cdn/cdn-api-process-apis/cdn-zones-description.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ The API client must also have at least one of the following OAuth scopes: `sfcc.

For detailed setup instructions, see the [Authorization for Admin APIs](https://developer.salesforce.com/docs/commerce/commerce-api/guide/authorization-for-admin-apis.html) guide.

You must include the relevant scope(s) in the client ID used to generate the token. For details, see the [Authorization Scopes Catalog.](https://developer.salesforce.com/docs/commerce/commerce-api/guide/auth-z-scope-catalog.html)

## Use Cases

For detailed usage information, refer to the [CDN Zones Guides.](https://developer.salesforce.com/docs/commerce/commerce-api/guide/cdn-zones.html)
Loading

0 comments on commit d05459d

Please sign in to comment.