@wagmi/vue 0.0.26 → 0.0.28
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/useBlockNumber.js.map +1 -1
- package/dist/esm/composables/useBytecode.js +24 -0
- package/dist/esm/composables/useBytecode.js.map +1 -0
- package/dist/esm/exports/index.js +1 -0
- package/dist/esm/exports/index.js.map +1 -1
- package/dist/esm/tsconfig.build.tsbuildinfo +1 -1
- package/dist/esm/utils/query.js +1 -1
- package/dist/esm/utils/query.js.map +1 -1
- package/dist/esm/version.js +1 -1
- package/dist/types/composables/useAccountEffect.d.ts +3 -3
- package/dist/types/composables/useAccountEffect.d.ts.map +1 -1
- package/dist/types/composables/useBalance.d.ts +2 -2
- package/dist/types/composables/useBalance.d.ts.map +1 -1
- package/dist/types/composables/useBlockNumber.d.ts +3 -3
- package/dist/types/composables/useBlockNumber.d.ts.map +1 -1
- package/dist/types/composables/useBytecode.d.ts +12 -0
- package/dist/types/composables/useBytecode.d.ts.map +1 -0
- package/dist/types/composables/useClient.d.ts +2 -2
- package/dist/types/composables/useClient.d.ts.map +1 -1
- package/dist/types/composables/useConnect.d.ts +4 -4
- package/dist/types/composables/useConnect.d.ts.map +1 -1
- package/dist/types/composables/useConnectorClient.d.ts +3 -3
- package/dist/types/composables/useConnectorClient.d.ts.map +1 -1
- package/dist/types/composables/useDisconnect.d.ts +3 -3
- package/dist/types/composables/useDisconnect.d.ts.map +1 -1
- package/dist/types/composables/useEnsAddress.d.ts +2 -2
- package/dist/types/composables/useEnsAddress.d.ts.map +1 -1
- package/dist/types/composables/useEnsAvatar.d.ts +2 -2
- package/dist/types/composables/useEnsAvatar.d.ts.map +1 -1
- package/dist/types/composables/useEnsName.d.ts +2 -2
- package/dist/types/composables/useEnsName.d.ts.map +1 -1
- package/dist/types/composables/useReadContract.d.ts +2 -2
- package/dist/types/composables/useReadContract.d.ts.map +1 -1
- package/dist/types/composables/useReconnect.d.ts +3 -3
- package/dist/types/composables/useReconnect.d.ts.map +1 -1
- package/dist/types/composables/useSendTransaction.d.ts +3 -3
- package/dist/types/composables/useSendTransaction.d.ts.map +1 -1
- package/dist/types/composables/useSignMessage.d.ts +3 -3
- package/dist/types/composables/useSignMessage.d.ts.map +1 -1
- package/dist/types/composables/useSignTypedData.d.ts +3 -3
- package/dist/types/composables/useSignTypedData.d.ts.map +1 -1
- package/dist/types/composables/useSwitchAccount.d.ts +3 -3
- package/dist/types/composables/useSwitchAccount.d.ts.map +1 -1
- package/dist/types/composables/useSwitchChain.d.ts +3 -3
- package/dist/types/composables/useSwitchChain.d.ts.map +1 -1
- package/dist/types/composables/useTransaction.d.ts +2 -2
- package/dist/types/composables/useTransaction.d.ts.map +1 -1
- package/dist/types/composables/useTransactionReceipt.d.ts +2 -2
- package/dist/types/composables/useTransactionReceipt.d.ts.map +1 -1
- package/dist/types/composables/useWaitForTransactionReceipt.d.ts +2 -2
- package/dist/types/composables/useWaitForTransactionReceipt.d.ts.map +1 -1
- package/dist/types/composables/useWatchBlockNumber.d.ts +2 -2
- package/dist/types/composables/useWatchBlockNumber.d.ts.map +1 -1
- package/dist/types/exports/index.d.ts +1 -0
- package/dist/types/exports/index.d.ts.map +1 -1
- package/dist/types/utils/query.d.ts +5 -5
- 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/useAccountEffect.ts +3 -3
- package/src/composables/useBalance.ts +2 -2
- package/src/composables/useBlockNumber.ts +8 -4
- package/src/composables/useBytecode.ts +72 -0
- package/src/composables/useClient.ts +2 -2
- package/src/composables/useConnect.ts +4 -4
- package/src/composables/useConnectorClient.ts +3 -3
- package/src/composables/useDisconnect.ts +3 -3
- package/src/composables/useEnsAddress.ts +2 -2
- package/src/composables/useEnsAvatar.ts +2 -2
- package/src/composables/useEnsName.ts +2 -2
- package/src/composables/useReadContract.ts +2 -2
- package/src/composables/useReconnect.ts +3 -3
- package/src/composables/useSendTransaction.ts +3 -3
- package/src/composables/useSignMessage.ts +3 -3
- package/src/composables/useSignTypedData.ts +3 -3
- package/src/composables/useSwitchAccount.ts +3 -3
- package/src/composables/useSwitchChain.ts +3 -3
- package/src/composables/useTransaction.ts +2 -2
- package/src/composables/useTransactionReceipt.ts +2 -2
- package/src/composables/useWaitForTransactionReceipt.ts +2 -2
- package/src/composables/useWatchBlockNumber.ts +3 -3
- package/src/exports/index.ts +6 -0
- package/src/utils/query.ts +9 -9
- package/src/version.ts +1 -1
|
@@ -3,7 +3,7 @@ import type {
|
|
|
3
3
|
GetTransactionErrorType,
|
|
4
4
|
ResolvedRegister,
|
|
5
5
|
} from '@wagmi/core'
|
|
6
|
-
import type {
|
|
6
|
+
import type { Compute } from '@wagmi/core/internal'
|
|
7
7
|
import {
|
|
8
8
|
type GetTransactionData,
|
|
9
9
|
type GetTransactionOptions,
|
|
@@ -25,7 +25,7 @@ export type UseTransactionParameters<
|
|
|
25
25
|
chainId extends
|
|
26
26
|
config['chains'][number]['id'] = config['chains'][number]['id'],
|
|
27
27
|
selectData = GetTransactionData<config, chainId>,
|
|
28
|
-
> =
|
|
28
|
+
> = Compute<
|
|
29
29
|
DeepMaybeRef<
|
|
30
30
|
GetTransactionOptions<config, chainId> &
|
|
31
31
|
ConfigParameter<config> &
|
|
@@ -3,7 +3,7 @@ import type {
|
|
|
3
3
|
GetTransactionReceiptErrorType,
|
|
4
4
|
ResolvedRegister,
|
|
5
5
|
} from '@wagmi/core'
|
|
6
|
-
import type {
|
|
6
|
+
import type { Compute } from '@wagmi/core/internal'
|
|
7
7
|
import {
|
|
8
8
|
type GetTransactionReceiptData,
|
|
9
9
|
type GetTransactionReceiptOptions,
|
|
@@ -25,7 +25,7 @@ export type UseTransactionReceiptParameters<
|
|
|
25
25
|
chainId extends
|
|
26
26
|
config['chains'][number]['id'] = config['chains'][number]['id'],
|
|
27
27
|
selectData = GetTransactionReceiptData<config, chainId>,
|
|
28
|
-
> =
|
|
28
|
+
> = Compute<
|
|
29
29
|
DeepMaybeRef<
|
|
30
30
|
GetTransactionReceiptOptions<config, chainId> &
|
|
31
31
|
ConfigParameter<config> &
|
|
@@ -3,7 +3,7 @@ import type {
|
|
|
3
3
|
ResolvedRegister,
|
|
4
4
|
WaitForTransactionReceiptErrorType,
|
|
5
5
|
} from '@wagmi/core'
|
|
6
|
-
import type {
|
|
6
|
+
import type { Compute } from '@wagmi/core/internal'
|
|
7
7
|
import {
|
|
8
8
|
type WaitForTransactionReceiptData,
|
|
9
9
|
type WaitForTransactionReceiptOptions,
|
|
@@ -25,7 +25,7 @@ export type UseWaitForTransactionReceiptParameters<
|
|
|
25
25
|
chainId extends
|
|
26
26
|
config['chains'][number]['id'] = config['chains'][number]['id'],
|
|
27
27
|
selectData = WaitForTransactionReceiptData<config, chainId>,
|
|
28
|
-
> =
|
|
28
|
+
> = Compute<
|
|
29
29
|
DeepMaybeRef<
|
|
30
30
|
WaitForTransactionReceiptOptions<config, chainId> &
|
|
31
31
|
ConfigParameter<config> &
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
type WatchBlockNumberParameters,
|
|
5
5
|
watchBlockNumber,
|
|
6
6
|
} from '@wagmi/core'
|
|
7
|
-
import type {
|
|
7
|
+
import type { UnionCompute, UnionExactPartial } from '@wagmi/core/internal'
|
|
8
8
|
import { computed, watchEffect } from 'vue'
|
|
9
9
|
|
|
10
10
|
import type { ConfigParameter, EnabledParameter } from '../types/properties.js'
|
|
@@ -18,8 +18,8 @@ export type UseWatchBlockNumberParameters<
|
|
|
18
18
|
chainId extends
|
|
19
19
|
config['chains'][number]['id'] = config['chains'][number]['id'],
|
|
20
20
|
> = DeepMaybeRef<
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
UnionCompute<
|
|
22
|
+
UnionExactPartial<WatchBlockNumberParameters<config, chainId>> &
|
|
23
23
|
ConfigParameter<config> &
|
|
24
24
|
EnabledParameter
|
|
25
25
|
>
|
package/src/exports/index.ts
CHANGED
|
@@ -45,6 +45,12 @@ export {
|
|
|
45
45
|
useBlockNumber,
|
|
46
46
|
} from '../composables/useBlockNumber.js'
|
|
47
47
|
|
|
48
|
+
export {
|
|
49
|
+
type UseBytecodeParameters,
|
|
50
|
+
type UseBytecodeReturnType,
|
|
51
|
+
useBytecode,
|
|
52
|
+
} from '../composables/useBytecode.js'
|
|
53
|
+
|
|
48
54
|
export {
|
|
49
55
|
type UseChainIdParameters,
|
|
50
56
|
type UseChainIdReturnType,
|
package/src/utils/query.ts
CHANGED
|
@@ -9,10 +9,10 @@ import {
|
|
|
9
9
|
useMutation,
|
|
10
10
|
} from '@tanstack/vue-query'
|
|
11
11
|
import type {
|
|
12
|
-
|
|
12
|
+
Compute,
|
|
13
13
|
ExactPartial,
|
|
14
14
|
Omit,
|
|
15
|
-
|
|
15
|
+
UnionStrictOmit,
|
|
16
16
|
} from '@wagmi/core/internal'
|
|
17
17
|
import { hashFn } from '@wagmi/core/query'
|
|
18
18
|
import { type MaybeRef, computed, unref } from 'vue'
|
|
@@ -24,11 +24,11 @@ export type UseMutationParameters<
|
|
|
24
24
|
error = Error,
|
|
25
25
|
variables = void,
|
|
26
26
|
context = unknown,
|
|
27
|
-
> =
|
|
27
|
+
> = Compute<
|
|
28
28
|
DeepMaybeRef<
|
|
29
29
|
Omit<
|
|
30
30
|
DeepUnwrapRef<
|
|
31
|
-
MutationObserverOptions<data, error,
|
|
31
|
+
MutationObserverOptions<data, error, Compute<variables>, context>
|
|
32
32
|
>,
|
|
33
33
|
'mutationFn' | 'mutationKey' | 'throwOnError'
|
|
34
34
|
>
|
|
@@ -40,8 +40,8 @@ export type UseMutationReturnType<
|
|
|
40
40
|
error = Error,
|
|
41
41
|
variables = void,
|
|
42
42
|
context = unknown,
|
|
43
|
-
> =
|
|
44
|
-
|
|
43
|
+
> = Compute<
|
|
44
|
+
UnionStrictOmit<
|
|
45
45
|
tanstack_UseMutationReturnType<data, error, variables, context>,
|
|
46
46
|
'mutate' | 'mutateAsync'
|
|
47
47
|
>
|
|
@@ -56,7 +56,7 @@ export type UseQueryParameters<
|
|
|
56
56
|
error = DefaultError,
|
|
57
57
|
data = queryFnData,
|
|
58
58
|
queryKey extends QueryKey = QueryKey,
|
|
59
|
-
> =
|
|
59
|
+
> = Compute<
|
|
60
60
|
DeepMaybeRef<
|
|
61
61
|
ExactPartial<
|
|
62
62
|
Omit<
|
|
@@ -76,7 +76,7 @@ export type UseQueryParameters<
|
|
|
76
76
|
>
|
|
77
77
|
>
|
|
78
78
|
|
|
79
|
-
export type UseQueryReturnType<data = unknown, error = DefaultError> =
|
|
79
|
+
export type UseQueryReturnType<data = unknown, error = DefaultError> = Compute<
|
|
80
80
|
tanstack_UseQueryReturnType<data, error> & {
|
|
81
81
|
queryKey: QueryKey
|
|
82
82
|
}
|
|
@@ -110,7 +110,7 @@ export function useQuery<queryFnData, error, data, queryKey extends QueryKey>(
|
|
|
110
110
|
// queryData = queryFnData,
|
|
111
111
|
// queryKey extends QueryKey = QueryKey,
|
|
112
112
|
// pageParam = unknown,
|
|
113
|
-
// > =
|
|
113
|
+
// > = Compute<
|
|
114
114
|
// Omit<
|
|
115
115
|
// UseInfiniteQueryOptions<
|
|
116
116
|
// queryFnData,
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = '0.0.
|
|
1
|
+
export const version = '0.0.28'
|