amqplib 0.5.2 → 0.5.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.npmignore +8 -0
- package/CHANGELOG.md +68 -0
- package/Makefile +2 -1
- package/README.md +2 -2
- package/bin/generate-defs.js +723 -0
- package/examples/tutorials/package.json +1 -1
- package/lib/api_args.js +2 -0
- package/lib/channel.js +28 -10
- package/lib/connect.js +6 -16
- package/lib/connection.js +2 -1
- package/lib/credentials.js +14 -0
- package/lib/defs.js +129 -1
- package/lib/mux.js +6 -21
- package/package-lock.json +711 -0
- package/package.json +11 -10
- package/test/channel.js +73 -61
- package/test/channel_api.js +13 -0
- package/test/connect.js +32 -7
- package/test/connection.js +47 -47
- package/test/mux.js +44 -6
- package/test/util.js +2 -2
package/.npmignore
ADDED
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,73 @@
|
|
|
1
1
|
# Change log for amqplib
|
|
2
2
|
|
|
3
|
+
## Changes in v0.5.5
|
|
4
|
+
|
|
5
|
+
git log v0.5.3..v0.5.5
|
|
6
|
+
|
|
7
|
+
**NB** this includes a minor but possibly breaking change: after [PR
|
|
8
|
+
498](https://github.com/squaremo/amqp.node/pull/498), all confirmation
|
|
9
|
+
promises still unresolved will be rejected when their associated
|
|
10
|
+
channel is closed.
|
|
11
|
+
|
|
12
|
+
* Generate defs in `npm prepare` rather than `npm prepublish` so that
|
|
13
|
+
e.g., amqplib can be installed via git ([part of PR
|
|
14
|
+
498](https://github.com/squaremo/amqp.node/pull/498))
|
|
15
|
+
* Reject all pending confirmations when the channel is closed ([PR
|
|
16
|
+
498](https://github.com/squaremo/amqp.node/pull/498)); thanks
|
|
17
|
+
@johanneswuerbach
|
|
18
|
+
* Update supported NodeJS versions in package.json ([PR
|
|
19
|
+
525](https://github.com/squaremo/amqp.node/pull/525)); thanks
|
|
20
|
+
@tingwai
|
|
21
|
+
|
|
22
|
+
## (Deprecated v0.5.4)
|
|
23
|
+
|
|
24
|
+
This release was mistakenly published without the generated file
|
|
25
|
+
`./defs.js`. It has been deprecated in favour of v0.5.5.
|
|
26
|
+
|
|
27
|
+
## Changes in v0.5.3
|
|
28
|
+
|
|
29
|
+
git log v0.5.2..v0.5.3
|
|
30
|
+
|
|
31
|
+
* Bump bitsyntax to remove some `Buffer` misuse deprecation notices
|
|
32
|
+
([PR 480])(https://github.com/squaremo/amqp.node/pull/480)
|
|
33
|
+
* Test on node 11.1
|
|
34
|
+
([PR 473])(https://github.com/squaremo/amqp.node/pull/464); thanks
|
|
35
|
+
@kibertoad
|
|
36
|
+
* Updated various dependencies
|
|
37
|
+
* Support queue mode during assertQueue
|
|
38
|
+
([PR 464])(https://github.com/squaremo/amqp.node/pull/464); thanks
|
|
39
|
+
@JoeTheFkingFrypan
|
|
40
|
+
* Expose serverProperties in the connection object
|
|
41
|
+
([PR 452])(https://github.com/squaremo/amqp.node/pull/452); thanks
|
|
42
|
+
@jfromaniello
|
|
43
|
+
* Test on Node 10
|
|
44
|
+
([PR 454])(https://github.com/squaremo/amqp.node/pull/454); thanks
|
|
45
|
+
@kibertoad
|
|
46
|
+
* Support amqplain credentials
|
|
47
|
+
([PR 451])(https://github.com/squaremo/amqp.node/pull/451); thanks
|
|
48
|
+
@jfromaniello
|
|
49
|
+
* Decorate channel errors with methodId and classId
|
|
50
|
+
([PR 447])(https://github.com/squaremo/amqp.node/pull/447); thanks
|
|
51
|
+
@MitMaro
|
|
52
|
+
* Resolve issues caused by Node 10 `readable` changes
|
|
53
|
+
([PR 442])(https://github.com/squaremo/amqp.node/pull/442)
|
|
54
|
+
* Bump uglify to 2.6.x and node to 9.1 due to nodejs/node#16781.
|
|
55
|
+
([PR 439])(https://github.com/squaremo/amqp.node/pull/439)
|
|
56
|
+
* Updated README with more modern Buffer syntax
|
|
57
|
+
([PR 438](https://github.com/squaremo/amqp.node/pull/438); thanks
|
|
58
|
+
@ravshansbox
|
|
59
|
+
* Support overflow option to assert queue
|
|
60
|
+
([PR 436])(https://github.com/squaremo/amqp.node/pull/436); thanks
|
|
61
|
+
to @honestserpent
|
|
62
|
+
* Replace instances of keyword `await`
|
|
63
|
+
([PR 396])(https://github.com/squaremo/amqp.node/pull/396),
|
|
64
|
+
as discussed in
|
|
65
|
+
[issue 235](https://github.com/squaremo/amqp.node/issues/235)
|
|
66
|
+
* Use 3rd party url for better decoding of username/password
|
|
67
|
+
([PR 395])(https://github.com/squaremo/amqp.node/pull/395),
|
|
68
|
+
as discussed in
|
|
69
|
+
[issue 385](https://github.com/squaremo/amqp.node/issues/385))
|
|
70
|
+
|
|
3
71
|
## Changes in v0.5.2
|
|
4
72
|
|
|
5
73
|
git log v0.5.1..v0.5.2
|
package/Makefile
CHANGED
|
@@ -2,7 +2,8 @@ RABBITMQ_SRC_VERSION=rabbitmq_v3_2_1
|
|
|
2
2
|
JSON=amqp-rabbitmq-0.9.1.json
|
|
3
3
|
RABBITMQ_CODEGEN=https://raw.githubusercontent.com/rabbitmq/rabbitmq-codegen
|
|
4
4
|
AMQP_JSON=$(RABBITMQ_CODEGEN)/$(RABBITMQ_SRC_VERSION)/$(JSON)
|
|
5
|
-
|
|
5
|
+
|
|
6
|
+
NODEJS_VERSIONS='0.8' '0.9' '0.10' '0.11' '0.12' '1.6' '2.5' '3.3' '4.2' '5.5' '6.2' '8.9' '9.11' '10.7' '11.1'
|
|
6
7
|
|
|
7
8
|
MOCHA=./node_modules/.bin/mocha
|
|
8
9
|
_MOCHA=./node_modules/.bin/_mocha
|
package/README.md
CHANGED
|
@@ -47,7 +47,7 @@ function publisher(conn) {
|
|
|
47
47
|
function on_open(err, ch) {
|
|
48
48
|
if (err != null) bail(err);
|
|
49
49
|
ch.assertQueue(q);
|
|
50
|
-
ch.sendToQueue(q,
|
|
50
|
+
ch.sendToQueue(q, Buffer.from('something to do'));
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
53
|
|
|
@@ -86,7 +86,7 @@ open.then(function(conn) {
|
|
|
86
86
|
return conn.createChannel();
|
|
87
87
|
}).then(function(ch) {
|
|
88
88
|
return ch.assertQueue(q).then(function(ok) {
|
|
89
|
-
return ch.sendToQueue(q,
|
|
89
|
+
return ch.sendToQueue(q, Buffer.from('something to do'));
|
|
90
90
|
});
|
|
91
91
|
}).catch(console.warn);
|
|
92
92
|
|