rivetkit 3.0.0-preview.5 → 3.0.0-preview.6

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 (63) hide show
  1. package/dist/browser/client.js +1 -1
  2. package/dist/browser/client.js.map +1 -1
  3. package/dist/browser/inspector/client.js +1 -1
  4. package/dist/browser/inspector/client.js.map +1 -1
  5. package/dist/tsup/{chunk-KJM23DKG.js → chunk-3UT27Z2Z.js} +2 -2
  6. package/dist/tsup/{chunk-SJUGJ5DT.js → chunk-45UKEIKT.js} +2 -2
  7. package/dist/tsup/{chunk-KKSIGBUN.js → chunk-6AECHZCH.js} +2 -2
  8. package/dist/tsup/{chunk-KKSIGBUN.js.map → chunk-6AECHZCH.js.map} +1 -1
  9. package/dist/tsup/{chunk-AW7C2XT5.js → chunk-6HNQ7EHR.js} +2 -2
  10. package/dist/tsup/{chunk-EOUH7MP7.js → chunk-DBKL7LCY.js} +6 -6
  11. package/dist/tsup/{chunk-EON5X6B7.cjs → chunk-DRNZBNII.cjs} +3 -3
  12. package/dist/tsup/{chunk-EON5X6B7.cjs.map → chunk-DRNZBNII.cjs.map} +1 -1
  13. package/dist/tsup/{chunk-GJUWI47D.cjs → chunk-ENUONGNH.cjs} +144 -144
  14. package/dist/tsup/{chunk-GJUWI47D.cjs.map → chunk-ENUONGNH.cjs.map} +1 -1
  15. package/dist/tsup/{chunk-W4CGRSYM.js → chunk-KKIWVL2H.js} +3 -3
  16. package/dist/tsup/{chunk-KEHBPXZE.cjs → chunk-KOLH4CTU.cjs} +3 -3
  17. package/dist/tsup/{chunk-KEHBPXZE.cjs.map → chunk-KOLH4CTU.cjs.map} +1 -1
  18. package/dist/tsup/{chunk-CLY73DEM.cjs → chunk-LJNYWEYG.cjs} +3 -3
  19. package/dist/tsup/{chunk-CLY73DEM.cjs.map → chunk-LJNYWEYG.cjs.map} +1 -1
  20. package/dist/tsup/{chunk-W5DDGJBO.js → chunk-M5QFGINP.js} +4 -4
  21. package/dist/tsup/{chunk-MVDTFTCY.cjs → chunk-M6KOBS77.cjs} +7 -7
  22. package/dist/tsup/{chunk-MVDTFTCY.cjs.map → chunk-M6KOBS77.cjs.map} +1 -1
  23. package/dist/tsup/{chunk-ZOFNA4SR.cjs → chunk-MJGSJEQS.cjs} +10 -10
  24. package/dist/tsup/{chunk-ZOFNA4SR.cjs.map → chunk-MJGSJEQS.cjs.map} +1 -1
  25. package/dist/tsup/{chunk-BAXQGOBL.js → chunk-MQKJ6DPU.js} +2 -2
  26. package/dist/tsup/{chunk-CFGRIV62.cjs → chunk-QZHR7FM2.cjs} +2 -2
  27. package/dist/tsup/{chunk-CFGRIV62.cjs.map → chunk-QZHR7FM2.cjs.map} +1 -1
  28. package/dist/tsup/{chunk-PHFXQQGE.cjs → chunk-ZEEDB2GK.cjs} +4 -4
  29. package/dist/tsup/{chunk-PHFXQQGE.cjs.map → chunk-ZEEDB2GK.cjs.map} +1 -1
  30. package/dist/tsup/client/mod.cjs +5 -5
  31. package/dist/tsup/client/mod.js +4 -4
  32. package/dist/tsup/common/log.cjs +2 -2
  33. package/dist/tsup/common/log.js +1 -1
  34. package/dist/tsup/common/websocket.cjs +3 -3
  35. package/dist/tsup/common/websocket.js +2 -2
  36. package/dist/tsup/db/drizzle.cjs +2 -2
  37. package/dist/tsup/db/drizzle.js +1 -1
  38. package/dist/tsup/db/mod.cjs +3 -3
  39. package/dist/tsup/db/mod.js +2 -2
  40. package/dist/tsup/inspector/mod.cjs +5 -5
  41. package/dist/tsup/inspector/mod.js +4 -4
  42. package/dist/tsup/inspector/workflow.cjs +4 -4
  43. package/dist/tsup/inspector/workflow.js +3 -3
  44. package/dist/tsup/mod.cjs +86 -86
  45. package/dist/tsup/mod.cjs.map +1 -1
  46. package/dist/tsup/mod.js +5 -5
  47. package/dist/tsup/mod.js.map +1 -1
  48. package/dist/tsup/test/mod.cjs +6 -6
  49. package/dist/tsup/test/mod.js +4 -4
  50. package/dist/tsup/utils.cjs +2 -2
  51. package/dist/tsup/utils.js +1 -1
  52. package/dist/tsup/workflow/mod.cjs +7 -7
  53. package/dist/tsup/workflow/mod.js +4 -4
  54. package/package.json +9 -9
  55. package/src/registry/napi-runtime.ts +1 -1
  56. package/src/registry/native.ts +1 -1
  57. /package/dist/tsup/{chunk-KJM23DKG.js.map → chunk-3UT27Z2Z.js.map} +0 -0
  58. /package/dist/tsup/{chunk-SJUGJ5DT.js.map → chunk-45UKEIKT.js.map} +0 -0
  59. /package/dist/tsup/{chunk-AW7C2XT5.js.map → chunk-6HNQ7EHR.js.map} +0 -0
  60. /package/dist/tsup/{chunk-EOUH7MP7.js.map → chunk-DBKL7LCY.js.map} +0 -0
  61. /package/dist/tsup/{chunk-W4CGRSYM.js.map → chunk-KKIWVL2H.js.map} +0 -0
  62. /package/dist/tsup/{chunk-W5DDGJBO.js.map → chunk-M5QFGINP.js.map} +0 -0
  63. /package/dist/tsup/{chunk-BAXQGOBL.js.map → chunk-MQKJ6DPU.js.map} +0 -0
