loteoo / hyperstatic

Routing, prerendering, code splitting and prefetching for hyperapp
https://hyperstatic.dev/
MIT License
59 stars 5 forks source link

remove query-string dependancy, npm audit #8

Closed skipkayhil closed 5 years ago

skipkayhil commented 5 years ago

Fixes #7

Here's my first take: make a fake URL and then get path and searchParams from it. I don't really like the fake url in the long run but I think it's the best solution right now

I was curious if the path that gets passed around could be replaced by a full URL but the to prop in Link is the origin of the parameter. So for that to work, the full URL including the to would have to be known by the Link or it would have to be added somewhere along the way (after TriggerPageLoad and before bundle.Init)

loteoo commented 5 years ago

Sorry for the delay, I wanted to test properly before merging, this works perfectly thanks!