Skip to content

Commit 5bd57cc

Browse files
author
imgix-git-robot
committed
chore(release): 3.0.3
### [3.0.3](v3.0.2...v3.0.3) (2022-10-03) ### Bug Fixes * **deps:** update js-core to v3.6.1-rc.1 ([c75ae9e](c75ae9e))
1 parent c75ae9e commit 5bd57cc

File tree

5 files changed

+29
-14
lines changed

5 files changed

+29
-14
lines changed

dist/imgix-vue.esm.js

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -782,6 +782,9 @@ function parseQuery(paramsStr) {
782782
return obj;
783783
}
784784
function encodeQueryItem(key, val) {
785+
if (typeof val === "number" || typeof val === "boolean") {
786+
val = String(val);
787+
}
785788
if (!val) {
786789
return encodeQueryKey(key);
787790
}
@@ -889,10 +892,12 @@ $URL.prototype.toString = function toString () {
889892
};
890893

891894
Object.defineProperties( $URL.prototype, prototypeAccessors );
895+
var PROTOCOL_REGEX = /^\w+:(\/\/)?/;
896+
var PROTOCOL_RELATIVE_REGEX = /^\/\/[^/]+/;
892897
function hasProtocol(inputStr, acceptProtocolRelative) {
893898
if ( acceptProtocolRelative === void 0 ) acceptProtocolRelative = false;
894899

895-
return /^\w+:\/\/.+/.test(inputStr) || acceptProtocolRelative && /^\/\/[^/]+/.test(inputStr);
900+
return PROTOCOL_REGEX.test(inputStr) || acceptProtocolRelative && PROTOCOL_RELATIVE_REGEX.test(inputStr);
896901
}
897902
var TRAILING_SLASH_RE = /\/$|\/\?/;
898903
function hasTrailingSlash(input, queryParams) {
@@ -942,7 +947,7 @@ function parseURL(input, defaultProto) {
942947
var ref = (input.replace(/\\/g, "/").match(/([^:/]+:)?\/\/([^/@]+@)?(.*)/) || []).splice(1);
943948
var protocol = ref[0]; if ( protocol === void 0 ) protocol = "";
944949
var auth = ref[1];
945-
var hostAndPath = ref[2];
950+
var hostAndPath = ref[2]; if ( hostAndPath === void 0 ) hostAndPath = "";
946951
var ref$1 = (hostAndPath.match(/([^/?#]*)(.*)?/) || []).splice(1);
947952
var host = ref$1[0]; if ( host === void 0 ) host = "";
948953
var path = ref$1[1]; if ( path === void 0 ) path = "";
@@ -1149,7 +1154,7 @@ function _nonIterableRest() {
11491154
}
11501155

11511156
// package version used in the ix-lib parameter
1152-
var VERSION$1 = '3.6.0'; // regex pattern used to determine if a domain is valid
1157+
var VERSION$1 = '3.6.1-rc.1'; // regex pattern used to determine if a domain is valid
11531158

11541159
var DOMAIN_REGEX = /^(?:[a-z\d\-_]{1,62}\.){0,125}(?:[a-z\d](?:\-(?=\-*[a-z\d])|[a-z]|\d){0,62}\.)[a-z\d]{1,63}$/i; // minimum generated srcset width
11551160

@@ -1672,7 +1677,7 @@ var IxImg = defineComponent({
16721677

16731678
function objectWithoutProperties (obj, exclude) { var target = {}; for (var k in obj) if (Object.prototype.hasOwnProperty.call(obj, k) && exclude.indexOf(k) === -1) target[k] = obj[k]; return target; }
16741679
// Do not change this
1675-
var VERSION = '3.0.1';
1680+
var VERSION = '3.0.2';
16761681
var clientOptionDefaults = {
16771682
includeLibraryParam: true,
16781683
};

dist/imgix-vue.min.js

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -783,6 +783,9 @@ var VueImgix = (function (exports, vue) {
783783
return obj;
784784
}
785785
function encodeQueryItem(key, val) {
786+
if (typeof val === "number" || typeof val === "boolean") {
787+
val = String(val);
788+
}
786789
if (!val) {
787790
return encodeQueryKey(key);
788791
}
@@ -890,10 +893,12 @@ var VueImgix = (function (exports, vue) {
890893
};
891894

892895
Object.defineProperties( $URL.prototype, prototypeAccessors );
896+
var PROTOCOL_REGEX = /^\w+:(\/\/)?/;
897+
var PROTOCOL_RELATIVE_REGEX = /^\/\/[^/]+/;
893898
function hasProtocol(inputStr, acceptProtocolRelative) {
894899
if ( acceptProtocolRelative === void 0 ) acceptProtocolRelative = false;
895900

896-
return /^\w+:\/\/.+/.test(inputStr) || acceptProtocolRelative && /^\/\/[^/]+/.test(inputStr);
901+
return PROTOCOL_REGEX.test(inputStr) || acceptProtocolRelative && PROTOCOL_RELATIVE_REGEX.test(inputStr);
897902
}
898903
var TRAILING_SLASH_RE = /\/$|\/\?/;
899904
function hasTrailingSlash(input, queryParams) {
@@ -943,7 +948,7 @@ var VueImgix = (function (exports, vue) {
943948
var ref = (input.replace(/\\/g, "/").match(/([^:/]+:)?\/\/([^/@]+@)?(.*)/) || []).splice(1);
944949
var protocol = ref[0]; if ( protocol === void 0 ) protocol = "";
945950
var auth = ref[1];
946-
var hostAndPath = ref[2];
951+
var hostAndPath = ref[2]; if ( hostAndPath === void 0 ) hostAndPath = "";
947952
var ref$1 = (hostAndPath.match(/([^/?#]*)(.*)?/) || []).splice(1);
948953
var host = ref$1[0]; if ( host === void 0 ) host = "";
949954
var path = ref$1[1]; if ( path === void 0 ) path = "";
@@ -1150,7 +1155,7 @@ var VueImgix = (function (exports, vue) {
11501155
}
11511156

11521157
// package version used in the ix-lib parameter
1153-
var VERSION$1 = '3.6.0'; // regex pattern used to determine if a domain is valid
1158+
var VERSION$1 = '3.6.1-rc.1'; // regex pattern used to determine if a domain is valid
11541159

11551160
var DOMAIN_REGEX = /^(?:[a-z\d\-_]{1,62}\.){0,125}(?:[a-z\d](?:\-(?=\-*[a-z\d])|[a-z]|\d){0,62}\.)[a-z\d]{1,63}$/i; // minimum generated srcset width
11561161

@@ -1673,7 +1678,7 @@ var VueImgix = (function (exports, vue) {
16731678

16741679
function objectWithoutProperties (obj, exclude) { var target = {}; for (var k in obj) if (Object.prototype.hasOwnProperty.call(obj, k) && exclude.indexOf(k) === -1) target[k] = obj[k]; return target; }
16751680
// Do not change this
1676-
var VERSION = '3.0.1';
1681+
var VERSION = '3.0.2';
16771682
var clientOptionDefaults = {
16781683
includeLibraryParam: true,
16791684
};

dist/imgix-vue.umd.js

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -786,6 +786,9 @@
786786
return obj;
787787
}
788788
function encodeQueryItem(key, val) {
789+
if (typeof val === "number" || typeof val === "boolean") {
790+
val = String(val);
791+
}
789792
if (!val) {
790793
return encodeQueryKey(key);
791794
}
@@ -893,10 +896,12 @@
893896
};
894897

895898
Object.defineProperties( $URL.prototype, prototypeAccessors );
899+
var PROTOCOL_REGEX = /^\w+:(\/\/)?/;
900+
var PROTOCOL_RELATIVE_REGEX = /^\/\/[^/]+/;
896901
function hasProtocol(inputStr, acceptProtocolRelative) {
897902
if ( acceptProtocolRelative === void 0 ) acceptProtocolRelative = false;
898903

899-
return /^\w+:\/\/.+/.test(inputStr) || acceptProtocolRelative && /^\/\/[^/]+/.test(inputStr);
904+
return PROTOCOL_REGEX.test(inputStr) || acceptProtocolRelative && PROTOCOL_RELATIVE_REGEX.test(inputStr);
900905
}
901906
var TRAILING_SLASH_RE = /\/$|\/\?/;
902907
function hasTrailingSlash(input, queryParams) {
@@ -946,7 +951,7 @@
946951
var ref = (input.replace(/\\/g, "/").match(/([^:/]+:)?\/\/([^/@]+@)?(.*)/) || []).splice(1);
947952
var protocol = ref[0]; if ( protocol === void 0 ) protocol = "";
948953
var auth = ref[1];
949-
var hostAndPath = ref[2];
954+
var hostAndPath = ref[2]; if ( hostAndPath === void 0 ) hostAndPath = "";
950955
var ref$1 = (hostAndPath.match(/([^/?#]*)(.*)?/) || []).splice(1);
951956
var host = ref$1[0]; if ( host === void 0 ) host = "";
952957
var path = ref$1[1]; if ( path === void 0 ) path = "";
@@ -1153,7 +1158,7 @@
11531158
}
11541159

11551160
// package version used in the ix-lib parameter
1156-
var VERSION$1 = '3.6.0'; // regex pattern used to determine if a domain is valid
1161+
var VERSION$1 = '3.6.1-rc.1'; // regex pattern used to determine if a domain is valid
11571162

11581163
var DOMAIN_REGEX = /^(?:[a-z\d\-_]{1,62}\.){0,125}(?:[a-z\d](?:\-(?=\-*[a-z\d])|[a-z]|\d){0,62}\.)[a-z\d]{1,63}$/i; // minimum generated srcset width
11591164

@@ -1676,7 +1681,7 @@
16761681

16771682
function objectWithoutProperties (obj, exclude) { var target = {}; for (var k in obj) if (Object.prototype.hasOwnProperty.call(obj, k) && exclude.indexOf(k) === -1) target[k] = obj[k]; return target; }
16781683
// Do not change this
1679-
var VERSION = '3.0.1';
1684+
var VERSION = '3.0.2';
16801685
var clientOptionDefaults = {
16811686
includeLibraryParam: true,
16821687
};

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"module": "dist/imgix-vue.esm.js",
2424
"jsnext:main": "dist/imgix-vue.esm.js",
2525
"unpkg": "dist/imgix-vue.min.js",
26-
"version": "3.0.2",
26+
"version": "3.0.3",
2727
"scripts": {
2828
"serve": "vue-cli-service serve",
2929
"build": "rollup --config build/rollup.config.js",

src/plugins/imgix-vue/imgix-vue.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import {
1313
} from './types';
1414

1515
// Do not change this
16-
const VERSION = '3.0.2';
16+
const VERSION = '3.0.3';
1717

1818
const clientOptionDefaults = {
1919
includeLibraryParam: true,

0 commit comments

Comments
 (0)