Skip to content

Commit

Permalink
Support publisher confirm
Browse files Browse the repository at this point in the history
  • Loading branch information
fred-o committed Jan 20, 2025
1 parent 0756ea3 commit b4a8b70
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 8 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ node_modules
.cake_task_cache
lib
/.log/
.envrc
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
Changelog
=========

# 5.7.0 - 2025-01-20
* Support for the RabbitMQ 'Publisher Confirms' extension.

# 5.6.2 - 2024-04-25
* Upgrade `amqplib` and `coffeelint` due to security vulnerabilities.

Expand Down
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,15 @@ or

* `timeout`: timeout in ms for rpc calls. Default: 1000ms


### `publisherConfirm`

*Since 5.7.0*

* `publisherConfirm`: boolean that enables or disables the RabbitMQ
[Publisher Confirms](https://www.rabbitmq.com/docs/confirms) extension.
Default: false.

### `logLevel`

* `logLevel`: sets the log level. Defaults to `INFO`. Possible levels
Expand Down Expand Up @@ -117,6 +126,7 @@ do this is to attach an `error` event handler.
"login": "test",
"password": "supersecret"
},
"publisherConfirm": true,
"logLevel": "warn",
"rpc": {
"timeout": 2000
Expand Down Expand Up @@ -410,3 +420,4 @@ Example
amqpc.rpc('myexchange', 'routing.key', msg, [headers], {compress:true}).then (response) ->
console.log 'received message', response
```

1 change: 1 addition & 0 deletions amqp-as-promised.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ declare namespace amqp {
rpc?: {
timeout?: number
}
publisherConfirm?: boolean
logLevel?: 'error' | 'warn' | 'info' | 'debug' | 'trace'
}

Expand Down
8 changes: 0 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b4a8b70

Please sign in to comment.