@claudian-collab/protocol 2.0.0 → 3.0.0

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
@@ -62,18 +62,17 @@ part of the public surface.
62
62
 
63
63
  Package SemVer, canonical wire version, and Cloud binding version are independent concepts.
64
64
 
65
- - **Package version** (this `package.json`): `2.0.0`. Patch releases preserve
65
+ - **Package version** (this `package.json`): `3.0.0`. Patch releases preserve
66
66
  every existing public declaration and runtime behavior baseline. Minor
67
67
  releases may add backward-compatible API. Removing or changing an existing
68
68
  declaration, export, runtime behavior, codec, error, limit, ref rule,
69
- operation, or compatibility rule requires a major release. The package
70
- version never signals wire compatibility by itself.
71
- - **Wire version** (`COLLAB_PROTOCOL_VERSION`): currently `5`. The supported
72
- range is exactly `[5, 5]`. This is independent from Cloud binding version `2` and the existing application
69
+ operation, or compatibility rule requires a major release. Package 3 and wire 6 add an exact empty transfer-claim batch for a Project whose only Member is the already-bound Host. The package version never signals wire compatibility by itself.
70
+ - **Wire version** (`COLLAB_PROTOCOL_VERSION`): currently `6`. The supported
71
+ range is exactly `[6, 6]`. This is independent from Cloud binding version `2` and the existing application
73
72
  LAN control version `9`. Any change to an envelope, DTO, or operation
74
73
  payload shape, or to the operation inventory, is wire-breaking and requires
75
74
  a new wire-protocol version.
76
- - **Cloud binding version** (`COLLAB_CLOUD_BINDING_VERSION`): currently `2`. It versions Cloud routes, bounded transfer streams, and capabilities independently from package and wire versions. Binding v1 and wire v4 are unsupported rather than translated or dual-interpreted.
75
+ - **Cloud binding version** (`COLLAB_CLOUD_BINDING_VERSION`): currently `2`. It versions Cloud routes, bounded transfer streams, and capabilities independently from package and wire versions. Binding v1 and wire versions before v6 are unsupported rather than translated or dual-interpreted.
77
76
 
78
77
  ### Compatibility behavior
79
78
 
@@ -223,7 +223,7 @@ function decodeCollabTransferredMembershipClaimBatch(value) {
223
223
  'targetAuthorityGeneration',
224
224
  'transferId',
225
225
  ]);
226
- if (!Array.isArray(source.claims) || source.claims.length === 0) {
226
+ if (!Array.isArray(source.claims)) {
227
227
  throw invalidPayload('claims');
228
228
  }
229
229
  const claims = source.claims.map(claimItem);
@@ -1,4 +1,4 @@
1
- export declare const COLLAB_PROTOCOL_VERSION: 5;
1
+ export declare const COLLAB_PROTOCOL_VERSION: 6;
2
2
  export declare const COLLAB_MAIN_REF: "refs/heads/main";
3
3
  export declare const COLLAB_MEMBER_REF_PREFIX: "refs/heads/members/";
4
4
  export declare const COLLAB_LIMITS: Readonly<{
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.COLLAB_LIMITS = exports.COLLAB_MEMBER_REF_PREFIX = exports.COLLAB_MAIN_REF = exports.COLLAB_PROTOCOL_VERSION = void 0;
4
- exports.COLLAB_PROTOCOL_VERSION = 5;
4
+ exports.COLLAB_PROTOCOL_VERSION = 6;
5
5
  exports.COLLAB_MAIN_REF = 'refs/heads/main';
6
6
  exports.COLLAB_MEMBER_REF_PREFIX = 'refs/heads/members/';
7
7
  exports.COLLAB_LIMITS = Object.freeze({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@claudian-collab/protocol",
3
- "version": "2.0.0",
3
+ "version": "3.0.0",
4
4
  "description": "Canonical Collab wire and Cloud binding contract for Claudian clients and servers.",
5
5
  "license": "MIT",
6
6
  "repository": {