amqplib 0.5.6 → 0.8.0
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/CHANGELOG.md +47 -0
- package/Makefile +3 -2
- package/README.md +5 -7
- package/lib/connect.js +2 -0
- package/lib/defs.js +165 -183
- package/package-lock.json +942 -30
- package/package.json +7 -6
- package/test/frame.js +1 -1
- package/test/mux.js +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,52 @@
|
|
|
1
1
|
# Change log for amqplib
|
|
2
2
|
|
|
3
|
+
## Changes in v0.8.0
|
|
4
|
+
|
|
5
|
+
git log v0.7.1..v0.8.0
|
|
6
|
+
|
|
7
|
+
* :warning: Support for NodeJS prior to v10 is dropped :warning: ([PR
|
|
8
|
+
615](https://github.com/squaremo/amqp.node/pull/615), thank you
|
|
9
|
+
@xamgore and everyone who helped there)
|
|
10
|
+
* Use hostname as TLS servername, to help with using servers behind
|
|
11
|
+
load balancers ([PR
|
|
12
|
+
567](https://github.com/squaremo/amqp.node/pull/567), thanks to
|
|
13
|
+
@carlhoerberg and commenters)
|
|
14
|
+
|
|
15
|
+
## Changes in v0.7.1
|
|
16
|
+
|
|
17
|
+
git log v0.7.0..v0.7.1
|
|
18
|
+
|
|
19
|
+
* Update url-parse (and others) ([PR
|
|
20
|
+
607](https://github.com/squaremo/amqp.node/pull/545), thanks
|
|
21
|
+
@ThomasGawlitza)
|
|
22
|
+
|
|
23
|
+
## Changes in v0.7.0
|
|
24
|
+
|
|
25
|
+
git log v0.6.0..v0.7.0
|
|
26
|
+
|
|
27
|
+
* Extend support to Node.js v15
|
|
28
|
+
* Fix use of stream.write in tests
|
|
29
|
+
|
|
30
|
+
## Changes in v0.6.0
|
|
31
|
+
|
|
32
|
+
git log v0.5.6..v0.6.0
|
|
33
|
+
|
|
34
|
+
* Extend support to Node.js v14
|
|
35
|
+
|
|
36
|
+
## Changes in v0.5.6
|
|
37
|
+
|
|
38
|
+
git log v0.5.5..v0.5.6
|
|
39
|
+
|
|
40
|
+
* Increase size of encoding space for message headers, to fit e.g.,
|
|
41
|
+
JWT ([PR 545](https://github.com/squaremo/amqp.node/pull/545));
|
|
42
|
+
thanks @twatson83
|
|
43
|
+
* Switch to a non-deprecated UUID module ([PR
|
|
44
|
+
528](https://github.com/squaremo/amqp.node/pull/528)); thanks to
|
|
45
|
+
@StrayBird-ATSH
|
|
46
|
+
* Fix a bug in multiplexing that caused an assertion to fail ([PR
|
|
47
|
+
503](https://github.com/squaremo/amqp.node/pull/503)); thanks
|
|
48
|
+
@johanneswuerbach
|
|
49
|
+
|
|
3
50
|
## Changes in v0.5.5
|
|
4
51
|
|
|
5
52
|
git log v0.5.3..v0.5.5
|
package/Makefile
CHANGED
|
@@ -3,7 +3,7 @@ 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='
|
|
6
|
+
NODEJS_VERSIONS='10.21' '11.15' '12.18' '13.14' '14.5' '15.8'
|
|
7
7
|
|
|
8
8
|
MOCHA=./node_modules/.bin/mocha
|
|
9
9
|
_MOCHA=./node_modules/.bin/_mocha
|
|
@@ -29,7 +29,8 @@ test: lib/defs.js
|
|
|
29
29
|
|
|
30
30
|
test-all-nodejs: lib/defs.js
|
|
31
31
|
for v in $(NODEJS_VERSIONS); \
|
|
32
|
-
do
|
|
32
|
+
do echo "-- Node version $$v --"; \
|
|
33
|
+
nave use $$v $(MOCHA) -u tdd -R progress test; \
|
|
33
34
|
done
|
|
34
35
|
|
|
35
36
|
coverage: $(ISTANBUL) lib/defs.js
|
package/README.md
CHANGED
|
@@ -9,9 +9,7 @@
|
|
|
9
9
|
* [API reference][gh-pages-apiref]
|
|
10
10
|
* [Examples from RabbitMQ tutorials][tutes]
|
|
11
11
|
|
|
12
|
-
A library for making AMQP 0-9-1 clients for Node.JS, and an AMQP 0-9-1
|
|
13
|
-
client for Node.JS v0.8-0.12, v4-v9, and the intervening io.js
|
|
14
|
-
releases.
|
|
12
|
+
A library for making AMQP 0-9-1 clients for Node.JS, and an AMQP 0-9-1 client for Node.JS v10+.
|
|
15
13
|
|
|
16
14
|
This library does not implement [AMQP
|
|
17
15
|
1.0](https://github.com/squaremo/amqp.node/issues/63) or [AMQP
|
|
@@ -148,10 +146,10 @@ really only useful for checking the kind and formatting of the errors.
|
|
|
148
146
|
make coverage
|
|
149
147
|
open file://`pwd`/coverage/lcov-report/index.html
|
|
150
148
|
|
|
151
|
-
[gh-pages]: http://
|
|
152
|
-
[gh-pages-apiref]: http://
|
|
149
|
+
[gh-pages]: http://www.squaremobius.net/amqp.node/
|
|
150
|
+
[gh-pages-apiref]: http://www.squaremobius.net/amqp.node/channel_api.html
|
|
153
151
|
[nave]: https://github.com/isaacs/nave
|
|
154
|
-
[tutes]: https://github.com/squaremo/amqp.node/tree/
|
|
152
|
+
[tutes]: https://github.com/squaremo/amqp.node/tree/main/examples/tutorials
|
|
155
153
|
[rabbitmq-tutes]: http://www.rabbitmq.com/getstarted.html
|
|
156
|
-
[changelog]: https://github.com/squaremo/amqp.node/blob/
|
|
154
|
+
[changelog]: https://github.com/squaremo/amqp.node/blob/main/CHANGELOG.md
|
|
157
155
|
[docker]: https://www.docker.com/
|
package/lib/connect.js
CHANGED
|
@@ -106,6 +106,7 @@ function connect(url, socketOptions, openCallback) {
|
|
|
106
106
|
if (typeof url === 'object') {
|
|
107
107
|
protocol = (url.protocol || 'amqp') + ':';
|
|
108
108
|
sockopts.host = url.hostname;
|
|
109
|
+
sockopts.servername = url.hostname;
|
|
109
110
|
sockopts.port = url.port || ((protocol === 'amqp:') ? 5672 : 5671);
|
|
110
111
|
|
|
111
112
|
var user, pass;
|
|
@@ -130,6 +131,7 @@ function connect(url, socketOptions, openCallback) {
|
|
|
130
131
|
var parts = URL(url, true); // yes, parse the query string
|
|
131
132
|
protocol = parts.protocol;
|
|
132
133
|
sockopts.host = parts.hostname;
|
|
134
|
+
sockopts.servername = parts.hostname;
|
|
133
135
|
sockopts.port = parseInt(parts.port) || ((protocol === 'amqp:') ? 5672 : 5671);
|
|
134
136
|
var vhost = parts.pathname ? parts.pathname.substr(1) : null;
|
|
135
137
|
fields = openFrames(vhost, parts.query, sockopts.credentials || credentialsFromUrl(parts), extraClientProperties);
|