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.
- package/CHANGELOG.md +10 -0
- package/dst-stage1/mqtt-plus-auth.d.ts +2 -2
- package/dst-stage1/mqtt-plus-options.d.ts +2 -2
- package/dst-stage2/mqtt-plus.umd.js +11 -11
- package/package.d/{vite+8.0.8.patch → vite+8.0.12.patch} +2 -2
- package/package.json +14 -14
- package/src/mqtt-plus-auth.ts +2 -2
- package/src/mqtt-plus-options.ts +3 -3
- /package/package.d/{@typescript-eslint+typescript-estree+8.58.2.patch → @typescript-eslint+typescript-estree+8.59.3.patch} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,16 @@
|
|
|
2
2
|
ChangeLog
|
|
3
3
|
=========
|
|
4
4
|
|
|
5
|
+
1.4.21 (2026-05-13)
|
|
6
|
+
-------------------
|
|
7
|
+
|
|
8
|
+
- BUGFIX: use "prepare" instead of "postinstall" for patch-package
|
|
9
|
+
|
|
10
|
+
1.4.20 (2026-05-13)
|
|
11
|
+
-------------------
|
|
12
|
+
|
|
13
|
+
- UPDATE: upgrade NPM dependencies
|
|
14
|
+
|
|
5
15
|
1.4.19 (2026-04-18)
|
|
6
16
|
-------------------
|
|
7
17
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { APISchema } from "./mqtt-plus-api";
|
|
2
2
|
import { MetaTrait } from "./mqtt-plus-meta";
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
type AuthMode = "require" | "optional";
|
|
4
|
+
type AuthRole = string;
|
|
5
5
|
export type AuthOption = AuthRole | {
|
|
6
6
|
mode: AuthMode;
|
|
7
7
|
roles: AuthRole[];
|
|
@@ -4,8 +4,8 @@ type TopicMatching = {
|
|
|
4
4
|
operation: string;
|
|
5
5
|
peerId?: string;
|
|
6
6
|
};
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
type TopicMake = (name: string, operation: string, peerId?: string) => string;
|
|
8
|
+
type TopicMatch = (topic: string) => TopicMatching | null;
|
|
9
9
|
export interface APIOptions {
|
|
10
10
|
id: string;
|
|
11
11
|
codec: "cbor" | "json";
|