@solana/rpc-subscriptions
Advanced tools
Comparing version 2.0.0-experimental.b08a3a2 to 2.0.0-experimental.bab191b
@@ -12,3 +12,3 @@ import type { RpcSubscriptions, RpcSubscriptionsTransport } from '@solana/rpc-subscriptions-spec'; | ||
}; | ||
export type RpcSubscriptionsTransportWithCluster = RpcSubscriptionsTransportDevnet | RpcSubscriptionsTransportTestnet | RpcSubscriptionsTransportMainnet; | ||
export type RpcSubscriptionsTransportWithCluster = RpcSubscriptionsTransportDevnet | RpcSubscriptionsTransportMainnet | RpcSubscriptionsTransportTestnet; | ||
export type RpcSubscriptionsTransportFromClusterUrl<TClusterUrl extends ClusterUrl> = TClusterUrl extends DevnetUrl ? RpcSubscriptionsTransportDevnet : TClusterUrl extends TestnetUrl ? RpcSubscriptionsTransportTestnet : TClusterUrl extends MainnetUrl ? RpcSubscriptionsTransportMainnet : RpcSubscriptionsTransport; | ||
@@ -15,0 +15,0 @@ export type RpcSubscriptionsDevnet<TRpcMethods> = RpcSubscriptions<TRpcMethods> & { |
import type { ClusterUrl } from '@solana/rpc-types'; | ||
import { RpcSubscriptionsTransportFromClusterUrl } from './rpc-subscriptions-clusters.js'; | ||
export type DefaultRpcSubscriptionsTransportConfig<TClusterUrl extends ClusterUrl> = Readonly<{ | ||
url: TClusterUrl; | ||
/** | ||
@@ -13,4 +12,5 @@ * You might like to open more subscriptions per connection than your RPC provider allows | ||
sendBufferHighWatermark?: number; | ||
url: TClusterUrl; | ||
}>; | ||
export declare function createDefaultRpcSubscriptionsTransport<TClusterUrl extends ClusterUrl>(config: DefaultRpcSubscriptionsTransportConfig<TClusterUrl>): RpcSubscriptionsTransportFromClusterUrl<TClusterUrl>; | ||
//# sourceMappingURL=rpc-subscriptions-transport.d.ts.map |
{ | ||
"name": "@solana/rpc-subscriptions", | ||
"version": "2.0.0-experimental.b08a3a2", | ||
"version": "2.0.0-experimental.bab191b", | ||
"description": "A library for subscribing to Solana RPC notifications", | ||
@@ -50,9 +50,9 @@ "exports": { | ||
"fast-stable-stringify": "^1.0.0", | ||
"@solana/functional": "2.0.0-experimental.b08a3a2", | ||
"@solana/errors": "2.0.0-experimental.b08a3a2", | ||
"@solana/rpc-subscriptions-api": "2.0.0-experimental.b08a3a2", | ||
"@solana/rpc-subscriptions-spec": "2.0.0-experimental.b08a3a2", | ||
"@solana/rpc-subscriptions-transport-websocket": "2.0.0-experimental.b08a3a2", | ||
"@solana/rpc-transformers": "2.0.0-experimental.b08a3a2", | ||
"@solana/rpc-types": "2.0.0-experimental.b08a3a2" | ||
"@solana/errors": "2.0.0-experimental.bab191b", | ||
"@solana/rpc-subscriptions-spec": "2.0.0-experimental.bab191b", | ||
"@solana/functional": "2.0.0-experimental.bab191b", | ||
"@solana/rpc-subscriptions-api": "2.0.0-experimental.bab191b", | ||
"@solana/rpc-subscriptions-transport-websocket": "2.0.0-experimental.bab191b", | ||
"@solana/rpc-types": "2.0.0-experimental.bab191b", | ||
"@solana/rpc-transformers": "2.0.0-experimental.bab191b" | ||
}, | ||
@@ -69,9 +69,9 @@ "bundlewatch": { | ||
"compile:js": "tsup --config build-scripts/tsup.config.package.ts", | ||
"compile:typedefs": "tsc -p ./tsconfig.declarations.json && node node_modules/@solana/build-scripts/add-js-extension-to-types.mjs", | ||
"dev": "jest -c node_modules/@solana/test-config/jest-dev.config.ts --rootDir . --watch", | ||
"compile:typedefs": "tsc -p ./tsconfig.declarations.json && node ../../node_modules/@solana/build-scripts/add-js-extension-to-types.mjs", | ||
"dev": "jest -c ../../node_modules/@solana/test-config/jest-dev.config.ts --rootDir . --watch", | ||
"publish-impl": "npm view $npm_package_name@$npm_package_version > /dev/null 2>&1 || pnpm publish --tag experimental --access public --no-git-checks", | ||
"publish-packages": "pnpm prepublishOnly && pnpm publish-impl", | ||
"style:fix": "pnpm eslint --fix src/* && pnpm prettier -w src/* package.json", | ||
"test:lint": "jest -c node_modules/@solana/test-config/jest-lint.config.ts --rootDir . --silent", | ||
"test:prettier": "jest -c node_modules/@solana/test-config/jest-prettier.config.ts --rootDir . --silent", | ||
"test:lint": "jest -c ../../node_modules/@solana/test-config/jest-lint.config.ts --rootDir . --silent", | ||
"test:prettier": "jest -c ../../node_modules/@solana/test-config/jest-prettier.config.ts --rootDir . --silent", | ||
"test:treeshakability:browser": "agadoo dist/index.browser.js", | ||
@@ -81,5 +81,5 @@ "test:treeshakability:native": "agadoo dist/index.native.js", | ||
"test:typecheck": "tsc --noEmit", | ||
"test:unit:browser": "jest -c node_modules/@solana/test-config/jest-unit.config.browser.ts --rootDir . --silent", | ||
"test:unit:node": "jest -c node_modules/@solana/test-config/jest-unit.config.node.ts --rootDir . --silent" | ||
"test:unit:browser": "jest -c ../../node_modules/@solana/test-config/jest-unit.config.browser.ts --rootDir . --silent", | ||
"test:unit:node": "jest -c ../../node_modules/@solana/test-config/jest-unit.config.node.ts --rootDir . --silent" | ||
} | ||
} |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
232128
33
1898
18
+ Added@solana/addresses@2.0.0-experimental.bab191b(transitive)
+ Added@solana/assertions@2.0.0-experimental.bab191b(transitive)
+ Added@solana/codecs-core@2.0.0-experimental.bab191b(transitive)
+ Added@solana/codecs-data-structures@2.0.0-experimental.bab191b(transitive)
+ Added@solana/codecs-numbers@2.0.0-experimental.bab191b(transitive)
+ Added@solana/codecs-strings@2.0.0-experimental.bab191b(transitive)
+ Added@solana/errors@2.0.0-experimental.bab191b(transitive)
+ Added@solana/functional@2.0.0-experimental.bab191b(transitive)
+ Added@solana/keys@2.0.0-experimental.bab191b(transitive)
+ Added@solana/rpc-spec@2.0.0-experimental.bab191b(transitive)
+ Added@solana/rpc-spec-types@2.0.0-experimental.bab191b(transitive)
+ Added@solana/rpc-subscriptions-api@2.0.0-experimental.bab191b(transitive)
+ Added@solana/rpc-subscriptions-spec@2.0.0-experimental.bab191b(transitive)
+ Added@solana/rpc-subscriptions-transport-websocket@2.0.0-experimental.bab191b(transitive)
+ Added@solana/rpc-transformers@2.0.0-experimental.bab191b(transitive)
+ Added@solana/rpc-types@2.0.0-experimental.bab191b(transitive)
+ Added@solana/transactions@2.0.0-experimental.bab191b(transitive)
- Removed@solana/addresses@2.0.0-experimental.b08a3a2(transitive)
- Removed@solana/assertions@2.0.0-experimental.b08a3a2(transitive)
- Removed@solana/codecs-core@2.0.0-experimental.b08a3a2(transitive)
- Removed@solana/codecs-data-structures@2.0.0-experimental.b08a3a2(transitive)
- Removed@solana/codecs-numbers@2.0.0-experimental.b08a3a2(transitive)
- Removed@solana/codecs-strings@2.0.0-experimental.b08a3a2(transitive)
- Removed@solana/errors@2.0.0-experimental.b08a3a2(transitive)
- Removed@solana/functional@2.0.0-experimental.b08a3a2(transitive)
- Removed@solana/keys@2.0.0-experimental.b08a3a2(transitive)
- Removed@solana/rpc-spec@2.0.0-experimental.b08a3a2(transitive)
- Removed@solana/rpc-spec-types@2.0.0-experimental.b08a3a2(transitive)
- Removed@solana/rpc-subscriptions-api@2.0.0-experimental.b08a3a2(transitive)
- Removed@solana/rpc-subscriptions-spec@2.0.0-experimental.b08a3a2(transitive)
- Removed@solana/rpc-subscriptions-transport-websocket@2.0.0-experimental.b08a3a2(transitive)
- Removed@solana/rpc-transformers@2.0.0-experimental.b08a3a2(transitive)
- Removed@solana/rpc-types@2.0.0-experimental.b08a3a2(transitive)
- Removed@solana/transactions@2.0.0-experimental.b08a3a2(transitive)
Updated@solana/rpc-subscriptions-api@2.0.0-experimental.bab191b
Updated@solana/rpc-subscriptions-spec@2.0.0-experimental.bab191b
Updated@solana/rpc-subscriptions-transport-websocket@2.0.0-experimental.bab191b