Skip to content

feat: transform entrypoint.#88

Merged
knightedcodemonkey merged 4 commits intomainfrom
bananas
Mar 18, 2026
Merged

feat: transform entrypoint.#88
knightedcodemonkey merged 4 commits intomainfrom
bananas

Conversation

@knightedcodemonkey
Copy link
Copy Markdown
Owner

No description provided.

Copilot AI review requested due to automatic review settings March 18, 2026 20:39
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds a new @knighted/jsx/transform entrypoint to transform raw JSX/TSX source text while also returning normalized import metadata and structured diagnostics, with Vitest coverage to lock down output stability.

Changes:

  • Introduces transformJsxSource() (parser + import metadata extraction + diagnostics), with optional TypeScript stripping via oxc-transform or the existing manual stripper.
  • Adds unit tests + snapshots for import metadata determinism, diagnostics shape, and strip-backend behavior.
  • Exposes the new ./transform subpath export and adds the oxc-transform dependency; removes the related “next steps” doc item.

Reviewed changes

Copilot reviewed 5 out of 6 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
test/transform.test.ts Adds coverage for transform behavior, diagnostics normalization, import metadata ordering, and TS strip backends.
test/snapshots/transform.test.ts.snap Stores snapshots for diagnostics shape and import metadata determinism.
src/transform.ts New transform implementation combining oxc parsing, import metadata extraction, diagnostics mapping, and TS strip + JSX transpile pipeline.
package.json Bumps version, adds ./transform export, and adds oxc-transform dependency.
package-lock.json Locks oxc-transform and platform bindings.
docs/next-steps.md Removes the “evaluate oxc-transform” roadmap bullet now that it’s implemented.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/transform.ts Outdated
Comment thread src/transform.ts
Comment thread package.json
@codecov
Copy link
Copy Markdown

codecov Bot commented Mar 18, 2026

Codecov Report

❌ Patch coverage is 79.54545% with 18 lines in your changes missing coverage. Please review.
✅ Project coverage is 87.85%. Comparing base (246f74c) to head (d2fb20b).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
src/transform.ts 79.54% 6 Missing and 12 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #88      +/-   ##
==========================================
- Coverage   88.21%   87.85%   -0.37%     
==========================================
  Files          25       26       +1     
  Lines        2019     2107      +88     
  Branches      547      584      +37     
==========================================
+ Hits         1781     1851      +70     
- Misses         77       83       +6     
- Partials      161      173      +12     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copilot AI review requested due to automatic review settings March 18, 2026 21:04
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR introduces a new transformJsxSource entrypoint that augments the existing JSX source transpilation flow with parser-backed import metadata and structured diagnostics, and wires it into the published package exports and documentation.

Changes:

  • Add src/transform.ts implementing transformJsxSource() (imports metadata + diagnostics + optional TS strip via oxc-transform).
  • Add Vitest coverage and snapshots for the new transform behavior.
  • Publish the new subpath export (@knighted/jsx/transform) and document usage in the README.

Reviewed changes

Copilot reviewed 6 out of 7 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
src/transform.ts New transform entrypoint combining parsing (imports/diagnostics) with JSX transpilation and optional TS stripping via oxc-transform.
test/transform.test.ts New unit tests covering determinism, diagnostics shape, TS strip backends, and error handling.
test/__snapshots__/transform.test.ts.snap Snapshots for parser diagnostics shape and deterministic import metadata.
package.json Bump version, add ./transform export, add oxc-transform dependency.
package-lock.json Lockfile updates for oxc-transform and its platform bindings.
README.md Document the new @knighted/jsx/transform API and add environment notes.
docs/next-steps.md Remove the “evaluate oxc-transform” next-step now that it’s implemented.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/transform.ts Outdated
Comment thread README.md
@knightedcodemonkey knightedcodemonkey merged commit af5d069 into main Mar 18, 2026
7 checks passed
@knightedcodemonkey knightedcodemonkey deleted the bananas branch March 18, 2026 21:19
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