Becklyn / mojave

A library of commonly used JavaScript tools and helpers by Becklyn
BSD 3-Clause "New" or "Revised" License
5 stars 3 forks source link

Polyfill: URLSearchParams #177

Open keichinger opened 5 years ago

keichinger commented 5 years ago

Many modern web apps require the manipulation of the URL, which was previously done using (unmaintainable) implementations that are error-prone and highly custom.

In the future we'd like to use URLSearchParams more often as it provides a rather clean and standardized API that should cover all previous and future use-cases.

Some quick researches has shown

https://bundlephobia.com/result?p=query-string@6.3.0 https://bundlephobia.com/result?p=url-search-params-polyfill@5.0.0 https://bundlephobia.com/result?p=@ungap/url-search-params@0.1.2

We should primarily talk about whether we really want to bundle mojave with an URLSearchParams polyfill or if we should just provide a curated list of recommended libs to use when we need this feature.

apfelbox commented 5 years ago

I would go for a curated list in our docs.