Skip to content

Commit

Permalink
5.4.2
Browse files Browse the repository at this point in the history
  • Loading branch information
GianlucaGuarini committed May 15, 2021
1 parent b9f082f commit 12970e2
Show file tree
Hide file tree
Showing 7 changed files with 31 additions and 34 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
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "riot",
"version": "5.4.1",
"version": "5.4.2",
"description": "Simple and elegant component-based UI library",
"homepage": "http://riot.js.org/",
"repository": "riot/riot",
Expand Down
29 changes: 13 additions & 16 deletions riot+compiler.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions riot+compiler.min.js

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions riot.esm.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Riot v5.4.1, @license MIT */
/* Riot v5.4.2, @license MIT */
/**
* Convert a string from camel case to dash-case
* @param {string} string - probably a component tag name
Expand Down Expand Up @@ -2292,6 +2292,7 @@ function enhanceComponentAPI(component, _ref5) {
state = {};
}

this[PARENT_KEY_SYMBOL] = parentScope;
this[ATTRIBUTES_KEY_SYMBOL] = createAttributeBindings(element, attributes).mount(parentScope);
defineProperty(this, PROPS_KEY, Object.freeze(Object.assign({}, evaluateInitialProps(element, props), evaluateAttributeExpressions(this[ATTRIBUTES_KEY_SYMBOL].expressions))));
this[STATE_KEY] = computeState(this[STATE_KEY], state);
Expand All @@ -2305,8 +2306,7 @@ function enhanceComponentAPI(component, _ref5) {

defineProperty(this, SLOTS_KEY, slots); // before mount lifecycle event

this[ON_BEFORE_MOUNT_KEY](this[PROPS_KEY], this[STATE_KEY]);
this[PARENT_KEY_SYMBOL] = parentScope; // mount the template
this[ON_BEFORE_MOUNT_KEY](this[PROPS_KEY], this[STATE_KEY]); // mount the template

this[TEMPLATE_KEY_SYMBOL].mount(element, this, parentScope);
this[ON_MOUNTED_KEY](this[PROPS_KEY], this[STATE_KEY]);
Expand Down Expand Up @@ -2442,7 +2442,7 @@ function unregister(name) {
* @param {string|HTMLElement} selector - query for the selection or a DOM element
* @param {Object} initialProps - the initial component properties
* @param {string} name - optional component name
* @returns {Array} list of nodes upgraded
* @returns {Array} list of riot components
*/

function mount(selector, initialProps, name) {
Expand Down Expand Up @@ -2520,7 +2520,7 @@ function pure(func) {
}
/** @type {string} current riot version */

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

const __ = {
cssManager,
Expand Down
10 changes: 5 additions & 5 deletions riot.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Riot v5.4.1, @license MIT */
/* Riot v5.4.2, @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 @@ -2298,6 +2298,7 @@
state = {};
}

this[PARENT_KEY_SYMBOL] = parentScope;
this[ATTRIBUTES_KEY_SYMBOL] = createAttributeBindings(element, attributes).mount(parentScope);
defineProperty(this, PROPS_KEY, Object.freeze(Object.assign({}, evaluateInitialProps(element, props), evaluateAttributeExpressions(this[ATTRIBUTES_KEY_SYMBOL].expressions))));
this[STATE_KEY] = computeState(this[STATE_KEY], state);
Expand All @@ -2311,8 +2312,7 @@

defineProperty(this, SLOTS_KEY, slots); // before mount lifecycle event

this[ON_BEFORE_MOUNT_KEY](this[PROPS_KEY], this[STATE_KEY]);
this[PARENT_KEY_SYMBOL] = parentScope; // mount the template
this[ON_BEFORE_MOUNT_KEY](this[PROPS_KEY], this[STATE_KEY]); // mount the template

this[TEMPLATE_KEY_SYMBOL].mount(element, this, parentScope);
this[ON_MOUNTED_KEY](this[PROPS_KEY], this[STATE_KEY]);
Expand Down Expand Up @@ -2448,7 +2448,7 @@
* @param {string|HTMLElement} selector - query for the selection or a DOM element
* @param {Object} initialProps - the initial component properties
* @param {string} name - optional component name
* @returns {Array} list of nodes upgraded
* @returns {Array} list of riot components
*/

function mount(selector, initialProps, name) {
Expand Down Expand Up @@ -2526,7 +2526,7 @@
}
/** @type {string} current riot version */

const version = 'v5.4.1'; // expose some internal stuff that might be used from external tools
const version = 'v5.4.2'; // 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 12970e2

Please sign in to comment.