Skip to content

Releases: jillix/url.js

2.3.0

26 Apr 08:38
Compare
Choose a tag to compare

Added the removeQuery method

2.2.0: Handle popstate and other handy features.

24 Apr 11:57
Compare
Choose a tag to compare

Support for listening for popstate event and deleting the hash from url.

2.1.0

06 Feb 18:08
Compare
Choose a tag to compare

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

04 Jan 09:37
Compare
Choose a tag to compare
  • 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.

Fixes #17, #18. 🎉

1.2.0

14 Aug 15:20
Compare
Choose a tag to compare

Removed duplicated stringifing . Fixed #14

Like I commented out here, this was an old bug in the parseQuery function which was fixed. However, I forgot to do this change which was actually hiding the issue.

Now, everything should run smoothly! 💫

1.1.0

19 Mar 09:47
Compare
Choose a tag to compare

1.0.1

29 Jan 11:03
Compare
Choose a tag to compare
  • Fix in documentation.

1.0.0

29 Jan 10:55
Compare
Choose a tag to compare
  • Fixes #5. Added Url.version option.
  • Fixed JSDoc comments and updated docs. Fixed #7.
  • Removed the changelog from the README file.
  • Added the minified script.
  • Added .gitignore
  • New project page layout.

We don't love IE, but we added compatibility

28 Jan 19:45
Compare
Choose a tag to compare
  • Handle ? in search string (parseQuery method)
  • IE compatibility (#3).

We love docs. No undefined!

17 Jun 08:05
Compare
Choose a tag to compare
  • Fixed a bug in the parseQuery method
  • Updated comments
  • Minor syntax change
  • Encode values when stringifying the query