aedes 0.49.0 → 0.50.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.
@@ -32,8 +32,9 @@ jobs:
32
32
  contents: read
33
33
  strategy:
34
34
  matrix:
35
- node-version: [14, 16, '*']
35
+ node-version: [16, 18, 20]
36
36
  os: [ubuntu-latest, windows-latest, macOS-latest]
37
+ fail-fast: false
37
38
  steps:
38
39
  - uses: actions/checkout@v3
39
40
  with:
package/README.md CHANGED
@@ -281,6 +281,12 @@ Here is a list of some interesting projects that are using Aedes as MQTT Broker.
281
281
  Want to contribute? Check our list of
282
282
  [features/bugs](https://github.com/moscajs/aedes/projects/1)
283
283
 
284
+ ## Security notice
285
+
286
+ Messages sent to the broker are considered _valid_ once they pass the [`authorizePublish`](https://github.com/moscajs/aedes/blob/main/docs/Aedes.md#handler-authorizepublish-client-packet-callback) callback.
287
+ In other terms, if permissions for the given client are revoked after the call completes, the message is still considered valid.
288
+ In case you are sending time-sensitive messages, make sure to use QoS 0 or connect with a clean session.
289
+
284
290
  ## Support
285
291
 
286
292
  If there are bugs/leaks in production scenarios, we encourage people to send Pull Request and/or reach out maintainers for some paid support.
package/aedes.d.ts CHANGED
@@ -6,3 +6,7 @@ export * from './types/instance'
6
6
  export * from './types/packet'
7
7
  export * from './types/client'
8
8
  export default Aedes
9
+
10
+ declare module 'aedes' {
11
+ export = Aedes
12
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aedes",
3
- "version": "0.49.0",
3
+ "version": "0.50.0",
4
4
  "description": "Stream-based MQTT broker",
5
5
  "main": "aedes.js",
6
6
  "types": "aedes.d.ts",
@@ -94,27 +94,27 @@
94
94
  },
95
95
  "homepage": "https://github.com/moscajs/aedes#readme",
96
96
  "engines": {
97
- "node": ">=14"
97
+ "node": ">=16"
98
98
  },
99
99
  "devDependencies": {
100
- "@sinonjs/fake-timers": "^10.0.2",
101
- "@types/node": "^18.14.2",
102
- "@typescript-eslint/eslint-plugin": "^5.54.0",
103
- "@typescript-eslint/parser": "^5.54.0",
100
+ "@sinonjs/fake-timers": "^10.3.0",
101
+ "@types/node": "^20.4.5",
102
+ "@typescript-eslint/eslint-plugin": "^6.2.0",
103
+ "@typescript-eslint/parser": "^6.2.0",
104
104
  "concat-stream": "^2.0.0",
105
105
  "duplexify": "^4.1.2",
106
106
  "license-checker": "^25.0.1",
107
- "markdownlint-cli": "^0.33.0",
108
- "mqtt": "^4.3.7",
107
+ "markdownlint-cli": "^0.35.0",
108
+ "mqtt": "^5.0.0",
109
109
  "mqtt-connection": "^4.1.0",
110
110
  "pre-commit": "^1.2.2",
111
111
  "proxyquire": "^2.1.3",
112
- "release-it": "^15.6.1",
112
+ "release-it": "^16.1.3",
113
113
  "snazzy": "^9.0.0",
114
- "standard": "^17.0.0",
115
- "tap": "^16.3.4",
116
- "tsd": "^0.25.0",
117
- "typescript": "^4.9.5",
114
+ "standard": "^17.1.0",
115
+ "tap": "^16.3.7",
116
+ "tsd": "^0.28.1",
117
+ "typescript": "^5.1.6",
118
118
  "websocket-stream": "^5.5.2"
119
119
  },
120
120
  "dependencies": {
@@ -126,7 +126,7 @@
126
126
  "fastseries": "^2.0.0",
127
127
  "hyperid": "^3.1.1",
128
128
  "mqemitter": "^5.0.0",
129
- "mqtt-packet": "^8.1.2",
129
+ "mqtt-packet": "^8.2.0",
130
130
  "retimer": "^3.0.0",
131
131
  "reusify": "^1.0.4",
132
132
  "uuid": "^9.0.0"
@@ -1,4 +1,3 @@
1
-
2
1
  import { IncomingMessage } from 'node:http'
3
2
  import { Socket } from 'node:net'
4
3
  import type {