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

fix(docz-utils): fix closing tag detection in removeTags #1696

Merged

Conversation

nicolo-ribaudo
Copy link
Contributor

Description

I wrote the description of this fix and the reason behind it at #1691 (comment).

I fixed it in different commits:

  • test(docz-utils): add test for current removeTags behavior shows the old behavior (one test was correct, the other one was already broken)
  • chore(docz-utils): update @babel/* dependencies updates @babel/traverse and the other babel packages, to force the version containing the fix for the bug docz was relying on
  • test(docz-utils): update removeTags (broken) snapshots updates the tests to show the new broken behavior
  • fix(docz-utils): fix closing tag detection in removeTags fixes both the broken tests

Fixes #1691

@nicolo-ribaudo nicolo-ribaudo changed the title test(docz-utils): add test for current removeTags behavior fix(docz-utils): fix closing tag detection in removeTags Jan 31, 2022
Copy link
Contributor

@adbayb adbayb left a comment

Choose a reason for hiding this comment

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

Thank you @nicolo-ribaudo .
It seems to work properly 🎉 (tested in my project via patch-package).

core/docz-utils/src/jsx.ts Show resolved Hide resolved
core/docz-utils/.babelrc Show resolved Hide resolved
@renatobenks
Copy link
Member

renatobenks commented Feb 3, 2022

Great job at this @nicolo-ribaudo 🎉

Also, thanks for testing it @adbayb, we appreciate it!

@Elgeneinar
Copy link

Elgeneinar commented Feb 3, 2022

Thanks for this update!
Any estimate on when this will be completed?

@renatobenks renatobenks merged commit bfcd923 into doczjs:main Feb 7, 2022
@renatobenks
Copy link
Member

@Elgeneinar I'm scheduling the release to be done between today and tomorrow, but I'll try to let everyone knows in all following corresponded PRs

@renatobenks renatobenks added the pending-release Issue fixed but not published to npm yet label Feb 7, 2022
@nicolo-ribaudo nicolo-ribaudo deleted the fix-top-level-jsx-tag-removal branch February 7, 2022 12:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pending-release Issue fixed but not published to npm yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SyntaxError: Expected corresponding JSX closing tag
5 participants