Skip to content

Commit 38bf4e6

Browse files
committed
chore(release): pryv 3.3.1 + @pryv/cmc 1.0.1 + monitor/socket.io 3.3.1 lockstep
Patch release shipping the readOffer wire-shape fix (3b2e6f4) so the fix is consumable via npm install. @pryv/cmc is the only package with a code change; the other three bump in lockstep to keep all four package versions aligned across releases. CHANGELOG.md entries scoped to the @pryv/cmc bug fix.
1 parent 5f53ab9 commit 38bf4e6

7 files changed

Lines changed: 44 additions & 11 deletions

File tree

CHANGELOG.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,39 @@
22

33
<!-- Format based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) -->
44

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+
538
## [3.3.0]
639

740
Lockstep release of `pryv@3.3.0` + `@pryv/monitor@3.3.0` +

components/pryv-cmc/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pryv/cmc",
3-
"version": "1.0.0",
3+
"version": "1.0.1",
44
"description": "Cross-account Messaging & Consent client helpers for Pryv.io",
55
"keywords": [
66
"Pryv",

components/pryv-monitor/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pryv/monitor",
3-
"version": "3.3.0",
3+
"version": "3.3.1",
44
"description": "Extends `pryv` with event-driven notifications for changes on a Pryv.io account",
55
"keywords": [
66
"Pryv",

components/pryv-socket.io/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pryv/socket.io",
3-
"version": "3.3.0",
3+
"version": "3.3.1",
44
"description": "Extends `pryv` with Socket.IO transport",
55
"keywords": [
66
"Pryv",

components/pryv/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "pryv",
3-
"version": "3.3.0",
3+
"version": "3.3.1",
44
"description": "Pryv JavaScript library",
55
"keywords": [
66
"Pryv",

package-lock.json

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "lib-js",
3-
"version": "3.3.0",
3+
"version": "3.3.1",
44
"private": false,
55
"description": "Pryv JavaScript library and add-ons",
66
"keywords": [

0 commit comments

Comments
 (0)