Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: change zod schemas inputs/outputs to readonly to match abitype #194

Merged
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .changeset/seven-planes-deliver.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
"abitype": patch
---

Changed the following types to readonly in zod package:

- `AbiContructor.inputs`
- `AbiError.inputs`
- `AbiEvent.inputs`
- `AbiFunction.inputs` / `AbiFunction.outputs`
2 changes: 2 additions & 0 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,8 @@ pnpm test
pnpm test:typecheck
```

Note: ensure to build the package (`pnpm build`) before running the `test:typecheck` suite.
Raiden1411 marked this conversation as resolved.
Show resolved Hide resolved

<div align="right">
<a href="#basic-guide">&uarr; back to top</a></b>
</div>
Expand Down
31 changes: 7 additions & 24 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,15 +70,9 @@
},
"typesVersions": {
"*": {
"config": [
"./dist/types/config.d.ts"
],
"test": [
"./dist/types/test.d.ts"
],
"zod": [
"./dist/types/zod.d.ts"
]
"config": ["./dist/types/config.d.ts"],
"test": ["./dist/types/test.d.ts"],
"zod": ["./dist/types/zod.d.ts"]
}
},
"peerDependencies": {
Raiden1411 marked this conversation as resolved.
Show resolved Hide resolved
Expand Down Expand Up @@ -109,25 +103,16 @@
"typescript": "5.0.4",
"typescript@5.1.3": "npm:typescript@5.1.3",
"vitest": "^0.30.1",
"zod": "^3.20.6"
"zod": "^3.22.4"
},
"contributors": [
"jxom.eth <j@wagmi.sh>",
"awkweb.eth <t@wagmi.sh>"
],
"contributors": ["jxom.eth <j@wagmi.sh>", "awkweb.eth <t@wagmi.sh>"],
"funding": [
{
"type": "github",
"url": "https://github.com/sponsors/wagmi-dev"
}
],
"keywords": [
"abi",
"eth",
"ethereum",
"typescript",
"web3"
],
"keywords": ["abi", "eth", "ethereum", "typescript", "web3"],
"simple-git-hooks": {
"pre-commit": "pnpm format && pnpm lint:fix"
},
Expand All @@ -138,9 +123,7 @@
"shiki-twoslash>shiki": "^0.14.1"
},
"peerDependencyRules": {
"ignoreMissing": [
"@algolia/client-search"
]
"ignoreMissing": ["@algolia/client-search"]
}
}
}
73 changes: 41 additions & 32 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading