@rivetkit/supabase 2.3.24 → 2.3.26

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.
Files changed (3) hide show
  1. package/dist/mod.js +50 -50
  2. package/dist/mod.mjs +50 -50
  3. package/package.json +3 -3
package/dist/mod.js CHANGED
@@ -538,7 +538,7 @@ function unsupportedFeature(feature) {
538
538
  );
539
539
  }
540
540
 
541
- // ../rivetkit/dist/tsup/chunk-YH2CAWLD.js
541
+ // ../rivetkit/dist/tsup/chunk-3CZAZIO5.js
542
542
  var import_pino = require("pino");
543
543
 
544
544
  // ../../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/classic/external.js
@@ -13211,7 +13211,7 @@ var classic_default = external_exports;
13211
13211
  // ../../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/index.js
13212
13212
  var v4_default = classic_default;
13213
13213
 
13214
- // ../rivetkit/dist/tsup/chunk-YH2CAWLD.js
13214
+ // ../rivetkit/dist/tsup/chunk-3CZAZIO5.js
13215
13215
  var cbor = __toESM(require("cbor-x"), 1);
13216
13216
  var import_invariant = __toESM(require_invariant(), 1);
13217
13217
  var getRivetEngine = () => getEnvUniversal("RIVET_ENGINE");
@@ -13382,7 +13382,7 @@ function noopNext() {
13382
13382
  }
