mqtt-plus 1.4.19 → 1.4.21

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.
@@ -1,8 +1,8 @@
1
1
  diff --git a/node_modules/vite/dist/node/chunks/node.js b/node_modules/vite/dist/node/chunks/node.js
2
- index 5be94a0..b6f73db 100644
2
+ index b665144..1d363d7 100644
3
3
  --- a/node_modules/vite/dist/node/chunks/node.js
4
4
  +++ b/node_modules/vite/dist/node/chunks/node.js
5
- @@ -34709,7 +34709,6 @@ async function runConfigHook(config, plugins, configEnv) {
5
+ @@ -34830,7 +34830,6 @@ async function runConfigHook(config, plugins, configEnv) {
6
6
  const res = await getHookHandler(hook).call(context, conf, configEnv);
7
7
  if (res && res !== conf) {
8
8
  if (hasBothRollupOptionsAndRolldownOptions(res)) context.warn(`Both \`rollupOptions\` and \`rolldownOptions\` were specified by ${JSON.stringify(p.name)} plugin. \`rollupOptions\` specified by that plugin will be ignored.`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mqtt-plus",
3
- "version": "1.4.19",
3
+ "version": "1.4.21",
4
4
  "description": "MQTT Communication Patterns",
5
5
  "keywords": [ "mqtt",
6
6
  "event", "emit",
@@ -33,27 +33,27 @@
33
33
  "patch-package": "8.0.1",
34
34
  "@rse/stx": "1.1.5",
35
35
  "shx": "0.4.0",
36
- "eslint": "10.2.1",
37
- "globals": "17.5.0",
36
+ "eslint": "10.3.0",
37
+ "globals": "17.6.0",
38
38
  "@eslint/js": "10.0.1",
39
39
  "@eslint/eslintrc": "3.3.5",
40
- "knip": "6.4.1",
41
- "jiti": "2.6.1",
40
+ "knip": "6.13.1",
41
+ "jiti": "2.7.0",
42
42
  "tsx": "4.21.0",
43
43
  "mocha": "11.7.5",
44
44
  "chai": "6.2.2",
45
45
  "sinon-chai": "4.0.1",
46
- "sinon": "21.1.2",
46
+ "sinon": "22.0.0",
47
47
  "c8": "11.0.0",
48
48
  "source-map-support": "0.5.21",
49
49
  "typescript": "6.0.3",
50
- "typescript-eslint": "8.58.2",
51
- "@typescript-eslint/parser": "8.58.2",
50
+ "typescript-eslint": "8.59.3",
51
+ "@typescript-eslint/parser": "8.59.3",
52
52
  "mqtt": "5.15.1",
53
53
  "aedes": "1.0.2",
54
54
  "mosquitto": "1.0.2",
55
55
  "textframe": "1.2.1",
56
- "vite": "8.0.8",
56
+ "vite": "8.0.12",
57
57
  "vite-plugin-node-polyfills": "0.26.0",
58
58
  "@rollup/plugin-replace": "6.0.3",
59
59
  "@wroud/vite-plugin-tsc": "0.12.3",
@@ -63,7 +63,7 @@
63
63
  "open-cli": "9.0.0",
64
64
  "cross-env": "10.1.0",
65
65
 
66
- "@types/node": "25.6.0",
66
+ "@types/node": "25.7.0",
67
67
  "@types/mocha": "10.0.10",
68
68
  "@types/chai": "5.2.3",
69
69
  "@types/sinon-chai": "4.0.0",
@@ -81,11 +81,11 @@
81
81
  "@typescript-eslint/tsconfig-utils": { "typescript": ">=5.9.0" }
82
82
  },
83
83
  "dependencies": {
84
- "nanoid": "5.1.9",
84
+ "nanoid": "5.1.11",
85
85
  "cbor2": "2.3.0",
86
86
  "p-lazy": "5.0.0",
87
- "valibot": "1.3.1",
88
- "jose": "6.2.2",
87
+ "valibot": "1.4.0",
88
+ "jose": "6.2.3",
89
89
  "@stablelib/pbkdf2": "2.0.1",
90
90
  "@stablelib/sha256": "2.0.1"
91
91
  },
@@ -93,7 +93,7 @@
93
93
  "node": ">=20.0.0"
94
94
  },
95
95
  "scripts": {
96
- "postinstall": "npm start patch-apply",
96
+ "prepare": "npm start patch-apply",
97
97
  "prepublishOnly": "npm start build",
98
98
  "start": "stx -v4 -c etc/stx.conf",
99
99
  "test": "npm start test"
@@ -33,8 +33,8 @@ import type { APISchema } from "./mqtt-plus-api"
33
33
  import { MetaTrait } from "./mqtt-plus-meta"
34
34
 
35
35
  /* type of the "auth" options */
36
- export type AuthMode = "require" | "optional"
37
- export type AuthRole = string
36
+ type AuthMode = "require" | "optional"
37
+ type AuthRole = string
38
38
  export type AuthOption = AuthRole | { mode: AuthMode, roles: AuthRole[] }
39
39
  type TokenPayload = { roles: AuthRole[], id?: string, exp?: number }
40
40
 
@@ -29,9 +29,9 @@ import { nanoid } from "nanoid"
29
29
  import type { APISchema } from "./mqtt-plus-api"
30
30
 
31
31
  /* MQTT topic matching */
32
- type TopicMatching = { name: string, operation: string, peerId?: string }
33
- export type TopicMake = (name: string, operation: string, peerId?: string) => string
34
- export type TopicMatch = (topic: string) => TopicMatching | null
32
+ type TopicMatching = { name: string, operation: string, peerId?: string }
33
+ type TopicMake = (name: string, operation: string, peerId?: string) => string
34
+ type TopicMatch = (topic: string) => TopicMatching | null
35
35
 
36
36
  /* API option type */
37
37
  export interface APIOptions {