plugins: HFS.Const
Massimo Melina committed
Aug 31, 2023 at 19:29 UTC
7f36c8acd9f196fc5ed629c0aca13108091bd5e5
2 files changed
+5
-2
dev-plugins.md
+3
-1
@@ -159,7 +159,7 @@ The `api` object you get as parameter of the `init` contains the following:
159
160
- `log(...args)` print log in a standard form for plugins.
161
162
-- `const: object` all constants of the `const.ts` file are exposed here. E.g. BUILD_TIMESTAMP, API_VERSION, etc.
162
+- `Const: object` all constants of the `const.ts` file are exposed here. E.g. BUILD_TIMESTAMP, API_VERSION, etc.
163
164
- `getConnections: Connections[]` retrieve current list of active connections.
165
@@ -355,6 +355,8 @@ Where `h` is just `import { createElement as h } from 'react'`.
355
356
## API version history
357
358
+- 8.4 (v0.48.0)
359
+ - HFS.Const (HFS.const is now deprecated)
360
- 8.3 (v0.47.0)
361
- HFS.useBatch
362
- FileMenuEntry.id, .subLabel
src/plugins.ts
+2
-1
@@ -339,7 +339,8 @@ function watchPlugin(id: string, path: string) {
339
const res = await init?.call(null, {
340
srcDir: __dirname,
341
storageDir,
342
- const: Const,
342
+ Const,
343
+ const: Const, // legacy, deprecated in 0.48
344
require,
345
getConnections,
346
events,