13383
13383
  var package_default = {
13384
13384
  name: "rivetkit",
13385
- version: "2.3.24",
13385
+ version: "2.3.26",
13386
13386
  description: "Lightweight libraries for building stateful actors on edge platforms",
13387
13387
  license: "Apache-2.0",
13388
13388
  keywords: [
@@ -14689,7 +14689,7 @@ function Config({ initialBufferLength = 1024, maxBufferLength = 1024 * 1024 * 32
14689
14689
  };
14690
14690
  }
14691
14691
 
14692
- // ../rivetkit/dist/tsup/chunk-QMR2J7PT.js
14692
+ // ../rivetkit/dist/tsup/chunk-7HU3OZCW.js
14693
14693
  var config2 = /* @__PURE__ */ Config({});
14694
14694
  function readWorkflowCbor(bc) {
14695
14695
  return readData(bc);
@@ -14987,7 +14987,7 @@ function decodeWorkflowHistoryTransport(data) {
14987
14987
  return decodeWorkflowHistory(toUint8Array(data));
14988
14988
  }
14989
14989
 
14990
- // ../rivetkit/dist/tsup/chunk-CSOHAAZK.js
14990
+ // ../rivetkit/dist/tsup/chunk-6FEYCVZC.js
14991
14991
  function flattenActionHandlers(actions) {
14992
14992
  const flattened = /* @__PURE__ */ Object.create(null);
14993
14993
  for (const { name, handler } of collectActionEntries(actions)) {
@@ -15258,9 +15258,9 @@ var GlobalActorOptionsBaseSchema = external_exports.object({
15258
15258
  /** Enables the experimental Actor Runtime Socket for this actor. */
15259
15259
  enableActorRuntimeSocket: external_exports.boolean().default(false),
15260
15260
  /**
15261
- * Can hibernate WebSockets for onWebSocket.
15262
- *
15263
- * WebSockets using actions/events are hibernatable by default.
15261
+ * Can hibernate WebSockets, both client connections for actions and
15262
+ * events and WebSockets for onWebSocket. A WebSocket that does not
15263
+ * hibernate closes when the actor sleeps, and the client reconnects.
15264
15264
  *
15265
15265
  * @experimental
15266
15266
  **/
@@ -15407,7 +15407,7 @@ var DocActorOptionsSchema = external_exports.object({
15407
15407
  "Maximum size of each queue message in bytes. Default: 65536"
15408
15408
  ),
15409
15409
  canHibernateWebSocket: external_exports.boolean().optional().describe(
15410
- "Whether WebSockets using onWebSocket can be hibernated. WebSockets using actions/events are hibernatable by default. Default: false"
15410
+ "Whether WebSockets can be hibernated, both client connections for actions and events and WebSockets using onWebSocket. A WebSocket that does not hibernate closes when the actor sleeps. Default: false"
15411
15411
  )
15412
15412
  }).describe("Actor options for timeouts and behavior configuration.");
15413
15413
  var DocActorConfigSchema = external_exports.object({
@@ -15599,44 +15599,6 @@ function removePrefixFromKey(prefixedKey) {
15599
15599
  return prefixedKey.slice(KEYS.KV.length);
15600
15600
  }
15601
15601
 
15602
- // ../rivetkit/dist/tsup/chunk-NSNBWLCG.js
15603
- function logger() {
15604
- return getLogger("actor-client");
15605
- }
15606
- var webSocketPromise = null;
15607
- async function importWebSocket() {
15608
- if (webSocketPromise !== null) {
15609
- return webSocketPromise;
15610
- }
15611
- webSocketPromise = (async () => {
15612
- let _WebSocket;
15613
- if (typeof WebSocket !== "undefined") {
15614
- _WebSocket = WebSocket;
15615
- } else {
15616
- try {
15617
- const moduleName = "ws";
15618
- const ws = await import(
15619
- /* webpackIgnore: true */
15620
- moduleName
15621
- );
15622
- _WebSocket = ws.default;
15623
- logger().debug("using websocket from npm");
15624
- } catch {
15625
- _WebSocket = class MockWebSocket {
15626
- constructor() {
15627
- throw new Error(
15628
- 'WebSocket support requires installing the "ws" peer dependency.'
15629
- );
15630
- }
15631
- };
15632
- logger().debug("using mock websocket");
15633
- }
15634
- }
15635
- return _WebSocket;
15636
- })();
15637
- return webSocketPromise;
15638
- }
15639
-
15640
15602
  // ../rivetkit/dist/tsup/chunk-JTHHCZCZ.js
15641
15603
  var MIGRATION_TRANSACTION_TIMEOUT_MS = 5 * 6e4;
15642
15604
  function isManualTransactionControl(query) {
@@ -15720,7 +15682,45 @@ var AsyncMutex = class {
15720
15682
  }
15721
15683
  };
15722
15684
 
15723
- // ../rivetkit/dist/tsup/chunk-SW22GCYF.js
15685
+ // ../rivetkit/dist/tsup/chunk-BKUZYZRZ.js
15686
+ function logger() {
15687
+ return getLogger("actor-client");
15688
+ }
15689
+ var webSocketPromise = null;
15690
+ async function importWebSocket() {
15691
+ if (webSocketPromise !== null) {
15692
+ return webSocketPromise;
15693
+ }
15694
+ webSocketPromise = (async () => {
15695
+ let _WebSocket;
15696
+ if (typeof WebSocket !== "undefined") {
15697
+ _WebSocket = WebSocket;
15698
+ } else {
15699
+ try {
15700
+ const moduleName = "ws";
15701
+ const ws = await import(
15702
+ /* webpackIgnore: true */
15703
+ moduleName
15704
+ );
15705
+ _WebSocket = ws.default;
15706
+ logger().debug("using websocket from npm");
15707
+ } catch {
15708
+ _WebSocket = class MockWebSocket {
15709
+ constructor() {
15710
+ throw new Error(
15711
+ 'WebSocket support requires installing the "ws" peer dependency.'
15712
+ );
15713
+ }
15714
+ };
15715
+ logger().debug("using mock websocket");
15716
+ }
15717
+ }
15718
+ return _WebSocket;
15719
+ })();
15720
+ return webSocketPromise;
15721
+ }
15722
+
15723
+ // ../rivetkit/dist/tsup/chunk-LEXBAJ2Q.js
15724
15724
  var import_invariant2 = __toESM(require_invariant(), 1);
15725
15725
 
15726
15726
  // ../../../node_modules/.pnpm/p-retry@6.2.1/node_modules/p-retry/index.js
@@ -16935,7 +16935,7 @@ var TraceAPI = (
16935
16935
  // ../../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/trace-api.js
16936
16936
  var trace = TraceAPI.getInstance();
16937
16937
 
16938
- // ../rivetkit/dist/tsup/chunk-SW22GCYF.js
16938
+ // ../rivetkit/dist/tsup/chunk-LEXBAJ2Q.js
16939
16939
  var import_invariant3 = __toESM(require_invariant(), 1);
16940
16940
  var import_invariant4 = __toESM(require_invariant(), 1);
16941
16941
  var PATH_CONNECT = "/connect";
@@ -23131,7 +23131,7 @@ function apiActorToOutput(actor2) {
23131
23131
  };
23132
23132
  }
23133
23133
 
23134
- // ../rivetkit/dist/tsup/chunk-QZQE75U2.js
23134
+ // ../rivetkit/dist/tsup/chunk-YQ7QHMPY.js
23135
23135
  var nativeStateTransactionOpeners = /* @__PURE__ */ new WeakMap();
23136
23136
  var nativeStateTransactionClientBinders = /* @__PURE__ */ new WeakMap();
23137
23137
  function registerNativeStateTransactionOpener(provider, opener) {
package/dist/mod.mjs CHANGED
@@ -500,7 +500,7 @@ function unsupportedFeature(feature) {
500
500
  );
501
501
  }
502
502
 
503
- // ../rivetkit/dist/tsup/chunk-YH2CAWLD.js
503
+ // ../rivetkit/dist/tsup/chunk-3CZAZIO5.js
504
504
  import {
505
505
  pino,
506
506
  stdTimeFunctions
@@ -13176,7 +13176,7 @@ var classic_default = external_exports;
13176
13176
  // ../../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/index.js
13177
13177
  var v4_default = classic_default;
13178
13178
 
13179
- // ../rivetkit/dist/tsup/chunk-YH2CAWLD.js
13179
+ // ../rivetkit/dist/tsup/chunk-3CZAZIO5.js
13180
13180
  var import_invariant = __toESM(require_invariant(), 1);
13181
13181
  import * as cbor from "cbor-x";
13182
13182
  var getRivetEngine = () => getEnvUniversal("RIVET_ENGINE");
@@ -13347,7 +13347,7 @@ function noopNext() {
13347
13347
  }
13348
13348
  var package_default = {
13349
13349
  name: "rivetkit",
13350
- version: "2.3.24",
13350
+ version: "2.3.26",
13351
13351
  description: "Lightweight libraries for building stateful actors on edge platforms",
13352
13352
  license: "Apache-2.0",
13353
13353
  keywords: [
@@ -14654,7 +14654,7 @@ function Config({ initialBufferLength = 1024, maxBufferLength = 1024 * 1024 * 32
14654
14654
  };
14655
14655
  }
14656
14656
 
14657
- // ../rivetkit/dist/tsup/chunk-QMR2J7PT.js
14657
+ // ../rivetkit/dist/tsup/chunk-7HU3OZCW.js
14658
14658
  var config2 = /* @__PURE__ */ Config({});
14659
14659
  function readWorkflowCbor(bc) {
14660
14660
  return readData(bc);
@@ -14952,7 +14952,7 @@ function decodeWorkflowHistoryTransport(data) {
14952
14952
  return decodeWorkflowHistory(toUint8Array(data));
14953
14953
  }
14954
14954
 
14955
- // ../rivetkit/dist/tsup/chunk-CSOHAAZK.js
14955
+ // ../rivetkit/dist/tsup/chunk-6FEYCVZC.js
14956
14956
  function flattenActionHandlers(actions) {
14957
14957
  const flattened = /* @__PURE__ */ Object.create(null);
14958
14958
  for (const { name, handler } of collectActionEntries(actions)) {
@@ -15223,9 +15223,9 @@ var GlobalActorOptionsBaseSchema = external_exports.object({
15223
15223
  /** Enables the experimental Actor Runtime Socket for this actor. */
15224
15224
  enableActorRuntimeSocket: external_exports.boolean().default(false),
15225
15225
  /**
15226
- * Can hibernate WebSockets for onWebSocket.
15227
- *
15228
- * WebSockets using actions/events are hibernatable by default.
15226
+ * Can hibernate WebSockets, both client connections for actions and
15227
+ * events and WebSockets for onWebSocket. A WebSocket that does not
15228
+ * hibernate closes when the actor sleeps, and the client reconnects.
15229
15229
  *
15230
15230
  * @experimental
15231
15231
  **/
@@ -15372,7 +15372,7 @@ var DocActorOptionsSchema = external_exports.object({
15372
15372
  "Maximum size of each queue message in bytes. Default: 65536"
15373
15373
  ),
15374
15374
  canHibernateWebSocket: external_exports.boolean().optional().describe(
15375
- "Whether WebSockets using onWebSocket can be hibernated. WebSockets using actions/events are hibernatable by default. Default: false"
15375
+ "Whether WebSockets can be hibernated, both client connections for actions and events and WebSockets using onWebSocket. A WebSocket that does not hibernate closes when the actor sleeps. Default: false"
15376
15376
  )
15377
15377
  }).describe("Actor options for timeouts and behavior configuration.");
15378
15378
  var DocActorConfigSchema = external_exports.object({
@@ -15564,44 +15564,6 @@ function removePrefixFromKey(prefixedKey) {
15564
15564
  return prefixedKey.slice(KEYS.KV.length);
15565
15565
  }
15566
15566
 
15567
- // ../rivetkit/dist/tsup/chunk-NSNBWLCG.js
15568
- function logger() {
15569
- return getLogger("actor-client");
15570
- }
15571
- var webSocketPromise = null;
15572
- async function importWebSocket() {
15573
- if (webSocketPromise !== null) {
15574
- return webSocketPromise;
15575
- }
15576
- webSocketPromise = (async () => {
15577
- let _WebSocket;
15578
- if (typeof WebSocket !== "undefined") {
15579
- _WebSocket = WebSocket;
15580
- } else {
15581
- try {
15582
- const moduleName = "ws";
15583
- const ws = await import(
15584
- /* webpackIgnore: true */
15585
- moduleName
15586
- );
15587
- _WebSocket = ws.default;
15588
- logger().debug("using websocket from npm");
15589
- } catch {
15590
- _WebSocket = class MockWebSocket {
15591
- constructor() {
15592
- throw new Error(
15593
- 'WebSocket support requires installing the "ws" peer dependency.'
15594
- );
15595
- }
15596
- };
15597
- logger().debug("using mock websocket");
15598
- }
15599
- }
15600
- return _WebSocket;
15601
- })();
15602
- return webSocketPromise;
15603
- }
15604
-
15605
15567
  // ../rivetkit/dist/tsup/chunk-JTHHCZCZ.js
15606
15568
  var MIGRATION_TRANSACTION_TIMEOUT_MS = 5 * 6e4;
15607
15569
  function isManualTransactionControl(query) {
@@ -15685,7 +15647,45 @@ var AsyncMutex = class {
15685
15647
  }
15686
15648
  };
15687
15649
 
15688
- // ../rivetkit/dist/tsup/chunk-SW22GCYF.js
15650
+ // ../rivetkit/dist/tsup/chunk-BKUZYZRZ.js
15651
+ function logger() {
15652
+ return getLogger("actor-client");
15653
+ }
15654
+ var webSocketPromise = null;
15655
+ async function importWebSocket() {
15656
+ if (webSocketPromise !== null) {
15657
+ return webSocketPromise;
15658
+ }
15659
+ webSocketPromise = (async () => {
15660
+ let _WebSocket;
15661
+ if (typeof WebSocket !== "undefined") {
15662
+ _WebSocket = WebSocket;
15663
+ } else {
15664
+ try {
15665
+ const moduleName = "ws";
15666
+ const ws = await import(
15667
+ /* webpackIgnore: true */
15668
+ moduleName
15669
+ );
15670
+ _WebSocket = ws.default;
15671
+ logger().debug("using websocket from npm");
15672
+ } catch {
15673
+ _WebSocket = class MockWebSocket {
15674
+ constructor() {
15675
+ throw new Error(
15676
+ 'WebSocket support requires installing the "ws" peer dependency.'
15677
+ );
15678
+ }
15679
+ };
15680
+ logger().debug("using mock websocket");
15681
+ }
15682
+ }
15683
+ return _WebSocket;
15684
+ })();
15685
+ return webSocketPromise;
15686
+ }
15687
+
15688
+ // ../rivetkit/dist/tsup/chunk-LEXBAJ2Q.js
15689
15689
  var import_invariant2 = __toESM(require_invariant(), 1);
15690
15690
 
15691
15691
  // ../../../node_modules/.pnpm/p-retry@6.2.1/node_modules/p-retry/index.js
@@ -16900,7 +16900,7 @@ var TraceAPI = (
16900
16900
  // ../../../node_modules/.pnpm/@opentelemetry+api@1.9.0/node_modules/@opentelemetry/api/build/esm/trace-api.js
16901
16901
  var trace = TraceAPI.getInstance();
16902
16902
 
16903
- // ../rivetkit/dist/tsup/chunk-SW22GCYF.js
16903
+ // ../rivetkit/dist/tsup/chunk-LEXBAJ2Q.js
16904
16904
  var import_invariant3 = __toESM(require_invariant(), 1);
16905
16905
  var import_invariant4 = __toESM(require_invariant(), 1);
16906
16906
  var PATH_CONNECT = "/connect";
@@ -23096,7 +23096,7 @@ function apiActorToOutput(actor2) {
23096
23096
  };
23097
23097
  }
23098
23098
 
23099
- // ../rivetkit/dist/tsup/chunk-QZQE75U2.js
23099
+ // ../rivetkit/dist/tsup/chunk-YQ7QHMPY.js
23100
23100
  var nativeStateTransactionOpeners = /* @__PURE__ */ new WeakMap();
23101
23101
  var nativeStateTransactionClientBinders = /* @__PURE__ */ new WeakMap();
23102
23102
  function registerNativeStateTransactionOpener(provider, opener) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rivetkit/supabase",
3
- "version": "2.3.24",
3
+ "version": "2.3.26",
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.24",
42
+ "@rivetkit/rivetkit-wasm": "2.3.26",
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.24",
49
+ "rivetkit": "2.3.26",
50
50
  "size-limit": "^11.1.6",
51
51
  "tsup": "^8.4.0",
52
52
  "typescript": "^5.5.2"