@manabrew/protocol 5.3.0 → 5.4.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 +6 -3
- package/dist/deck/index.d.ts +6 -1
- package/dist/lobby/index.d.ts +1 -1
- package/dist/version.d.ts +2 -1
- package/dist/version.js +3 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -20,10 +20,13 @@ npm install @manabrew/protocol
|
|
|
20
20
|
|
|
21
21
|
```ts
|
|
22
22
|
import type { Prompt, PromptInput, PromptOutput } from "@manabrew/protocol";
|
|
23
|
-
import { VERSION, PROTOCOL_VERSION } from "@manabrew/protocol";
|
|
23
|
+
import { VERSION, PROTOCOL_VERSION, RELAY_PROTOCOL_VERSION } from "@manabrew/protocol";
|
|
24
24
|
```
|
|
25
25
|
|
|
26
|
+
`VERSION` is this package's own version, matching what you installed.
|
|
27
|
+
|
|
26
28
|
`PROTOCOL_VERSION` is the integer wire version a client must report to a relay
|
|
27
29
|
to interoperate. It is the major of `manabrew-relay-protocol`, so it only moves
|
|
28
|
-
on a breaking wire change
|
|
29
|
-
|
|
30
|
+
on a breaking wire change, and most releases leave it alone.
|
|
31
|
+
`RELAY_PROTOCOL_VERSION` is that crate's full version, for anyone who needs to
|
|
32
|
+
tell two releases apart at the same wire version.
|
package/dist/deck/index.d.ts
CHANGED
|
@@ -43,7 +43,12 @@ export type Deck = {
|
|
|
43
43
|
editor?: DeckEditorMetadata;
|
|
44
44
|
coverCardName?: string;
|
|
45
45
|
coverCardFace?: number;
|
|
46
|
-
|
|
46
|
+
/**
|
|
47
|
+
* The hub fills this from `playmat_asset_id` and ignores whatever a write
|
|
48
|
+
* supplies.
|
|
49
|
+
*/
|
|
50
|
+
playmatUrl?: string;
|
|
51
|
+
playmatAssetId?: string;
|
|
47
52
|
playmatSettings?: PlaymatSettings;
|
|
48
53
|
stackPositions?: Record<string, {
|
|
49
54
|
x: number;
|
package/dist/lobby/index.d.ts
CHANGED
package/dist/version.d.ts
CHANGED
package/dist/version.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PROTOCOL_VERSION = exports.VERSION = void 0;
|
|
3
|
+
exports.PROTOCOL_VERSION = exports.RELAY_PROTOCOL_VERSION = exports.VERSION = void 0;
|
|
4
4
|
// AUTO-GENERATED by `cargo run -p manabrew-relay-protocol --bin gen-protocol`. Do not edit.
|
|
5
|
-
exports.VERSION = "5.
|
|
5
|
+
exports.VERSION = "5.4.0";
|
|
6
|
+
exports.RELAY_PROTOCOL_VERSION = "5.6.0";
|
|
6
7
|
exports.PROTOCOL_VERSION = 5;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@manabrew/protocol",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.4.0",
|
|
4
4
|
"description": "TypeScript types for the Manabrew wire protocol — the engine↔client message contract for the Manabrew Magic: The Gathering client.",
|
|
5
5
|
"license": "AGPL-3.0-or-later",
|
|
6
6
|
"repository": {
|