stream-connect-sdk 0.7.6 → 0.7.7

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.
Files changed (3) hide show
  1. package/README.md +24 -2
  2. package/package.json +2 -3
  3. package/sdk.js +1 -1
package/README.md CHANGED
@@ -4,9 +4,9 @@
4
4
 
5
5
  ## Version
6
6
 
7
- ### 0.7.6
7
+ ### 0.7.7
8
8
 
9
- Surface the carrier's specific error message in the interoperability payer form
9
+ Defensive fix for the Fix-Credentials flow (no white-screen on unresolvable carriers), plus dependency hygiene, lint cleanup, and added test coverage. Logs the SDK version on entry-point load.
10
10
 
11
11
  ## Philosophy
12
12
 
@@ -16,6 +16,28 @@ In the spirit of creating a seemless process we will also be forgoing the verifi
16
16
 
17
17
  ## Change Log
18
18
 
19
+ ### 0.7.7
20
+
21
+ * Fix-Credentials no longer white-screens when a member's carrier isn't in the loaded payer list; the tile renders disabled with an explanatory message and EnterCredentials is null-safe against a missing streamPayer
22
+ * Log SDK version (`TPAStream Connect SDK v0.7.7`) on entry-point load
23
+ * Migrate `EnterCredentials.componentWillMount` to constructor (removes React deprecation warning)
24
+ * Tighten loose-equality comparisons in `interoperability-payer-form` and `sdk` setStep4
25
+ * Remove leftover dev `console.log` from interoperability polling
26
+ * Tests added for `card`, `choose-payer`, `fix-credentials`, `payer-info`, `select-enroll-process`, `payer-images`, and `enter-credentials`
27
+ * Dependency security: `npm audit fix` for moderate-severity transitive advisories
28
+ * **`axios` bumped from `^0.21.1` to `^1.7.9` (major version)**. The 1.x line carries breaking changes (default `transformResponse`, error object shape, `crossdomain` / `Cookie` removal, `paramsSerializer`, response header casing). All in-SDK consumers of `sdkAxios` were audited:
29
+ - Request shapes: all `.get/.post/.put` calls use the `(url, body, { params })` style supported in 1.x; no calls pass `transformResponse` or `paramsSerializer`.
30
+ - Response handling: consumers read `response.data.data.<field>` only; `.data` JSON-parse path is unchanged in 1.x.
31
+ - Error handling: `error.response.data.message` is unchanged in 1.x.
32
+ - Request defaults: phantom `crossdomain: true` removed (was a no-op axios silently dropped); `defaults.headers['X-Connect-Access-Token']` migrated to `defaults.headers.common['X-Connect-Access-Token']` per the 1.x convention.
33
+ - No header reads in consumer code, so the response-header-casing change is not a risk.
34
+ Any host page that wraps `sdkAxios` externally and inspects axios internals would be the only remaining surface to verify.
35
+ * **`jquery` removed as a dependency**. The single use in `entries/sdk.jsx` (`$(document).ready`) was replaced with a vanilla `onDOMReady` helper. Embedding pages that bring their own jQuery are unaffected; pages that relied on the SDK to load jQuery for them now need to load it themselves (we have no evidence any did).
36
+
37
+ ### 0.7.6
38
+
39
+ * Surface the carrier's specific error message in the interoperability payer form
40
+
19
41
  ### 0.7.5
20
42
 
21
43
  * Autofill username on fix credentials if it exists
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "stream-connect-sdk",
3
- "version": "0.7.6",
3
+ "version": "0.7.7",
4
4
  "description": "A JavaScript SDK implementing TPAStream's Connect Platform",
5
5
  "scripts": {
6
6
  "build": "webpack --config webpack.prod-sdk.js --mode=production",
@@ -48,9 +48,8 @@
48
48
  "dependencies": {
49
49
  "@fortawesome/free-solid-svg-icons": "^5.13.0",
50
50
  "@fortawesome/react-fontawesome": "^0.1.6",
51
- "axios": "^0.21.1",
51
+ "axios": "^1.7.9",
52
52
  "font-awesome": "^4.7.0",
53
- "jquery": "^3.4.1",
54
53
  "query-string": "^6.6.0",
55
54
  "react": "^16.11.0",
56
55
  "react-dom": "^16.8.6",