API_VERSION 4
Massimo Melina committed
Jun 7, 2022 at 16:01 UTC
3f1648c5cd5abcc74fe35255513bbf135ca95a0f
2 files changed
+14
-1
dev-plugins.md
+13
@@ -168,3 +168,16 @@ Published plugins are required to specify the `apiRequired` property.
168
It is possible to publish different versions of the plugin to be compatible with different versions of HFS.
169
To do that, just have your other versions in branches with name starting with `api`.
170
HFS will scan through them in alphabetical order searching for a compatible one.
171
+
172
+## API version history
173
+
174
+- 4 (v0.23.0)
175
+ - config.type:real_path
176
+ - api.subscribeConfig
177
+ - api.setConfig
178
+ - api.getHfsConfig
179
+- 3
180
+ - config.defaultValue
181
+ - async for init/unload
182
+- 2
183
+ - config.type:array
server/src/const.ts
+1
-1
@@ -12,7 +12,7 @@ export const VERSION = ''
12
export const SESSION_DURATION = 30*60_000
13
export const DAY = 86_400_000
14
15
-export const API_VERSION = 3 // introduced config.defaultValue and async for init/unload
15
+export const API_VERSION = 4 // introduced type:real_path and api.subscribeConfig/setConfig/getHfsConfig
16
export const COMPATIBLE_API_VERSION = 1 // while changes in the api are not breaking, this number stays the same, otherwise is made equal to API_VERSION
17
18
export const SPECIAL_URI = '/~/'