Skip to content

Commit

Permalink
version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
rodneyrehm committed Aug 14, 2013
2 parents fa3617c + 95c6147 commit 2bdf950
Show file tree
Hide file tree
Showing 13 changed files with 160 additions and 105 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,11 @@ URI.js is published under the [MIT license](http://www.opensource.org/licenses/m

## Changelog ##

### 1.11.2 (August 14th 2013) ###

* fixing regression for Node.js introduced by `fixing unsafe eval by using UMD's root` - ([Issue #107](https://github.com/medialize/URI.js/issues/107))
* fixing parser to accept malformed userinfo (non-encoded email address) - ([Issue #108](https://github.com/medialize/URI.js/issues/108))

### 1.11.1 (August 13th 2013) ###

* fixing inconsistent [`.relativeTo()`](http://medialize.github.com/URI.js/docs.html#relativeto) results caused by inconsistent URI component handling - ([Issue #103](https://github.com/medialize/URI.js/issues/103))
Expand Down
2 changes: 1 addition & 1 deletion URI.jquery.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"URI-manipulation",
"URL-manipulation"
],
"version": "1.11.1",
"version": "1.11.2",
"author": {
"name": "Rodney Rehm",
"url": "http://rodneyrehm.de/en/"
Expand Down
2 changes: 1 addition & 1 deletion build.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ function build(files) {
output_format: "text",
output_info: "compiled_code"
}, function(data) {
var code = "/*! URI.js v1.11.1 http://medialize.github.com/URI.js/ */\n/* build contains: " + files.join(', ') + " */\n" + data;
var code = "/*! URI.js v1.11.2 http://medialize.github.com/URI.js/ */\n/* build contains: " + files.join(', ') + " */\n" + data;
$progress.hide();
$out.val(code).parent().show();
$out.prev().find('a').remove();
Expand Down
2 changes: 1 addition & 1 deletion component.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "URIjs",
"version": "1.11.1",
"version": "1.11.2",
"main": [
"src/URI.js",
"src/IPv6.js",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "URIjs",
"version": "1.11.1",
"version": "1.11.2",
"title": "URI.js - Mutating URLs",
"author": {
"name": "Rodney Rehm",
Expand Down
13 changes: 7 additions & 6 deletions src/IPv6.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* URI.js - Mutating URLs
* IPv6 Support
*
* Version: 1.11.1
* Version: 1.11.2
*
* Author: Rodney Rehm
* Web: http://medialize.github.com/URI.js/
Expand Down Expand Up @@ -36,7 +36,7 @@ console.log(_in, _out, _expected, _out === _expected);
*/

// save current IPv6 variable, if any
var _IPv6 = root.IPv6;
var _IPv6 = root && root.IPv6;

function best(address) {
// based on:
Expand Down Expand Up @@ -171,10 +171,11 @@ function best(address) {
};

function noConflict(){
if (root.IPv6 === this) {
root.IPv6 = _IPv6;
}
return this;
if (root.IPv6 === this) {
root.IPv6 = _IPv6;
}

return this;
};

return {
Expand Down
4 changes: 2 additions & 2 deletions src/SecondLevelDomains.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* URI.js - Mutating URLs
* Second Level Domain (SLD) Support
*
* Version: 1.11.1
* Version: 1.11.2
*
* Author: Rodney Rehm
* Web: http://medialize.github.com/URI.js/
Expand All @@ -29,7 +29,7 @@
"use strict";

// save current SecondLevelDomains variable, if any
var _SecondLevelDomains = root.SecondLevelDomains;
var _SecondLevelDomains = root && root.SecondLevelDomains;

var hasOwn = Object.prototype.hasOwnProperty;
var SLD = {
Expand Down
45 changes: 23 additions & 22 deletions src/URI.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*!
* URI.js - Mutating URLs
*
* Version: 1.11.1
* Version: 1.11.2
*
* Author: Rodney Rehm
* Web: http://medialize.github.com/URI.js/
Expand All @@ -27,7 +27,7 @@
"use strict";

// save current URI variable, if any
var _URI = root.URI;
var _URI = root && root.URI;

function URI(url, base) {
// Allow instantiation without the 'new' keyword
Expand Down Expand Up @@ -451,8 +451,10 @@ URI.parseAuthority = function(string, parts) {
};
URI.parseUserinfo = function(string, parts) {
// extract username:password
var pos = string.indexOf('@');
var firstSlash = string.indexOf('/');
var pos = firstSlash > -1
? string.lastIndexOf('@', firstSlash)
: string.indexOf('@');
var t;

// authority@ must come before /path
Expand Down Expand Up @@ -781,30 +783,29 @@ URI.ensureValidHostname = function(v) {

// noConflict
URI.noConflict = function(removeAll) {
if(removeAll){
var unconflicted = {
URI: this.noConflict()
};
if (removeAll) {
var unconflicted = {
URI: this.noConflict()
};

if(URITemplate && typeof URITemplate.noConflict == "function") {
unconflicted.URITemplate = URITemplate.noConflict();
}
if(IPv6 && typeof IPv6.noConflict == "function") {
unconflicted.IPv6 = IPv6.noConflict();
}
if(SecondLevelDomains && typeof SecondLevelDomains.noConflict == "function") {
unconflicted.SecondLevelDomains = SecondLevelDomains.noConflict();
}
if (URITemplate && typeof URITemplate.noConflict == "function") {
unconflicted.URITemplate = URITemplate.noConflict();
}

if (IPv6 && typeof IPv6.noConflict == "function") {
unconflicted.IPv6 = IPv6.noConflict();
}

if (SecondLevelDomains && typeof SecondLevelDomains.noConflict == "function") {
unconflicted.SecondLevelDomains = SecondLevelDomains.noConflict();
}

return unconflicted;
}
else {
if (root.URI === this) {
root.URI = _URI;
return unconflicted;
} else if (root.URI === this) {
root.URI = _URI;
}

return this;
}
};

p.build = function(deferBuild) {
Expand Down
Loading

0 comments on commit 2bdf950

Please sign in to comment.