@cplieger/web-terminal-engine 3.0.0 → 3.0.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/jsr.json +1 -1
- package/package.json +1 -1
- package/src/index.ts +1 -1
- package/src/wire-compatibility.ts +8 -1
package/jsr.json
CHANGED
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -15,7 +15,7 @@ export {
|
|
|
15
15
|
WIRE_INCOMPATIBLE_CLOSE_CODE,
|
|
16
16
|
WIRE_PROTOCOL_VERSION,
|
|
17
17
|
} from "./wire-compatibility.js";
|
|
18
|
-
export type { WireIncompatibility } from "./wire-compatibility.js";
|
|
18
|
+
export type { WireCompatibility, WireIncompatibility } from "./wire-compatibility.js";
|
|
19
19
|
export { controlFrame, CONTROL_FRAME_PREFIX } from "./wire.js";
|
|
20
20
|
export { wsURL } from "./wsurl.js";
|
|
21
21
|
export { WS_PATH, SESSIONS_PATH, SESSION_EVENTS_PATH } from "./routes.js";
|
|
@@ -12,8 +12,15 @@ export const MIN_SUPPORTED_SERVER_WIRE_VERSION = 3;
|
|
|
12
12
|
/** Definitive private WebSocket close code for an incompatible declared peer. */
|
|
13
13
|
export const WIRE_INCOMPATIBLE_CLOSE_CODE = 4002;
|
|
14
14
|
|
|
15
|
+
/** Shape of the machine-readable compatibility metadata object. */
|
|
16
|
+
export interface WireCompatibility {
|
|
17
|
+
readonly protocolVersion: number;
|
|
18
|
+
readonly minimumServerProtocolVersion: number;
|
|
19
|
+
readonly incompatibleCloseCode: number;
|
|
20
|
+
}
|
|
21
|
+
|
|
15
22
|
/** Machine-readable compatibility metadata shipped in every TS release. */
|
|
16
|
-
export const WIRE_COMPATIBILITY = Object.freeze({
|
|
23
|
+
export const WIRE_COMPATIBILITY: WireCompatibility = Object.freeze({
|
|
17
24
|
protocolVersion: WIRE_PROTOCOL_VERSION,
|
|
18
25
|
minimumServerProtocolVersion: MIN_SUPPORTED_SERVER_WIRE_VERSION,
|
|
19
26
|
incompatibleCloseCode: WIRE_INCOMPATIBLE_CLOSE_CODE,
|