Skip to content

Releases: catberry/catberry-uri

Updated dependencies and add new node versions to CI

Choose a tag to compare

@rdner rdner released this 18 Mar 16:51
Merge pull request #19 from catberry/develop

Release 3.2.2

Fix wrong %2F handling in path

Choose a tag to compare

@rdner rdner released this 03 Oct 11:01

Fix wrong parsing when a path component has %2F in its value (issue #16)

'+' now is percent-encoded in query string

Choose a tag to compare

@rdner rdner released this 20 Sep 14:50

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

Choose a tag to compare

@rdner rdner released this 13 Mar 13:50

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

Choose a tag to compare

@rdner rdner released this 10 Mar 20:09

The entire source code base is rewritten in ES2015/ES6, thanks to @reenko (issue #9)
Added factory methods for creating URI components:

const URI = require('catberry-uri').URI;
URI.createAuthority();
URI.createUserInfo();
URI.createQuery();

Dropped node 0.10 support

Choose a tag to compare

@rdner rdner released this 12 Dec 22:22
2.1.8

2.1.8

Fixed wrong parsing of URI path that contains %2F

Choose a tag to compare

@rdner rdner released this 12 Dec 22:22

Fixed wrong URI path parsing when it contains '%2F' (issue #6).

Fix license in package.json

Choose a tag to compare

@rdner rdner released this 11 Nov 14:14
2.1.6

2.1.6

Update dependencies and add CI build for new versions of Node

Choose a tag to compare

@rdner rdner released this 11 Nov 06:01
2.1.5

2.1.5

Update Travis configuration

Choose a tag to compare

@rdner rdner released this 16 Aug 07:11
2.1.4

2.1.4