Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle self closing elements ts-html-plugin #158

Merged
merged 6 commits into from
Mar 25, 2024

Conversation

JacopoPatroclo
Copy link

@JacopoPatroclo JacopoPatroclo commented Mar 25, 2024

closes #149
closes #146

This PR aims to resolve the above issues

I've noticed that a self-closing element must be validated as a JSX element before they were not. Furthermore, I've changed the recursiveDiagnoseJsxElements implementation to handle the fact that a self-closing element expression does not have children. I've added a couple of expressions in the tests to show such cases.

@arthurfiorette let me know if this makes sense or if I should add more test cases.

Copy link

changeset-bot bot commented Mar 25, 2024

🦋 Changeset detected

Latest commit: f17d190

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
@kitajs/ts-html-plugin Patch
@kitajs/fastify-html-plugin Patch
@kitajs/html Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Signed-off-by: Arthur Fiorette <47537704+arthurfiorette@users.noreply.github.com>
@arthurfiorette arthurfiorette self-assigned this Mar 25, 2024
@arthurfiorette arthurfiorette added fastify-plugin Related to @kitajs/fastify-html-plugin ts-plugin Related to @kitajs/ts-html-plugin bug Something isn't working and removed fastify-plugin Related to @kitajs/fastify-html-plugin labels Mar 25, 2024
arthurfiorette
arthurfiorette previously approved these changes Mar 25, 2024
@arthurfiorette
Copy link
Member

why is CI not running???

Signed-off-by: Arthur Fiorette <47537704+arthurfiorette@users.noreply.github.com>
@arthurfiorette arthurfiorette enabled auto-merge (squash) March 25, 2024 11:53
@arthurfiorette arthurfiorette enabled auto-merge (squash) March 25, 2024 12:14
@arthurfiorette arthurfiorette enabled auto-merge (squash) March 25, 2024 12:14
@arthurfiorette arthurfiorette merged commit f00a024 into kitajs:master Mar 25, 2024
6 checks passed
@arthurfiorette
Copy link
Member

Released at 4.0.0-next.1

@coindegen
Copy link

Just confirming that this fixed my issue (#149). Thank you very much @JacopoPatroclo & @arthurfiorette!

This was referenced Apr 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working ts-plugin Related to @kitajs/ts-html-plugin
Projects
Status: Done
3 participants