@serenityjs/plugins 0.8.18 → 0.8.19-beta-20260306215523
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/CHANGELOG.md +12 -0
- package/dist/index.d.mts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.js +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @serenityjs/plugins
|
|
2
2
|
|
|
3
|
+
## 0.8.19-beta-20260306215523
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#263](https://github.com/SerenityJS/serenity/pull/263) [`c03296f`](https://github.com/SerenityJS/serenity/commit/c03296fcacccc80ea2ffb31d4adf9d0dea05e07f) Thanks [@AnyBananaGAME](https://github.com/AnyBananaGAME)! - init v0.8.19-beta
|
|
8
|
+
|
|
9
|
+
- Updated dependencies [[`c03296f`](https://github.com/SerenityJS/serenity/commit/c03296fcacccc80ea2ffb31d4adf9d0dea05e07f)]:
|
|
10
|
+
- @serenityjs/core@0.8.19-beta-20260306215523
|
|
11
|
+
- @serenityjs/emitter@0.8.19-beta-20260306215523
|
|
12
|
+
- @serenityjs/logger@0.8.19-beta-20260306215523
|
|
13
|
+
- @serenityjs/protocol@0.8.19-beta-20260306215523
|
|
14
|
+
|
|
3
15
|
## 0.8.18
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/dist/index.d.mts
CHANGED
|
@@ -84,8 +84,8 @@ interface PluginBeforeEvents {
|
|
|
84
84
|
|
|
85
85
|
interface PluginOnEvents {
|
|
86
86
|
onInitialize?: (plugin: Plugin) => void;
|
|
87
|
-
onStartUp?: (plugin: Plugin) => void
|
|
88
|
-
onShutDown?: (plugin: Plugin) => void
|
|
87
|
+
onStartUp?: (plugin: Plugin) => Promise<void>;
|
|
88
|
+
onShutDown?: (plugin: Plugin) => Promise<void>;
|
|
89
89
|
onWorldInitialize?: (event: Core.WorldInitializeSignal) => void;
|
|
90
90
|
onWorldTick?: (event: Core.WorldTickSignal) => void;
|
|
91
91
|
onChunkReady?: (event: Core.ChunkReadySignal) => void;
|
|
@@ -462,12 +462,12 @@ declare class Plugin<T = unknown> extends Emitter<T> implements PluginOptions {
|
|
|
462
462
|
* Called when the plugin is started up.
|
|
463
463
|
* @param plugin The plugin instance that was started up. (this)
|
|
464
464
|
*/
|
|
465
|
-
onStartUp(_plugin: Plugin): void
|
|
465
|
+
onStartUp(_plugin: Plugin): Promise<void>;
|
|
466
466
|
/**
|
|
467
467
|
* Called when the plugin is shut down.
|
|
468
468
|
* @param plugin The plugin instance that was shut down. (this)
|
|
469
469
|
*/
|
|
470
|
-
onShutDown(_plugin: Plugin): void
|
|
470
|
+
onShutDown(_plugin: Plugin): Promise<void>;
|
|
471
471
|
/**
|
|
472
472
|
* Define the config for the plugin.
|
|
473
473
|
* @param definition The config definition.
|
|
@@ -524,18 +524,18 @@ declare class Pipeline {
|
|
|
524
524
|
/**
|
|
525
525
|
* Starts the plugins pipeline.
|
|
526
526
|
*/
|
|
527
|
-
start(): void
|
|
527
|
+
start(): Promise<void>;
|
|
528
528
|
/**
|
|
529
529
|
* Stops the plugins pipeline.
|
|
530
530
|
*/
|
|
531
|
-
stop(): void
|
|
531
|
+
stop(): Promise<void>;
|
|
532
532
|
/**
|
|
533
533
|
* Load a plugin from a text source.
|
|
534
534
|
* @param source The source code of the plugin.
|
|
535
535
|
* @param isBundled Whether the plugin is bundled or not.
|
|
536
536
|
*/
|
|
537
537
|
loadFromTextSource(path: string, source: string, isBundled?: boolean): Plugin | null;
|
|
538
|
-
reload(plugin: Plugin): void
|
|
538
|
+
reload(plugin: Plugin): Promise<void>;
|
|
539
539
|
bundle(plugin: Plugin): void;
|
|
540
540
|
protected bindEvents(plugin: Plugin): void;
|
|
541
541
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -84,8 +84,8 @@ interface PluginBeforeEvents {
|
|
|
84
84
|
|
|
85
85
|
interface PluginOnEvents {
|
|
86
86
|
onInitialize?: (plugin: Plugin) => void;
|
|
87
|
-
onStartUp?: (plugin: Plugin) => void
|
|
88
|
-
onShutDown?: (plugin: Plugin) => void
|
|
87
|
+
onStartUp?: (plugin: Plugin) => Promise<void>;
|
|
88
|
+
onShutDown?: (plugin: Plugin) => Promise<void>;
|
|
89
89
|
onWorldInitialize?: (event: Core.WorldInitializeSignal) => void;
|
|
90
90
|
onWorldTick?: (event: Core.WorldTickSignal) => void;
|
|
91
91
|
onChunkReady?: (event: Core.ChunkReadySignal) => void;
|
|
@@ -462,12 +462,12 @@ declare class Plugin<T = unknown> extends Emitter<T> implements PluginOptions {
|
|
|
462
462
|
* Called when the plugin is started up.
|
|
463
463
|
* @param plugin The plugin instance that was started up. (this)
|
|
464
464
|
*/
|
|
465
|
-
onStartUp(_plugin: Plugin): void
|
|
465
|
+
onStartUp(_plugin: Plugin): Promise<void>;
|
|
466
466
|
/**
|
|
467
467
|
* Called when the plugin is shut down.
|
|
468
468
|
* @param plugin The plugin instance that was shut down. (this)
|
|
469
469
|
*/
|
|
470
|
-
onShutDown(_plugin: Plugin): void
|
|
470
|
+
onShutDown(_plugin: Plugin): Promise<void>;
|
|
471
471
|
/**
|
|
472
472
|
* Define the config for the plugin.
|
|
473
473
|
* @param definition The config definition.
|
|
@@ -524,18 +524,18 @@ declare class Pipeline {
|
|
|
524
524
|
/**
|
|
525
525
|
* Starts the plugins pipeline.
|
|
526
526
|
*/
|
|
527
|
-
start(): void
|
|
527
|
+
start(): Promise<void>;
|
|
528
528
|
/**
|
|
529
529
|
* Stops the plugins pipeline.
|
|
530
530
|
*/
|
|
531
|
-
stop(): void
|
|
531
|
+
stop(): Promise<void>;
|
|
532
532
|
/**
|
|
533
533
|
* Load a plugin from a text source.
|
|
534
534
|
* @param source The source code of the plugin.
|
|
535
535
|
* @param isBundled Whether the plugin is bundled or not.
|
|
536
536
|
*/
|
|
537
537
|
loadFromTextSource(path: string, source: string, isBundled?: boolean): Plugin | null;
|
|
538
|
-
reload(plugin: Plugin): void
|
|
538
|
+
reload(plugin: Plugin): Promise<void>;
|
|
539
539
|
bundle(plugin: Plugin): void;
|
|
540
540
|
protected bindEvents(plugin: Plugin): void;
|
|
541
541
|
/**
|