amqplib 0.7.1 → 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 CHANGED
@@ -1,5 +1,17 @@
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
+
3
15
  ## Changes in v0.7.1
4
16
 
5
17
  git log v0.7.0..v0.7.1
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='0.8' '0.9' '0.10' '0.11' '0.12' '1.8.4' '2.5' '3.3' '4.9' '5.12' '6.17' '8.17' '9.11' '10.21' '11.15' '12.18' '13.14' '14.5' '15.8'
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
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-v15, 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://squaremo.github.com/amqp.node/
152
- [gh-pages-apiref]: http://squaremo.github.com/amqp.node/channel_api.html
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/master/examples/tutorials
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/master/CHANGELOG.md
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);
package/package-lock.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "amqplib",
3
- "version": "0.7.1",
3
+ "version": "0.8.0",
4
4
  "lockfileVersion": 2,
5
5
  "requires": true,
6
6
  "packages": {
package/package.json CHANGED
@@ -1,15 +1,16 @@
1
+
1
2
  {
2
3
  "name": "amqplib",
3
4
  "homepage": "http://squaremo.github.io/amqp.node/",
4
5
  "main": "./channel_api.js",
5
- "version": "0.7.1",
6
+ "version": "0.8.0",
6
7
  "description": "An AMQP 0-9-1 (e.g., RabbitMQ) library and client.",
7
8
  "repository": {
8
9
  "type": "git",
9
10
  "url": "https://github.com/squaremo/amqp.node.git"
10
11
  },
11
12
  "engines": {
12
- "node": ">=0.8 <=15"
13
+ "node": ">=10"
13
14
  },
14
15
  "dependencies": {
15
16
  "bitsyntax": "~0.1.0",