@@ -1,13 +1,13 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
2
2
 
3
- var _chunkMVDTFTCYcjs = require('../chunk-MVDTFTCY.cjs');
3
+ var _chunkM6KOBS77cjs = require('../chunk-M6KOBS77.cjs');
4
4
 
5
5
 
6
- var _chunkGJUWI47Dcjs = require('../chunk-GJUWI47D.cjs');
6
+ var _chunkENUONGNHcjs = require('../chunk-ENUONGNH.cjs');
7
7
  require('../chunk-RTWH3AX3.cjs');
8
+ require('../chunk-LJNYWEYG.cjs');
8
9
  require('../chunk-KVFIONKQ.cjs');
9
- require('../chunk-CLY73DEM.cjs');
10
- require('../chunk-CFGRIV62.cjs');
10
+ require('../chunk-QZHR7FM2.cjs');
11
11
  require('../chunk-MGI2VVF6.cjs');
12
12
 
13
13
  // src/test/ready.ts
@@ -36,8 +36,8 @@ async function setupTest(c, registry) {
36
36
  registry.config.noWelcome = true;
37
37
  registry.start();
38
38
  await waitForRegistryReady(registry);
39
- const client = _chunkMVDTFTCYcjs.createClient.call(void 0, {
40
- ..._chunkGJUWI47Dcjs.convertRegistryConfigToClientConfig.call(void 0, registry.parseConfig()),
39
+ const client = _chunkM6KOBS77cjs.createClient.call(void 0, {
40
+ ..._chunkENUONGNHcjs.convertRegistryConfigToClientConfig.call(void 0, registry.parseConfig()),
41
41
  disableMetadataLookup: false
42
42
  });
43
43
  c.onTestFinished(async () => {
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  createClient
3
- } from "../chunk-W4CGRSYM.js";
3
+ } from "../chunk-KKIWVL2H.js";
4
4
  import {
5
5
  convertRegistryConfigToClientConfig
6
- } from "../chunk-EOUH7MP7.js";
6
+ } from "../chunk-DBKL7LCY.js";
7
7
  import "../chunk-A2CF6PFH.js";
8
+ import "../chunk-45UKEIKT.js";
8
9
  import "../chunk-JTHHCZCZ.js";
9
- import "../chunk-SJUGJ5DT.js";
10
- import "../chunk-KKSIGBUN.js";
10
+ import "../chunk-6AECHZCH.js";
11
11
  import "../chunk-ZOVJDAOW.js";
12
12
 
13
13
  // src/test/ready.ts
@@ -19,7 +19,7 @@
19
19
 
20
20
 
21
21
 
22
- var _chunkCFGRIV62cjs = require('./chunk-CFGRIV62.cjs');
22
+ var _chunkQZHR7FM2cjs = require('./chunk-QZHR7FM2.cjs');
23
23
  require('./chunk-MGI2VVF6.cjs');
24
24
 
25
25
 
@@ -42,5 +42,5 @@ require('./chunk-MGI2VVF6.cjs');
42
42
 
43
43
 
44
44
 
45
- exports.EXTRA_ERROR_LOG = _chunkCFGRIV62cjs.EXTRA_ERROR_LOG; exports.SinglePromiseQueue = _chunkCFGRIV62cjs.SinglePromiseQueue; exports.VERSION = _chunkCFGRIV62cjs.VERSION; exports.arrayBuffersEqual = _chunkCFGRIV62cjs.arrayBuffersEqual; exports.assertUnreachable = _chunkCFGRIV62cjs.assertUnreachable; exports.bufferToArrayBuffer = _chunkCFGRIV62cjs.bufferToArrayBuffer; exports.combineUrlPath = _chunkCFGRIV62cjs.combineUrlPath; exports.dbg = _chunkCFGRIV62cjs.dbg; exports.detectRuntime = _chunkCFGRIV62cjs.detectRuntime; exports.getEnvUniversal = _chunkCFGRIV62cjs.getEnvUniversal; exports.httpUserAgent = _chunkCFGRIV62cjs.httpUserAgent; exports.interval = _chunkCFGRIV62cjs.interval; exports.joinSignals = _chunkCFGRIV62cjs.joinSignals; exports.jsonParseCompat = _chunkCFGRIV62cjs.jsonParseCompat; exports.jsonStringifyCompat = _chunkCFGRIV62cjs.jsonStringifyCompat; exports.promiseWithResolvers = _chunkCFGRIV62cjs.promiseWithResolvers; exports.setLongTimeout = _chunkCFGRIV62cjs.setLongTimeout; exports.sleep = _chunkCFGRIV62cjs.sleep; exports.stringifyError = _chunkCFGRIV62cjs.stringifyError; exports.toUint8Array = _chunkCFGRIV62cjs.toUint8Array;
45
+ exports.EXTRA_ERROR_LOG = _chunkQZHR7FM2cjs.EXTRA_ERROR_LOG; exports.SinglePromiseQueue = _chunkQZHR7FM2cjs.SinglePromiseQueue; exports.VERSION = _chunkQZHR7FM2cjs.VERSION; exports.arrayBuffersEqual = _chunkQZHR7FM2cjs.arrayBuffersEqual; exports.assertUnreachable = _chunkQZHR7FM2cjs.assertUnreachable; exports.bufferToArrayBuffer = _chunkQZHR7FM2cjs.bufferToArrayBuffer; exports.combineUrlPath = _chunkQZHR7FM2cjs.combineUrlPath; exports.dbg = _chunkQZHR7FM2cjs.dbg; exports.detectRuntime = _chunkQZHR7FM2cjs.detectRuntime; exports.getEnvUniversal = _chunkQZHR7FM2cjs.getEnvUniversal; exports.httpUserAgent = _chunkQZHR7FM2cjs.httpUserAgent; exports.interval = _chunkQZHR7FM2cjs.interval; exports.joinSignals = _chunkQZHR7FM2cjs.joinSignals; exports.jsonParseCompat = _chunkQZHR7FM2cjs.jsonParseCompat; exports.jsonStringifyCompat = _chunkQZHR7FM2cjs.jsonStringifyCompat; exports.promiseWithResolvers = _chunkQZHR7FM2cjs.promiseWithResolvers; exports.setLongTimeout = _chunkQZHR7FM2cjs.setLongTimeout; exports.sleep = _chunkQZHR7FM2cjs.sleep; exports.stringifyError = _chunkQZHR7FM2cjs.stringifyError; exports.toUint8Array = _chunkQZHR7FM2cjs.toUint8Array;
46
46
  //# sourceMappingURL=utils.cjs.map
@@ -19,7 +19,7 @@ import {
19
19
  sleep,
20
20
  stringifyError,
21
21
  toUint8Array
22
- } from "./chunk-KKSIGBUN.js";
22
+ } from "./chunk-6AECHZCH.js";
23
23
  import "./chunk-ZOVJDAOW.js";
24
24
  export {
25
25
  EXTRA_ERROR_LOG,
@@ -1,8 +1,8 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } async function _asyncNullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return await rhsFn(); } } var _class; var _class2;
2
2
 
