Skip to content

Commit

Permalink
bump iro-core version
Browse files Browse the repository at this point in the history
  • Loading branch information
jaames committed Sep 7, 2020
1 parent eaf701c commit 25921cd
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 17 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
### Changelog

#### 5.2.3

Bumps iro-core version to fix server-side environment issues noted in https://github.com/jaames/iro.js/issues/131

#### 5.2.2

Fixes https://github.com/jaames/iro.js/issues/129
Expand Down
2 changes: 1 addition & 1 deletion dist/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { IroBox } from './Box';
import { IroWheel } from './Wheel';
import { IroColorPicker } from './ColorPicker';
declare namespace iro {
const version = "5.2.2";
const version = "5.2.3";
type Color = IroColor;
const Color: typeof IroColor;
type ColorPicker = IroColorPicker;
Expand Down
9 changes: 5 additions & 4 deletions dist/iro.es.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* iro.js v5.2.2
* iro.js v5.2.3
* 2016-2020 James Daniel
* Licensed under MPL 2.0
* github.com/jaames/iro.js
Expand Down Expand Up @@ -1026,7 +1026,7 @@ function getBoxGradients(props, color) {
// Keep track of html <base> elements for resolveSvgUrl
// getElementsByTagName returns a live HTMLCollection, which stays in sync with the DOM tree
// So it only needs to be called once
var BASE_ELEMENTS = document.getElementsByTagName('base');
var BASE_ELEMENTS;
/**
* @desc Resolve an SVG reference URL
* This is required to work around how Safari and iOS webviews handle gradient URLS under certain conditions
Expand All @@ -1041,7 +1041,8 @@ var BASE_ELEMENTS = document.getElementsByTagName('base');
*/

function resolveSvgUrl(url) {
// Sniff useragent string to check if the user is running Safari
if (!BASE_ELEMENTS) { BASE_ELEMENTS = document.getElementsByTagName('base'); } // Sniff useragent string to check if the user is running Safari

var ua = window.navigator.userAgent;
var isSafari = /^((?!chrome|android).)*safari/i.test(ua);
var isIos = /iPhone|iPod|iPad/i.test(ua);
Expand Down Expand Up @@ -1654,7 +1655,7 @@ var IroColorPickerWidget = createWidget(IroColorPicker);

var iro;
(function (iro) {
iro.version = "5.2.2"; // replaced by @rollup/plugin-replace; see rollup.config.js
iro.version = "5.2.3"; // replaced by @rollup/plugin-replace; see rollup.config.js
iro.Color = IroColor;
iro.ColorPicker = IroColorPickerWidget;
var ui;
Expand Down
9 changes: 5 additions & 4 deletions dist/iro.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* iro.js v5.2.2
* iro.js v5.2.3
* 2016-2020 James Daniel
* Licensed under MPL 2.0
* github.com/jaames/iro.js
Expand Down Expand Up @@ -1032,7 +1032,7 @@
// Keep track of html <base> elements for resolveSvgUrl
// getElementsByTagName returns a live HTMLCollection, which stays in sync with the DOM tree
// So it only needs to be called once
var BASE_ELEMENTS = document.getElementsByTagName('base');
var BASE_ELEMENTS;
/**
* @desc Resolve an SVG reference URL
* This is required to work around how Safari and iOS webviews handle gradient URLS under certain conditions
Expand All @@ -1047,7 +1047,8 @@
*/

function resolveSvgUrl(url) {
// Sniff useragent string to check if the user is running Safari
if (!BASE_ELEMENTS) { BASE_ELEMENTS = document.getElementsByTagName('base'); } // Sniff useragent string to check if the user is running Safari

var ua = window.navigator.userAgent;
var isSafari = /^((?!chrome|android).)*safari/i.test(ua);
var isIos = /iPhone|iPod|iPad/i.test(ua);
Expand Down Expand Up @@ -1660,7 +1661,7 @@

var iro;
(function (iro) {
iro.version = "5.2.2"; // replaced by @rollup/plugin-replace; see rollup.config.js
iro.version = "5.2.3"; // replaced by @rollup/plugin-replace; see rollup.config.js
iro.Color = IroColor;
iro.ColorPicker = IroColorPickerWidget;
var ui;
Expand Down
4 changes: 2 additions & 2 deletions dist/iro.min.js

Large diffs are not rendered by default.

9 changes: 5 additions & 4 deletions docs/.vuepress/theme/js/iro.es.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* iro.js v5.2.2
* iro.js v5.2.3
* 2016-2020 James Daniel
* Licensed under MPL 2.0
* github.com/jaames/iro.js
Expand Down Expand Up @@ -1026,7 +1026,7 @@ function getBoxGradients(props, color) {
// Keep track of html <base> elements for resolveSvgUrl
// getElementsByTagName returns a live HTMLCollection, which stays in sync with the DOM tree
// So it only needs to be called once
var BASE_ELEMENTS = document.getElementsByTagName('base');
var BASE_ELEMENTS;
/**
* @desc Resolve an SVG reference URL
* This is required to work around how Safari and iOS webviews handle gradient URLS under certain conditions
Expand All @@ -1041,7 +1041,8 @@ var BASE_ELEMENTS = document.getElementsByTagName('base');
*/

function resolveSvgUrl(url) {
// Sniff useragent string to check if the user is running Safari
if (!BASE_ELEMENTS) { BASE_ELEMENTS = document.getElementsByTagName('base'); } // Sniff useragent string to check if the user is running Safari

var ua = window.navigator.userAgent;
var isSafari = /^((?!chrome|android).)*safari/i.test(ua);
var isIos = /iPhone|iPod|iPad/i.test(ua);
Expand Down Expand Up @@ -1654,7 +1655,7 @@ var IroColorPickerWidget = createWidget(IroColorPicker);

var iro;
(function (iro) {
iro.version = "5.2.2"; // replaced by @rollup/plugin-replace; see rollup.config.js
iro.version = "5.2.3"; // replaced by @rollup/plugin-replace; see rollup.config.js
iro.Color = IroColor;
iro.ColorPicker = IroColorPickerWidget;
var ui;
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"name": "@jaames/iro",
"version": "5.2.2",
"version": "5.2.3",
"description": "A moden, SVG-based color picker widget for JavaScript",
"module": "dist/iro.es.js",
"main": "dist/iro.js",
"types": "dist/index.d.ts",
"dependencies": {
"@irojs/iro-core": "^1.0.2",
"@irojs/iro-core": "^1.0.3",
"preact": "^10.0.0"
},
"devDependencies": {
Expand Down

0 comments on commit 25921cd

Please sign in to comment.