Releases: catberry/catberry-uri
Release list
Updated dependencies and add new node versions to CI
Fix wrong %2F handling in path
Fix wrong parsing when a path component has %2F in its value (issue #16)
'+' now is percent-encoded in query string
The RFC 3986 basically tells us that we need to percent encode only delimiters of the URI part and + is not a delimiter (in fact, only &, # are at that point).
But it turns out, there are some platforms that use entity URL encoding algorithm for a URI and it works slightly different replacing + with a space character. Therefore, using + in query string actually breaks the logic. For instance, it happens in PHP.
So, we decided to encode + to %2B like other platforms do even if it's not a part of the standard and the standard also does not prohibit this.
Add `create` methods into the URI instance
Now if you have just a URI instance, you don't have to require URI classes to build/change the URI.
uri.authority = uri.createAuthority();
uri.authority.userInfo = uri.createUserInfo()
uri.query = uri.createQuery('?some=value');Rewritten in ES2015, factory methods
Dropped node 0.10 support
Fixed wrong parsing of URI path that contains %2F
Fixed wrong URI path parsing when it contains '%2F' (issue #6).
Fix license in package.json
Update dependencies and add CI build for new versions of Node
2.1.5 2.1.5