Alex2Node/dist/esm
David 6789a1a077 bridge: publish through a Publisher; devices no longer hold the broker client
src/transport.ts has the Publisher interface, MqttPublisher (the client the bridge has at the time) and
MemoryPublisher (tests without a broker); src/topics.ts names the four topics the library publishes to.
Device, AlexaStatusMessage, AlexaErrorResponse and sendSceneResponse shared three copies of the
publish-and-report code: they now call one send() that resolves the topic or "" and never rejects.
registerDevice() and addDevice() work before connect(); a send() without a connection resolves "" and the
"error" event says to call connect(). unregisterDevice() and clearDevices() take the publisher from the device.
Device.setMqttClient() is gone, the first constructor argument of Device is ignored, and the message classes
take a Publisher where they took the client. Tests: 108 -> 113.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-28 19:34:39 +00:00
..
compat bridge: publish through a Publisher; devices no longer hold the broker client 2026-09-28 19:34:39 +00:00
device bridge: publish through a Publisher; devices no longer hold the broker client 2026-09-28 19:34:39 +00:00
messages messages: pure builders for every event the bridge sends 2026-09-28 19:28:05 +00:00
registry messages: pure builders for every event the bridge sends 2026-09-28 19:28:05 +00:00
Alex2Node.d.ts bridge: publish through a Publisher; devices no longer hold the broker client 2026-09-28 19:34:39 +00:00
Alex2Node.js bridge: publish through a Publisher; devices no longer hold the broker client 2026-09-28 19:34:39 +00:00
index.d.ts bridge: publish through a Publisher; devices no longer hold the broker client 2026-09-28 19:34:39 +00:00
index.js bridge: publish through a Publisher; devices no longer hold the broker client 2026-09-28 19:34:39 +00:00
package.json build: dual CJS/ESM output, ES2020 target, Node 18 floor 2026-09-28 13:58:17 +00:00
topics.d.ts bridge: publish through a Publisher; devices no longer hold the broker client 2026-09-28 19:34:39 +00:00
topics.js bridge: publish through a Publisher; devices no longer hold the broker client 2026-09-28 19:34:39 +00:00
transport.d.ts bridge: publish through a Publisher; devices no longer hold the broker client 2026-09-28 19:34:39 +00:00
transport.js bridge: publish through a Publisher; devices no longer hold the broker client 2026-09-28 19:34:39 +00:00