@rivetkit/rivetkit-napi 0.0.0-pr.4702.a179a52 → 0.0.0-pr.4711.7747b75

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/index.d.ts +1 -5
  2. package/index.js +1 -5
  3. package/package.json +9 -9
package/index.d.ts CHANGED
@@ -73,10 +73,6 @@ export interface JsActorConfig {
73
73
  preloadMaxWorkflowBytes?: number
74
74
  preloadMaxConnectionsBytes?: number
75
75
  }
76
- export declare function pollCancelToken(id: bigint): boolean
77
- export declare function registerNativeCancelToken(): bigint
78
- export declare function cancelNativeCancelToken(id: bigint): void
79
- export declare function dropNativeCancelToken(id: bigint): void
80
76
  export interface JsBindParam {
81
77
  kind: string
82
78
  intValue?: number
@@ -258,7 +254,7 @@ export declare class Queue {
258
254
  send(name: string, body: Buffer): Promise<QueueMessage>
259
255
  next(options?: JsQueueNextOptions | undefined | null, signal?: CancellationToken | undefined | null): Promise<QueueMessage | null>
260
256
  nextBatch(options?: JsQueueNextBatchOptions | undefined | null, signal?: CancellationToken | undefined | null): Promise<Array<QueueMessage>>
261
- waitForNames(names: Array<string>, options?: JsQueueWaitOptions | undefined | null, cancelTokenId?: bigint | undefined | null): Promise<QueueMessage>
257
+ waitForNames(names: Array<string>, options?: JsQueueWaitOptions | undefined | null, signal?: CancellationToken | undefined | null): Promise<QueueMessage>
262
258
  waitForNamesAvailable(names: Array<string>, options?: JsQueueWaitOptions | undefined | null): Promise<void>
263
259
  enqueueAndWait(name: string, body: Buffer, options?: JsQueueEnqueueAndWaitOptions | undefined | null, signal?: CancellationToken | undefined | null): Promise<Buffer | null>
264
260
  tryNext(options?: JsQueueTryNextOptions | undefined | null): QueueMessage | null
package/index.js CHANGED
@@ -310,14 +310,10 @@ if (!nativeBinding) {
310
310
  throw new Error(`Failed to load native binding`)
311
311
  }
312
312
 
313
- const { ActorContext, NapiActorFactory, pollCancelToken, registerNativeCancelToken, cancelNativeCancelToken, dropNativeCancelToken, CancellationToken, ConnHandle, JsNativeDatabase, Kv, Queue, QueueMessage, CoreRegistry, Schedule, WebSocket } = nativeBinding
313
+ const { ActorContext, NapiActorFactory, CancellationToken, ConnHandle, JsNativeDatabase, Kv, Queue, QueueMessage, CoreRegistry, Schedule, WebSocket } = nativeBinding
314
314
 
315
315
  module.exports.ActorContext = ActorContext
316
316
  module.exports.NapiActorFactory = NapiActorFactory
317
- module.exports.pollCancelToken = pollCancelToken
318
- module.exports.registerNativeCancelToken = registerNativeCancelToken
319
- module.exports.cancelNativeCancelToken = cancelNativeCancelToken
320
- module.exports.dropNativeCancelToken = dropNativeCancelToken
321
317
  module.exports.CancellationToken = CancellationToken
322
318
  module.exports.ConnHandle = ConnHandle
323
319
  module.exports.JsNativeDatabase = JsNativeDatabase
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rivetkit/rivetkit-napi",
3
- "version": "0.0.0-pr.4702.a179a52",
3
+ "version": "0.0.0-pr.4711.7747b75",
4
4
  "description": "Native N-API addon for RivetKit providing envoy client and SQLite access",
5
5
  "license": "Apache-2.0",
6
6
  "main": "index.js",
@@ -43,15 +43,15 @@
43
43
  },
44
44
  "dependencies": {
45
45
  "@napi-rs/cli": "^2.18.4",
46
- "@rivetkit/engine-envoy-protocol": "0.0.0-pr.4702.a179a52"
46
+ "@rivetkit/engine-envoy-protocol": "0.0.0-pr.4711.7747b75"
47
47
  },
48
48
  "optionalDependencies": {
49
- "@rivetkit/rivetkit-napi-darwin-arm64": "0.0.0-pr.4702.a179a52",
50
- "@rivetkit/rivetkit-napi-darwin-x64": "0.0.0-pr.4702.a179a52",
51
- "@rivetkit/rivetkit-napi-linux-arm64-gnu": "0.0.0-pr.4702.a179a52",
52
- "@rivetkit/rivetkit-napi-linux-arm64-musl": "0.0.0-pr.4702.a179a52",
53
- "@rivetkit/rivetkit-napi-linux-x64-gnu": "0.0.0-pr.4702.a179a52",
54
- "@rivetkit/rivetkit-napi-linux-x64-musl": "0.0.0-pr.4702.a179a52",
55
- "@rivetkit/rivetkit-napi-win32-x64-msvc": "0.0.0-pr.4702.a179a52"
49
+ "@rivetkit/rivetkit-napi-darwin-arm64": "0.0.0-pr.4711.7747b75",
50
+ "@rivetkit/rivetkit-napi-darwin-x64": "0.0.0-pr.4711.7747b75",
51
+ "@rivetkit/rivetkit-napi-linux-arm64-gnu": "0.0.0-pr.4711.7747b75",
52
+ "@rivetkit/rivetkit-napi-linux-arm64-musl": "0.0.0-pr.4711.7747b75",
53
+ "@rivetkit/rivetkit-napi-linux-x64-gnu": "0.0.0-pr.4711.7747b75",
54
+ "@rivetkit/rivetkit-napi-linux-x64-musl": "0.0.0-pr.4711.7747b75",
55
+ "@rivetkit/rivetkit-napi-win32-x64-msvc": "0.0.0-pr.4711.7747b75"
56
56
  }
57
57
  }