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

feat: init new zod-schemas library #812

Merged
merged 9 commits into from
Jan 20, 2025
Merged

Conversation

peterpeterparker
Copy link
Member

@peterpeterparker peterpeterparker commented Jan 20, 2025

Motivation

We have some Zod schemas that are repeated in OISY and oisy-wallet-signer and are also used by the community—such as myself in Juno. To avoid code duplication, it might be beneficial to create a library for these schemas related to building apps on the IC.

Notes

The package contains a dummy test to be removed as the CI requires at least a test to complete.

Changes

  • Init library @dfinity/zod-schemas and tooling without any logic.
  • Zod v3 as peer dependencies

@peterpeterparker peterpeterparker requested review from a team as code owners January 20, 2025 05:48
Copy link
Contributor

github-actions bot commented Jan 20, 2025

size-limit report 📦

Path Size
@dfinity/ckbtc 8.11 KB (0%)
@dfinity/cketh 3.68 KB (0%)
@dfinity/cmc 1.41 KB (0%)
@dfinity/ledger-icrc 4.33 KB (0%)
@dfinity/ledger-icp 15.43 KB (0%)
@dfinity/nns 37.06 KB (0%)
@dfinity/nns-proto 140.98 KB (0%)
@dfinity/sns 16.98 KB (0%)
@dfinity/utils 4.67 KB (0%)
@dfinity/ic-management 3.19 KB (0%)

Copy link

@AntonioVentilii AntonioVentilii left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM tks! Check the LICENSE before merge please, I am not sure what is the latest we should have there. In OISY we updated to 2025

packages/zod-schemas/LICENSE Show resolved Hide resolved
@peterpeterparker peterpeterparker merged commit 0d6c1e7 into main Jan 20, 2025
12 checks passed
@peterpeterparker peterpeterparker deleted the feat/init-zod-schemas branch January 20, 2025 09:11
peterpeterparker added a commit that referenced this pull request Jan 20, 2025
# Motivation

The size limit setup was missing in #812 for the new zod-schemas lib.

Signed-off-by: David Dal Busco <[email protected]>
peterpeterparker added a commit that referenced this pull request Jan 20, 2025
# Motivation

Accepting all zod v3 library in #812 was not replicated, it seems, in
package-lock.json.

Signed-off-by: David Dal Busco <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants