Releases: jillix/url.js
Releases · jillix/url.js
2.3.0
Added the removeQuery method
2.2.0: Handle popstate and other handy features.
Support for listening for popstate event and deleting the hash from url.
2.1.0
Adding support for pushState
(keeping the old url in the history).
The following methods got a new argument:
-
updateSearchParam(name, value, push)
-
pathname(path, push)
-
_updateAll(url, push)
(used internally)
If the push
value is truly, then the pushState
method will be used to change the url. 🍀
2.0.0
- Parse truly values in querystring (e.g. ?bar&foo=42 => bar is
true
) - Stringify truly values ({ bar: true, foo: 42 } => foo=42&bar)
- Small syntax changes.
- Return undefined for fields that do not exist in the querystring snippet.
- Added tests
- Generated docs using Blah. 📝 📖
- Added the
hash
method.
1.2.0
1.1.0
- Handle equal sign in values. Thanks @qgustavor!
1.0.1
- Fix in documentation.
1.0.0
We don't love IE, but we added compatibility
- Handle
?
in search string (parseQuery
method) - IE compatibility (#3).
We love docs. No undefined!
- Fixed a bug in the
parseQuery
method - Updated comments
- Minor syntax change
- Encode values when stringifying the query