Skip to content

v2.8.0 - stringifyAttributes improvements

Compare
Choose a tag to compare
@TheJaredWilcurt TheJaredWilcurt released this 14 Mar 01:21
· 14 commits to main since this release
731fe91

Features:

  • Minor improvements to stringifyAttributes:
    • Values of undefined are now removed from objects
    • Better whitespace

Expect snapshot changes similar to this:

 <div>
-  <my-child-stub someprop="{aaa:2,bbb:undefined,ccc:true}" />
+  <my-child-stub someprop="{ aaa: 2, ccc: true }" />
 </div>

Diff: