Skip to content

Commit e11d080

Browse files
committed
chore(release): pryv 3.3.2 + @pryv/cmc 1.0.2 + monitor/socket.io 3.3.2 lockstep
Patch release shipping the readOffer follow-up fix (7b7fe2a): omit the streams filter entirely so events.get doesn't fail with unknown-referenced-resource against any real api-server. CHANGELOG.md entry under [3.3.2] explains the two-PR sequence (1.0.1 fixed streamIds → streams; 1.0.2 fixed the resulting parent-stream- doesn't-exist by omitting the filter entirely).
1 parent f84b663 commit e11d080

7 files changed

Lines changed: 43 additions & 11 deletions

File tree

CHANGELOG.md

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

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

5+
## [3.3.2]
6+
7+
Lockstep patch release of `pryv@3.3.2` + `@pryv/monitor@3.3.2` +
8+
`@pryv/socket.io@3.3.2` + `@pryv/cmc@1.0.2`.
9+
10+
### `@pryv/cmc@1.0.2`
11+
12+
#### Fixed
13+
- `readOffer(capabilityUrl)` no longer passes a `streams` filter to
14+
`events.get`. Follow-up to 1.0.1: the previous fix changed
15+
`streamIds` to `streams` (correct field name) but the value
16+
`[':_cmc:_internal:offer']` referenced a stream that doesn't
17+
exist on the user's account. Only the per-capability children
18+
`:_cmc:_internal:offer:<capId>` are auto-provisioned, and the
19+
accepter doesn't know `<capId>` from the `capabilityUrl` alone. The
20+
api-server rejected the call with `unknown-referenced-resource`.
21+
The fix mirrors the plugin's own `readOfferViaCapability`
22+
(`open-pryv.io/components/cmc/src/acceptOrchestration.ts`):
23+
omit the `streams` filter entirely and rely on the capability
24+
access's permissions to narrow the response to the single offer
25+
event the token can read. The `types: ['consent/request-cmc']`
26+
filter is kept as defense in case the offer stream ever holds more
27+
than one event in future revisions.
28+
29+
#### Test
30+
- `[CMCL1OA]` updated to assert `events.get` is called WITHOUT a
31+
`streams` field AND with a `types: ['consent/request-cmc']` filter.
32+
33+
### `pryv@3.3.2`, `@pryv/monitor@3.3.2`, `@pryv/socket.io@3.3.2`
34+
35+
- No code changes. Versions bumped in lockstep with `@pryv/cmc@1.0.2`.
36+
537
## [3.3.1]
638

739
Lockstep patch release of `pryv@3.3.1` + `@pryv/monitor@3.3.1` +

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.1",
3+
"version": "1.0.2",
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.1",
3+
"version": "3.3.2",
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.1",
3+
"version": "3.3.2",
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.1",
3+
"version": "3.3.2",
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.1",
3+
"version": "3.3.2",
44
"private": false,
55
"description": "Pryv JavaScript library and add-ons",
66
"keywords": [

0 commit comments

Comments
 (0)