Skip to content

Commit

Permalink
5.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
GianlucaGuarini committed May 4, 2021
1 parent 4424932 commit a902001
Show file tree
Hide file tree
Showing 7 changed files with 319 additions and 993 deletions.
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.

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.3.3",
"version": "5.4.0",
"description": "Simple and elegant component-based UI library",
"homepage": "http://riot.js.org/",
"repository": "riot/riot",
Expand Down
1,268 changes: 297 additions & 971 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.

14 changes: 7 additions & 7 deletions riot.esm.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Riot v5.3.3, @license MIT */
/* Riot v5.4.0, @license MIT */
/**
* Convert a string from camel case to dash-case
* @param {string} string - probably a component tag name
Expand Down Expand Up @@ -828,7 +828,7 @@ const isNativeHtmlProperty = memoize(name => ElementProto.hasOwnProperty(name));
*/

function setAllAttributes(node, attributes) {
Object.entries(attributes).forEach((_ref) => {
Object.entries(attributes).forEach(_ref => {
let [name, value] = _ref;
return attributeExpression(node, {
name
Expand Down Expand Up @@ -1147,7 +1147,7 @@ const SlotBinding = {

// API methods
mount(scope, parentScope) {
const templateData = scope.slots ? scope.slots.find((_ref) => {
const templateData = scope.slots ? scope.slots.find(_ref => {
let {
id
} = _ref;
Expand Down Expand Up @@ -1736,7 +1736,7 @@ function defineProperty(source, key, value, options) {
*/

function defineProperties(source, properties, options) {
Object.entries(properties).forEach((_ref) => {
Object.entries(properties).forEach(_ref => {
let [key, value] = _ref;
defineProperty(source, key, value, options);
});
Expand All @@ -1750,7 +1750,7 @@ function defineProperties(source, properties, options) {
*/

function defineDefaults(source, defaults) {
Object.entries(defaults).forEach((_ref2) => {
Object.entries(defaults).forEach(_ref2 => {
let [key, value] = _ref2;
if (!source[key]) source[key] = value;
});
Expand Down Expand Up @@ -2123,7 +2123,7 @@ function createComponent(componentShell) {
name
} = componentShell;
const templateFn = template ? componentTemplateFactory(template, componentShell) : MOCKED_TEMPLATE_INTERFACE;
return (_ref2) => {
return _ref2 => {
let {
slots,
attributes,
Expand Down Expand Up @@ -2519,7 +2519,7 @@ function pure(func) {
}
/** @type {string} current riot version */

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

const __ = {
cssManager,
Expand Down
14 changes: 7 additions & 7 deletions riot.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Riot v5.3.3, @license MIT */
/* Riot v5.4.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 @@ -834,7 +834,7 @@
*/

function setAllAttributes(node, attributes) {
Object.entries(attributes).forEach((_ref) => {
Object.entries(attributes).forEach(_ref => {
let [name, value] = _ref;
return attributeExpression(node, {
name
Expand Down Expand Up @@ -1153,7 +1153,7 @@

// API methods
mount(scope, parentScope) {
const templateData = scope.slots ? scope.slots.find((_ref) => {
const templateData = scope.slots ? scope.slots.find(_ref => {
let {
id
} = _ref;
Expand Down Expand Up @@ -1742,7 +1742,7 @@
*/

function defineProperties(source, properties, options) {
Object.entries(properties).forEach((_ref) => {
Object.entries(properties).forEach(_ref => {
let [key, value] = _ref;
defineProperty(source, key, value, options);
});
Expand All @@ -1756,7 +1756,7 @@
*/

function defineDefaults(source, defaults) {
Object.entries(defaults).forEach((_ref2) => {
Object.entries(defaults).forEach(_ref2 => {
let [key, value] = _ref2;
if (!source[key]) source[key] = value;
});
Expand Down Expand Up @@ -2129,7 +2129,7 @@
name
} = componentShell;
const templateFn = template ? componentTemplateFactory(template, componentShell) : MOCKED_TEMPLATE_INTERFACE;
return (_ref2) => {
return _ref2 => {
let {
slots,
attributes,
Expand Down Expand Up @@ -2525,7 +2525,7 @@
}
/** @type {string} current riot version */

const version = 'v5.3.3'; // expose some internal stuff that might be used from external tools
const version = 'v5.4.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 a902001

Please sign in to comment.