@rivetkit/supabase 2.3.15 → 2.3.16-rc.2

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 +26 -17
  2. package/dist/mod.mjs +26 -17
  3. package/package.json +3 -3
package/dist/mod.js CHANGED
@@ -519,7 +519,7 @@ function unsupportedFeature(feature) {
519
519
  );
520
520
  }
521
521
 
522
- // ../rivetkit/dist/tsup/chunk-7WWPQPSK.js
522
+ // ../rivetkit/dist/tsup/chunk-FQB3VZME.js
523
523
  var import_pino = require("pino");
524
524
 
525
525
  // ../../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/classic/external.js
@@ -13192,7 +13192,7 @@ var classic_default = external_exports;
13192
13192
  // ../../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/index.js
13193
13193
  var v4_default = classic_default;
13194
13194
 
13195
- // ../rivetkit/dist/tsup/chunk-7WWPQPSK.js
13195
+ // ../rivetkit/dist/tsup/chunk-FQB3VZME.js
13196
13196
  var cbor = __toESM(require("cbor-x"), 1);
13197
13197
  var import_invariant = __toESM(require_invariant(), 1);
13198
13198
  var getRivetEngine = () => getEnvUniversal("RIVET_ENGINE");
@@ -13366,7 +13366,7 @@ function noopNext() {
13366
13366
  }