3
- var _chunkZOFNA4SRcjs = require('../chunk-ZOFNA4SR.cjs');
4
- require('../chunk-KEHBPXZE.cjs');
5
- require('../chunk-PHFXQQGE.cjs');
3
+ var _chunkMJGSJEQScjs = require('../chunk-MJGSJEQS.cjs');
4
+ require('../chunk-KOLH4CTU.cjs');
5
+ require('../chunk-ZEEDB2GK.cjs');
6
6
 
7
7
 
8
8
 
@@ -13,7 +13,7 @@ var _chunkHDVZ6YZGcjs = require('../chunk-HDVZ6YZG.cjs');
13
13
  var _chunkRTWH3AX3cjs = require('../chunk-RTWH3AX3.cjs');
14
14
 
15
15
 
16
- var _chunkCFGRIV62cjs = require('../chunk-CFGRIV62.cjs');
16
+ var _chunkQZHR7FM2cjs = require('../chunk-QZHR7FM2.cjs');
17
17
 
18
18
 
19
19
 
@@ -743,7 +743,7 @@ function workflow(fn, options = {}) {
743
743
  function getWorkflowInspector(actorId) {
744
744
  let workflowInspector = workflowInspectors.get(actorId);
745
745
  if (!workflowInspector) {
746
- workflowInspector = _chunkZOFNA4SRcjs.createWorkflowInspectorAdapter.call(void 0, );
746
+ workflowInspector = _chunkMJGSJEQScjs.createWorkflowInspectorAdapter.call(void 0, );
747
747
  workflowInspectors.set(actorId, workflowInspector);
748
748
  }
749
749
  return workflowInspector;
@@ -816,13 +816,13 @@ function workflow(fn, options = {}) {
816
816
  if (shouldRethrowWorkflowError(error)) {
817
817
  runCtx.log.error({
818
818
  msg: "workflow run failed",
819
- error: _chunkCFGRIV62cjs.stringifyError.call(void 0, error)
819
+ error: _chunkQZHR7FM2cjs.stringifyError.call(void 0, error)
820
820
  });
821
821
  throw error;
822
822
  }
823
823
  runCtx.log.warn({
824
824
  msg: "workflow failed and will sleep until woken",
825
- error: _chunkCFGRIV62cjs.stringifyError.call(void 0, error)
825
+ error: _chunkQZHR7FM2cjs.stringifyError.call(void 0, error)
826
826
  });
827
827
  } finally {
828
828
  runCtx.abortSignal.removeEventListener("abort", onAbort);
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  createWorkflowInspectorAdapter
3
- } from "../chunk-W5DDGJBO.js";
4
- import "../chunk-BAXQGOBL.js";
5
- import "../chunk-KJM23DKG.js";
3
+ } from "../chunk-M5QFGINP.js";
4
+ import "../chunk-MQKJ6DPU.js";
5
+ import "../chunk-3UT27Z2Z.js";
6
6
  import {
7
7
  ACTOR_CONTEXT_INTERNAL_SYMBOL,
8
8
  defineRunHandler
@@ -13,7 +13,7 @@ import {
13
13
  } from "../chunk-A2CF6PFH.js";
14
14
  import {
15
15
  stringifyError
16
- } from "../chunk-KKSIGBUN.js";
16
+ } from "../chunk-6AECHZCH.js";
17
17
  import {
18
18
  RivetError,
19
19
  isActorAbortedError
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rivetkit",
3
- "version": "3.0.0-preview.5",
3
+ "version": "3.0.0-preview.6",
4
4
  "description": "Lightweight libraries for building stateful actors on edge platforms",
5
5
  "license": "Apache-2.0",
6
6
  "keywords": [
@@ -211,15 +211,15 @@
211
211
  "@hono/zod-openapi": "^1.1.5",
212
212
  "@opentelemetry/api": "^1.1.0",
213
213
  "@rivetkit/bare-ts": "^0.6.2",
214
- "@rivetkit/engine-api-full": "3.0.0-preview.5",
215
- "@rivetkit/engine-cli": "3.0.0-preview.5",
216
- "@rivetkit/engine-envoy-protocol": "3.0.0-preview.5",
214
+ "@rivetkit/engine-api-full": "3.0.0-preview.6",
215
+ "@rivetkit/engine-cli": "3.0.0-preview.6",
216
+ "@rivetkit/engine-envoy-protocol": "3.0.0-preview.6",
217
217
  "@rivetkit/on-change": "6.0.1",
218
- "@rivetkit/rivetkit-napi": "3.0.0-preview.5",
219
- "@rivetkit/rivetkit-wasm": "3.0.0-preview.5",
220
- "@rivetkit/traces": "3.0.0-preview.5",
221
- "@rivetkit/virtual-websocket": "3.0.0-preview.5",
222
- "@rivetkit/workflow-engine": "3.0.0-preview.5",
218
+ "@rivetkit/rivetkit-napi": "3.0.0-preview.6",
219
+ "@rivetkit/rivetkit-wasm": "3.0.0-preview.6",
220
+ "@rivetkit/traces": "3.0.0-preview.6",
221
+ "@rivetkit/virtual-websocket": "3.0.0-preview.6",
222
+ "@rivetkit/workflow-engine": "3.0.0-preview.6",
223
223
  "cbor-x": "^1.6.0",
224
224
  "drizzle-orm": "0.45.2",
225
225
  "hono": "^4.7.0",
@@ -1286,7 +1286,7 @@ export async function loadNapiRuntime(): Promise<{
1286
1286
  }> {
1287
1287
  // LOAD-BEARING: the specifier is computed (`.join("/")`) on purpose. Do NOT
1288
1288
  // "simplify" it to a literal `import("@rivetkit/rivetkit-napi")`. Edge
1289
- // adapters (e.g. @rivetkit/supabase) pre-bundle this module for Deno; a
1289
+ // adapters pre-bundle this module for Deno; a
1290
1290
  // literal dynamic import is statically resolvable, so Deno's eszip bundler
1291
1291
  // would snapshot the native `.node` addon into the deploy and 413. The
1292
1292
  // computed specifier keeps it opaque to static analysis so it is never
@@ -836,7 +836,7 @@ function decodeNativeKvValue<T extends NativeKvValueType = "text">(
836
836
  async function loadEngineCli(): Promise<typeof import("@rivetkit/engine-cli")> {
837
837
  // LOAD-BEARING: the specifier is computed (`.join("/")`) on purpose. Do NOT
838
838
  // "simplify" it to a literal `import("@rivetkit/engine-cli")`. Edge adapters
839
- // (e.g. @rivetkit/supabase) pre-bundle this module for Deno; a literal
839
+ // pre-bundle this module for Deno; a literal
840
840
  // dynamic import is statically resolvable, so Deno's eszip bundler would
841
841
  // snapshot the ~117 MB engine-cli binary into the deploy and 413. The
842
842
  // computed specifier keeps it opaque to static analysis so it is never