Repository navigation
feat(schemas): add @mionjs/run-types - #416
Merged
Merged
Conversation
✅ Deploy Preview for schemabenchmarks ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
EskiMojo14
force-pushed
the
feat/mionjs-run-types
branch
from
November 10, 2026 16:23
eff31e7 to
2ceca3f
Compare
There was a problem hiding this comment.
🟡 Changes recommended
The aliases reuse handwritten types rather than infer from schemas, causing probeTypes to publish and rank misleading inference benchmark results.
1 open issue
1 file not reviewed
pnpm-lock.yaml: Generated file
What changed in this PR
Adds @mionjs/run-types to the validation-library benchmark suite, with build-time compilation of validators from TypeScript types.
Changes:
- Adds the product schema and adapters for validation, parsing, Standard Schema, string formats, codecs, JSON Schema export, and type benchmarks.
- Integrates the compiler into schema builds, tests, and download measurements.
- Updates dependencies, generated expectations, and ignore rules.
| File | Description |
|---|---|
website/e2e/utils/library-versions.gen.ts |
Records the new library version. |
schemas/vite.config.ts |
Enables compilation during schema tests. |
schemas/tsdown.config.ts |
Enables compilation during schema builds. |
schemas/test/accepted-json-schemas.ts |
Adds the expected JSON Schema export. |
schemas/package.json |
Adds runtime and compiler dependencies. |
schemas/libraries/@mionjs/run-types/types/index.ts |
Defines the type benchmark entry. |
schemas/libraries/@mionjs/run-types/types/fromType.ts |
Adds type-to-validator capability reporting. |
schemas/libraries/@mionjs/run-types/tsconfig.json |
Configures validator generation. |
schemas/libraries/@mionjs/run-types/index.ts |
Defines the constrained product type. |
schemas/libraries/@mionjs/run-types/download/index.ts |
Adds the download-size benchmark entry. |
schemas/libraries/@mionjs/run-types/benchmarks.ts |
Registers supported benchmark adapters. |
schemas/.gitignore |
Ignores generated compiler output. |
pnpm-workspace.yaml |
Adds compiler catalog entries and skill configuration; removes the release-age exception. |
pnpm-lock.yaml |
Locks the new dependencies. |
bench/src/scripts/download.ts |
Compiles run-types download entries. |
bench/package.json |
Adds compiler dependencies for download measurements. |
.agents/skills/.gitignore |
Ignores package-managed skill directories. |
Review effort: Balanced
EskiMojo14
force-pushed
the
feat/mionjs-run-types
branch
from
November 10, 2026 17:11
a1b866b to
f0f45ef
Compare
Covers download, initialization, validation, parsing (all errors), standard schema, string formats, codec, JSON Schema export (draft-2020-12 input) and TypeScript cost. Built with the @mionjs/devtools plugin in functions mode. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_019XsAKq6LG6Cy4uXBrHMyvh
Own tsconfig with a `mion` plugin entry (typia's ttsc rejects it in the shared one): functions emit, inlined nested checks, typeof number checks like typia. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_019XsAKq6LG6Cy4uXBrHMyvh
EskiMojo14
force-pushed
the
feat/mionjs-run-types
branch
2 times, most recently
from
November 11, 2026 11:29
1f9d4a8 to
61b1265
Compare
Member
|
thanks! sorry for the delay :) |
Contributor
Author
Np, Thanks to you for the amendments and get this merged. and congrats for the website! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Description
Adds
@mionjs/run-typesValidators compiled from plain TypeScript types at build time, like typia. The
@mionjs/devtoolsbundler plugin is wired into the same three places as typia's ttsc plugin, filtered tolibraries/@mionjs/:schemas/tsdown.config.tsschemas/vite.config.tsbench/src/scripts/download.tsBenchmarks joined
createValidateFn,createGetValidationErrorsFncreatePrepareForJsonFn/createRestoreFromJsonFnNot joined
Notes
minimumReleaseAgeExcludeentries for the 0.14.0 packages, which are newer than the release-age window. Same as the pi-schema precedent.schemas/.mion/is the plugin's generated output, now gitignored.Checked locally
vpr schemas:buildvp check: cleanI regenerated
accepted-json-schemas.tsandlibrary-versions.gen.tswith their scripts. No result JSON is committed; the bench workflow writes those.