react-hot-toast icon indicating copy to clipboard operation
react-hot-toast copied to clipboard

Add dynamic height state (+ add test setup)

Open timolins opened this issue 2 years ago • 2 comments

timolins avatar Jul 15 '22 21:07 timolins

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
react-hot-toast ✅ Ready (Inspect) Visit Preview Jul 17, 2022 at 1:58PM (UTC)

vercel[bot] avatar Jul 15 '22 21:07 vercel[bot]

size-limit report 📦

Path Size
dist/index.js 4.92 KB (+1.91% 🔺)
dist/index.mjs 4.62 KB (+2.25% 🔺)
headless/index.js 1.79 KB (+1.56% 🔺)
headless/index.mjs 1.5 KB (+1.86% 🔺)

github-actions[bot] avatar Jul 15 '22 21:07 github-actions[bot]

Am I right in thinking the only thing blocking this is the size-limit check? Anything we can do to help this along?

themagickoala avatar Aug 19 '22 22:08 themagickoala

@themagickoala Indeed, and it feels weird to block it because of it. Wanted to stay true to the "less than 5kb including styles" claim.

There is #217 which would decrease bundle size below 5kb again.

Maybe even won't even hit 5kb as the check returns only 4944 bytes (but still fails?).

That said, I think we'll just merge before blocking it any longer.

timolins avatar Aug 21 '22 12:08 timolins

Thanks @timolins! Will there be a release going out with this soon? My current solution is to mock the library and test the toast method was called, and I'd love to get back to real userland testing.

themagickoala avatar Aug 21 '22 18:08 themagickoala

Hi @themagickoala – sorry for the delay! I just released 2.4.0-beta.0, which includes those changes. Let me know how it works for you.

timolins avatar Sep 03 '22 11:09 timolins

Hi @themagickoala – sorry for the delay! I just released 2.4.0-beta.0, which includes those changes. Let me know how it works for you.

Hi @timolins just picked this up today and it looks like this does fix our tests. Thanks so much!

themagickoala avatar Sep 06 '22 09:09 themagickoala

And thanks @silvenon for implementing this!

themagickoala avatar Sep 06 '22 09:09 themagickoala

Yay! 🎉

silvenon avatar Sep 06 '22 09:09 silvenon