Skip to content

Commit

Permalink
chore(version): bump to v0.7.15
Browse files Browse the repository at this point in the history
  • Loading branch information
kt3k committed Feb 27, 2020
1 parent 49b7975 commit 940fce9
Show file tree
Hide file tree
Showing 11 changed files with 74 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .bmp.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
version: 0.7.14
version: 0.7.15
commit: 'chore(version): bump to v%.%.%'
files:
src/core.js: 'version: "%.%.%"'
Expand Down
17 changes: 15 additions & 2 deletions c3.esm.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* @license C3.js v0.7.14 | (c) C3 Team and other contributors | http://c3js.org/ */
/* @license C3.js v0.7.15 | (c) C3 Team and other contributors | http://c3js.org/ */
import * as d3 from 'd3';

function ChartInternal(api) {
Expand Down Expand Up @@ -1069,7 +1069,7 @@ Axis.prototype.redraw = function redraw(duration, isHidden) {
};

var c3 = {
version: "0.7.14",
version: "0.7.15",
chart: {
fn: Chart.prototype,
internal: {
Expand Down Expand Up @@ -6103,7 +6103,20 @@ ChartInternal.prototype.convertJsonToData = function (json, keys) {
}
return data;
};
/**
* Finds value from the given nested object by the given path.
* If it's not found, then this returns undefined.
* @param {Object} object the object
* @param {string} path the path
*/
ChartInternal.prototype.findValueInJson = function (object, path) {
if (path in object) {
// If object has a key that contains . or [], return the key's value
// instead of searching for an inner object.
// See https://github.com/c3js/c3/issues/1691 for details.
return object[path];
}

path = path.replace(/\[(\w+)\]/g, '.$1'); // convert indexes to properties (replace [] with .)
path = path.replace(/^\./, ''); // strip a leading dot
var pathArray = path.split('.');
Expand Down
18 changes: 16 additions & 2 deletions c3.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* @license C3.js v0.7.14 | (c) C3 Team and other contributors | http://c3js.org/ */
/* @license C3.js v0.7.15 | (c) C3 Team and other contributors | http://c3js.org/ */
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(factory) :
Expand Down Expand Up @@ -1278,7 +1278,7 @@
};

var c3 = {
version: "0.7.14",
version: "0.7.15",
chart: {
fn: Chart.prototype,
internal: {
Expand Down Expand Up @@ -6844,8 +6844,22 @@

return data;
};
/**
* Finds value from the given nested object by the given path.
* If it's not found, then this returns undefined.
* @param {Object} object the object
* @param {string} path the path
*/


ChartInternal.prototype.findValueInJson = function (object, path) {
if (path in object) {
// If object has a key that contains . or [], return the key's value
// instead of searching for an inner object.
// See https://github.com/c3js/c3/issues/1691 for details.
return object[path];
}

path = path.replace(/\[(\w+)\]/g, '.$1'); // convert indexes to properties (replace [] with .)

path = path.replace(/^\./, ''); // strip a leading dot
Expand Down
4 changes: 2 additions & 2 deletions c3.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion component.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "c3",
"repo": "masayuki0812/c3",
"description": "A D3-based reusable chart library",
"version": "0.7.14",
"version": "0.7.15",
"keywords": [],
"dependencies": {
"mbostock/d3": "v5.0.0"
Expand Down
4 changes: 4 additions & 0 deletions docs/index.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@

%h3 Change Log
%ul
%li
<a href="https://github.com/c3js/c3/releases/tag/v0.7.15">v0.7.15</a><span class="gray">&nbsp;-&nbsp;2020-02-28</span>
%ul
%li Bug fixes.
%li
<a href="https://github.com/c3js/c3/releases/tag/v0.7.14">v0.7.14</a><span class="gray">&nbsp;-&nbsp;2020-02-24</span>
%ul
Expand Down
17 changes: 15 additions & 2 deletions docs/js/c3.esm.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* @license C3.js v0.7.14 | (c) C3 Team and other contributors | http://c3js.org/ */
/* @license C3.js v0.7.15 | (c) C3 Team and other contributors | http://c3js.org/ */
import * as d3 from 'd3';

function ChartInternal(api) {
Expand Down Expand Up @@ -1069,7 +1069,7 @@ Axis.prototype.redraw = function redraw(duration, isHidden) {
};

var c3 = {
version: "0.7.14",
version: "0.7.15",
chart: {
fn: Chart.prototype,
internal: {
Expand Down Expand Up @@ -6103,7 +6103,20 @@ ChartInternal.prototype.convertJsonToData = function (json, keys) {
}
return data;
};
/**
* Finds value from the given nested object by the given path.
* If it's not found, then this returns undefined.
* @param {Object} object the object
* @param {string} path the path
*/
ChartInternal.prototype.findValueInJson = function (object, path) {
if (path in object) {
// If object has a key that contains . or [], return the key's value
// instead of searching for an inner object.
// See https://github.com/c3js/c3/issues/1691 for details.
return object[path];
}

path = path.replace(/\[(\w+)\]/g, '.$1'); // convert indexes to properties (replace [] with .)
path = path.replace(/^\./, ''); // strip a leading dot
var pathArray = path.split('.');
Expand Down
18 changes: 16 additions & 2 deletions docs/js/c3.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* @license C3.js v0.7.14 | (c) C3 Team and other contributors | http://c3js.org/ */
/* @license C3.js v0.7.15 | (c) C3 Team and other contributors | http://c3js.org/ */
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(factory) :
Expand Down Expand Up @@ -1278,7 +1278,7 @@
};

var c3 = {
version: "0.7.14",
version: "0.7.15",
chart: {
fn: Chart.prototype,
internal: {
Expand Down Expand Up @@ -6844,8 +6844,22 @@

return data;
};
/**
* Finds value from the given nested object by the given path.
* If it's not found, then this returns undefined.
* @param {Object} object the object
* @param {string} path the path
*/


ChartInternal.prototype.findValueInJson = function (object, path) {
if (path in object) {
// If object has a key that contains . or [], return the key's value
// instead of searching for an inner object.
// See https://github.com/c3js/c3/issues/1691 for details.
return object[path];
}

path = path.replace(/\[(\w+)\]/g, '.$1'); // convert indexes to properties (replace [] with .)

path = path.replace(/^\./, ''); // strip a leading dot
Expand Down
4 changes: 2 additions & 2 deletions docs/js/c3.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "c3",
"version": "0.7.14",
"version": "0.7.15",
"description": "D3-based reusable chart library",
"main": "c3.js",
"files": [
Expand Down
2 changes: 1 addition & 1 deletion src/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import {
} from './util';

var c3 = {
version: "0.7.14",
version: "0.7.15",
chart: {
fn: Chart.prototype,
internal: {
Expand Down

0 comments on commit 940fce9

Please sign in to comment.