|
2 | 2 |
|
3 | 3 | <!-- Format based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) --> |
4 | 4 |
|
| 5 | +## [3.3.1] |
| 6 | + |
| 7 | +Lockstep patch release of `pryv@3.3.1` + `@pryv/monitor@3.3.1` + |
| 8 | +`@pryv/socket.io@3.3.1` + `@pryv/cmc@1.0.1`. |
| 9 | + |
| 10 | +### `@pryv/cmc@1.0.1` |
| 11 | + |
| 12 | +#### Fixed |
| 13 | +- `readOffer(capabilityUrl)` now passes `streams` (the recursive read |
| 14 | + filter) to `events.get` instead of `streamIds` (which is the |
| 15 | + `events.create` write target). The api-server schema rejects |
| 16 | + `streamIds` on `events.get` with `OBJECT_ADDITIONAL_PROPERTIES`, so |
| 17 | + the previous code threw on every call. Affects any patient/doctor app |
| 18 | + using `cmc.readOffer(url)` to preview an offer before |
| 19 | + `acceptInvite` — typically apps rendering an offer-preview screen |
| 20 | + with title / description / requested permissions. |
| 21 | +- Internal use by `cmc.acceptInvite` was unaffected (its `readOffer` |
| 22 | + call is wrapped in `try/catch` that silently falls back to null |
| 23 | + counterparty fields). |
| 24 | + |
| 25 | +#### Added |
| 26 | +- Contract test for `readOffer`'s wire-shape: stubs `pryv.Connection` |
| 27 | + and asserts the inner `apiOne('events.get', …)` call uses `streams` |
| 28 | + (not `streamIds`). This class of typo will now fail at unit-test |
| 29 | + time instead of only against a real api-server. |
| 30 | + |
| 31 | +### `pryv@3.3.1`, `@pryv/monitor@3.3.1`, `@pryv/socket.io@3.3.1` |
| 32 | + |
| 33 | +- No code changes. Versions bumped in lockstep with `@pryv/cmc@1.0.1` |
| 34 | + so the four packages stay aligned (operators upgrade by `npm install |
| 35 | + pryv@3.3.1 @pryv/cmc@1.0.1`; the monitor / socket.io packages follow |
| 36 | + via transitive resolution). |
| 37 | + |
5 | 38 | ## [3.3.0] |
6 | 39 |
|
7 | 40 | Lockstep release of `pryv@3.3.0` + `@pryv/monitor@3.3.0` + |
|
0 commit comments