@solana/rpc 2.0.0-rc.0 → 2.0.0-rc.1

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.
package/README.md CHANGED
@@ -6,15 +6,15 @@
6
6
 
7
7
  [code-style-prettier-image]: https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square
8
8
  [code-style-prettier-url]: https://github.com/prettier/prettier
9
- [npm-downloads-image]: https://img.shields.io/npm/dm/@solana/rpc/experimental.svg?style=flat
10
- [npm-image]: https://img.shields.io/npm/v/@solana/rpc/experimental.svg?style=flat
11
- [npm-url]: https://www.npmjs.com/package/@solana/rpc/v/experimental
9
+ [npm-downloads-image]: https://img.shields.io/npm/dm/@solana/rpc/rc.svg?style=flat
10
+ [npm-image]: https://img.shields.io/npm/v/@solana/rpc/rc.svg?style=flat
11
+ [npm-url]: https://www.npmjs.com/package/@solana/rpc/v/rc
12
12
  [semantic-release-image]: https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg
13
13
  [semantic-release-url]: https://github.com/semantic-release/semantic-release
14
14
 
15
15
  # @solana/rpc
16
16
 
17
- This package contains utilities for creating objects that you can use to communicate with a Solana JSON RPC server. It can be used standalone, but it is also exported as part of the Solana JavaScript SDK [`@solana/web3.js@experimental`](https://github.com/solana-labs/solana-web3.js/tree/master/packages/library).
17
+ This package contains utilities for creating objects that you can use to communicate with a Solana JSON RPC server. It can be used standalone, but it is also exported as part of the Solana JavaScript SDK [`@solana/web3.js@rc`](https://github.com/solana-labs/solana-web3.js/tree/master/packages/library).
18
18
 
19
19
  Unless you plan to create a custom RPC interface, you can use the [`createSolanaRpc(clusterUrl)`](#createsolanarpcclusterurl-config) function to obtain a default implementation of the [Solana JSON RPC API](https://solana.com/docs/rpc/http).
20
20
 
@@ -46,7 +46,7 @@ transport satisfies RpcTransportTestnet; // OK
46
46
 
47
47
  These types refine the base `Rpc` type. Each describes a RPC that is specific in some way to a particular Solana cluster and a corpus of RPC methods.
48
48
 
49
- This is useful in cases where you need to make assertions about the suitablilty of a RPC for a given purpose. For example, you might like to make it a type error to combine certain types with RPC belonging to certain clusters, at compile time.
49
+ This is useful in cases where you need to make assertions about the suitability of a RPC for a given purpose. For example, you might like to make it a type error to combine certain types with RPC belonging to certain clusters, at compile time.
50
50
 
51
51
  ```ts
52
52
  async function getSpecialAccountInfo(
@@ -145,7 +145,7 @@ function createDefaultRpcTransport(config) {
145
145
  ...config.headers ? normalizeHeaders(config.headers) : void 0,
146
146
  ...{
147
147
  // Keep these headers lowercase so they will override any user-supplied headers above.
148
- "solana-client": `js/${"2.0.0-rc.0"}` ?? "UNKNOWN"
148
+ "solana-client": `js/${"2.0.0-rc.1"}` ?? "UNKNOWN"
149
149
  }
150
150
  }
151
151
  }),
@@ -141,7 +141,7 @@ function createDefaultRpcTransport(config) {
141
141
  ...config.headers ? normalizeHeaders(config.headers) : void 0,
142
142
  ...{
143
143
  // Keep these headers lowercase so they will override any user-supplied headers above.
144
- "solana-client": `js/${"2.0.0-rc.0"}` ?? "UNKNOWN"
144
+ "solana-client": `js/${"2.0.0-rc.1"}` ?? "UNKNOWN"
145
145
  }
146
146
  }
147
147
  }),
@@ -141,7 +141,7 @@ function createDefaultRpcTransport(config) {
141
141
  ...config.headers ? normalizeHeaders(config.headers) : void 0,
142
142
  ...{
143
143
  // Keep these headers lowercase so they will override any user-supplied headers above.
144
- "solana-client": `js/${"2.0.0-rc.0"}` ?? "UNKNOWN"
144
+ "solana-client": `js/${"2.0.0-rc.1"}` ?? "UNKNOWN"
145
145
  }
146
146
  }
147
147
  }),
@@ -145,7 +145,7 @@ function createDefaultRpcTransport(config) {
145
145
  ...config.headers ? normalizeHeaders(config.headers) : void 0,
146
146
  ...{
147
147
  // Keep these headers lowercase so they will override any user-supplied headers above.
148
- "solana-client": `js/${"2.0.0-rc.0"}` ?? "UNKNOWN"
148
+ "solana-client": `js/${"2.0.0-rc.1"}` ?? "UNKNOWN"
149
149
  }
150
150
  }
151
151
  }),
@@ -141,7 +141,7 @@ function createDefaultRpcTransport(config) {
141
141
  ...config.headers ? normalizeHeaders(config.headers) : void 0,
142
142
  ...{
143
143
  // Keep these headers lowercase so they will override any user-supplied headers above.
144
- "solana-client": `js/${"2.0.0-rc.0"}` ?? "UNKNOWN"
144
+ "solana-client": `js/${"2.0.0-rc.1"}` ?? "UNKNOWN"
145
145
  }
146
146
  }
147
147
  }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solana/rpc",
3
- "version": "2.0.0-rc.0",
3
+ "version": "2.0.0-rc.1",
4
4
  "description": "A library for sending JSON RPC requests to Solana RPCs",
5
5
  "exports": {
6
6
  "browser": {
@@ -46,14 +46,14 @@
46
46
  "maintained node versions"
47
47
  ],
48
48
  "dependencies": {
49
- "@solana/errors": "2.0.0-rc.0",
50
- "@solana/fast-stable-stringify": "2.0.0-rc.0",
51
- "@solana/functional": "2.0.0-rc.0",
52
- "@solana/rpc-api": "2.0.0-rc.0",
53
- "@solana/rpc-transformers": "2.0.0-rc.0",
54
- "@solana/rpc-types": "2.0.0-rc.0",
55
- "@solana/rpc-transport-http": "2.0.0-rc.0",
56
- "@solana/rpc-spec": "2.0.0-rc.0"
49
+ "@solana/errors": "2.0.0-rc.1",
50
+ "@solana/rpc-api": "2.0.0-rc.1",
51
+ "@solana/functional": "2.0.0-rc.1",
52
+ "@solana/rpc-spec": "2.0.0-rc.1",
53
+ "@solana/rpc-transport-http": "2.0.0-rc.1",
54
+ "@solana/rpc-types": "2.0.0-rc.1",
55
+ "@solana/fast-stable-stringify": "2.0.0-rc.1",
56
+ "@solana/rpc-transformers": "2.0.0-rc.1"
57
57
  },
58
58
  "peerDependencies": {
59
59
  "typescript": ">=5"