Skip to content

Commit 8531f83

Browse files
nezousetmm
andauthoredSep 11, 2024··
Add experimental actions export to react package (#4262)
* Add experimental actions export to react package * chore: add vue entrypoint * chore: changeset --------- Co-authored-by: Tom Meagher <tom@meagher.co>
1 parent 994e348 commit 8531f83

7 files changed

+72
-0
lines changed
 

‎.changeset/stale-drinks-fix.md

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"wagmi": patch
3+
"@wagmi/vue": patch
4+
---
5+
6+
Added experimental actions entrypoint.

‎packages/react/package.json

+4
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@
4242
"types": "./dist/types/exports/actions.d.ts",
4343
"default": "./dist/esm/exports/actions.js"
4444
},
45+
"./actions/experimental": {
46+
"types": "./dist/types/exports/actions.experimental.d.ts",
47+
"default": "./dist/esm/exports/actions.experimental.js"
48+
},
4549
"./chains": {
4650
"types": "./dist/types/exports/chains.d.ts",
4751
"default": "./dist/esm/exports/chains.js"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import { expect, test } from 'vitest'
2+
3+
import * as experimentalActions from './actions.experimental.js'
4+
5+
test('exports', () => {
6+
expect(Object.keys(experimentalActions)).toMatchInlineSnapshot(`
7+
[
8+
"getCallsStatus",
9+
"getCapabilities",
10+
"sendCalls",
11+
"showCallsStatus",
12+
"writeContracts",
13+
"getCallsStatusQueryOptions",
14+
"getCallsStatusQueryKey",
15+
"getCapabilitiesQueryOptions",
16+
"getCapabilitiesQueryKey",
17+
"sendCallsMutationOptions",
18+
"showCallsStatusMutationOptions",
19+
"writeContractsMutationOptions",
20+
]
21+
`)
22+
})
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
////////////////////////////////////////////////////////////////////////////////
2+
// @wagmi/core/experimental
3+
////////////////////////////////////////////////////////////////////////////////
4+
5+
// biome-ignore lint/performance/noBarrelFile: entrypoint module
6+
// biome-ignore lint/performance/noReExportAll: entrypoint module
7+
export * from '@wagmi/core/experimental'

‎packages/vue/package.json

+4
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@
4141
"types": "./dist/types/exports/actions.d.ts",
4242
"default": "./dist/esm/exports/actions.js"
4343
},
44+
"./actions/experimental": {
45+
"types": "./dist/types/exports/actions.experimental.d.ts",
46+
"default": "./dist/esm/exports/actions.experimental.js"
47+
},
4448
"./chains": {
4549
"types": "./dist/types/exports/chains.d.ts",
4650
"default": "./dist/esm/exports/chains.js"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import { expect, test } from 'vitest'
2+
3+
import * as experimentalActions from './actions.experimental.js'
4+
5+
test('exports', () => {
6+
expect(Object.keys(experimentalActions)).toMatchInlineSnapshot(`
7+
[
8+
"getCallsStatus",
9+
"getCapabilities",
10+
"sendCalls",
11+
"showCallsStatus",
12+
"writeContracts",
13+
"getCallsStatusQueryOptions",
14+
"getCallsStatusQueryKey",
15+
"getCapabilitiesQueryOptions",
16+
"getCapabilitiesQueryKey",
17+
"sendCallsMutationOptions",
18+
"showCallsStatusMutationOptions",
19+
"writeContractsMutationOptions",
20+
]
21+
`)
22+
})
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
////////////////////////////////////////////////////////////////////////////////
2+
// @wagmi/core/experimental
3+
////////////////////////////////////////////////////////////////////////////////
4+
5+
// biome-ignore lint/performance/noBarrelFile: entrypoint module
6+
// biome-ignore lint/performance/noReExportAll: entrypoint module
7+
export * from '@wagmi/core/experimental'

0 commit comments

Comments
 (0)
Please sign in to comment.