@camstack/addon-mqtt-broker 1.2.154 → 1.2.155

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,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [1.2.155] - 2026-11-06
11
+
12
+ ### Changed
13
+
14
+ - Rebuilt against updated dependencies.
15
+
10
16
  ## [1.2.154] - 2026-11-06
11
17
 
12
18
  ### Changed
@@ -6028,7 +6028,7 @@ var ZodIssueCode = {
6028
6028
  var ZodFirstPartyTypeKind;
6029
6029
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
6030
6030
  //#endregion
6031
- //#region ../types/dist/sleep-CdKka2ri.mjs
6031
+ //#region ../types/dist/sleep-D7ZKm4nb.mjs
6032
6032
  /**
6033
6033
  * The audio chunk plane's byte format, and the ONE expansion from a coded
6034
6034
  * window to float samples (D455).
@@ -6737,10 +6737,33 @@ function integrationRowsApiOver(api) {
6737
6737
  };
6738
6738
  }
6739
6739
  var PREFIX = "records/";
6740
+ /**
6741
+ * Cross-realm brand. An addon bundles its own copy of this module (D15) while
6742
+ * `ctx.records` is the HOST's door, so an error thrown by the host is an
6743
+ * instance of the host's classes, not of the addon's. The brand plus the code
6744
+ * make `instanceof` answer by identity of the failure, not of the copy.
6745
+ */
6746
+ var RECORDS_ERROR_BRAND = Symbol.for("camstack.records-error");
6747
+ function carriesBrand(value) {
6748
+ return typeof value === "object" && value !== null && Reflect.get(value, RECORDS_ERROR_BRAND) === true;
6749
+ }
6740
6750
  /** The base of every records failure. `detail` is the human part of the message. */
6741
6751
  var RecordsError = class extends Error {
6752
+ /** The code a subclass stands for; the base stands for every code. */
6753
+ static code = void 0;
6754
+ /**
6755
+ * `instanceof` across copies of this module: any branded error is a
6756
+ * `RecordsError`, and is an instance of a subclass only when its code is the
6757
+ * subclass's code. Same-copy answers are unchanged.
6758
+ */
6759
+ static [Symbol.hasInstance](value) {
6760
+ if (Function.prototype[Symbol.hasInstance].call(this, value)) return true;
6761
+ if (!carriesBrand(value)) return false;
6762
+ return this.code === void 0 || value.code === this.code;
6763
+ }
6742
6764
  code;
6743
6765
  detail;
6766
+ [RECORDS_ERROR_BRAND] = true;
6744
6767
  constructor(code, detail) {
6745
6768
  super(`${PREFIX}${code}: ${detail}`);
6746
6769
  this.name = "RecordsError";
@@ -6749,22 +6772,25 @@ var RecordsError = class extends Error {
6749
6772
  }
6750
6773
  };
6751
6774
  /** The keychain could not store or serve a value: explicit, never an empty string. */
6752
- var RecordSecretUnavailableError = class extends RecordsError {
6775
+ var RecordSecretUnavailableError = class RecordSecretUnavailableError extends RecordsError {
6776
+ static code = "secret-unavailable";
6753
6777
  constructor(detail) {
6754
- super("secret-unavailable", detail);
6778
+ super(RecordSecretUnavailableError.code, detail);
6755
6779
  this.name = "RecordSecretUnavailableError";
6756
6780
  }
6757
6781
  };
6758
- var InvalidRecordError = class extends RecordsError {
6782
+ var InvalidRecordError = class InvalidRecordError extends RecordsError {
6783
+ static code = "invalid-record";
6759
6784
  constructor(detail) {
6760
- super("invalid-record", detail);
6785
+ super(InvalidRecordError.code, detail);
6761
6786
  this.name = "InvalidRecordError";
6762
6787
  }
6763
6788
  };
6764
6789
  /** A kind declaration the engine refuses (non-additive change, bad shape, wrong file). */
6765
- var DeclarationRefusedError = class extends RecordsError {
6790
+ var DeclarationRefusedError = class DeclarationRefusedError extends RecordsError {
6791
+ static code = "declaration-refused";
6766
6792
  constructor(detail) {
6767
- super("declaration-refused", detail);
6793
+ super(DeclarationRefusedError.code, detail);
6768
6794
  this.name = "DeclarationRefusedError";
6769
6795
  }
6770
6796
  };
@@ -6021,7 +6021,7 @@ var ZodIssueCode = {
6021
6021
  var ZodFirstPartyTypeKind;
6022
6022
  ZodFirstPartyTypeKind || (ZodFirstPartyTypeKind = {});
6023
6023
  //#endregion
6024
- //#region ../types/dist/sleep-CdKka2ri.mjs
6024
+ //#region ../types/dist/sleep-D7ZKm4nb.mjs
6025
6025
  /**
6026
6026
  * The audio chunk plane's byte format, and the ONE expansion from a coded
6027
6027
  * window to float samples (D455).
@@ -6730,10 +6730,33 @@ function integrationRowsApiOver(api) {
6730
6730
  };
6731
6731
  }
6732
6732
  var PREFIX = "records/";
6733
+ /**
6734
+ * Cross-realm brand. An addon bundles its own copy of this module (D15) while
6735
+ * `ctx.records` is the HOST's door, so an error thrown by the host is an
6736
+ * instance of the host's classes, not of the addon's. The brand plus the code
6737
+ * make `instanceof` answer by identity of the failure, not of the copy.
6738
+ */
6739
+ var RECORDS_ERROR_BRAND = Symbol.for("camstack.records-error");
6740
+ function carriesBrand(value) {
6741
+ return typeof value === "object" && value !== null && Reflect.get(value, RECORDS_ERROR_BRAND) === true;
6742
+ }
6733
6743
  /** The base of every records failure. `detail` is the human part of the message. */
6734
6744
  var RecordsError = class extends Error {
6745
+ /** The code a subclass stands for; the base stands for every code. */
6746
+ static code = void 0;
6747
+ /**
6748
+ * `instanceof` across copies of this module: any branded error is a
6749
+ * `RecordsError`, and is an instance of a subclass only when its code is the
6750
+ * subclass's code. Same-copy answers are unchanged.
6751
+ */
6752
+ static [Symbol.hasInstance](value) {
6753
+ if (Function.prototype[Symbol.hasInstance].call(this, value)) return true;
6754
+ if (!carriesBrand(value)) return false;
6755
+ return this.code === void 0 || value.code === this.code;
6756
+ }
6735
6757
  code;
6736
6758
  detail;
6759
+ [RECORDS_ERROR_BRAND] = true;
6737
6760
  constructor(code, detail) {
6738
6761
  super(`${PREFIX}${code}: ${detail}`);
6739
6762
  this.name = "RecordsError";
@@ -6742,22 +6765,25 @@ var RecordsError = class extends Error {
6742
6765
  }
6743
6766
  };
6744
6767
  /** The keychain could not store or serve a value: explicit, never an empty string. */
6745
- var RecordSecretUnavailableError = class extends RecordsError {
6768
+ var RecordSecretUnavailableError = class RecordSecretUnavailableError extends RecordsError {
6769
+ static code = "secret-unavailable";
6746
6770
  constructor(detail) {
6747
- super("secret-unavailable", detail);
6771
+ super(RecordSecretUnavailableError.code, detail);
6748
6772
  this.name = "RecordSecretUnavailableError";
6749
6773
  }
6750
6774
  };
6751
- var InvalidRecordError = class extends RecordsError {
6775
+ var InvalidRecordError = class InvalidRecordError extends RecordsError {
6776
+ static code = "invalid-record";
6752
6777
  constructor(detail) {
6753
- super("invalid-record", detail);
6778
+ super(InvalidRecordError.code, detail);
6754
6779
  this.name = "InvalidRecordError";
6755
6780
  }
6756
6781
  };
6757
6782
  /** A kind declaration the engine refuses (non-additive change, bad shape, wrong file). */
6758
- var DeclarationRefusedError = class extends RecordsError {
6783
+ var DeclarationRefusedError = class DeclarationRefusedError extends RecordsError {
6784
+ static code = "declaration-refused";
6759
6785
  constructor(detail) {
6760
- super("declaration-refused", detail);
6786
+ super(DeclarationRefusedError.code, detail);
6761
6787
  this.name = "DeclarationRefusedError";
6762
6788
  }
6763
6789
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@camstack/addon-mqtt-broker",
3
- "version": "1.2.154",
3
+ "version": "1.2.155",
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",
@@ -60,7 +60,7 @@
60
60
  "aedes"
61
61
  ],
62
62
  "requires": {
63
- "server": ">=1.2.787"
63
+ "server": ">=1.2.788"
64
64
  }
65
65
  },
66
66
  "files": [