@solana/rpc-subscriptions-spec
Advanced tools
Comparing version 2.0.0-canary-20241023092107 to 2.0.0-canary-20241023092356
@@ -1,2 +0,2 @@ | ||
import { Callable, RpcRequest } from '@solana/rpc-spec-types'; | ||
import { Callable, RpcRequest, RpcRequestTransformer } from '@solana/rpc-spec-types'; | ||
import { DataPublisher } from '@solana/subscribable'; | ||
@@ -6,4 +6,4 @@ import { RpcSubscriptionsChannel } from './rpc-subscriptions-channel'; | ||
export type RpcSubscriptionsApiConfig<TApiMethods extends RpcSubscriptionsApiMethods> = Readonly<{ | ||
getSubscriptionConfigurationHash?: (request: RpcRequest) => string | undefined; | ||
planExecutor: RpcSubscriptionsPlanExecutor<ReturnType<TApiMethods[keyof TApiMethods]>>; | ||
requestTransformer?: RpcRequestTransformer; | ||
}>; | ||
@@ -24,6 +24,7 @@ type RpcSubscriptionsPlanExecutor<TNotification> = (config: Readonly<{ | ||
/** | ||
* This hash uniquely identifies the configuration of a subscription. It is typically used by | ||
* consumers of this API to deduplicate multiple subscriptions for the same notification. | ||
* This request is used to uniquely identify the subscription. | ||
* It typically comes from the method name and parameters of the subscription call, | ||
* after potentially being transformed by the RPC Subscriptions API. | ||
*/ | ||
subscriptionConfigurationHash: string | undefined; | ||
request: RpcRequest; | ||
}>; | ||
@@ -30,0 +31,0 @@ export type RpcSubscriptionsApi<TRpcSubscriptionMethods> = { |
{ | ||
"name": "@solana/rpc-subscriptions-spec", | ||
"version": "2.0.0-canary-20241023092107", | ||
"version": "2.0.0-canary-20241023092356", | ||
"description": "A generic implementation of JSON RPC Subscriptions using proxies", | ||
@@ -57,6 +57,6 @@ "exports": { | ||
"dependencies": { | ||
"@solana/errors": "2.0.0-canary-20241023092107", | ||
"@solana/rpc-spec-types": "2.0.0-canary-20241023092107", | ||
"@solana/subscribable": "2.0.0-canary-20241023092107", | ||
"@solana/promises": "2.0.0-canary-20241023092107" | ||
"@solana/errors": "2.0.0-canary-20241023092356", | ||
"@solana/promises": "2.0.0-canary-20241023092356", | ||
"@solana/rpc-spec-types": "2.0.0-canary-20241023092356", | ||
"@solana/subscribable": "2.0.0-canary-20241023092356" | ||
}, | ||
@@ -63,0 +63,0 @@ "peerDependencies": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
174866
1204
+ Added@solana/errors@2.0.0-canary-20241023092356(transitive)
+ Added@solana/promises@2.0.0-canary-20241023092356(transitive)
+ Added@solana/rpc-spec-types@2.0.0-canary-20241023092356(transitive)
+ Added@solana/subscribable@2.0.0-canary-20241023092356(transitive)
- Removed@solana/errors@2.0.0-canary-20241023092107(transitive)
- Removed@solana/promises@2.0.0-canary-20241023092107(transitive)
- Removed@solana/rpc-spec-types@2.0.0-canary-20241023092107(transitive)
- Removed@solana/subscribable@2.0.0-canary-20241023092107(transitive)