Skip to content

codegen#15

Merged
ctate merged 4 commits intomainfrom
codegen
Jan 17, 2026
Merged

codegen#15
ctate merged 4 commits intomainfrom
codegen

Conversation

@ctate
Copy link
Copy Markdown
Collaborator

@ctate ctate commented Jan 17, 2026

add pure code generation

@vercel
Copy link
Copy Markdown
Contributor

vercel bot commented Jan 17, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
json-render Ready Ready Preview, Comment Jan 17, 2026 4:06am


if (typeof value === "boolean") {
if (value === true) {
return { value: "true", needsBraces: false }; // Can use shorthand
Copy link
Copy Markdown
Contributor

@vercel vercel bot Jan 17, 2026

Choose a reason for hiding this comment

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

Boolean true is returned with needsBraces: false, which produces invalid JSX fallback syntax

Fix on Vercel

Comment on lines +25 to +28
.replace(/\\/g, "\\\\")
.replace(/\n/g, "\\n")
.replace(/\r/g, "\\r")
.replace(/\t/g, "\\t");
Copy link
Copy Markdown
Contributor

@vercel vercel bot Jan 17, 2026

Choose a reason for hiding this comment

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

The escapeString function now properly escapes form feed (\f), vertical tab (\v), and backspace (\b) control characters for better code readability and tool compatibility

Fix on Vercel

@ctate ctate merged commit af9dd04 into main Jan 17, 2026
4 checks passed
@gianpaj
Copy link
Copy Markdown

gianpaj commented Jan 21, 2026

nice! what prompt did you use to get this output?

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