@kumiai/mls-rpc 0.13.0 → 0.13.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.
package/README.md CHANGED
@@ -259,3 +259,7 @@ one. The ones a host is most likely to trip on:
259
259
  Anyone who has seen a `GroupInfo` for the group can compute the rendezvous topic. That is tolerable
260
260
  for what the topic is for — a stranded peer, and a removed one, must both be able to name it — but
261
261
  a host must put nothing on it that confidentiality depends on.
262
+
263
+ `applyCommit({ ..., yield: false })` forwards the per-call yield policy to `GroupHandle.processMessage`.
264
+ This skips cooperative timer pauses during commit preparation inside a host write transaction.
265
+ Omitting `yield`, or passing `true`, preserves the existing behaviour, including validation and refusal handling.
@@ -1,7 +1,7 @@
1
- import { type GroupHandle, type VerifiedLedgerEntry } from '@kumiai/mls';
1
+ import { type GroupHandle, type VerifiedLedgerEntry, type YieldOptions } from '@kumiai/mls';
2
2
  import type { CommitContext, RecoveryRefusalReason, RosterEntry } from '@kumiai/rpc';
3
3
  import type { LedgerEntrySlot } from './mls.js';
4
- export type ApplyCommitParams = CommitContext & {
4
+ export type ApplyCommitParams = CommitContext & YieldOptions & {
5
5
  handle: GroupHandle;
6
6
  commit: Uint8Array;
7
7
  entrySlot: LedgerEntrySlot;
@@ -64,6 +64,7 @@ function rosterOf(handle) {
64
64
  try {
65
65
  await handle.processMessage({
66
66
  message: commit,
67
+ yield: params.yield,
67
68
  ...persist != null && {
68
69
  persist: async (current)=>{
69
70
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kumiai/mls-rpc",
3
- "version": "0.13.0",
3
+ "version": "0.13.1",
4
4
  "description": "The @kumiai/rpc consumer ports (GroupCrypto, GroupMLS) implemented over @kumiai/mls",
5
5
  "keywords": [
6
6
  "mls",
@@ -25,16 +25,16 @@
25
25
  "lib/*"
26
26
  ],
27
27
  "dependencies": {
28
- "@kokuin/token": "^0.7.0",
29
- "@kumiai/mls": "^0.13.0",
30
- "@kumiai/rpc": "^0.13.0",
28
+ "@kokuin/token": "^0.7.1",
29
+ "@kumiai/mls": "^0.13.2",
30
+ "@kumiai/rpc": "^0.13.1",
31
31
  "@noble/ciphers": "^2.4.0",
32
32
  "@sozai/runtime": "^0.1.0"
33
33
  },
34
34
  "devDependencies": {
35
35
  "@kumiai/rpc-conformance": "^0.13.0",
36
36
  "ts-mls": "2.0.0-rc.13",
37
- "vitest": "^5.1.0"
37
+ "vitest": "^5.1.1"
38
38
  },
39
39
  "publishConfig": {
40
40
  "access": "public"