Skip to content

Commit

Permalink
chore(release): 3.4.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Sherwin H committed Dec 10, 2019
1 parent 98a7d7b commit d4c2b6f
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 9 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

<a name="3.4.2"></a>
### [3.4.2](https://github.com/imgix/imgix.js/compare/v3.4.1...v3.4.2) (2019-12-09)

* fix: skip over tags that fail validations ([#175](https://github.com/imgix/imgix.js/pull/175))

<a name="3.4.1"></a>
## [3.4.1](https://github.com/imgix/imgix.js/compare/v3.4.0...v3.4.1) (2019-05-24)

Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "imgix.js",
"version": "3.4.1",
"version": "3.4.2",
"homepage": "http://www.imgix.com/imgix-js",
"authors": [
"imgix"
Expand Down
18 changes: 15 additions & 3 deletions dist/imgix.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ var ImgixTag = (function() {
this.settings = opts || {};

if (!this.el) {
throw new Error('ImgixTag must be passed a DOM element.');
console.warn('ImgixTag must be passed a DOM element.');
return;
}

if (this.el.hasAttribute('ix-initialized') && !this.settings.force) {
Expand All @@ -22,9 +23,20 @@ var ImgixTag = (function() {
el.getAttribute(this.settings.hostInputAttribute) || this.settings.host;

if (this.ixPathVal && !this.ixHostVal) {
throw new Error(
console.warn(
'You must set a value for `imgix.config.host` or specify an `ix-host` attribute to use `ix-path` and `ix-params`.'
);
return;
}

if (typeof this.ixPathVal === 'string' && this.ixPathVal.length == 0) {
console.warn('`ix-path` cannot accept a value of empty string ""');
return;
}

if (typeof this.ixSrcVal === 'string' && this.ixSrcVal.length == 0) {
console.warn('`ix-src` cannot accept a value of empty string ""');
return;
}

this.baseParams = this._extractBaseParams();
Expand Down Expand Up @@ -212,7 +224,7 @@ var ImgixTag = require('./ImgixTag.js'),
util = require('./util.js'),
defaultConfig = require('./defaultConfig');

var VERSION = '3.4.1';
var VERSION = '3.4.2';

function getMetaTagValue(propertyName) {
var metaTag = document.querySelector(
Expand Down
2 changes: 1 addition & 1 deletion dist/imgix.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "imgix.js",
"version": "3.4.1",
"version": "3.4.2",
"description": "imgix.js is a dependency-free JavaScript library that allows you to easily use the imgix API to make images on your site or app responsive to device size and pixel density. imgix.js allows for intuitive use of imgix features such as text formatting, color palette extraction, color adjustments, effects, and watermarking. imgix.js requires an imgix account to use your own images. Sign up at imgix.com",
"license": "BSD-2",
"license": "BSD-2-Clause",
"repository": {
"type": "git",
"url": "git://github.com/imgix/imgix.js.git"
Expand Down
2 changes: 1 addition & 1 deletion src/imgix.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ var ImgixTag = require('./ImgixTag.js'),
util = require('./util.js'),
defaultConfig = require('./defaultConfig');

var VERSION = '3.4.1';
var VERSION = '3.4.2';

function getMetaTagValue(propertyName) {
var metaTag = document.querySelector(
Expand Down

0 comments on commit d4c2b6f

Please sign in to comment.