happy-dom
happy-dom copied to clipboard
URL is missing searchParams
Hi there!
Thank you for the effort in this library – I am testing happy-dom to see if I can achieve some performance improvement over jsdom. Our case is more of a server-side rendering: we have a browser library that manipulates the existing DOM very very heavily (mutation observers, tree walkers, attribute modifications, node additions/removals etc). JSDom spends a lot of time in various places.
While testing happy-dom, I am encountering several things, I will be submitting them as issues here as I see them. Here is the first one.
URL
object does not have a searchParams
property, only search
: https://developer.mozilla.org/en-US/docs/Web/API/URL/searchParams
@Mas0nShi is fixing this in this PR 🙂
https://github.com/capricorn86/happy-dom/pull/520
Is there any update on this?
It looks like progress is on-going in that PR, but it's a pretty big change. I could put together a PR that just replaces URL.ts with node's built-in "url"
module.
@oytuntez @jackdomleo7 @kevinbarabash A fix has now been released :slightly_smiling_face:
You can read more about the release here: https://github.com/capricorn86/happy-dom/releases/tag/v7.8.0