Added: react-side-effect v2.1.0 (#114)

This commit is contained in:
nobody 2020-09-20 08:40:12 +02:00
parent a99e70bad7
commit 849b84f810
No known key found for this signature in database
GPG Key ID: 8F6DE3D614FCFD7A
5 changed files with 11 additions and 0 deletions

View File

@ -410,6 +410,7 @@ var mappings = {
'mootools@{version}/lib/mootools-core-{version}-server.min.': resources.mootools, 'mootools@{version}/lib/mootools-core-{version}-server.min.': resources.mootools,
'react-redux@{version}/dist/react-redux.': resources.reactRedux, 'react-redux@{version}/dist/react-redux.': resources.reactRedux,
'react-router@{version}/umd/react-router.': resources.reactRouter, 'react-router@{version}/umd/react-router.': resources.reactRouter,
'react-side-effect@{version}/lib/index.umd.': resources.reactSideEffect,
'react-lifecycles-compat@{version}/react-lifecycles-compat.': resources.reactLifecyclesCompat, 'react-lifecycles-compat@{version}/react-lifecycles-compat.': resources.reactLifecyclesCompat,
'p2p-media-loader-core@latest/build/p2p-media-loader-core.min.js': resources.p2pMediaLoaderCore, 'p2p-media-loader-core@latest/build/p2p-media-loader-core.min.js': resources.p2pMediaLoaderCore,
'p2p-media-loader-hlsjs@latest/build/p2p-media-loader-hlsjs.min.js': resources.p2pMediaLoaderHlsJS, 'p2p-media-loader-hlsjs@latest/build/p2p-media-loader-hlsjs.min.js': resources.p2pMediaLoaderHlsJS,

View File

@ -630,6 +630,11 @@ var resources = {
'path': 'resources/react-router/{version}/react-router.min.jsm', 'path': 'resources/react-router/{version}/react-router.min.jsm',
'type': 'application/javascript' 'type': 'application/javascript'
}, },
// React Side Effect
'reactSideEffect': {
'path': 'resources/react-side-effect/{version}/react-side-effect.min.jsm',
'type': 'application/javascript'
},
// rickshaw // rickshaw
'rickshawJS': { 'rickshawJS': {
'path': 'resources/rickshaw/{version}/rickshaw.min.jsm', 'path': 'resources/rickshaw/{version}/rickshaw.min.jsm',

View File

@ -515,6 +515,8 @@ helpers.setLastVersion = function (type, version) {
return '7.2.1'; return '7.2.1';
} else if (type.includes('/react-router/5.')) { } else if (type.includes('/react-router/5.')) {
return '5.2.0'; return '5.2.0';
} else if (type.includes('/react-side-effect/')) {
return '2.1.0';
} else if (type.includes('/react-lifecycles-compat/')) { } else if (type.includes('/react-lifecycles-compat/')) {
return '3.0.4'; return '3.0.4';
} else if (type.includes('/rickshaw/1.')) { } else if (type.includes('/rickshaw/1.')) {
@ -607,6 +609,7 @@ helpers.compareVersion = function (v1, v2) {
}; };
const ListOfFiles = { const ListOfFiles = {
'react-side-effect.min.jsm': 'react-side-effect',
'react-router.min.jsm': 'react router', 'react-router.min.jsm': 'react router',
'react-redux.min.jsm': 'react redux', 'react-redux.min.jsm': 'react redux',
'react-lifecycles-compat.min.jsm': 'react lifecycles compat', 'react-lifecycles-compat.min.jsm': 'react lifecycles compat',

View File

@ -32,6 +32,7 @@
<li>Added: react-lifecycles-compat v3.0.4 (<a href="https://codeberg.org/nobody/LocalCDN/issues/114">#114</a>)</li> <li>Added: react-lifecycles-compat v3.0.4 (<a href="https://codeberg.org/nobody/LocalCDN/issues/114">#114</a>)</li>
<li>Added: react-redux v7.2.1 (<a href="https://codeberg.org/nobody/LocalCDN/issues/114">#114</a>)</li> <li>Added: react-redux v7.2.1 (<a href="https://codeberg.org/nobody/LocalCDN/issues/114">#114</a>)</li>
<li>Added: react-router v5.2.0 (<a href="https://codeberg.org/nobody/LocalCDN/issues/114">#114</a>)</li> <li>Added: react-router v5.2.0 (<a href="https://codeberg.org/nobody/LocalCDN/issues/114">#114</a>)</li>
<li>Added: react-side-effect v2.1.0 (<a href="https://codeberg.org/nobody/LocalCDN/issues/114">#114</a>)</li>
</ul> </ul>
<div id="generator-section"> <div id="generator-section">
<div class="topic-label"> <div class="topic-label">

View File

@ -0,0 +1 @@
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define(["react"],t):(e=e||self).withSideEffect=t(e.React)}(this,function(e){"use strict";var t="default"in e?e.default:e;function n(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=!("undefined"==typeof window||!window.document||!window.document.createElement);return function(r,i,c){if("function"!=typeof r)throw new Error("Expected reducePropsToState to be a function.");if("function"!=typeof i)throw new Error("Expected handleStateChangeOnClient to be a function.");if(void 0!==c&&"function"!=typeof c)throw new Error("Expected mapStateOnServer to either be undefined or a function.");return function(u){if("function"!=typeof u)throw new Error("Expected WrappedComponent to be a React component.");var f,a=[];function p(){f=r(a.map(function(e){return e.props})),d.canUseDOM?i(f):c&&(f=c(f))}var d=function(e){var n,o;function r(){return e.apply(this,arguments)||this}o=e,(n=r).prototype=Object.create(o.prototype),n.prototype.constructor=n,n.__proto__=o,r.peek=function(){return f},r.rewind=function(){if(r.canUseDOM)throw new Error("You may only call rewind() on the server. Call peek() to read the current state.");var e=f;return f=void 0,a=[],e};var i=r.prototype;return i.UNSAFE_componentWillMount=function(){a.push(this),p()},i.componentDidUpdate=function(){p()},i.componentWillUnmount=function(){var e=a.indexOf(this);a.splice(e,1),p()},i.render=function(){return t.createElement(u,this.props)},r}(e.PureComponent);return n(d,"displayName","SideEffect("+function(e){return e.displayName||e.name||"Component"}(u)+")"),n(d,"canUseDOM",o),d}}});