@vue-solana/nuxt 4.1.1 → 4.1.3
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 +7 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -64,6 +64,8 @@ New to Solana? Start with the official docs and the project concepts guide:
|
|
|
64
64
|
| Solana client | Provided through `@vue-solana/core` |
|
|
65
65
|
| Clusters | `mainnet` (alias `mainnet-beta`), `devnet`, `testnet`, `localnet` |
|
|
66
66
|
|
|
67
|
+
<br>
|
|
68
|
+
|
|
67
69
|
## Install
|
|
68
70
|
|
|
69
71
|
```sh
|
|
@@ -117,6 +119,8 @@ Nuxt module options are stored in public runtime config, so they must be JSON-se
|
|
|
117
119
|
| `iosWallet` | JSON-serializable iOS wallet options or `false` | Enabled on iOS browsers | Configures or disables iOS browser wallet universal links (Phantom, Solflare, Backpack). |
|
|
118
120
|
| `clientPlugin` | `boolean` | `true` | Set to `false` to skip the module's runtime plugin and install `createSolanaPlugin` yourself. |
|
|
119
121
|
|
|
122
|
+
<br>
|
|
123
|
+
|
|
120
124
|
For development, use `devnet` and request free test SOL from the official faucet:
|
|
121
125
|
|
|
122
126
|
```txt
|
|
@@ -250,6 +254,8 @@ The module auto-imports these composables from direct `@vue-solana/vue/*` subpat
|
|
|
250
254
|
| `useSolanaSendTransaction()` | Plans, signs, submits, and confirms one transaction through the client. |
|
|
251
255
|
| `useSolanaSendTransactions()` | Sends a batch of transactions (parallel or sequential) through the client. |
|
|
252
256
|
|
|
257
|
+
<br>
|
|
258
|
+
|
|
253
259
|
The default client built by the module composes `solanaRpc()` followed by `rpcAirdrop()` when no `commitment` is configured (a configured `commitment` builds the same stack explicitly so it reaches the RPC layer); `solanaRpc()` installs `rpcTransactionPlanner()`, `rpcTransactionPlanSigningExecutor()`, and `rpcTransactionPlanSendingExecutor()` itself. The old custom fallback sender is not used. `useSolanaSendTransaction()` and `useSolanaSendTransactions()` therefore use the official client-sending capability, but the module does not configure a payer because `payer` and `payerSecretKey` are omitted from `ModuleOptions`. Their `sent` status is reached after the official executor completes its send-and-confirm operation at `confirmed` commitment.
|
|
254
260
|
|
|
255
261
|
The runtime plugin is client-only. Auto-imported composables can be called during SSR and return inert state until hydration provides the real client context. Trigger RPC and wallet work from client lifecycle hooks or user actions.
|
|
@@ -350,7 +356,7 @@ const { publicKey, connected, canSignMessage, connect, disconnect } = useSolanaW
|
|
|
350
356
|
|
|
351
357
|
Browser extension wallets are discovered through the Solana Wallet Standard. Android Mobile Wallet Adapter wallets are registered through `@solana-mobile/wallet-standard-mobile` on supported Android Chrome clients and exposed through the same wallet list. iOS Phantom, Solflare, and Backpack entries are exposed through wallet-specific universal links on iOS browsers. Wallet actions work after selecting a discovered wallet or configuring a custom `SolanaWallet`.
|
|
352
358
|
|
|
353
|
-
Selected discovered wallets are persisted under `localStorage["vue-solana:selected-wallet"]` as non-sensitive identity metadata: `name`,
|
|
359
|
+
Selected discovered wallets are persisted under `localStorage["vue-solana:selected-wallet"]` as non-sensitive identity metadata: `name`, `platform`/`source` when available, and `connected: true` while the wallet is connected. On reload, Vue Solana restores the selected wallet if the same wallet is discovered again. A wallet the user left connected is restored after a reload even without `autoConnect`, through a silent connect (`connect({ silent: true })`) that does not prompt or launch a wallet app for wallets that honour the Wallet Standard `silent` hint (a wallet that ignores it can prompt on page load); an explicit `disconnect()` forgets that session. Set `solana.autoConnect: true` to also connect a restored wallet that was only selected; arbitrary installed wallets are never auto-connected. Calling `selectWallet(null)` or `setWallet(customWallet)` clears the stored selection.
|
|
354
360
|
|
|
355
361
|
## Message Signing
|
|
356
362
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vue-solana/nuxt",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.3",
|
|
4
4
|
"description": "Nuxt module for Solana applications.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"keywords": [
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"access": "public"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@vue-solana/vue": "4.1.
|
|
48
|
+
"@vue-solana/vue": "4.1.3"
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|
|
51
51
|
"nuxt": "^3.0.0 || ^4.0.0"
|