@camstack/addon-mqtt-broker 1.0.6 → 1.1.0

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.
@@ -4673,7 +4673,7 @@ function _instanceof(cls, params = {}) {
4673
4673
  return inst;
4674
4674
  }
4675
4675
  //#endregion
4676
- //#region ../types/dist/sleep-D7JeS58T.mjs
4676
+ //#region ../types/dist/sleep-B1dKJAMJ.mjs
4677
4677
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
4678
4678
  EventCategory["SystemBoot"] = "system.boot";
4679
4679
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -5647,7 +5647,7 @@ var BaseAddon = class {
5647
5647
  deviceSettingsSchema() {
5648
5648
  return null;
5649
5649
  }
5650
- async getGlobalSettings(overlay, cap) {
5650
+ async getGlobalSettings(overlay, cap, _nodeId) {
5651
5651
  const schema = this.globalSettingsSchema(cap);
5652
5652
  if (!schema) return { sections: [] };
5653
5653
  const raw = await this._ctx?.settings?.readAddonStore() ?? {};
@@ -5656,7 +5656,7 @@ var BaseAddon = class {
5656
5656
  ...overlay
5657
5657
  } : raw);
5658
5658
  }
5659
- async updateGlobalSettings(patch) {
5659
+ async updateGlobalSettings(patch, _nodeId) {
5660
5660
  await this._ctx?.settings?.writeAddonStore(patch);
5661
5661
  await this.resolveConfig();
5662
5662
  await this.onConfigChanged();
@@ -52806,7 +52806,7 @@ var BrokerProbeCache = class {
52806
52806
  try {
52807
52807
  const brokers = this.getBrokers();
52808
52808
  const liveIds = new Set(brokers.map((b) => b.id));
52809
- for (const cachedId of [...this.cache.keys()]) if (!liveIds.has(cachedId)) this.cache.delete(cachedId);
52809
+ for (const cachedId of Array.from(this.cache.keys())) if (!liveIds.has(cachedId)) this.cache.delete(cachedId);
52810
52810
  await Promise.all(brokers.map(async (broker) => {
52811
52811
  if (this.stopped) return;
52812
52812
  try {
@@ -4668,7 +4668,7 @@ function _instanceof(cls, params = {}) {
4668
4668
  return inst;
4669
4669
  }
4670
4670
  //#endregion
4671
- //#region ../types/dist/sleep-D7JeS58T.mjs
4671
+ //#region ../types/dist/sleep-B1dKJAMJ.mjs
4672
4672
  var EventCategory = /* @__PURE__ */ function(EventCategory) {
4673
4673
  EventCategory["SystemBoot"] = "system.boot";
4674
4674
  EventCategory["SystemAddonsReady"] = "system.addons-ready";
@@ -5642,7 +5642,7 @@ var BaseAddon = class {
5642
5642
  deviceSettingsSchema() {
5643
5643
  return null;
5644
5644
  }
5645
- async getGlobalSettings(overlay, cap) {
5645
+ async getGlobalSettings(overlay, cap, _nodeId) {
5646
5646
  const schema = this.globalSettingsSchema(cap);
5647
5647
  if (!schema) return { sections: [] };
5648
5648
  const raw = await this._ctx?.settings?.readAddonStore() ?? {};
@@ -5651,7 +5651,7 @@ var BaseAddon = class {
5651
5651
  ...overlay
5652
5652
  } : raw);
5653
5653
  }
5654
- async updateGlobalSettings(patch) {
5654
+ async updateGlobalSettings(patch, _nodeId) {
5655
5655
  await this._ctx?.settings?.writeAddonStore(patch);
5656
5656
  await this.resolveConfig();
5657
5657
  await this.onConfigChanged();
@@ -52801,7 +52801,7 @@ var BrokerProbeCache = class {
52801
52801
  try {
52802
52802
  const brokers = this.getBrokers();
52803
52803
  const liveIds = new Set(brokers.map((b) => b.id));
52804
- for (const cachedId of [...this.cache.keys()]) if (!liveIds.has(cachedId)) this.cache.delete(cachedId);
52804
+ for (const cachedId of Array.from(this.cache.keys())) if (!liveIds.has(cachedId)) this.cache.delete(cachedId);
52805
52805
  await Promise.all(brokers.map(async (broker) => {
52806
52806
  if (this.stopped) return;
52807
52807
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-mqtt-broker",
3
- "version": "1.0.6",
3
+ "version": "1.1.0",
4
4
  "description": "MQTT broker registry addon for CamStack — manages external broker entries + an optional embedded aedes broker. Consumers spin up their own `mqtt.js` clients via the `mqtt-broker` cap.",
5
5
  "keywords": [
6
6
  "camstack",