@cloudbitmaps/core 0.17.0 → 0.18.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/README.md CHANGED
@@ -14,7 +14,7 @@ Depend on `@cloudbitmaps/core` directly only to write a flavor or a driver.
14
14
  > **ESM-only, Node ≥ 22.12.** Use `import`; for `require()`, Jest and TypeScript, see
15
15
  > [CommonJS, Jest and TypeScript](https://github.com/cloudbitmaps/cloudbitmaps/blob/main/docs/guide/getting-started.md#commonjs-jest-and-typescript).
16
16
 
17
- > Pre-1.0: the API and the on-disk format can still change. These docs describe `main`, ahead of the npm release.
17
+ > Pre-1.0: the API and the on-disk format can still change. On npm these docs match the version they ship in; on GitHub they describe `main`, and the changelog says what each release changed.
18
18
 
19
19
  ## What it is
20
20
 
@@ -30,6 +30,18 @@ var LeaseExpiredError = class extends CloudRoaringError {
30
30
  };
31
31
  var LeaseLimitError = class extends CloudRoaringError {
32
32
  };
33
+ var StaleOperandError = class extends CloudRoaringError {
34
+ code = "stale-operand";
35
+ /** The operand's name in the call that found it stale. */
36
+ operand;
37
+ /** Why it is stale. */
38
+ reason;
39
+ constructor(message, operand, reason) {
40
+ super(message);
41
+ this.operand = operand;
42
+ this.reason = reason;
43
+ }
44
+ };
33
45
  var UnsupportedError = class extends CloudRoaringError {
34
46
  };
35
47
  var CapabilityError = class extends CloudRoaringError {
@@ -61,6 +73,9 @@ function isTransientError(err) {
61
73
  function isLeaseExpiredError(err) {
62
74
  return isCloudRoaringError(err) && err.name === "LeaseExpiredError";
63
75
  }
76
+ function isStaleOperandError(err) {
77
+ return isCloudRoaringError(err) && err.name === "StaleOperandError";
78
+ }
64
79
  function isLeaseLimitError(err) {
65
80
  return isCloudRoaringError(err) && err.name === "LeaseLimitError";
66
81
  }
@@ -1056,6 +1071,7 @@ export {
1056
1071
  NotFoundError,
1057
1072
  LeaseExpiredError,
1058
1073
  LeaseLimitError,
1074
+ StaleOperandError,
1059
1075
  UnsupportedError,
1060
1076
  CapabilityError,
1061
1077
  BudgetExceededError,
@@ -1065,6 +1081,7 @@ export {
1065
1081
  isWriteConflictError,
1066
1082
  isTransientError,
1067
1083
  isLeaseExpiredError,
1084
+ isStaleOperandError,
1068
1085
  isLeaseLimitError,
1069
1086
  isNotFoundError,
1070
1087
  isIntegrityError,
@@ -1122,4 +1139,4 @@ export {
1122
1139
  namespaceKeyPart,
1123
1140
  namespacePathPart
1124
1141
  };
1125
- //# sourceMappingURL=chunk-CV7GJO3B.js.map
1142
+ //# sourceMappingURL=chunk-K4EXZDMU.js.map