@wagmi/vue 0.1.24 → 0.1.26
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/dist/esm/composables/useAccount.js.map +1 -1
- package/dist/esm/composables/useBalance.js.map +1 -1
- package/dist/esm/composables/useBytecode.js +1 -1
- package/dist/esm/composables/useBytecode.js.map +1 -1
- package/dist/esm/composables/useChainId.js.map +1 -1
- package/dist/esm/composables/useChains.js.map +1 -1
- package/dist/esm/composables/useClient.js.map +1 -1
- package/dist/esm/composables/useConnections.js.map +1 -1
- package/dist/esm/composables/useConnectors.js.map +1 -1
- package/dist/esm/composables/useDisconnect.js.map +1 -1
- package/dist/esm/composables/useSimulateContract.js.map +1 -1
- package/dist/esm/composables/useSwitchAccount.js.map +1 -1
- package/dist/esm/composables/useTransactionReceipt.js.map +1 -1
- package/dist/esm/composables/useWriteContract.js.map +1 -1
- package/dist/esm/exports/index.js +8 -8
- package/dist/esm/exports/index.js.map +1 -1
- package/dist/esm/exports/query.js +1 -2
- package/dist/esm/exports/query.js.map +1 -1
- package/dist/esm/plugin.js.map +1 -1
- package/dist/esm/tsconfig.build.tsbuildinfo +1 -1
- package/dist/esm/utils/cloneDeep.js +1 -1
- package/dist/esm/utils/cloneDeep.js.map +1 -1
- package/dist/esm/utils/query.js.map +1 -1
- package/dist/esm/version.js +1 -1
- package/dist/types/composables/useAccount.d.ts.map +1 -1
- package/dist/types/composables/useBalance.d.ts +1 -1
- package/dist/types/composables/useBalance.d.ts.map +1 -1
- package/dist/types/composables/useBytecode.d.ts +2 -2
- package/dist/types/composables/useBytecode.d.ts.map +1 -1
- package/dist/types/composables/useChainId.d.ts.map +1 -1
- package/dist/types/composables/useChains.d.ts.map +1 -1
- package/dist/types/composables/useClient.d.ts.map +1 -1
- package/dist/types/composables/useConnections.d.ts.map +1 -1
- package/dist/types/composables/useConnectors.d.ts.map +1 -1
- package/dist/types/composables/useDisconnect.d.ts.map +1 -1
- package/dist/types/composables/useSimulateContract.d.ts.map +1 -1
- package/dist/types/composables/useSwitchAccount.d.ts.map +1 -1
- package/dist/types/composables/useTransactionReceipt.d.ts +1 -1
- package/dist/types/composables/useTransactionReceipt.d.ts.map +1 -1
- package/dist/types/composables/useWriteContract.d.ts.map +1 -1
- package/dist/types/exports/index.d.ts +7 -7
- package/dist/types/exports/index.d.ts.map +1 -1
- package/dist/types/exports/query.d.ts +1 -2
- package/dist/types/exports/query.d.ts.map +1 -1
- package/dist/types/plugin.d.ts.map +1 -1
- package/dist/types/utils/query.d.ts +1 -1
- package/dist/types/utils/query.d.ts.map +1 -1
- package/dist/types/version.d.ts +1 -1
- package/package.json +3 -3
- package/src/composables/useAccount.ts +2 -2
- package/src/composables/useBalance.ts +1 -1
- package/src/composables/useBytecode.ts +3 -5
- package/src/composables/useChainId.ts +2 -2
- package/src/composables/useChains.ts +2 -2
- package/src/composables/useClient.ts +2 -2
- package/src/composables/useConnections.ts +1 -1
- package/src/composables/useConnectors.ts +2 -2
- package/src/composables/useDisconnect.ts +1 -1
- package/src/composables/useSimulateContract.ts +1 -1
- package/src/composables/useSwitchAccount.ts +1 -1
- package/src/composables/useTransactionReceipt.ts +1 -1
- package/src/composables/useWriteContract.ts +3 -4
- package/src/exports/index.ts +55 -64
- package/src/exports/query.ts +1 -5
- package/src/nuxt/module.ts +1 -1
- package/src/plugin.ts +1 -1
- package/src/types/ref.ts +2 -2
- package/src/utils/cloneDeep.ts +1 -1
- package/src/utils/query.ts +2 -2
- package/src/version.ts +1 -1
package/src/exports/index.ts
CHANGED
|
@@ -3,19 +3,19 @@
|
|
|
3
3
|
////////////////////////////////////////////////////////////////////////////////
|
|
4
4
|
|
|
5
5
|
// biome-ignore lint/performance/noBarrelFile: entrypoint module
|
|
6
|
-
export { configKey, type WagmiPluginOptions
|
|
6
|
+
export { configKey, WagmiPlugin, type WagmiPluginOptions } from '../plugin.js'
|
|
7
7
|
|
|
8
8
|
////////////////////////////////////////////////////////////////////////////////
|
|
9
9
|
// Errors
|
|
10
10
|
////////////////////////////////////////////////////////////////////////////////
|
|
11
11
|
|
|
12
|
-
export { type BaseErrorType
|
|
12
|
+
export { BaseError, type BaseErrorType } from '../errors/base.js'
|
|
13
13
|
|
|
14
14
|
export {
|
|
15
|
-
type WagmiPluginNotFoundErrorType,
|
|
16
|
-
WagmiPluginNotFoundError,
|
|
17
|
-
type WagmiInjectionContextErrorType,
|
|
18
15
|
WagmiInjectionContextError,
|
|
16
|
+
type WagmiInjectionContextErrorType,
|
|
17
|
+
WagmiPluginNotFoundError,
|
|
18
|
+
type WagmiPluginNotFoundErrorType,
|
|
19
19
|
} from '../errors/plugin.js'
|
|
20
20
|
|
|
21
21
|
////////////////////////////////////////////////////////////////////////////////
|
|
@@ -56,42 +56,36 @@ export {
|
|
|
56
56
|
type UseChainIdReturnType,
|
|
57
57
|
useChainId,
|
|
58
58
|
} from '../composables/useChainId.js'
|
|
59
|
-
|
|
60
|
-
export {
|
|
61
|
-
type UseClientParameters,
|
|
62
|
-
type UseClientReturnType,
|
|
63
|
-
useClient,
|
|
64
|
-
} from '../composables/useClient.js'
|
|
65
|
-
|
|
66
|
-
export {
|
|
67
|
-
type UseConnectorClientParameters,
|
|
68
|
-
type UseConnectorClientReturnType,
|
|
69
|
-
useConnectorClient,
|
|
70
|
-
} from '../composables/useConnectorClient.js'
|
|
71
|
-
|
|
72
59
|
export {
|
|
73
60
|
type UseChainsParameters,
|
|
74
61
|
type UseChainsReturnType,
|
|
75
62
|
useChains,
|
|
76
63
|
} from '../composables/useChains.js'
|
|
77
|
-
|
|
64
|
+
export {
|
|
65
|
+
type UseClientParameters,
|
|
66
|
+
type UseClientReturnType,
|
|
67
|
+
useClient,
|
|
68
|
+
} from '../composables/useClient.js'
|
|
78
69
|
export {
|
|
79
70
|
type UseConfigParameters,
|
|
80
71
|
type UseConfigReturnType,
|
|
81
72
|
useConfig,
|
|
82
73
|
} from '../composables/useConfig.js'
|
|
83
|
-
|
|
84
74
|
export {
|
|
85
75
|
type UseConnectParameters,
|
|
86
76
|
type UseConnectReturnType,
|
|
87
77
|
useConnect,
|
|
88
78
|
} from '../composables/useConnect.js'
|
|
89
|
-
|
|
90
79
|
export {
|
|
91
80
|
type UseConnectionsParameters,
|
|
92
81
|
type UseConnectionsReturnType,
|
|
93
82
|
useConnections,
|
|
94
83
|
} from '../composables/useConnections.js'
|
|
84
|
+
export {
|
|
85
|
+
type UseConnectorClientParameters,
|
|
86
|
+
type UseConnectorClientReturnType,
|
|
87
|
+
useConnectorClient,
|
|
88
|
+
} from '../composables/useConnectorClient.js'
|
|
95
89
|
|
|
96
90
|
export {
|
|
97
91
|
type UseConnectorsParameters,
|
|
@@ -188,25 +182,22 @@ export {
|
|
|
188
182
|
type UseTransactionReceiptReturnType,
|
|
189
183
|
useTransactionReceipt,
|
|
190
184
|
} from '../composables/useTransactionReceipt.js'
|
|
191
|
-
|
|
185
|
+
export {
|
|
186
|
+
type UseWaitForTransactionReceiptParameters,
|
|
187
|
+
type UseWaitForTransactionReceiptReturnType,
|
|
188
|
+
useWaitForTransactionReceipt,
|
|
189
|
+
} from '../composables/useWaitForTransactionReceipt.js'
|
|
192
190
|
export {
|
|
193
191
|
type UseWatchBlockNumberParameters,
|
|
194
192
|
type UseWatchBlockNumberReturnType,
|
|
195
193
|
useWatchBlockNumber,
|
|
196
194
|
} from '../composables/useWatchBlockNumber.js'
|
|
197
|
-
|
|
198
195
|
export {
|
|
199
196
|
type UseWatchContractEventParameters,
|
|
200
197
|
type UseWatchContractEventReturnType,
|
|
201
198
|
useWatchContractEvent,
|
|
202
199
|
} from '../composables/useWatchContractEvent.js'
|
|
203
200
|
|
|
204
|
-
export {
|
|
205
|
-
type UseWaitForTransactionReceiptParameters,
|
|
206
|
-
type UseWaitForTransactionReceiptReturnType,
|
|
207
|
-
useWaitForTransactionReceipt,
|
|
208
|
-
} from '../composables/useWaitForTransactionReceipt.js'
|
|
209
|
-
|
|
210
201
|
export {
|
|
211
202
|
type UseWriteContractParameters,
|
|
212
203
|
type UseWriteContractReturnType,
|
|
@@ -218,59 +209,59 @@ export {
|
|
|
218
209
|
////////////////////////////////////////////////////////////////////////////////
|
|
219
210
|
|
|
220
211
|
export {
|
|
212
|
+
ChainNotConfiguredError,
|
|
213
|
+
// Errors
|
|
214
|
+
type ChainNotConfiguredErrorType,
|
|
215
|
+
type Config,
|
|
221
216
|
// Config
|
|
222
217
|
type Connection,
|
|
223
218
|
type Connector,
|
|
224
|
-
|
|
225
|
-
type
|
|
226
|
-
|
|
227
|
-
type
|
|
228
|
-
|
|
219
|
+
ConnectorAccountNotFoundError,
|
|
220
|
+
type ConnectorAccountNotFoundErrorType,
|
|
221
|
+
ConnectorAlreadyConnectedError,
|
|
222
|
+
type ConnectorAlreadyConnectedErrorType,
|
|
223
|
+
ConnectorChainMismatchError,
|
|
224
|
+
type ConnectorChainMismatchErrorType,
|
|
229
225
|
// Connector
|
|
230
226
|
type ConnectorEventMap,
|
|
231
|
-
type CreateConnectorFn,
|
|
232
|
-
createConnector,
|
|
233
|
-
injected,
|
|
234
|
-
mock,
|
|
235
|
-
// Errors
|
|
236
|
-
type ChainNotConfiguredErrorType,
|
|
237
|
-
ChainNotConfiguredError,
|
|
238
|
-
type ConnectorAlreadyConnectedErrorType,
|
|
239
|
-
ConnectorAlreadyConnectedError,
|
|
240
|
-
type ConnectorNotFoundErrorType,
|
|
241
227
|
ConnectorNotFoundError,
|
|
242
|
-
type
|
|
243
|
-
ConnectorAccountNotFoundError,
|
|
244
|
-
type ConnectorChainMismatchErrorType,
|
|
245
|
-
ConnectorChainMismatchError,
|
|
246
|
-
type ConnectorUnavailableReconnectingErrorType,
|
|
228
|
+
type ConnectorNotFoundErrorType,
|
|
247
229
|
ConnectorUnavailableReconnectingError,
|
|
248
|
-
type
|
|
249
|
-
|
|
250
|
-
type
|
|
251
|
-
SwitchChainNotSupportedError,
|
|
230
|
+
type ConnectorUnavailableReconnectingErrorType,
|
|
231
|
+
type CreateConfigParameters,
|
|
232
|
+
type CreateConnectorFn,
|
|
252
233
|
// Storage
|
|
253
234
|
type CreateStorageParameters,
|
|
254
|
-
|
|
235
|
+
// Utilities
|
|
236
|
+
cookieStorage,
|
|
237
|
+
cookieToInitialState,
|
|
238
|
+
createConfig,
|
|
239
|
+
createConnector,
|
|
255
240
|
createStorage,
|
|
256
|
-
noopStorage,
|
|
257
241
|
// Transports
|
|
258
242
|
custom,
|
|
243
|
+
deepEqual,
|
|
244
|
+
deserialize,
|
|
259
245
|
fallback,
|
|
260
246
|
http,
|
|
261
|
-
|
|
262
|
-
|
|
247
|
+
injected,
|
|
248
|
+
mock,
|
|
249
|
+
noopStorage,
|
|
250
|
+
normalizeChainId,
|
|
251
|
+
type PartializedState,
|
|
252
|
+
ProviderNotFoundError,
|
|
253
|
+
type ProviderNotFoundErrorType,
|
|
254
|
+
parseCookie,
|
|
263
255
|
// Types
|
|
264
256
|
type Register,
|
|
265
257
|
type ResolvedRegister,
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
deserialize,
|
|
271
|
-
normalizeChainId,
|
|
272
|
-
parseCookie,
|
|
258
|
+
type State,
|
|
259
|
+
type Storage,
|
|
260
|
+
SwitchChainNotSupportedError,
|
|
261
|
+
type SwitchChainNotSupportedErrorType,
|
|
273
262
|
serialize,
|
|
263
|
+
unstable_connector,
|
|
264
|
+
webSocket,
|
|
274
265
|
} from '@wagmi/core'
|
|
275
266
|
|
|
276
267
|
////////////////////////////////////////////////////////////////////////////////
|
package/src/exports/query.ts
CHANGED
|
@@ -5,15 +5,11 @@
|
|
|
5
5
|
// biome-ignore lint/performance/noBarrelFile: entrypoint module
|
|
6
6
|
// biome-ignore lint/performance/noReExportAll: entrypoint module
|
|
7
7
|
export * from '@wagmi/core/query'
|
|
8
|
-
|
|
9
8
|
export {
|
|
10
9
|
type UseMutationParameters,
|
|
11
10
|
type UseMutationReturnType,
|
|
12
|
-
useMutation,
|
|
13
|
-
} from '../utils/query.js'
|
|
14
|
-
|
|
15
|
-
export {
|
|
16
11
|
type UseQueryParameters,
|
|
17
12
|
type UseQueryReturnType,
|
|
13
|
+
useMutation,
|
|
18
14
|
useQuery,
|
|
19
15
|
} from '../utils/query.js'
|
package/src/nuxt/module.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { NuxtModule } from '@nuxt/schema'
|
|
2
2
|
import { addImports, createResolver, defineNuxtModule } from 'nuxt/kit'
|
|
3
3
|
|
|
4
|
-
// biome-ignore lint/complexity/noBannedTypes:
|
|
4
|
+
// biome-ignore lint/complexity/noBannedTypes: allowed
|
|
5
5
|
export type WagmiModuleOptions = {}
|
|
6
6
|
|
|
7
7
|
export const wagmiModule: NuxtModule<WagmiModuleOptions> =
|
package/src/plugin.ts
CHANGED
package/src/types/ref.ts
CHANGED
|
@@ -17,7 +17,7 @@ type UnwrapLeaf =
|
|
|
17
17
|
| WeakSet<any>
|
|
18
18
|
|
|
19
19
|
export type DeepMaybeRef<value> = MaybeRef<
|
|
20
|
-
// biome-ignore lint/complexity/noBannedTypes:
|
|
20
|
+
// biome-ignore lint/complexity/noBannedTypes: allowed
|
|
21
21
|
value extends Function | Config | Connector
|
|
22
22
|
? value
|
|
23
23
|
: value extends object | any[]
|
|
@@ -31,7 +31,7 @@ export type DeepUnwrapRef<T> = T extends UnwrapLeaf
|
|
|
31
31
|
? T
|
|
32
32
|
: T extends Ref<infer U>
|
|
33
33
|
? DeepUnwrapRef<U>
|
|
34
|
-
: // biome-ignore lint/complexity/noBannedTypes:
|
|
34
|
+
: // biome-ignore lint/complexity/noBannedTypes: allowed
|
|
35
35
|
T extends {}
|
|
36
36
|
? {
|
|
37
37
|
[Property in keyof T]: DeepUnwrapRef<T[Property]>
|
package/src/utils/cloneDeep.ts
CHANGED
|
@@ -36,7 +36,7 @@ export function deepUnref<value>(value: value): DeepUnwrapRef<value> {
|
|
|
36
36
|
})
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
-
// biome-ignore lint/complexity/noBannedTypes:
|
|
39
|
+
// biome-ignore lint/complexity/noBannedTypes: allowed
|
|
40
40
|
function isPlainObject(value: unknown): value is Object {
|
|
41
41
|
if (Object.prototype.toString.call(value) !== '[object Object]') return false
|
|
42
42
|
const prototype = Object.getPrototypeOf(value)
|
package/src/utils/query.ts
CHANGED
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
type DefaultError,
|
|
3
3
|
type MutationObserverOptions,
|
|
4
4
|
type QueryKey,
|
|
5
|
-
type UseQueryOptions,
|
|
6
5
|
type UseMutationReturnType as tanstack_UseMutationReturnType,
|
|
7
6
|
type UseQueryReturnType as tanstack_UseQueryReturnType,
|
|
8
7
|
useQuery as tanstack_useQuery,
|
|
8
|
+
type UseQueryOptions,
|
|
9
9
|
useMutation,
|
|
10
10
|
} from '@tanstack/vue-query'
|
|
11
11
|
import type {
|
|
@@ -15,7 +15,7 @@ import type {
|
|
|
15
15
|
UnionStrictOmit,
|
|
16
16
|
} from '@wagmi/core/internal'
|
|
17
17
|
import { hashFn } from '@wagmi/core/query'
|
|
18
|
-
import { type MaybeRef,
|
|
18
|
+
import { computed, type MaybeRef, unref } from 'vue'
|
|
19
19
|
|
|
20
20
|
import type { DeepMaybeRef, DeepUnwrapRef } from '../types/ref.js'
|
|
21
21
|
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = '0.1.
|
|
1
|
+
export const version = '0.1.26'
|