meross-iot 0.2.0 → 0.2.1

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
@@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.2.1] - 2026-01-14
11
+
12
+ ### Fixed
13
+ - Fixed syntax error in `example/device-control.js` - missing closing brace for `deviceInitialized` event handler
14
+
10
15
  ## [0.2.0] - 2026-01-14
11
16
 
12
17
  ### Changed
package/README.md CHANGED
@@ -26,7 +26,7 @@ The library can control devices locally via HTTP or via cloud MQTT server.
26
26
  npm install meross-iot@alpha
27
27
 
28
28
  # Or install specific version
29
- npm install meross-iot@0.1.0
29
+ npm install meross-iot@0.2.0
30
30
  ```
31
31
 
32
32
  ## Usage & Documentation
@@ -120,6 +120,27 @@ Please create an issue on GitHub and include:
120
120
 
121
121
  ## Changelog
122
122
 
123
+ ### [0.2.1] - 2026-01-14
124
+
125
+ #### Fixed
126
+ - Fixed syntax error in `device-control.js` example - missing closing brace for `deviceInitialized` event handler
127
+
128
+ ### [0.2.0] - 2026-01-14
129
+
130
+ #### Changed
131
+ - **BREAKING**: `SubscriptionManager` now uses EventEmitter pattern instead of callbacks
132
+ - `subscribe(device, config, onUpdate)` → `subscribe(device, config)` (no callback, no return value)
133
+ - `unsubscribe(deviceUuid, subscriptionId)` → `unsubscribe(deviceUuid)` (no subscription ID needed)
134
+ - `subscribeToDeviceList(onUpdate)` → `subscribeToDeviceList()` (no callback, no return value)
135
+ - `unsubscribeFromDeviceList(subscriptionId)` → `unsubscribeFromDeviceList()` (no subscription ID needed)
136
+ - Listen for updates using: `on('deviceUpdate:${deviceUuid}', handler)` and `on('deviceListUpdate', handler)`
137
+ - Use standard EventEmitter methods: `on()`, `once()`, `off()`, `removeAllListeners()`
138
+ - Configuration is now per-device subscription (merged aggressively) rather than per-listener
139
+
140
+ #### Added
141
+ - `subscription-manager.js` example demonstrating EventEmitter-based SubscriptionManager usage
142
+ - Enhanced documentation for SubscriptionManager with JSDoc comments explaining implementation rationale
143
+
123
144
  ### [0.1.0] - 2026-01-10
124
145
 
125
146
  #### Added
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "meross-iot",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "Control Meross cloud devices using nodejs",
5
5
  "author": "Abe Haverkamp",
6
6
  "contributors": [