feat(source-react-runtime): add xyd-source-react-runtime, remove xyd-…#107
Merged
Conversation
…source-react-babel-runtime Replace the naive babel-runtime approach (regex-based component matching + TypeDoc) with a typia-powered plugin that uses the TypeScript compiler for battle-tested type resolution. xyd-source-react-runtime: - Auto-detects exported React components and createContext<T>() calls - Uses typia's TS transform to generate JSON Schema from props - Converts JSON Schema to xyd uniform format via @xyd-js/openapi - Works as Vite plugin, Rollup plugin, and esbuild plugin adapter - No manual annotations or typia imports needed by consumers - Exports: xydSourceReactRuntime (vite/rollup), xydSourceReactRuntimeEsbuild Tested across 8 fixtures: - 1-3: vite lib (basic, cross-file types, real todo app) - 4: vite app mode - 5: rollup + @rollup/plugin-typescript - 6: esbuild - 7: real react-router v7 app (react-router build) - 8: real tanstack router app (@tanstack/router-plugin/vite) Each fixture is a self-contained app with its own build config and package.json build script. Tests run `pnpm build` and compare output.js. Also exports schemaObjectToUniformDefinitionProperties from @xyd-js/openapi.
✅ Deploy Preview for xyd-apidocs-demo ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
✅ Deploy Preview for xyd-website canceled.
|
✅ Deploy Preview for xyd-storybook ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
…ts for stable tests
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.
…source-react-babel-runtime
Replace the naive babel-runtime approach (regex-based component matching + TypeDoc) with a typia-powered plugin that uses the TypeScript compiler for battle-tested type resolution.
xyd-source-react-runtime:
Tested across 8 fixtures:
Each fixture is a self-contained app with its own build config and package.json build script. Tests run
pnpm buildand compare output.js.Also exports schemaObjectToUniformDefinitionProperties from @xyd-js/openapi.