@rivetkit/supabase 2.3.16 → 2.3.18-rc.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/dist/mod.js +26 -8
- package/dist/mod.mjs +26 -8
- package/package.json +3 -3
package/dist/mod.js
CHANGED
|
@@ -13653,7 +13653,7 @@ function unsupportedFeature(feature) {
|
|
|
13653
13653
|
);
|
|
13654
13654
|
}
|
|
13655
13655
|
|
|
13656
|
-
// ../rivetkit/dist/tsup/chunk-
|
|
13656
|
+
// ../rivetkit/dist/tsup/chunk-O237EWVO.js
|
|
13657
13657
|
var import_pino = require("pino");
|
|
13658
13658
|
var cbor = __toESM(require("cbor-x"), 1);
|
|
13659
13659
|
var import_invariant = __toESM(require_invariant(), 1);
|
|
@@ -13828,7 +13828,7 @@ function noopNext() {
|
|
|
13828
13828
|
}
|
|
13829
13829
|
var package_default = {
|
|
13830
13830
|
name: "rivetkit",
|
|
13831
|
-
version: "2.3.
|
|
13831
|
+
version: "2.3.18-rc.1",
|
|
13832
13832
|
description: "Lightweight libraries for building stateful actors on edge platforms",
|
|
13833
13833
|
license: "Apache-2.0",
|
|
13834
13834
|
keywords: [
|
|
@@ -15132,7 +15132,7 @@ function Config({ initialBufferLength = 1024, maxBufferLength = 1024 * 1024 * 32
|
|
|
15132
15132
|
};
|
|
15133
15133
|
}
|
|
15134
15134
|
|
|
15135
|
-
// ../rivetkit/dist/tsup/chunk-
|
|
15135
|
+
// ../rivetkit/dist/tsup/chunk-OJTREIRK.js
|
|
15136
15136
|
var config2 = /* @__PURE__ */ Config({});
|
|
15137
15137
|
function readWorkflowCbor(bc) {
|
|
15138
15138
|
return readData(bc);
|
|
@@ -15547,7 +15547,7 @@ function removePrefixFromKey(prefixedKey) {
|
|
|
15547
15547
|
return prefixedKey.slice(KEYS.KV.length);
|
|
15548
15548
|
}
|
|
15549
15549
|
|
|
15550
|
-
// ../rivetkit/dist/tsup/chunk-
|
|
15550
|
+
// ../rivetkit/dist/tsup/chunk-RSPJ6UQF.js
|
|
15551
15551
|
function logger() {
|
|
15552
15552
|
return getLogger("actor-client");
|
|
15553
15553
|
}
|
|
@@ -15668,7 +15668,7 @@ var AsyncMutex = class {
|
|
|
15668
15668
|
}
|
|
15669
15669
|
};
|
|
15670
15670
|
|
|
15671
|
-
// ../rivetkit/dist/tsup/chunk-
|
|
15671
|
+
// ../rivetkit/dist/tsup/chunk-PV75SXYN.js
|
|
15672
15672
|
var import_invariant2 = __toESM(require_invariant(), 1);
|
|
15673
15673
|
|
|
15674
15674
|
// ../../../node_modules/.pnpm/p-retry@6.2.1/node_modules/p-retry/index.js
|
|
@@ -15846,7 +15846,7 @@ function createVersionedDataHandler(config3) {
|
|
|
15846
15846
|
return new VersionedDataHandler(config3);
|
|
15847
15847
|
}
|
|
15848
15848
|
|
|
15849
|
-
// ../rivetkit/dist/tsup/chunk-
|
|
15849
|
+
// ../rivetkit/dist/tsup/chunk-PV75SXYN.js
|
|
15850
15850
|
var import_invariant3 = __toESM(require_invariant(), 1);
|
|
15851
15851
|
var import_invariant4 = __toESM(require_invariant(), 1);
|
|
15852
15852
|
var PATH_CONNECT = "/connect";
|
|
@@ -21639,7 +21639,7 @@ function apiActorToOutput(actor2) {
|
|
|
21639
21639
|
};
|
|
21640
21640
|
}
|
|
21641
21641
|
|
|
21642
|
-
// ../rivetkit/dist/tsup/chunk-
|
|
21642
|
+
// ../rivetkit/dist/tsup/chunk-GCAUK5TI.js
|
|
21643
21643
|
var nativeStateTransactionOpeners = /* @__PURE__ */ new WeakMap();
|
|
21644
21644
|
var nativeStateTransactionClientBinders = /* @__PURE__ */ new WeakMap();
|
|
21645
21645
|
function registerNativeStateTransactionOpener(provider, opener) {
|
|
@@ -26304,10 +26304,28 @@ async function loadAutoRuntime(config3, loaders = defaultRuntimeLoaders) {
|
|
|
26304
26304
|
if (loaders.detectHost() === "edge-like") {
|
|
26305
26305
|
return (await loaders.loadWasm(config3.wasm)).runtime;
|
|
26306
26306
|
}
|
|
26307
|
+
let nativeError;
|
|
26307
26308
|
try {
|
|
26308
26309
|
return (await loaders.loadNative()).runtime;
|
|
26309
|
-
} catch {
|
|
26310
|
+
} catch (error46) {
|
|
26311
|
+
nativeError = error46;
|
|
26312
|
+
logger22().warn({
|
|
26313
|
+
msg: "native runtime failed to load; falling back to wasm",
|
|
26314
|
+
error: stringifyError(error46)
|
|
26315
|
+
});
|
|
26316
|
+
}
|
|
26317
|
+
try {
|
|
26310
26318
|
return (await loaders.loadWasm(config3.wasm)).runtime;
|
|
26319
|
+
} catch (wasmError) {
|
|
26320
|
+
throw new RivetError(
|
|
26321
|
+
"config",
|
|
26322
|
+
"runtime_unavailable",
|
|
26323
|
+
`RivetKit could not load a core runtime. Native runtime: ${stringifyError(nativeError)} Wasm runtime: ${stringifyError(wasmError)}`,
|
|
26324
|
+
{
|
|
26325
|
+
public: true,
|
|
26326
|
+
statusCode: 500
|
|
26327
|
+
}
|
|
26328
|
+
);
|
|
26311
26329
|
}
|
|
26312
26330
|
}
|
|
26313
26331
|
async function loadConfiguredRuntime(config3, loaders = defaultRuntimeLoaders) {
|
package/dist/mod.mjs
CHANGED
|
@@ -13615,7 +13615,7 @@ function unsupportedFeature(feature) {
|
|
|
13615
13615
|
);
|
|
13616
13616
|
}
|
|
13617
13617
|
|
|
13618
|
-
// ../rivetkit/dist/tsup/chunk-
|
|
13618
|
+
// ../rivetkit/dist/tsup/chunk-O237EWVO.js
|
|
13619
13619
|
import {
|
|
13620
13620
|
pino,
|
|
13621
13621
|
stdTimeFunctions
|
|
@@ -13793,7 +13793,7 @@ function noopNext() {
|
|
|
13793
13793
|
}
|
|
13794
13794
|
var package_default = {
|
|
13795
13795
|
name: "rivetkit",
|
|
13796
|
-
version: "2.3.
|
|
13796
|
+
version: "2.3.18-rc.1",
|
|
13797
13797
|
description: "Lightweight libraries for building stateful actors on edge platforms",
|
|
13798
13798
|
license: "Apache-2.0",
|
|
13799
13799
|
keywords: [
|
|
@@ -15097,7 +15097,7 @@ function Config({ initialBufferLength = 1024, maxBufferLength = 1024 * 1024 * 32
|
|
|
15097
15097
|
};
|
|
15098
15098
|
}
|
|
15099
15099
|
|
|
15100
|
-
// ../rivetkit/dist/tsup/chunk-
|
|
15100
|
+
// ../rivetkit/dist/tsup/chunk-OJTREIRK.js
|
|
15101
15101
|
var config2 = /* @__PURE__ */ Config({});
|
|
15102
15102
|
function readWorkflowCbor(bc) {
|
|
15103
15103
|
return readData(bc);
|
|
@@ -15512,7 +15512,7 @@ function removePrefixFromKey(prefixedKey) {
|
|
|
15512
15512
|
return prefixedKey.slice(KEYS.KV.length);
|
|
15513
15513
|
}
|
|
15514
15514
|
|
|
15515
|
-
// ../rivetkit/dist/tsup/chunk-
|
|
15515
|
+
// ../rivetkit/dist/tsup/chunk-RSPJ6UQF.js
|
|
15516
15516
|
function logger() {
|
|
15517
15517
|
return getLogger("actor-client");
|
|
15518
15518
|
}
|
|
@@ -15633,7 +15633,7 @@ var AsyncMutex = class {
|
|
|
15633
15633
|
}
|
|
15634
15634
|
};
|
|
15635
15635
|
|
|
15636
|
-
// ../rivetkit/dist/tsup/chunk-
|
|
15636
|
+
// ../rivetkit/dist/tsup/chunk-PV75SXYN.js
|
|
15637
15637
|
var import_invariant2 = __toESM(require_invariant(), 1);
|
|
15638
15638
|
|
|
15639
15639
|
// ../../../node_modules/.pnpm/p-retry@6.2.1/node_modules/p-retry/index.js
|
|
@@ -15811,7 +15811,7 @@ function createVersionedDataHandler(config3) {
|
|
|
15811
15811
|
return new VersionedDataHandler(config3);
|
|
15812
15812
|
}
|
|
15813
15813
|
|
|
15814
|
-
// ../rivetkit/dist/tsup/chunk-
|
|
15814
|
+
// ../rivetkit/dist/tsup/chunk-PV75SXYN.js
|
|
15815
15815
|
var import_invariant3 = __toESM(require_invariant(), 1);
|
|
15816
15816
|
var import_invariant4 = __toESM(require_invariant(), 1);
|
|
15817
15817
|
var PATH_CONNECT = "/connect";
|
|
@@ -21604,7 +21604,7 @@ function apiActorToOutput(actor2) {
|
|
|
21604
21604
|
};
|
|
21605
21605
|
}
|
|
21606
21606
|
|
|
21607
|
-
// ../rivetkit/dist/tsup/chunk-
|
|
21607
|
+
// ../rivetkit/dist/tsup/chunk-GCAUK5TI.js
|
|
21608
21608
|
var nativeStateTransactionOpeners = /* @__PURE__ */ new WeakMap();
|
|
21609
21609
|
var nativeStateTransactionClientBinders = /* @__PURE__ */ new WeakMap();
|
|
21610
21610
|
function registerNativeStateTransactionOpener(provider, opener) {
|
|
@@ -26269,10 +26269,28 @@ async function loadAutoRuntime(config3, loaders = defaultRuntimeLoaders) {
|
|
|
26269
26269
|
if (loaders.detectHost() === "edge-like") {
|
|
26270
26270
|
return (await loaders.loadWasm(config3.wasm)).runtime;
|
|
26271
26271
|
}
|
|
26272
|
+
let nativeError;
|
|
26272
26273
|
try {
|
|
26273
26274
|
return (await loaders.loadNative()).runtime;
|
|
26274
|
-
} catch {
|
|
26275
|
+
} catch (error46) {
|
|
26276
|
+
nativeError = error46;
|
|
26277
|
+
logger22().warn({
|
|
26278
|
+
msg: "native runtime failed to load; falling back to wasm",
|
|
26279
|
+
error: stringifyError(error46)
|
|
26280
|
+
});
|
|
26281
|
+
}
|
|
26282
|
+
try {
|
|
26275
26283
|
return (await loaders.loadWasm(config3.wasm)).runtime;
|
|
26284
|
+
} catch (wasmError) {
|
|
26285
|
+
throw new RivetError(
|
|
26286
|
+
"config",
|
|
26287
|
+
"runtime_unavailable",
|
|
26288
|
+
`RivetKit could not load a core runtime. Native runtime: ${stringifyError(nativeError)} Wasm runtime: ${stringifyError(wasmError)}`,
|
|
26289
|
+
{
|
|
26290
|
+
public: true,
|
|
26291
|
+
statusCode: 500
|
|
26292
|
+
}
|
|
26293
|
+
);
|
|
26276
26294
|
}
|
|
26277
26295
|
}
|
|
26278
26296
|
async function loadConfiguredRuntime(config3, loaders = defaultRuntimeLoaders) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rivetkit/supabase",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.18-rc.1",
|
|
4
4
|
"description": "Supabase Edge Functions integration for RivetKit actors",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"keywords": [
|
|
@@ -39,14 +39,14 @@
|
|
|
39
39
|
"check-edge-closure": "node ../../../scripts/ci/check-edge-native-closure.mjs"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@rivetkit/rivetkit-wasm": "2.3.
|
|
42
|
+
"@rivetkit/rivetkit-wasm": "2.3.18-rc.1",
|
|
43
43
|
"cbor-x": "^1.6.0",
|
|
44
44
|
"pino": "^9.5.0"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@size-limit/file": "^11.1.6",
|
|
48
48
|
"@types/node": "^22.0.0",
|
|
49
|
-
"rivetkit": "2.3.
|
|
49
|
+
"rivetkit": "2.3.18-rc.1",
|
|
50
50
|
"size-limit": "^11.1.6",
|
|
51
51
|
"tsup": "^8.4.0",
|
|
52
52
|
"typescript": "^5.5.2"
|