stream-connect-sdk 0.8.2 → 0.8.3
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 +30 -0
- package/package.json +1 -1
- package/sdk-headless.js +1 -1
- package/sdk.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,36 @@ All notable changes to the `stream-connect-sdk` npm package. The
|
|
|
4
4
|
companion React Native hook (`stream-connect-sdk-hook`) is on its own
|
|
5
5
|
release line; see [`sdk-hook/docs/README.md`](./sdk-hook/docs/README.md).
|
|
6
6
|
|
|
7
|
+
## 0.8.3
|
|
8
|
+
|
|
9
|
+
### Fix: carriers that ask for Date of Birth could never be connected
|
|
10
|
+
|
|
11
|
+
A member connecting a carrier whose credential form includes a **Date of
|
|
12
|
+
Birth** field — Medical Mutual and SimplePay Health — could not complete
|
|
13
|
+
enrollment. Whatever they typed was discarded before the request left the
|
|
14
|
+
browser, the backend rejected the submission as missing a required field
|
|
15
|
+
(HTTP 422), and the form came back with a red validation error. No input
|
|
16
|
+
format worked, because the value never reached the server at all.
|
|
17
|
+
|
|
18
|
+
The credential payload spread the carrier's form values first and then
|
|
19
|
+
re-pinned a handful of SDK-controlled fields on top. One of those was
|
|
20
|
+
`date_of_birth: values.dateOfBirth || null` — camelCase, which no carrier
|
|
21
|
+
schema emits — so it always evaluated to `null` and overwrote the real
|
|
22
|
+
value. The line was inherited from 0.7.x, where the spread order was
|
|
23
|
+
reversed and the member's value won; 0.8.0 inverted that order (so carrier
|
|
24
|
+
schemas can't clobber `payer_id` / `accept` / `tenants_accept`) and turned a
|
|
25
|
+
dead line into a data-destroying one. The re-pin is gone; `payer_id` and the
|
|
26
|
+
consent fields are still protected.
|
|
27
|
+
|
|
28
|
+
Date fields also render as a native date input now. Carrier schemas mark
|
|
29
|
+
them `{"type": "string", "format": "date"}`, which 0.8.x rendered as a bare
|
|
30
|
+
text box with no format hint even though the backend only accepts ISO
|
|
31
|
+
`YYYY-MM-DD`. The date input always produces ISO, so there is nothing left
|
|
32
|
+
to guess.
|
|
33
|
+
|
|
34
|
+
The React Native hook (`stream-connect-sdk-hook`) kept the 0.7.x spread
|
|
35
|
+
order and was never affected.
|
|
36
|
+
|
|
7
37
|
## 0.8.2
|
|
8
38
|
|
|
9
39
|
### Fix: 2FA-required carriers no longer dead-end on a false "Connected"
|
package/package.json
CHANGED