Skip to content

Commit

Permalink
5.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
GianlucaGuarini committed Jan 31, 2021
1 parent 78aa3e9 commit 4e70e79
Show file tree
Hide file tree
Showing 6 changed files with 42 additions and 32 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "riot",
"version": "5.1.4",
"version": "5.2.0",
"description": "Simple and elegant component-based UI library",
"homepage": "http://riot.js.org/",
"repository": "riot/riot",
Expand Down
44 changes: 27 additions & 17 deletions riot+compiler.js

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions riot+compiler.min.js

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions riot.esm.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Riot v5.1.4, @license MIT */
/* Riot v5.2.0, @license MIT */
/**
* Convert a string from camel case to dash-case
* @param {string} string - probably a component tag name
Expand Down Expand Up @@ -294,7 +294,7 @@ function isBoolean(value) {
*/

function isObject(value) {
return !isNil(value) && checkType(value, 'object');
return !isNil(value) && value.constructor === Object;
}
/**
* Check if a value is null or undefined
Expand Down Expand Up @@ -2259,7 +2259,7 @@ function enhanceComponentAPI(component, _ref6) {
attributes,
props
} = _ref6;
return autobindMethods(runPlugins(defineProperties(Object.create(component), {
return autobindMethods(runPlugins(defineProperties(isObject(component) ? Object.create(component) : component, {
mount(element, state, parentScope) {
if (state === void 0) {
state = {};
Expand Down Expand Up @@ -2486,7 +2486,7 @@ function pure(func) {
}
/** @type {string} current riot version */

const version = 'v5.1.4'; // expose some internal stuff that might be used from external tools
const version = 'v5.2.0'; // expose some internal stuff that might be used from external tools

const __ = {
cssManager,
Expand Down
8 changes: 4 additions & 4 deletions riot.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Riot v5.1.4, @license MIT */
/* Riot v5.2.0, @license MIT */
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
typeof define === 'function' && define.amd ? define(['exports'], factory) :
Expand Down Expand Up @@ -300,7 +300,7 @@
*/

function isObject(value) {
return !isNil(value) && checkType(value, 'object');
return !isNil(value) && value.constructor === Object;
}
/**
* Check if a value is null or undefined
Expand Down Expand Up @@ -2265,7 +2265,7 @@
attributes,
props
} = _ref6;
return autobindMethods(runPlugins(defineProperties(Object.create(component), {
return autobindMethods(runPlugins(defineProperties(isObject(component) ? Object.create(component) : component, {
mount(element, state, parentScope) {
if (state === void 0) {
state = {};
Expand Down Expand Up @@ -2492,7 +2492,7 @@
}
/** @type {string} current riot version */

const version = 'v5.1.4'; // expose some internal stuff that might be used from external tools
const version = 'v5.2.0'; // expose some internal stuff that might be used from external tools

const __ = {
cssManager,
Expand Down
4 changes: 2 additions & 2 deletions riot.min.js

Large diffs are not rendered by default.

0 comments on commit 4e70e79

Please sign in to comment.