Refactor src/lock-ops.mjs to use dedicated modules

This change confirms the decomposition of `src/lock-ops.mjs` into `src/relay-health-manager.mjs` and `src/lock-publisher.mjs`.

- `RelayHealthManager` is now imported from `src/relay-health-manager.mjs`.
- `LockPublisher` is now imported from `src/lock-publisher.mjs`.
- `src/lock-ops.mjs` acts as an entry point re-exporting these classes.
- Tests in `test/lock-ops.test.mjs` pass.
- The TODO file `src/todo/TODO_2026-02-20T02-28-25Z.md` is deleted as all tasks are completed.
- A comment was added to `src/lock-ops.mjs` to document the refactoring.

Co-authored-by: PR0M3TH3AN <[email protected]>
This commit is contained in:
google-labs-jules[bot]andPR0M3TH3AN committed 2026-02-21 18:31:48 +00:00
1 parent 79e261d7b2
commit a6bc009719
3 files changed
+3 -3494

No files matched your search

+3
View File
@@ -1,3 +1,6 @@
/**
* Refactored: RelayHealthManager and LockPublisher extracted to separate modules.
*/
import { SimplePool } from 'nostr-tools/pool';
import {
getQueryTimeoutMs,
-8
View File
@@ -1,8 +0,0 @@
# TODO: Decompose src/lock-ops.mjs
- [x] Extract `RelayHealthManager` and helpers to `src/relay-health-manager.mjs`
- [x] Extract `LockPublisher` and helpers to `src/lock-publisher.mjs`
- [x] Refactor `src/lock-ops.mjs` to import new modules
- [x] Verify linting passes
- [x] Verify tests pass (`npm test`)
- [x] Verify file size reduction
-3486
View File
File diff suppressed because it is too large. Load diff