Skip to content

Commit

Permalink
1.0.1 (#50)
Browse files Browse the repository at this point in the history
* rollup-plugin-buble -> @rollup/plugin-buble

`rollup-plugin-buble` has been deprecated.

* 1.0.1
  • Loading branch information
Xenonym committed Jan 13, 2020
1 parent 5ca02ac commit 74bdbba
Show file tree
Hide file tree
Showing 8 changed files with 79 additions and 55 deletions.
13 changes: 7 additions & 6 deletions dist/jsonpanel-next.cjs.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*!
* jsonpanel-next v1.0.0
* (c) 2019 Tan Zhen Yong
* jsonpanel-next v1.0.1
* (c) 2020 Tan Zhen Yong
* Released under the MIT License.
*/

Expand Down Expand Up @@ -142,14 +142,15 @@ var ExpandablePair = /*@__PURE__*/(function (Pair) {

ExpandablePair.prototype.expand = function expand () {
// Open new panel
Panel.renderToEl(this.el, {data: this.val});
Panel.renderToEl(this.el, {
data: this.val,
valTransformer: this.valTransformer
});
this.el.classList.add('expanded');
};

ExpandablePair.prototype.collapse = function collapse () {
this.el
.querySelectorAll('.panel')
.forEach(function (e) { return e.parentNode.removeChild(e); });
this.el.querySelectorAll('.panel').forEach(function (e) { return e.remove(); });
this.el.classList.remove('expanded');
};

Expand Down
13 changes: 7 additions & 6 deletions dist/jsonpanel-next.esm.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*!
* jsonpanel-next v1.0.0
* (c) 2019 Tan Zhen Yong
* jsonpanel-next v1.0.1
* (c) 2020 Tan Zhen Yong
* Released under the MIT License.
*/

Expand Down Expand Up @@ -140,14 +140,15 @@ var ExpandablePair = /*@__PURE__*/(function (Pair) {

ExpandablePair.prototype.expand = function expand () {
// Open new panel
Panel.renderToEl(this.el, {data: this.val});
Panel.renderToEl(this.el, {
data: this.val,
valTransformer: this.valTransformer
});
this.el.classList.add('expanded');
};

ExpandablePair.prototype.collapse = function collapse () {
this.el
.querySelectorAll('.panel')
.forEach(function (e) { return e.parentNode.removeChild(e); });
this.el.querySelectorAll('.panel').forEach(function (e) { return e.remove(); });
this.el.classList.remove('expanded');
};

Expand Down
17 changes: 9 additions & 8 deletions dist/jsonpanel-next.umd.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
/*!
* jsonpanel-next v1.0.0
* (c) 2019 Tan Zhen Yong
* jsonpanel-next v1.0.1
* (c) 2020 Tan Zhen Yong
* Released under the MIT License.
*/

(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(factory) :
(global = global || self, global.jsonpanelNext = factory());
}(this, function () { 'use strict';
}(this, (function () { 'use strict';

function isPlainObject(obj) {
return Object.prototype.toString.call(obj) === '[object Object]';
Expand Down Expand Up @@ -146,14 +146,15 @@

ExpandablePair.prototype.expand = function expand () {
// Open new panel
Panel.renderToEl(this.el, {data: this.val});
Panel.renderToEl(this.el, {
data: this.val,
valTransformer: this.valTransformer
});
this.el.classList.add('expanded');
};

ExpandablePair.prototype.collapse = function collapse () {
this.el
.querySelectorAll('.panel')
.forEach(function (e) { return e.parentNode.removeChild(e); });
this.el.querySelectorAll('.panel').forEach(function (e) { return e.remove(); });
this.el.classList.remove('expanded');
};

Expand Down Expand Up @@ -289,4 +290,4 @@

return jsonpanelNext;

}));
})));
6 changes: 3 additions & 3 deletions dist/jsonpanel-next.umd.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/jsonpanel-next.umd.min.js.map

Large diffs are not rendered by default.

77 changes: 49 additions & 28 deletions 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,6 +1,6 @@
{
"name": "jsonpanel-next",
"version": "1.0.0",
"version": "1.0.1",
"description": "Pretty JSON viewer for the web, zero dependencies.",
"keywords": [
"JSON",
Expand Down Expand Up @@ -64,13 +64,13 @@
"space": 2
},
"devDependencies": {
"@rollup/plugin-buble": "0.21.0",
"eslint-plugin-jest": "23.6.0",
"jest": "24.9.0",
"node-sass": "4.13.0",
"postcss-preset-env": "6.7.0",
"prettier": "1.19.1",
"rollup": "1.29.0",
"rollup-plugin-buble": "0.19.8",
"rollup-plugin-postcss": "2.0.3",
"rollup-plugin-uglify": "6.0.4",
"xo": "0.25.3"
Expand Down
2 changes: 1 addition & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import buble from 'rollup-plugin-buble';
import buble from '@rollup/plugin-buble';
import {uglify} from 'rollup-plugin-uglify';
import postcss from 'rollup-plugin-postcss';
import postcssPresetEnv from 'postcss-preset-env';
Expand Down

0 comments on commit 74bdbba

Please sign in to comment.