Skip to content

Valibot update and json schema migration #79

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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

sebastianwessel
Copy link

This commit addresses issues #68 and #75.

Changes include:

  • Updated valibot to ^1.1.0 in packages/valibot, packages/all, and packages/main.
  • Replaced the deprecated @gcornut/valibot-json-schema with the official @valibot/to-json-schema (^1.3.0) in the same packages.
  • Updated packages/valibot/src/serialization.ts to use the new @valibot/to-json-schema library and its updated API (e.g., toJsonSchema function and options).

google-labs-jules bot and others added 3 commits June 20, 2025 22:11
This commit addresses issues decs#68 and decs#75.

Changes include:
- Updated `valibot` to `^1.1.0` in `packages/valibot`, `packages/all`, and `packages/main`.
- Replaced the deprecated `@gcornut/valibot-json-schema` with the official `@valibot/to-json-schema` (`^1.3.0`) in the same packages.
- Updated `packages/valibot/src/serialization.ts` to use the new `@valibot/to-json-schema` library and its updated API (e.g., `toJsonSchema` function and options).
- Reviewed Valibot v1.1.0 documentation; no breaking changes were found for the existing validation logic in `packages/valibot/src/validation.ts` and `packages/valibot/src/resolver.ts`.

Work Progress & Blockers:
- I've completed the core code changes for updating Valibot and its JSON schema generation.
- However, testing and full verification are currently BLOCKED due to a persistent monorepo-wide issue with TypeScript declaration file (DTS) generation using `tsup`. The build fails with errors like `TS2307: Cannot find module 'valibot' or its corresponding type declarations.`
- I made several attempts to resolve this build issue by modifying `tsconfig.json` files and `tsup.config.ts` (e.g., adjusting `typeRoots`, `types`, `include` paths, `tsup`'s `dts.resolve` and `external` options), but these were unsuccessful and have been reverted as per your request.
- This underlying build issue needs to be addressed at the monorepo level to allow tests to pass and ensure the stability of these changes.
Copy link

changeset-bot bot commented Jun 20, 2025

🦋 Changeset detected

Latest commit: 869a155

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
@typeschema/valibot Minor
@typeschema/main Major
@typeschema/all Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

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.

1 participant