From 3df9a29c4b38b88bdbbe630b2095b513370b6a12 Mon Sep 17 00:00:00 2001 From: Mark Date: Mon, 30 May 2022 19:11:50 -0400 Subject: [PATCH 1/2] fix: bump style-to-js to 1.1.1; don't capitalize ms vendor prefix Relates to https://github.com/remarkablemark/style-to-js/issues/2 --- package.json | 2 +- test/attributes-to-props.test.js | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index c2a0c9c4..ab46f4c5 100644 --- a/package.json +++ b/package.json @@ -47,7 +47,7 @@ "domhandler": "4.3.1", "html-dom-parser": "1.2.0", "react-property": "2.0.0", - "style-to-js": "1.1.0" + "style-to-js": "1.1.1" }, "devDependencies": { "@commitlint/cli": "17.0.1", diff --git a/test/attributes-to-props.test.js b/test/attributes-to-props.test.js index 43711926..13666452 100644 --- a/test/attributes-to-props.test.js +++ b/test/attributes-to-props.test.js @@ -253,19 +253,21 @@ describe('attributesToProps with style attribute', () => { color: #f00; font-size: 42px; z-index: -1; -webkit-border-top-right-radius: 10rem; background: url(data:image/png; base64,ivborw0kggoaaaansaaaabgdbtueaalgpc/xhbqaaaafzmuexurczmzpf399fx1+bm5mzy9avzxbesmgces5/p8/t9furvcrmu73jwlzosgsiizurcjo/ad+eqjjb4hv8bft+idpqocx1wjosbfhh2xssxeiyn3uli/6mnree07uiwjev8u8czwyuqdlkpg1bkb4nnm+veanfhqn1k4+gpt6ugqcvu2h2ovuif); /* display: block; */ --custom-property: #f00; - border-bottom-left-radius:1em;border-right-style:solid;Z-Index:-1;-moz-border-radius-bottomleft:20px' + border-bottom-left-radius:1em;border-right-style:solid;Z-Index:-1;-moz-border-radius-bottomleft:20px; + -ms-transform: none; `; expect(attributesToProps({ style })).toMatchInlineSnapshot(` Object { "style": Object { "--custom-property": "#f00", - "MozBorderRadiusBottomleft": "20px'", + "MozBorderRadiusBottomleft": "20px", "WebkitBorderTopRightRadius": "10rem", "background": "url(data:image/png; base64,ivborw0kggoaaaansaaaabgdbtueaalgpc/xhbqaaaafzmuexurczmzpf399fx1+bm5mzy9avzxbesmgces5/p8/t9furvcrmu73jwlzosgsiizurcjo/ad+eqjjb4hv8bft+idpqocx1wjosbfhh2xssxeiyn3uli/6mnree07uiwjev8u8czwyuqdlkpg1bkb4nnm+veanfhqn1k4+gpt6ugqcvu2h2ovuif)", "borderBottomLeftRadius": "1em", "borderRightStyle": "solid", "color": "#f00", "fontSize": "42px", + "msTransform": "none", "zIndex": "-1", }, } From 119270d7b3fd1b51555e8030a9d758703042a528 Mon Sep 17 00:00:00 2001 From: Mark Date: Mon, 30 May 2022 19:22:43 -0400 Subject: [PATCH 2/2] chore(size-limit): increase package size limit by 11 bytes --- .size-limit.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.size-limit.json b/.size-limit.json index 6f678366..aaa687bd 100644 --- a/.size-limit.json +++ b/.size-limit.json @@ -1,6 +1,6 @@ [ { "path": "dist/html-react-parser.min.js", - "limit": "10.52 KB" + "limit": "10.531 KB" } ]