docs: document Orbit.apiVersion in the plugin API reference
This commit is contained in:
parent
4144f5f125
commit
d4d93bfd39
1 changed files with 1 additions and 0 deletions
|
|
@ -51,6 +51,7 @@ instead. See **[Compiled plugins](https://orbit.tchatou.fr/docs/compiled-plugins
|
|||
| Member | Description |
|
||||
|---|---|
|
||||
| `Orbit.version` / `Orbit.commit` | app version + git commit (build-time) |
|
||||
| `Orbit.apiVersion` | plugin API contract version (bumped on breaking changes) — guard with `if (Orbit.apiVersion < N) …` |
|
||||
| `Orbit.plugin(name, fn)` | register a plugin; `fn(orbit, log)` |
|
||||
| `Orbit.on/once/off/emit(event, …)` | the app event bus |
|
||||
| `Orbit.config()` | the resolved runtime config |
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue