@interop/was-client 0.93.0 → 0.93.1

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.
@@ -9,9 +9,17 @@
9
9
  import type { Json } from '../types.js';
10
10
  /**
11
11
  * Whether a stored body is an EDV encryption envelope (carries an object `jwe`)
12
- * rather than a plaintext document. Lets read paths stay tolerant of legacy
13
- * plaintext rows (written before a collection's encryption descriptor was
14
- * declared) and lets a one-time migration find the rows it must re-key.
12
+ * rather than a plaintext document.
13
+ *
14
+ * This is a shape test, not a routing decision. It does not decide whether a
15
+ * body should be decrypted. Whether a collection is encrypted is settled by its
16
+ * descriptor, and a read from an encrypted collection must refuse a body that
17
+ * fails this test (`EdvCodec.decode` does so with an `EncryptionError`). A
18
+ * read path that hands a non-envelope body through as plaintext because the
19
+ * descriptor was declared after the row was written accepts whatever the
20
+ * server serves, with no decrypt and no binding check. That tolerance belongs
21
+ * on an explicit migration path, where this predicate finds the rows to
22
+ * re-key, and nowhere else.
15
23
  *
16
24
  * @param data {Json | undefined} the stored resource body
17
25
  * @returns {boolean}
@@ -1 +1 @@
1
- {"version":3,"file":"envelope.d.ts","sourceRoot":"","sources":["../../src/sync/envelope.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;;;GAIG;AACH,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAEvC;;;;;;;;GAQG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,IAAI,GAAG,SAAS,GAAG,OAAO,CAMnE"}
1
+ {"version":3,"file":"envelope.d.ts","sourceRoot":"","sources":["../../src/sync/envelope.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;;;GAIG;AACH,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAEvC;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,IAAI,GAAG,SAAS,GAAG,OAAO,CAMnE"}
@@ -1,8 +1,16 @@
1
1
  /**
2
2
  * Whether a stored body is an EDV encryption envelope (carries an object `jwe`)
3
- * rather than a plaintext document. Lets read paths stay tolerant of legacy
4
- * plaintext rows (written before a collection's encryption descriptor was
5
- * declared) and lets a one-time migration find the rows it must re-key.
3
+ * rather than a plaintext document.
4
+ *
5
+ * This is a shape test, not a routing decision. It does not decide whether a
6
+ * body should be decrypted. Whether a collection is encrypted is settled by its
7
+ * descriptor, and a read from an encrypted collection must refuse a body that
8
+ * fails this test (`EdvCodec.decode` does so with an `EncryptionError`). A
9
+ * read path that hands a non-envelope body through as plaintext because the
10
+ * descriptor was declared after the row was written accepts whatever the
11
+ * server serves, with no decrypt and no binding check. That tolerance belongs
12
+ * on an explicit migration path, where this predicate finds the rows to
13
+ * re-key, and nowhere else.
6
14
  *
7
15
  * @param data {Json | undefined} the stored resource body
8
16
  * @returns {boolean}
@@ -1 +1 @@
1
- {"version":3,"file":"envelope.js","sourceRoot":"","sources":["../../src/sync/envelope.ts"],"names":[],"mappings":"AAUA;;;;;;;;GAQG;AACH,MAAM,UAAU,mBAAmB,CAAC,IAAsB;IACxD,IAAI,IAAI,KAAK,SAAS,IAAI,IAAI,KAAK,IAAI,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE,CAAC;QACpE,OAAO,KAAK,CAAA;IACd,CAAC;IACD,MAAM,GAAG,GAAI,IAA0B,CAAC,GAAG,CAAA;IAC3C,OAAO,GAAG,KAAK,IAAI,IAAI,OAAO,GAAG,KAAK,QAAQ,CAAA;AAChD,CAAC"}
1
+ {"version":3,"file":"envelope.js","sourceRoot":"","sources":["../../src/sync/envelope.ts"],"names":[],"mappings":"AAUA;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,UAAU,mBAAmB,CAAC,IAAsB;IACxD,IAAI,IAAI,KAAK,SAAS,IAAI,IAAI,KAAK,IAAI,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE,CAAC;QACpE,OAAO,KAAK,CAAA;IACd,CAAC;IACD,MAAM,GAAG,GAAI,IAA0B,CAAC,GAAG,CAAA;IAC3C,OAAO,GAAG,KAAK,IAAI,IAAI,OAAO,GAAG,KAAK,QAAQ,CAAA;AAChD,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@interop/was-client",
3
3
  "description": "A developer-friendly client for Wallet Attached Storage (WAS) servers.",
4
- "version": "0.93.0",
4
+ "version": "0.93.1",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "build": "pnpm run clear && tsc",
@@ -84,7 +84,7 @@
84
84
  "@interop/data-integrity-core": "^8.8.0",
85
85
  "@interop/ed25519-signature": "^7.2.3",
86
86
  "@interop/edv-client": "^17.9.2",
87
- "@interop/ezcap": "^7.5.0",
87
+ "@interop/ezcap": "^7.5.1",
88
88
  "@interop/http-client": "^1.0.5",
89
89
  "@interop/minimal-cipher": "^7.10.3",
90
90
  "@interop/storage-core": "^0.35.1",
@@ -96,10 +96,10 @@
96
96
  },
97
97
  "devDependencies": {
98
98
  "@eslint/js": "^10.0.1",
99
- "@interop/data-integrity-proof": "3.4.6",
99
+ "@interop/data-integrity-proof": "3.4.7",
100
100
  "@interop/ed25519-verification-key": "^8.2.1",
101
- "@interop/jsonld-signatures": "11.8.6",
102
- "@interop/zcap": "11.3.2",
101
+ "@interop/jsonld-signatures": "11.8.7",
102
+ "@interop/zcap": "11.3.3",
103
103
  "@playwright/test": "^1.62.1",
104
104
  "@types/node": "^26.1.2",
105
105
  "@vitest/coverage-v8": "^4.1.10",