Skip to content

Commit fa46615

Browse files
committed
chore(build): bumping to version 1.19.1
1 parent ec3d57b commit fa46615

11 files changed

+57
-53
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
The release notes tracked in this document are also made available on the [releases page](https://github.com/medialize/URI.js/releases)
44

5+
### 1.19.1 (February 10th 2018) ###
6+
7+
* fixing [`.href()`](http://medialize.github.io/URI.js/docs.html#href) to parse `query` property - [Issue #366](https://github.com/medialize/URI.js/issues/366), [PR #367](https://github.com/medialize/URI.js/issues/367)
8+
59
### 1.19.0 (October 1st 2017) ###
610

711
* adding `.setFragment()` to [query fragment plugin](http://medialize.github.io/URI.js/docs.html#fragment-abuse-query) - [Issue #338](https://github.com/medialize/URI.js/issues/338), [PR #356](https://github.com/medialize/URI.js/issues/356)

bower.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "urijs",
3-
"version": "1.19.0",
3+
"version": "1.19.1",
44
"main": "src/URI.js",
55
"ignore": [
66
".*",

build.js

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
(function($, undefined){
22
window.URL = window.webkitURL || window.URL;
33
window.BlobBuilder = window.BlobBuilder || window.WebKitBlobBuilder || window.MozBlobBuilder;
4-
4+
55
function build(files) {
66
var $out = $('#output'),
77
$progress = $('#prog'),
88
sources = [],
99
connections = [],
1010
source;
11-
11+
1212
$out.parent().hide();
1313
$progress.show().prop('value', 1).text('Loading Files');
14-
14+
1515
for (var i = 0, length = files.length; i < length; i++) {
1616
sources.push("");
1717
(function(i, file){
@@ -20,7 +20,7 @@ function build(files) {
2020
}, "text"));
2121
})(i, files[i]);
2222
}
23-
23+
2424
$.when.apply($, connections).done(function() {
2525
$progress.prop('value', 2).text('Compiling Scripts');
2626
$.post('https://closure-compiler.appspot.com/compile', {
@@ -29,13 +29,13 @@ function build(files) {
2929
output_format: "text",
3030
output_info: "compiled_code"
3131
}, function(data) {
32-
var code = "/*! URI.js v1.19.0 http://medialize.github.io/URI.js/ */\n/* build contains: " + files.join(', ') + " */\n" + data;
32+
var code = "/*! URI.js v1.19.1 http://medialize.github.io/URI.js/ */\n/* build contains: " + files.join(', ') + " */\n" + data;
3333
$progress.hide();
3434
$out.val(code).parent().show();
3535
$out.prev().find('a').remove();
3636
$out.prev().prepend(download(code));
37-
}).error(function() {
38-
alert("Your browser is incapable of cross-domain communication.\nPlease see instructions for manual build below.");
37+
}).error(function() {
38+
alert("Your browser is incapable of cross-domain communication.\nPlease see instructions for manual build below.");
3939
});
4040
});
4141
};
@@ -48,7 +48,7 @@ function download(code) {
4848
a.href = window.URL.createObjectURL(blob);
4949
a.textContent = 'Download';
5050
a.dataset.downloadurl = ['text/javascript', a.download, a.href].join(':');
51-
51+
5252
return a;
5353
};
5454

@@ -70,7 +70,7 @@ $(function(){
7070
var val = $(this).val();
7171
val.length && files.push(val);
7272
});
73-
73+
7474
build(files);
7575
});
7676
});

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "urijs",
3-
"version": "1.19.0",
3+
"version": "1.19.1",
44
"title": "URI.js - Mutating URLs",
55
"author": {
66
"name": "Rodney Rehm",

src/IPv6.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* URI.js - Mutating URLs
33
* IPv6 Support
44
*
5-
* Version: 1.19.0
5+
* Version: 1.19.1
66
*
77
* Author: Rodney Rehm
88
* Web: http://medialize.github.io/URI.js/

src/SecondLevelDomains.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* URI.js - Mutating URLs
33
* Second Level Domain (SLD) Support
44
*
5-
* Version: 1.19.0
5+
* Version: 1.19.1
66
*
77
* Author: Rodney Rehm
88
* Web: http://medialize.github.io/URI.js/

src/URI.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*!
22
* URI.js - Mutating URLs
33
*
4-
* Version: 1.19.0
4+
* Version: 1.19.1
55
*
66
* Author: Rodney Rehm
77
* Web: http://medialize.github.io/URI.js/
@@ -81,7 +81,7 @@
8181
return /^[0-9]+$/.test(value);
8282
}
8383

84-
URI.version = '1.19.0';
84+
URI.version = '1.19.1';
8585

8686
var p = URI.prototype;
8787
var hasOwn = Object.prototype.hasOwnProperty;

src/URI.min.js

+22-22
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/URITemplate.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* URI.js - Mutating URLs
33
* URI Template Support - http://tools.ietf.org/html/rfc6570
44
*
5-
* Version: 1.19.0
5+
* Version: 1.19.1
66
*
77
* Author: Rodney Rehm
88
* Web: http://medialize.github.io/URI.js/

src/jquery.URI.js

+14-14
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* URI.js - Mutating URLs
33
* jQuery Plugin
44
*
5-
* Version: 1.19.0
5+
* Version: 1.19.1
66
*
77
* Author: Rodney Rehm
88
* Web: http://medialize.github.io/URI.js/jquery-uri-plugin.html
@@ -31,7 +31,7 @@
3131

3232
var comparable = {};
3333
var compare = {
34-
// equals
34+
// equals
3535
'=': function(value, target) {
3636
return value === target;
3737
},
@@ -51,7 +51,7 @@
5151
// add trailing slash so /dir/ will match the deep-end as well
5252
value += '/';
5353
}
54-
54+
5555
return !!(value + '').match(new RegExp(escapeRegEx(target), 'i'));
5656
},
5757
'equals:': function(uri, target) {
@@ -74,7 +74,7 @@
7474
// compensate ambiguous <input> that is not an image
7575
return undefined;
7676
}
77-
77+
7878
// NOTE: as we use a static mapping from element to attribute,
7979
// the HTML5 attribute issue should not come up again
8080
// https://github.com/medialize/URI.js/issues/69
@@ -120,17 +120,17 @@
120120
var $this = this.first();
121121
var elem = $this.get(0);
122122
var property = getUriProperty(elem);
123-
123+
124124
if (!property) {
125125
throw new Error('Element "' + elem.nodeName + '" does not have either property: href, src, action, cite');
126126
}
127-
127+
128128
if (uri !== undefined) {
129129
var old = $this.data('uri');
130130
if (old) {
131131
return old.href(uri);
132132
}
133-
133+
134134
if (!(uri instanceof URI)) {
135135
uri = URI(uri || '');
136136
}
@@ -142,7 +142,7 @@
142142
uri = URI($this.attr(property) || '');
143143
}
144144
}
145-
145+
146146
uri._dom_element = elem;
147147
uri._dom_attribute = property;
148148
uri.normalize();
@@ -164,7 +164,7 @@
164164
this._string = URI.build(this._parts);
165165
this._deferred_build = false;
166166
}
167-
167+
168168
return this;
169169
};
170170

