mqtt-plus 1.4.26 → 1.4.27

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,11 @@
2
2
  ChangeLog
3
3
  =========
4
4
 
5
+ 1.4.27 (2026-08-05)
6
+ -------------------
7
+
8
+ - BUGFIX [code]: expose the version information as static members of the MQTTp class instead of re-exporting the "mqtt-plus-version" module
9
+
5
10
  1.4.26 (2026-08-06)
6
11
  -------------------
7
12
 
@@ -2,6 +2,10 @@ import type { APISchema } from "./mqtt-plus-api";
2
2
  import { SinkTrait } from "./mqtt-plus-sink";
3
3
  export type * from "./mqtt-plus-api";
4
4
  export type * from "./mqtt-plus-info";
5
- export * from "./mqtt-plus-version";
6
5
  export default class MQTTp<T extends APISchema = APISchema> extends SinkTrait<T> {
6
+ static readonly VERSION = "0.0";
7
+ static readonly MIN_VERSION = "0.0";
8
+ static readonly version: number;
9
+ static readonly minVersion: number;
10
+ static readonly versionToNum: (str: string) => number;
7
11
  }
@@ -22,8 +22,15 @@
22
22
  ** SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23
23
  */
24
24
  import { SinkTrait } from "./mqtt-plus-sink";
25
- /* re-export version information */
26
- export * from "./mqtt-plus-version";
27
- /* export the default API class */
25
+ import { VERSION, MIN_VERSION, version, minVersion, versionToNum } from "./mqtt-plus-version";
26
+ /* export the default API class (as the sole export of this module, as an
27
+ additional named run-time export would force CJS/UMD consumers into
28
+ the awkward "MQTTp.default" access path) */
28
29
  export default class MQTTp extends SinkTrait {
30
+ /* expose the version information */
31
+ static { this.VERSION = VERSION; }
32
+ static { this.MIN_VERSION = MIN_VERSION; }
33
+ static { this.version = version; }
34
+ static { this.minVersion = minVersion; }
35
+ static { this.versionToNum = versionToNum; }
29
36
  }
@@ -1,7 +1,3 @@
1
- Object.defineProperties(exports, {
2
- __esModule: { value: true },
3
- [Symbol.toStringTag]: { value: "Module" }
4
- });
5
1
  //#region \0rolldown/runtime.js
6
2
  var __create = Object.create;
7
3
  var __defProp = Object.defineProperty;
@@ -607,8 +603,6 @@ var versionToNum = (str) => {
607
603
  if (minor > 99) throw new Error("invalid version string: minor version exceeds 99");
608
604
  return parseInt(m[1], 10) * 100 + minor;
609
605
  };
610
- var VERSION = "1.4";
611
- var MIN_VERSION = "1.4";
612
606
  var version = versionToNum("1.4");
613
607
  var minVersion = versionToNum("1.4");
614
608
  //#endregion
@@ -2782,11 +2776,22 @@ var SinkTrait = class extends SourceTrait {
2782
2776
  };
2783
2777
  //#endregion
2784
2778
  //#region dst-stage1/mqtt-plus.js
2785
- var MQTTp = class extends SinkTrait {};
2779
+ var MQTTp = class extends SinkTrait {
2780
+ static {
2781
+ this.VERSION = "1.4";
2782
+ }
2783
+ static {
2784
+ this.MIN_VERSION = "1.4";
2785
+ }
2786
+ static {
2787
+ this.version = version;
2788
+ }
2789
+ static {
2790
+ this.minVersion = minVersion;
2791
+ }
2792
+ static {
2793
+ this.versionToNum = versionToNum;
2794
+ }
2795
+ };
2786
2796
  //#endregion
2787
- exports.MIN_VERSION = MIN_VERSION;
2788
- exports.VERSION = VERSION;
2789
- exports.default = MQTTp;
2790
- exports.minVersion = minVersion;
2791
- exports.version = version;
2792
- exports.versionToNum = versionToNum;
2797
+ module.exports = MQTTp;
@@ -576,8 +576,6 @@ var versionToNum = (str) => {
576
576
  if (minor > 99) throw new Error("invalid version string: minor version exceeds 99");
577
577
  return parseInt(m[1], 10) * 100 + minor;
578
578
  };
579
- var VERSION = "1.4";
580
- var MIN_VERSION = "1.4";
581
579
  var version = versionToNum("1.4");
582
580
  var minVersion = versionToNum("1.4");
583
581
  //#endregion
@@ -2751,6 +2749,22 @@ var SinkTrait = class extends SourceTrait {
2751
2749
  };
2752
2750
  //#endregion
2753
2751
  //#region dst-stage1/mqtt-plus.js
2754
- var MQTTp = class extends SinkTrait {};
2752
+ var MQTTp = class extends SinkTrait {
2753
+ static {
2754
+ this.VERSION = "1.4";
2755
+ }
2756
+ static {
2757
+ this.MIN_VERSION = "1.4";
2758
+ }
2759
+ static {
2760
+ this.version = version;
2761
+ }
2762
+ static {
2763
+ this.minVersion = minVersion;
2764
+ }
2765
+ static {
2766
+ this.versionToNum = versionToNum;
2767
+ }
2768
+ };
2755
2769
  //#endregion
2756
- export { MIN_VERSION, VERSION, MQTTp as default, minVersion, version, versionToNum };
2770
+ export { MQTTp as default };