@commercengine/storefront-sdk 0.14.1 → 0.14.2

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/dist/index.mjs CHANGED
@@ -506,7 +506,11 @@ function attachSessionAuth(client, sessionManager) {
506
506
  }
507
507
  /**
508
508
  * Storefront API client that extends the generic BaseAPIClient
509
- * Adds Commerce Engine specific authentication and token management
509
+ * Adds Commerce Engine specific authentication and token management.
510
+ *
511
+ * Session-only domain clients can extend this directly. Shared public/session
512
+ * read clients may instead extend a shared base class and call
513
+ * `attachSessionAuth()` explicitly in their concrete session wrapper.
510
514
  */
511
515
  var SessionStorefrontAPIClient = class extends StorefrontAPIClientBase {
512
516
  config;
@@ -1207,8 +1211,9 @@ var BaseCatalogClient = class extends StorefrontAPIClientBase {
1207
1211
  /**
1208
1212
  * Storefront API client that always authenticates with `X-Api-Key`.
1209
1213
  *
1210
- * This client is used by the public storefront surface where no session or
1211
- * token lifecycle should be involved.
1214
+ * This class is kept as the advanced public transport client. Concrete public
1215
+ * domain clients can either extend this directly or extend a shared base class
1216
+ * and attach the same auth behavior via `attachPublicAuth()`.
1212
1217
  */
1213
1218
  var PublicStorefrontAPIClient = class extends StorefrontAPIClientBase {
1214
1219
  constructor(config) {