@@ -173,12 +173,12 @@
173173
var pseudoArgs = /^([a-zA-Z]+)\s*([\^\$*]?=|:)\s*(['"]?)(.+)\3|^\s*([a-zA-Z0-9]+)\s*$/;
174174
function uriPseudo (elem, text) {
175175
var match, property, uri;
176-
176+
177177
// skip anything without src|href|action and bad :uri() syntax
178178
if (!getUriProperty(elem) || !text) {
179179
return false;
180180
}
181-
181+
182182
match = text.match(pseudoArgs);
183183

184184
if (!match || (!match[5] && match[2] !== ':' && !compare[match[2]])) {
@@ -188,7 +188,7 @@
188188
}
189189

190190
uri = $(elem).uri();
191-
191+
192192
if (match[5]) {
193193
return uri.is(match[5]);
194194
} else if (match[2] === ':') {
@@ -197,15 +197,15 @@
197197
// filers seem to fail silently
198198
return false;
199199
}
200-
200+
201201
return compare[property](uri, match[4]);
202202
} else {
203203
property = match[1].toLowerCase();
204204
if (!comparable[property]) {
205205
// filers seem to fail silently
206206
return false;
207207
}
208-
208+
209209
return compare[match[2]](uri[property](), match[4], property);
210210
}
211211

src/jquery.URI.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)