@salesforce/commerce-sdk-react 4.3.0-preview.1 → 4.4.0-nightly-20260116000329

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 CHANGED
@@ -1,4 +1,10 @@
1
- ## v4.3.0-preview.1 (Dec 17, 2025)
1
+ ## v4.4.0-nightly-20260116000329 (Jan 16, 2026)
2
+ ## v4.4.0-dev (Jan 16, 2026)
3
+ ## v3.16.0-nightly-20260116000329 (Jan 16, 2026)
4
+ ## v4.4.0-dev (Dec 17, 2025)
5
+ - [Bugfix]Ensure code_verifier can be optional in resetPassword call [#3567](https://github.com/SalesforceCommerceCloud/pwa-kit/pull/3567)
6
+
7
+ ## v4.3.0 (Dec 17, 2025)
2
8
 
3
9
  - Upgrade to commerce-sdk-isomorphic v4.2.0 and introduce Shopper Configurations SCAPI integration [#3071](https://github.com/SalesforceCommerceCloud/pwa-kit/pull/3071)
4
10
 
package/auth/index.js CHANGED
@@ -1258,23 +1258,23 @@ class Auth {
1258
1258
  headers: {
1259
1259
  Authorization: ''
1260
1260
  },
1261
- body: {
1261
+ body: _objectSpread(_objectSpread({}, parameters.user_id && {
1262
+ user_id: parameters.user_id
1263
+ }), {}, {
1262
1264
  pwd_action_token: parameters.pwd_action_token,
1263
1265
  channel_id: parameters.channel_id || slasClient.clientConfig.parameters.siteId,
1264
1266
  client_id: parameters.client_id || slasClient.clientConfig.parameters.clientId,
1265
1267
  new_password: parameters.new_password,
1266
- hint: parameters.hint,
1268
+ hint: parameters.hint || 'cross_device'
1269
+ }, parameters.code_verifier && {
1267
1270
  code_verifier: parameters.code_verifier
1268
- }
1271
+ })
1269
1272
  };
1270
1273
 
1271
1274
  // Only set authorization header if using private client
1272
1275
  if (_this17.clientSecret) {
1273
1276
  options.headers.Authorization = `Basic ${(0, _utils.stringToBase64)(`${slasClient.clientConfig.parameters.clientId}:${_this17.clientSecret}`)}`;
1274
1277
  }
1275
- // TODO: no code verifier needed with the fix blair has made, delete this when the fix has been merged to production
1276
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
1277
- // @ts-ignore
1278
1278
  const res = yield _this17.client.resetPassword(options);
1279
1279
  return res;
1280
1280
  })();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/commerce-sdk-react",
3
- "version": "4.3.0-preview.1",
3
+ "version": "4.4.0-nightly-20260116000329",
4
4
  "description": "A library that provides react hooks for fetching data from Commerce Cloud",
5
5
  "homepage": "https://github.com/SalesforceCommerceCloud/pwa-kit/tree/develop/packages/ecom-react-hooks#readme",
6
6
  "bugs": {
@@ -45,7 +45,7 @@
45
45
  "jwt-decode": "^4.0.0"
46
46
  },
47
47
  "devDependencies": {
48
- "@salesforce/pwa-kit-dev": "3.15.0-preview.1",
48
+ "@salesforce/pwa-kit-dev": "3.16.0-nightly-20260116000329",
49
49
  "@tanstack/react-query": "^4.28.0",
50
50
  "@testing-library/jest-dom": "^5.16.5",
51
51
  "@testing-library/react": "^14.0.0",
@@ -60,7 +60,7 @@
60
60
  "@types/react-helmet": "~6.1.6",
61
61
  "@types/react-router-dom": "~5.3.3",
62
62
  "cross-env": "^5.2.1",
63
- "internal-lib-build": "3.15.0-preview.1",
63
+ "internal-lib-build": "3.16.0-nightly-20260116000329",
64
64
  "jsonwebtoken": "^9.0.0",
65
65
  "nock": "^13.3.0",
66
66
  "nodemon": "^2.0.22",
@@ -90,5 +90,5 @@
90
90
  "publishConfig": {
91
91
  "directory": "dist"
92
92
  },
93
- "gitHead": "1f4623e3e297937208c62de776518b442ad08ceb"
93
+ "gitHead": "486db465c8d07569d755a510ac8bb53360e78281"
94
94
  }