@ferricstore/ferricstore 0.11.10 → 0.11.11
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 +17 -3
- package/dist/index.cjs +13 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +13 -2
- package/dist/index.js.map +1 -1
- package/docs/api/functions/httpCommandDisposition.html +1 -1
- package/docs/api/index.html +13 -3
- package/docs/api/types/HTTPCommandDisposition.html +1 -1
- package/docs/api/variables/FERRICSTORE_SDK_VERSION.html +1 -1
- package/package.json +2 -1
package/dist/index.d.cts
CHANGED
|
@@ -2756,7 +2756,7 @@ declare class WorkflowWorker {
|
|
|
2756
2756
|
}
|
|
2757
2757
|
|
|
2758
2758
|
/** TypeScript SDK package version. */
|
|
2759
|
-
declare const FERRICSTORE_SDK_VERSION = "0.11.
|
|
2759
|
+
declare const FERRICSTORE_SDK_VERSION = "0.11.11";
|
|
2760
2760
|
/** Oldest FerricStore server supported by this breaking beta contract. */
|
|
2761
2761
|
declare const FERRICSTORE_MINIMUM_SERVER_VERSION = "0.11.4";
|
|
2762
2762
|
/** Native framing and opcode ABI version; unchanged by FerricStore 0.11. */
|
package/dist/index.d.ts
CHANGED
|
@@ -2756,7 +2756,7 @@ declare class WorkflowWorker {
|
|
|
2756
2756
|
}
|
|
2757
2757
|
|
|
2758
2758
|
/** TypeScript SDK package version. */
|
|
2759
|
-
declare const FERRICSTORE_SDK_VERSION = "0.11.
|
|
2759
|
+
declare const FERRICSTORE_SDK_VERSION = "0.11.11";
|
|
2760
2760
|
/** Oldest FerricStore server supported by this breaking beta contract. */
|
|
2761
2761
|
declare const FERRICSTORE_MINIMUM_SERVER_VERSION = "0.11.4";
|
|
2762
2762
|
/** Native framing and opcode ABI version; unchanged by FerricStore 0.11. */
|
package/dist/index.js
CHANGED
|
@@ -8604,6 +8604,9 @@ var sessionOnlyCommands = /* @__PURE__ */ new Set([
|
|
|
8604
8604
|
"CLIENT",
|
|
8605
8605
|
"DISCARD",
|
|
8606
8606
|
"EXEC",
|
|
8607
|
+
"FETCH_OR_COMPUTE",
|
|
8608
|
+
"FETCH_OR_COMPUTE_ERROR",
|
|
8609
|
+
"FETCH_OR_COMPUTE_RESULT",
|
|
8607
8610
|
"HELLO",
|
|
8608
8611
|
"MONITOR",
|
|
8609
8612
|
"MULTI",
|
|
@@ -8653,6 +8656,7 @@ var encoding = "ferricstore-json-v1";
|
|
|
8653
8656
|
var bytesMarker = "$ferricstore_bytes";
|
|
8654
8657
|
var mapMarker = "$ferricstore_map";
|
|
8655
8658
|
var maxDepth = 64;
|
|
8659
|
+
var integerJSON = /^-?(?:0|[1-9][0-9]*)$/u;
|
|
8656
8660
|
var bytesMarkerBaseBytes = Buffer34.byteLength(bytesMarker) + 7;
|
|
8657
8661
|
var mapMarkerBaseBytes = Buffer34.byteLength(mapMarker) + 7;
|
|
8658
8662
|
function encodeHTTPCommands(commands, maxBytes = Number.MAX_SAFE_INTEGER) {
|
|
@@ -8665,13 +8669,20 @@ function encodeHTTPCommands(commands, maxBytes = Number.MAX_SAFE_INTEGER) {
|
|
|
8665
8669
|
function decodeHTTPEnvelope(source) {
|
|
8666
8670
|
let parsed;
|
|
8667
8671
|
try {
|
|
8668
|
-
parsed = JSON.parse(source.toString("utf8"));
|
|
8672
|
+
parsed = JSON.parse(source.toString("utf8"), preserveIntegerPrecision);
|
|
8669
8673
|
} catch (error) {
|
|
8670
8674
|
throw new TypeError("invalid HTTP command response JSON", { cause: error });
|
|
8671
8675
|
}
|
|
8672
8676
|
if (!isRecord(parsed)) throw new TypeError("HTTP command response must be an object");
|
|
8673
8677
|
return decodePlainRecord(parsed, 0);
|
|
8674
8678
|
}
|
|
8679
|
+
function preserveIntegerPrecision(_key, value, context) {
|
|
8680
|
+
if (typeof value !== "number" || Number.isSafeInteger(value) || !Number.isInteger(value)) {
|
|
8681
|
+
return value;
|
|
8682
|
+
}
|
|
8683
|
+
const literal = context?.source;
|
|
8684
|
+
return literal != null && integerJSON.test(literal) ? BigInt(literal) : value;
|
|
8685
|
+
}
|
|
8675
8686
|
function encodeValue(value, depth, budget) {
|
|
8676
8687
|
if (depth > maxDepth) throw new TypeError("HTTP command value exceeds maximum depth");
|
|
8677
8688
|
if (value == null) {
|
|
@@ -21267,7 +21278,7 @@ var WorkflowWorker = class {
|
|
|
21267
21278
|
};
|
|
21268
21279
|
|
|
21269
21280
|
// src/version.ts
|
|
21270
|
-
var FERRICSTORE_SDK_VERSION = "0.11.
|
|
21281
|
+
var FERRICSTORE_SDK_VERSION = "0.11.11";
|
|
21271
21282
|
var FERRICSTORE_MINIMUM_SERVER_VERSION = "0.11.4";
|
|
21272
21283
|
var FERRICSTORE_NATIVE_PROTOCOL_VERSION = 1;
|
|
21273
21284
|
export {
|