@ham2k/extension-tools 0.6.0 → 0.8.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/h2kext.mjs +7 -2
- package/package.json +1 -1
package/h2kext.mjs
CHANGED
|
@@ -28,8 +28,11 @@ import yazl from "yazl"
|
|
|
28
28
|
///
|
|
29
29
|
/// Raised when a bundle using something new could not work at all on an app
|
|
30
30
|
/// without it — not for every addition. 2 adds `host.webSocket` and the
|
|
31
|
-
/// manifest's `webSockets` grant; 3 adds timers and `onShow`/`onHide
|
|
32
|
-
|
|
31
|
+
/// manifest's `webSockets` grant; 3 adds timers and `onShow`/`onHide`; 4 lets
|
|
32
|
+
/// `host.fetch` reach an http-only host the app fronts with its https proxy
|
|
33
|
+
/// (the QSO Party Hub); 5 adds panel scenes' `scene` kind and what came with
|
|
34
|
+
/// it — native controls, `strings`, `layout`, `after` and control `opacity`.
|
|
35
|
+
export const H2KEXT_API_VERSION = 5
|
|
33
36
|
|
|
34
37
|
/// The first API with `host.webSocket`. A manifest declaring `webSockets`
|
|
35
38
|
/// under an older one is refused: an older app would install it and fail only
|
|
@@ -133,6 +136,8 @@ export const SHARED_MODULES_BY_API = {
|
|
|
133
136
|
}
|
|
134
137
|
SHARED_MODULES_BY_API[2] = SHARED_MODULES_BY_API[1]
|
|
135
138
|
SHARED_MODULES_BY_API[3] = SHARED_MODULES_BY_API[2]
|
|
139
|
+
SHARED_MODULES_BY_API[4] = SHARED_MODULES_BY_API[3]
|
|
140
|
+
SHARED_MODULES_BY_API[5] = SHARED_MODULES_BY_API[4]
|
|
136
141
|
|
|
137
142
|
/// What a scaffolded extension declares on day one: the eight modules the SDK
|
|
138
143
|
/// barrel itself reaches, so a project that has written no code yet still
|