My original intent with this library was to avoid adding any dependencies. I'm happy that I've kept that goal for as long as I have! In practice, however, it's not ideal to have to do your own YAML parsing in order to convert stats and list command responses to proper JavaScript objects.
Because of this, I've added the yaml
package as a single dependency, and I've added proper TypeScript types for all of the list and stats commands.
🔨 Breaking Changes
- Added
yaml
as a single dependency (previously had no dependencies) getCurrentTube
was renamed tolistTubeUsed
to better align with the naming in the Beanstalkd protocol- YAML parsing for stats and list commands now returns proper JavaScript objects instead of raw YAML strings
listTubes()
returnsstring[]
listTubesWatched()
returnsstring[]
listTubesUsed()
returnsstring
stats()
returnsSystemStats
statsJob()
returnsJobStats
statsTube()
returnsTubeStats
- Keys are camelCased, so
current-tubes
becomescurrentTubes
,current-connections
becomescurrentConnections
, etc.
🐛 Bug Fixes
- Added proper exports configuration in package.json (it was broken before, sorry)
- Added types export
- Added default export
- Properly configured CJS/ESM exports