Releases: YangYongAn/jsx-self-closing-tag
Releases · YangYongAn/jsx-self-closing-tag
v2.1.0
Full Changelog: v1.0.2...v2.1.0
[2.1.0] - 2025-04-04
Refactor
- Refactored the processor by babel to improve performance and compatibility
- Restrict the file type scope to only support the determination of JSX, TSX, and JSX/TSX code blocks within Markdown
files.
My test case
export default function(){
return <div>
<App id={1}> </App>
<div id="x" icon={<App></App>}></div>
<App></App>
<div>
</div>
<div> </div>
<App
></App>
<my-tag></my-tag>
<For.Bar></For.Bar>
<h1
>
</h1>
<App/>
</div>
}
function App({id}) {
return (
<div>
<h1>My React App</h1>
<p>It's working!</p>
</div>
);
}
1.0.2
[1.0.2] - 2025-03-10
Fixed
- Improved tag self-closing matching logic to support tags with attributes
- Added support for tags with line breaks and spaces between opening and closing tags
1.0.1
[1.0.1] - 2024-01-25
Chore
- Removed unused commands
- Updated plugin logo
Docs
- Updated documentation introduction and image resource location
Update
- Added support for whitespace characters before '/'