Skip to content
This repository was archived by the owner on Nov 21, 2025. It is now read-only.

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

Merged
renatobenks merged 4 commits into
pedronauck:mainfrom
nicolo-ribaudo:fix-top-level-jsx-tag-removal
Feb 7, 2022
Merged

fix(docz-utils): fix closing tag detection in removeTags#1696
renatobenks merged 4 commits into
pedronauck:mainfrom
nicolo-ribaudo:fix-top-level-jsx-tag-removal

Conversation

@nicolo-ribaudo

Copy link
Copy Markdown
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 Jan 31, 2022
@nicolo-ribaudo nicolo-ribaudo force-pushed the fix-top-level-jsx-tag-removal branch from 2f56d4a to ab16818 Compare January 31, 2022 19:20

@adbayb adbayb left a comment

Copy link
Copy Markdown
Contributor

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).

Comment thread core/docz-utils/src/jsx.ts
Comment thread core/docz-utils/.babelrc
@renatobenks

renatobenks commented Feb 3, 2022

Copy link
Copy Markdown
Contributor

Great job at this @nicolo-ribaudo 🎉

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

@Elgeneinar

Elgeneinar commented Feb 3, 2022

Copy link
Copy Markdown

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

@renatobenks renatobenks merged commit bfcd923 into pedronauck:main Feb 7, 2022
@renatobenks

Copy link
Copy Markdown
Contributor

@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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

pending-release Issue fixed but not published to npm yet

5 participants