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 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
- export type AuthMode = "require" | "optional";
4
- export type AuthRole = string;
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
- export type TopicMake = (name: string, operation: string, peerId?: string) => string;
8
- export type TopicMatch = (topic: string) => TopicMatching | null;
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";