mqtt-plus 1.4.26 → 1.4.28
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/.ase/service.log +3 -0
- package/.ase/service.yaml +1 -1
- package/CHANGELOG.md +11 -0
- package/dst-stage1/mqtt-plus.d.ts +5 -1
- package/dst-stage1/mqtt-plus.js +10 -3
- package/dst-stage2/mqtt-plus.cjs.cjs +18 -13
- package/dst-stage2/mqtt-plus.esm.js +18 -4
- package/dst-stage2/mqtt-plus.umd.js +11 -11
- package/etc/eslint.mts +1 -12
- package/etc/vite.mts +1 -1
- package/package.json +7 -8
- package/src/mqtt-plus.ts +14 -5
- /package/package.d/{@typescript-eslint+typescript-estree+8.66.0.patch → @typescript-eslint+typescript-estree+8.67.0.patch} +0 -0
package/etc/eslint.mts
CHANGED
|
@@ -23,23 +23,12 @@
|
|
|
23
23
|
*/
|
|
24
24
|
|
|
25
25
|
import globals from "globals"
|
|
26
|
-
import path from "node:path"
|
|
27
|
-
import { fileURLToPath } from "node:url"
|
|
28
26
|
import js from "@eslint/js"
|
|
29
|
-
import { FlatCompat } from "@eslint/eslintrc"
|
|
30
27
|
import pluginTS from "typescript-eslint"
|
|
31
28
|
import parserTS from "@typescript-eslint/parser"
|
|
32
29
|
|
|
33
|
-
const __filename = fileURLToPath(import.meta.url)
|
|
34
|
-
const __dirname = path.dirname(__filename)
|
|
35
|
-
const compat = new FlatCompat({
|
|
36
|
-
baseDirectory: __dirname,
|
|
37
|
-
recommendedConfig: js.configs.recommended,
|
|
38
|
-
allConfig: js.configs.all
|
|
39
|
-
})
|
|
40
|
-
|
|
41
30
|
export default [
|
|
42
|
-
|
|
31
|
+
js.configs.recommended,
|
|
43
32
|
...pluginTS.configs.strict,
|
|
44
33
|
...pluginTS.configs.stylistic,
|
|
45
34
|
{
|
package/etc/vite.mts
CHANGED
|
@@ -26,7 +26,7 @@ import * as Vite from "vite"
|
|
|
26
26
|
import { tscPlugin } from "@wroud/vite-plugin-tsc"
|
|
27
27
|
import { nodePolyfills } from "vite-plugin-node-polyfills"
|
|
28
28
|
import replace from "@rollup/plugin-replace"
|
|
29
|
-
import pkg from "../package.json"
|
|
29
|
+
import pkg from "../package.json" with { type: "json" }
|
|
30
30
|
|
|
31
31
|
const formats = process.env.VITE_BUILD_FORMATS ?? "es"
|
|
32
32
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mqtt-plus",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.28",
|
|
4
4
|
"description": "MQTT Communication Patterns",
|
|
5
5
|
"keywords": [ "mqtt",
|
|
6
6
|
"event", "emit",
|
|
@@ -33,10 +33,9 @@
|
|
|
33
33
|
"patch-package": "8.0.1",
|
|
34
34
|
"@rse/stx": "1.1.6",
|
|
35
35
|
"shx": "0.4.0",
|
|
36
|
-
"eslint": "10.
|
|
37
|
-
"globals": "17.
|
|
36
|
+
"eslint": "10.9.0",
|
|
37
|
+
"globals": "17.11.0",
|
|
38
38
|
"@eslint/js": "10.0.1",
|
|
39
|
-
"@eslint/eslintrc": "3.3.6",
|
|
40
39
|
"knip": "6.32.0",
|
|
41
40
|
"jiti": "2.7.0",
|
|
42
41
|
"tsx": "4.23.9",
|
|
@@ -47,8 +46,8 @@
|
|
|
47
46
|
"c8": "12.0.0",
|
|
48
47
|
"source-map-support": "0.5.21",
|
|
49
48
|
"typescript": "6.0.3",
|
|
50
|
-
"typescript-eslint": "8.
|
|
51
|
-
"@typescript-eslint/parser": "8.
|
|
49
|
+
"typescript-eslint": "8.67.0",
|
|
50
|
+
"@typescript-eslint/parser": "8.67.0",
|
|
52
51
|
"mqtt": "5.15.2",
|
|
53
52
|
"aedes": "1.1.1",
|
|
54
53
|
"mosquitto": "1.1.0",
|
|
@@ -63,7 +62,7 @@
|
|
|
63
62
|
"open-cli": "9.0.0",
|
|
64
63
|
"cross-env": "10.1.0",
|
|
65
64
|
|
|
66
|
-
"@types/node": "26.
|
|
65
|
+
"@types/node": "26.2.0",
|
|
67
66
|
"@types/mocha": "10.0.10",
|
|
68
67
|
"@types/chai": "5.2.3",
|
|
69
68
|
"@types/sinon-chai": "4.0.0",
|
|
@@ -89,7 +88,7 @@
|
|
|
89
88
|
"@stablelib/sha256": "2.0.1"
|
|
90
89
|
},
|
|
91
90
|
"engines": {
|
|
92
|
-
"node": ">=
|
|
91
|
+
"node": ">=22.13.0"
|
|
93
92
|
},
|
|
94
93
|
"scripts": {
|
|
95
94
|
"prepare": "npm start patch-apply",
|
package/src/mqtt-plus.ts
CHANGED
|
@@ -25,14 +25,23 @@
|
|
|
25
25
|
/* import necessary types */
|
|
26
26
|
import type { APISchema } from "./mqtt-plus-api"
|
|
27
27
|
import { SinkTrait } from "./mqtt-plus-sink"
|
|
28
|
+
import { VERSION, MIN_VERSION,
|
|
29
|
+
version, minVersion,
|
|
30
|
+
versionToNum } from "./mqtt-plus-version"
|
|
28
31
|
|
|
29
32
|
/* re-export most important types */
|
|
30
33
|
export type * from "./mqtt-plus-api"
|
|
31
34
|
export type * from "./mqtt-plus-info"
|
|
32
35
|
|
|
33
|
-
/*
|
|
34
|
-
export
|
|
35
|
-
|
|
36
|
-
/* export the default API class */
|
|
36
|
+
/* export the default API class (as the sole export of this module, as an
|
|
37
|
+
additional named run-time export would force CJS/UMD consumers into
|
|
38
|
+
the awkward "MQTTp.default" access path) */
|
|
37
39
|
export default class MQTTp<T extends APISchema = APISchema>
|
|
38
|
-
extends SinkTrait<T> {
|
|
40
|
+
extends SinkTrait<T> {
|
|
41
|
+
/* expose the version information */
|
|
42
|
+
static readonly VERSION = VERSION
|
|
43
|
+
static readonly MIN_VERSION = MIN_VERSION
|
|
44
|
+
static readonly version = version
|
|
45
|
+
static readonly minVersion = minVersion
|
|
46
|
+
static readonly versionToNum = versionToNum
|
|
47
|
+
}
|