Skip to content

breaking: support typebox@1.x#57

Open
yeliex wants to merge 2 commits intom1212e:mainfrom
yeliex:codex/prismabox
Open

breaking: support typebox@1.x#57
yeliex wants to merge 2 commits intom1212e:mainfrom
yeliex:codex/prismabox

Conversation

@yeliex
Copy link
Copy Markdown

@yeliex yeliex commented Mar 7, 2026

  • switch prismabox runtime dependency from @sinclair/typebox to typebox
  • set typeboxImportDependencyName default to typebox
  • emit default import for typebox mode and keep named import for legacy mode
  • migrate generated APIs in typebox mode:
    • Composite -> Evaluate(Intersect(...))
    • Transform -> Codec
    • Recursive -> Cyclic + Ref
    • Date/Uint8Array -> helpers with Refine(Unsafe(...))
  • keep @sinclair/typebox output identical to previous behavior
  • migrate dist build output to ESM and fix generator-helper CJS interop (typebox only supports esm)
  • add bun-native tests under tests/ covering typebox mode, legacy mode, recursion, and datetime modes
  • add unit tests for @sinclair/typebox and typebox
  • update README for Prisma 7 config note and compatibility options

fix #45

Welcome to use @yeliex/prismabox as fork

…gacy parity

- switch prismabox runtime dependency from `@sinclair/typebox` to `typebox`
- set `typeboxImportDependencyName` default to "typebox"
- emit default import for typebox mode and keep named import for legacy mode
- migrate generated APIs in typebox mode:
  - Composite -> Evaluate(Intersect(...))
  - Transform -> Codec
  - Recursive -> Cyclic + Ref
  - Date/Uint8Array -> helpers with Refine(Unsafe(...))
- keep `@sinclair/typebox` output identical to previous behavior
- migrate dist build output to ESM and fix generator-helper CJS interop (typebox only support esm)
- add bun-native tests under tests/ covering typebox mode, legacy mode, recursion, and datetime modes
- update README for Prisma 7 config note and compatibility options
@yeliex yeliex changed the title feat: add typebox@1.x compatibility with ESM generator support and legacy parity breaking: support typebox@1.x Mar 7, 2026
@yeliex
Copy link
Copy Markdown
Author

yeliex commented Mar 20, 2026

@m1212e Please take a look

@yeliex yeliex mentioned this pull request Mar 20, 2026
@m1212e
Copy link
Copy Markdown
Owner

m1212e commented Mar 30, 2026

Hey, thanks for your contribution, please see #59
Feel free to post your fork over there so people will find it!

@yeliex yeliex mentioned this pull request Apr 3, 2026
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.

typebox@1

2 participants