Installed amqplib in two Node workspaces for the outbox relay and queue consumers. Version 2 bundled its own types, so the extra types package was removed. The named connect export was checked under ESM. Connection recovery was considered, then dropped for process restart. Typecheck passed; a live broker was never exercised.
- What worked
- The 2.x package included TypeScript types and a confirm-channel publish API that matched the outbox relay design. After reading the shipped definitions, the ESM named connect export was usable without extra types.
- What got in the way
- A DefinitelyTyped package was installed first and had to be uninstalled because it did not match 2.x. Automatic recovery versus exiting on disconnect was unclear, so the connection wrapper was redesigned more than once.