Skip to content

Commit

Permalink
9.1.4
Browse files Browse the repository at this point in the history
  • Loading branch information
GianlucaGuarini committed Feb 23, 2024
1 parent ca6d803 commit 5331326
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 45 deletions.
4 changes: 2 additions & 2 deletions 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
@@ -1,6 +1,6 @@
{
"name": "riot",
"version": "9.1.3",
"version": "9.1.4",
"description": "Simple and elegant component-based UI library",
"license": "MIT",
"engines": {
Expand Down
30 changes: 10 additions & 20 deletions riot+compiler.js
@@ -1,4 +1,4 @@
/* Riot v9.1.3, @license MIT */
/* Riot v9.1.4, @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 @@ -25498,6 +25498,7 @@
}
}

/* c8 ignore next */
const ElementProto = typeof Element === 'undefined' ? {} : Element.prototype;
const isNativeHtmlProperty = memoize$1(
(name) => ElementProto.hasOwnProperty(name), // eslint-disable-line
Expand All @@ -25510,8 +25511,8 @@
* @returns {undefined} sorry it's a void function :(
*/
function setAllAttributes(node, attributes) {
Object.entries(attributes).forEach(([name, value]) =>
attributeExpression(node, { name }, value),
Object.keys(attributes).forEach((name) =>
attributeExpression(node, { name }, attributes[name]),
);
}

Expand Down Expand Up @@ -25673,16 +25674,7 @@
* @returns {Text} the text node to update
*/
const getTextNode = (node, childNodeIndex) => {
const target = node.childNodes[childNodeIndex];

if (target.nodeType === Node.COMMENT_NODE) {
const textNode = document.createTextNode('');
node.replaceChild(textNode, target);

return textNode
}

return target
return node.childNodes[childNodeIndex]
};

/**
Expand Down Expand Up @@ -25806,12 +25798,10 @@
}

function create$3(node, { expressions }) {
return {
...flattenCollectionMethods(
expressions.map((expression) => create$4(node, expression)),
['mount', 'update', 'unmount'],
),
}
return flattenCollectionMethods(
expressions.map((expression) => create$4(node, expression)),
['mount', 'update', 'unmount'],
)
}

function extendParentScope(attributes, scope, parentScope) {
Expand Down Expand Up @@ -27092,7 +27082,7 @@
const withTypes = (component) => component;

/** @type {string} current riot version */
const version = 'v9.1.3';
const version = 'v9.1.4';

// expose some internal stuff that might be used from external tools
const __ = {
Expand Down
2 changes: 1 addition & 1 deletion riot+compiler.min.js

Large diffs are not rendered by default.

30 changes: 10 additions & 20 deletions riot.js
@@ -1,4 +1,4 @@
/* Riot v9.1.3, @license MIT */
/* Riot v9.1.4, @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 @@ -844,6 +844,7 @@
}
}

/* c8 ignore next */
const ElementProto = typeof Element === 'undefined' ? {} : Element.prototype;
const isNativeHtmlProperty = memoize(
(name) => ElementProto.hasOwnProperty(name), // eslint-disable-line
Expand All @@ -856,8 +857,8 @@
* @returns {undefined} sorry it's a void function :(
*/
function setAllAttributes(node, attributes) {
Object.entries(attributes).forEach(([name, value]) =>
attributeExpression(node, { name }, value),
Object.keys(attributes).forEach((name) =>
attributeExpression(node, { name }, attributes[name]),
);
}

Expand Down Expand Up @@ -1019,16 +1020,7 @@
* @returns {Text} the text node to update
*/
const getTextNode = (node, childNodeIndex) => {
const target = node.childNodes[childNodeIndex];

if (target.nodeType === Node.COMMENT_NODE) {
const textNode = document.createTextNode('');
node.replaceChild(textNode, target);

return textNode
}

return target
return node.childNodes[childNodeIndex]
};

/**
Expand Down Expand Up @@ -1152,12 +1144,10 @@
}

function create$3(node, { expressions }) {
return {
...flattenCollectionMethods(
expressions.map((expression) => create$4(node, expression)),
['mount', 'update', 'unmount'],
),
}
return flattenCollectionMethods(
expressions.map((expression) => create$4(node, expression)),
['mount', 'update', 'unmount'],
)
}

function extendParentScope(attributes, scope, parentScope) {
Expand Down Expand Up @@ -2505,7 +2495,7 @@
const withTypes = (component) => component;

/** @type {string} current riot version */
const version = 'v9.1.3';
const version = 'v9.1.4';

// expose some internal stuff that might be used from external tools
const __ = {
Expand Down
2 changes: 1 addition & 1 deletion riot.min.js

Large diffs are not rendered by default.

0 comments on commit 5331326

Please sign in to comment.