13367
13367
  var package_default = {
13368
13368
  name: "rivetkit",
13369
- version: "2.3.15",
13369
+ version: "2.3.16-rc.2",
13370
13370
  description: "Lightweight libraries for building stateful actors on edge platforms",
13371
13371
  license: "Apache-2.0",
13372
13372
  keywords: [
@@ -14670,7 +14670,7 @@ function Config({ initialBufferLength = 1024, maxBufferLength = 1024 * 1024 * 32
14670
14670
  };
14671
14671
  }
14672
14672
 
14673
- // ../rivetkit/dist/tsup/chunk-X2AXJFLI.js
14673
+ // ../rivetkit/dist/tsup/chunk-6DHBQN3Z.js
14674
14674
  var config2 = /* @__PURE__ */ Config({});
14675
14675
  function readWorkflowCbor(bc) {
14676
14676
  return readData(bc);
@@ -15549,7 +15549,7 @@ function removePrefixFromKey(prefixedKey) {
15549
15549
  return prefixedKey.slice(KEYS.KV.length);
15550
15550
  }
15551
15551
 
15552
- // ../rivetkit/dist/tsup/chunk-UIREWKKH.js
15552
+ // ../rivetkit/dist/tsup/chunk-R5B24VJR.js
15553
15553
  function logger() {
15554
15554
  return getLogger("actor-client");
15555
15555
  }
@@ -15670,7 +15670,7 @@ var AsyncMutex = class {
15670
15670
  }
15671
15671
  };
15672
15672
 
15673
- // ../rivetkit/dist/tsup/chunk-2TWGN5HF.js
15673
+ // ../rivetkit/dist/tsup/chunk-AWOZJ6OH.js
15674
15674
  var import_invariant2 = __toESM(require_invariant(), 1);
15675
15675
 
15676
15676
  // ../../../node_modules/.pnpm/p-retry@6.2.1/node_modules/p-retry/index.js
@@ -15848,7 +15848,7 @@ function createVersionedDataHandler(config3) {
15848
15848
  return new VersionedDataHandler(config3);
15849
15849
  }
15850
15850
 
15851
- // ../rivetkit/dist/tsup/chunk-2TWGN5HF.js
15851
+ // ../rivetkit/dist/tsup/chunk-AWOZJ6OH.js
15852
15852
  var import_invariant3 = __toESM(require_invariant(), 1);
15853
15853
  var import_invariant4 = __toESM(require_invariant(), 1);
15854
15854
  var PATH_CONNECT = "/connect";
@@ -18514,6 +18514,7 @@ var ActorHandleRaw = class {
18514
18514
  #gatewayOptions;
18515
18515
  #params;
18516
18516
  #getParams;
18517
+ #signal;
18517
18518
  #resolvedActorId;
18518
18519
  #resolvingActorId;
18519
18520
  #queueSendMutex = new AsyncMutex();
@@ -18524,7 +18525,7 @@ var ActorHandleRaw = class {
18524
18525
  *
18525
18526
  * @protected
18526
18527
  */
18527
- constructor(client, driver, params, getParams, encoding, actorResolutionState, gatewayOptions = {}) {
18528
+ constructor(client, driver, params, getParams, encoding, actorResolutionState, gatewayOptions = {}, signal) {
18528
18529
  this.#client = client;
18529
18530
  this.#driver = driver;
18530
18531
  this.#encoding = encoding;
@@ -18532,6 +18533,7 @@ var ActorHandleRaw = class {
18532
18533
  this.#gatewayOptions = gatewayOptions;
18533
18534
  this.#params = params;
18534
18535
  this.#getParams = getParams;
18536
+ this.#signal = signal;
18535
18537
  }
18536
18538
  async #resolveConnectionParams() {
18537
18539
  if (this.#getParams) {
@@ -18640,11 +18642,13 @@ var ActorHandleRaw = class {
18640
18642
  `Invalid action call: expected an options object { name, args }, got ${typeof opts}. Use handle.actionName(...args) for the shorthand API.`
18641
18643
  );
18642
18644
  }
18643
- const run = async () => await this.#sendActionNow(opts);
18645
+ const signal = opts.signal ?? this.#signal;
18646
+ const optsWithSignal = { ...opts, signal };
18647
+ const run = async () => await this.#sendActionNow(optsWithSignal);
18644
18648
  if (opts.name === "destroy") {
18645
18649
  return await run();
18646
18650
  }
18647
- return await retryOnLifecycleBoundary(run, { signal: opts.signal });
18651
+ return await retryOnLifecycleBoundary(run, { signal });
18648
18652
  }
18649
18653
  async #sendActionNow(opts) {
18650
18654
  const maxAttempts = this.#getDynamicQueryMaxAttempts();
@@ -19175,7 +19179,8 @@ var ClientRaw = class {
19175
19179
  const handle = this.#createHandle(
19176
19180
  opts == null ? void 0 : opts.params,
19177
19181
  opts == null ? void 0 : opts.getParams,
19178
- actorQuery
19182
+ actorQuery,
19183
+ opts == null ? void 0 : opts.signal
19179
19184
  );
19180
19185
  return createActorProxy(handle);
19181
19186
  }
@@ -19205,7 +19210,8 @@ var ClientRaw = class {
19205
19210
  const handle = this.#createHandle(
19206
19211
  opts == null ? void 0 : opts.params,
19207
19212
  opts == null ? void 0 : opts.getParams,
19208
- actorQuery
19213
+ actorQuery,
19214
+ opts == null ? void 0 : opts.signal
19209
19215
  );
19210
19216
  return createActorProxy(handle);
19211
19217
  }
@@ -19239,7 +19245,8 @@ var ClientRaw = class {
19239
19245
  const handle = this.#createHandle(
19240
19246
  opts == null ? void 0 : opts.params,
19241
19247
  opts == null ? void 0 : opts.getParams,
19242
- actorQuery
19248
+ actorQuery,
19249
+ opts == null ? void 0 : opts.signal
19243
19250
  );
19244
19251
  return createActorProxy(handle);
19245
19252
  }
@@ -19286,12 +19293,13 @@ var ClientRaw = class {
19286
19293
  const handle = this.#createHandle(
19287
19294
  opts == null ? void 0 : opts.params,
19288
19295
  opts == null ? void 0 : opts.getParams,
19289
- getForIdQuery
19296
+ getForIdQuery,
19297
+ opts == null ? void 0 : opts.signal
19290
19298
  );
19291
19299
  const proxy = createActorProxy(handle);
19292
19300
  return proxy;
19293
19301
  }
19294
- #createHandle(params, getParams, actorQuery) {
19302
+ #createHandle(params, getParams, actorQuery, signal) {
19295
19303
  return new ActorHandleRaw(
19296
19304
  this,
19297
19305
  this.#driver,
@@ -19299,7 +19307,8 @@ var ClientRaw = class {
19299
19307
  getParams,
19300
19308
  this.#encodingKind,
19301
19309
  actorQuery,
19302
- this.#gatewayOptions
19310
+ this.#gatewayOptions,
19311
+ signal
19303
19312
  );
19304
19313
  }
19305
19314
  [CREATE_ACTOR_CONN_PROXY](conn) {
@@ -21632,7 +21641,7 @@ function apiActorToOutput(actor2) {
21632
21641
  };
21633
21642
  }
21634
21643
 
21635
- // ../rivetkit/dist/tsup/chunk-TRBPWMS6.js
21644
+ // ../rivetkit/dist/tsup/chunk-ZLKP4PJ7.js
21636
21645
  var nativeStateTransactionOpeners = /* @__PURE__ */ new WeakMap();
21637
21646
  var nativeStateTransactionClientBinders = /* @__PURE__ */ new WeakMap();
21638
21647
  function registerNativeStateTransactionOpener(provider, opener) {
package/dist/mod.mjs CHANGED
@@ -481,7 +481,7 @@ function unsupportedFeature(feature) {
481
481
  );
482
482
  }
483
483
 
484
- // ../rivetkit/dist/tsup/chunk-7WWPQPSK.js
484
+ // ../rivetkit/dist/tsup/chunk-FQB3VZME.js
485
485
  import {
486
486
  pino,
487
487
  stdTimeFunctions
@@ -13157,7 +13157,7 @@ var classic_default = external_exports;
13157
13157
  // ../../../node_modules/.pnpm/zod@4.1.13/node_modules/zod/v4/index.js
13158
13158
  var v4_default = classic_default;
13159
13159
 
13160
- // ../rivetkit/dist/tsup/chunk-7WWPQPSK.js
13160
+ // ../rivetkit/dist/tsup/chunk-FQB3VZME.js
13161
13161
  var import_invariant = __toESM(require_invariant(), 1);
13162
13162
  import * as cbor from "cbor-x";
13163
13163
  var getRivetEngine = () => getEnvUniversal("RIVET_ENGINE");
@@ -13331,7 +13331,7 @@ function noopNext() {
13331
13331
  }
13332
13332
  var package_default = {
13333
13333
  name: "rivetkit",
13334
- version: "2.3.15",
13334
+ version: "2.3.16-rc.2",
13335
13335
  description: "Lightweight libraries for building stateful actors on edge platforms",
13336
13336
  license: "Apache-2.0",
13337
13337
  keywords: [
@@ -14635,7 +14635,7 @@ function Config({ initialBufferLength = 1024, maxBufferLength = 1024 * 1024 * 32
14635
14635
  };
14636
14636
  }
14637
14637
 
14638
- // ../rivetkit/dist/tsup/chunk-X2AXJFLI.js
14638
+ // ../rivetkit/dist/tsup/chunk-6DHBQN3Z.js
14639
14639
  var config2 = /* @__PURE__ */ Config({});
14640
14640
  function readWorkflowCbor(bc) {
14641
14641
  return readData(bc);
@@ -15514,7 +15514,7 @@ function removePrefixFromKey(prefixedKey) {
15514
15514
  return prefixedKey.slice(KEYS.KV.length);
15515
15515
  }
15516
15516
 
15517
- // ../rivetkit/dist/tsup/chunk-UIREWKKH.js
15517
+ // ../rivetkit/dist/tsup/chunk-R5B24VJR.js
15518
15518
  function logger() {
15519
15519
  return getLogger("actor-client");
15520
15520
  }
@@ -15635,7 +15635,7 @@ var AsyncMutex = class {
15635
15635
  }
15636
15636
  };
15637
15637
 
15638
- // ../rivetkit/dist/tsup/chunk-2TWGN5HF.js
15638
+ // ../rivetkit/dist/tsup/chunk-AWOZJ6OH.js
15639
15639
  var import_invariant2 = __toESM(require_invariant(), 1);
15640
15640
 
15641
15641
  // ../../../node_modules/.pnpm/p-retry@6.2.1/node_modules/p-retry/index.js
@@ -15813,7 +15813,7 @@ function createVersionedDataHandler(config3) {
15813
15813
  return new VersionedDataHandler(config3);
15814
15814
  }
15815
15815
 
15816
- // ../rivetkit/dist/tsup/chunk-2TWGN5HF.js
15816
+ // ../rivetkit/dist/tsup/chunk-AWOZJ6OH.js
15817
15817
  var import_invariant3 = __toESM(require_invariant(), 1);
15818
15818
  var import_invariant4 = __toESM(require_invariant(), 1);
15819
15819
  var PATH_CONNECT = "/connect";
@@ -18479,6 +18479,7 @@ var ActorHandleRaw = class {
18479
18479
  #gatewayOptions;
18480
18480
  #params;
18481
18481
  #getParams;
18482
+ #signal;
18482
18483
  #resolvedActorId;
18483
18484
  #resolvingActorId;
18484
18485
  #queueSendMutex = new AsyncMutex();
@@ -18489,7 +18490,7 @@ var ActorHandleRaw = class {
18489
18490
  *
18490
18491
  * @protected
18491
18492
  */
18492
- constructor(client, driver, params, getParams, encoding, actorResolutionState, gatewayOptions = {}) {
18493
+ constructor(client, driver, params, getParams, encoding, actorResolutionState, gatewayOptions = {}, signal) {
18493
18494
  this.#client = client;
18494
18495
  this.#driver = driver;
18495
18496
  this.#encoding = encoding;
@@ -18497,6 +18498,7 @@ var ActorHandleRaw = class {
18497
18498
  this.#gatewayOptions = gatewayOptions;
18498
18499
  this.#params = params;
18499
18500
  this.#getParams = getParams;
18501
+ this.#signal = signal;
18500
18502
  }
18501
18503
  async #resolveConnectionParams() {
18502
18504
  if (this.#getParams) {
@@ -18605,11 +18607,13 @@ var ActorHandleRaw = class {
18605
18607
  `Invalid action call: expected an options object { name, args }, got ${typeof opts}. Use handle.actionName(...args) for the shorthand API.`
18606
18608
  );
18607
18609
  }
18608
- const run = async () => await this.#sendActionNow(opts);
18610
+ const signal = opts.signal ?? this.#signal;
18611
+ const optsWithSignal = { ...opts, signal };
18612
+ const run = async () => await this.#sendActionNow(optsWithSignal);
18609
18613
  if (opts.name === "destroy") {
18610
18614
  return await run();
18611
18615
  }
18612
- return await retryOnLifecycleBoundary(run, { signal: opts.signal });
18616
+ return await retryOnLifecycleBoundary(run, { signal });
18613
18617
  }
18614
18618
  async #sendActionNow(opts) {
18615
18619
  const maxAttempts = this.#getDynamicQueryMaxAttempts();
@@ -19140,7 +19144,8 @@ var ClientRaw = class {
19140
19144
  const handle = this.#createHandle(
19141
19145
  opts == null ? void 0 : opts.params,
19142
19146
  opts == null ? void 0 : opts.getParams,
19143
- actorQuery
19147
+ actorQuery,
19148
+ opts == null ? void 0 : opts.signal
19144
19149
  );
19145
19150
  return createActorProxy(handle);
19146
19151
  }
@@ -19170,7 +19175,8 @@ var ClientRaw = class {
19170
19175
  const handle = this.#createHandle(
19171
19176
  opts == null ? void 0 : opts.params,
19172
19177
  opts == null ? void 0 : opts.getParams,
19173
- actorQuery
19178
+ actorQuery,
19179
+ opts == null ? void 0 : opts.signal
19174
19180
  );
19175
19181
  return createActorProxy(handle);
19176
19182
  }
@@ -19204,7 +19210,8 @@ var ClientRaw = class {
19204
19210
  const handle = this.#createHandle(
19205
19211
  opts == null ? void 0 : opts.params,
19206
19212
  opts == null ? void 0 : opts.getParams,
19207
- actorQuery
19213
+ actorQuery,
19214
+ opts == null ? void 0 : opts.signal
19208
19215
  );
19209
19216
  return createActorProxy(handle);
19210
19217
  }
@@ -19251,12 +19258,13 @@ var ClientRaw = class {
19251
19258
  const handle = this.#createHandle(
19252
19259
  opts == null ? void 0 : opts.params,
19253
19260
  opts == null ? void 0 : opts.getParams,
19254
- getForIdQuery
19261
+ getForIdQuery,
19262
+ opts == null ? void 0 : opts.signal
19255
19263
  );
19256
19264
  const proxy = createActorProxy(handle);
19257
19265
  return proxy;
19258
19266
  }
19259
- #createHandle(params, getParams, actorQuery) {
19267
+ #createHandle(params, getParams, actorQuery, signal) {
19260
19268
  return new ActorHandleRaw(
19261
19269
  this,
19262
19270
  this.#driver,
@@ -19264,7 +19272,8 @@ var ClientRaw = class {
19264
19272
  getParams,
19265
19273
  this.#encodingKind,
19266
19274
  actorQuery,
19267
- this.#gatewayOptions
19275
+ this.#gatewayOptions,
19276
+ signal
19268
19277
  );
19269
19278
  }
19270
19279
  [CREATE_ACTOR_CONN_PROXY](conn) {
@@ -21597,7 +21606,7 @@ function apiActorToOutput(actor2) {
21597
21606
  };
21598
21607
  }
21599
21608
 
21600
- // ../rivetkit/dist/tsup/chunk-TRBPWMS6.js
21609
+ // ../rivetkit/dist/tsup/chunk-ZLKP4PJ7.js
21601
21610
  var nativeStateTransactionOpeners = /* @__PURE__ */ new WeakMap();
21602
21611
  var nativeStateTransactionClientBinders = /* @__PURE__ */ new WeakMap();
21603
21612
  function registerNativeStateTransactionOpener(provider, opener) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rivetkit/supabase",
3
- "version": "2.3.15",
3
+ "version": "2.3.16-rc.2",
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.15",
42
+ "@rivetkit/rivetkit-wasm": "2.3.16-rc.2",
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.15",
49
+ "rivetkit": "2.3.16-rc.2",
50
50
  "size-limit": "^11.1.6",
51
51
  "tsup": "^8.4.0",
52
52
  "typescript": "^5.5.2"