Files
factorio-expcluster/exp_server_ups
BastiaanandClaude Opus 5.5 ea9bf1fb78 Construct plugins with a static fromContext (#487)
Each plugin class now has a private constructor and a static async
fromContext(context) that loads its datastores, constructs the instance
and attaches its handlers and hooks. This replaces the public constructor
followed by init(), and AutoRestart's start().

Datastores are loaded before construction and passed to the constructor,
so the definite assignment assertions on them are gone. Tests build the
plugins through fromContext and pass a wrapped logger in the context
instead of overwriting plugin.logger before init().

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-05 01:19:53 +01:00
..
2026-09-09 18:43:29 +01:00
2026-09-12 01:10:02 +01:00
2026-09-12 01:10:02 +01:00
2025-09-12 20:47:32 +01:00
2026-09-12 01:10:02 +01:00