Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-fela

Package Overview
Dependencies
Maintainers
2
Versions
114
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-fela - npm Package Compare versions

Comparing version 8.0.4 to 10.0.0

es/_deprecate.js

12

es/connect.js

@@ -1,11 +0,7 @@

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
import { Component, createElement } from 'react';
import PropTypes from 'prop-types';
import { connectFactory, THEME_CHANNEL } from 'fela-bindings';
import { connectFactory } from 'fela-bindings';
import withTheme from './withTheme';
import { RendererContext } from './context';
import FelaTheme from './FelaTheme';
export default connectFactory(Component, createElement, withTheme, _defineProperty({
renderer: PropTypes.object
}, THEME_CHANNEL, PropTypes.object));
export default connectFactory(Component, createElement, RendererContext, FelaTheme);

@@ -1,11 +0,7 @@

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
import { createElement } from 'react';
import PropTypes from 'prop-types';
import { createComponentFactory, THEME_CHANNEL } from 'fela-bindings';
import { createComponentFactory } from 'fela-bindings';
import withTheme from './withTheme';
import { RendererContext } from './context';
import FelaTheme from './FelaTheme';
export default createComponentFactory(createElement, withTheme, _defineProperty({
renderer: PropTypes.object
}, THEME_CHANNEL, PropTypes.object));
export default createComponentFactory(createElement, RendererContext, FelaTheme);

@@ -1,11 +0,7 @@

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
import { createElement } from 'react';
import PropTypes from 'prop-types';
import { createComponentFactory, THEME_CHANNEL } from 'fela-bindings';
import { createComponentFactory } from 'fela-bindings';
import withTheme from './withTheme';
import { RendererContext } from './context';
import FelaTheme from './FelaTheme';
export default createComponentFactory(createElement, withTheme, _defineProperty({
renderer: PropTypes.object
}, THEME_CHANNEL, PropTypes.object), true);
export default createComponentFactory(createElement, RendererContext, FelaTheme, true);

@@ -1,11 +0,7 @@

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
import { createElement } from 'react';
import PropTypes from 'prop-types';
import { FelaComponentFactory, THEME_CHANNEL } from 'fela-bindings';
import { FelaComponentFactory } from 'fela-bindings';
import { RendererContext } from './context';
import FelaTheme from './FelaTheme';
export default FelaComponentFactory(createElement, FelaTheme, _defineProperty({
renderer: PropTypes.object
}, THEME_CHANNEL, PropTypes.object));
export default FelaComponentFactory(createElement, RendererContext, FelaTheme);

@@ -1,7 +0,6 @@

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
import { createElement } from 'react';
import { FelaThemeFactory } from 'fela-bindings';
import { Component } from 'react';
import PropTypes from 'prop-types';
import { FelaThemeFactory, THEME_CHANNEL } from 'fela-bindings';
import { ThemeContext } from './context';
export default FelaThemeFactory(Component, _defineProperty({}, THEME_CHANNEL, PropTypes.object));
export default FelaThemeFactory(createElement, ThemeContext);

@@ -6,3 +6,3 @@ import connect from './connect';

import FelaTheme from './FelaTheme';
import Provider from './Provider';
import RendererProvider from './RendererProvider';
import ThemeProvider from './ThemeProvider';

@@ -12,2 +12,6 @@ import withTheme from './withTheme';

export { connect, createComponent, createComponentWithProxy, FelaComponent, FelaTheme, Provider, ThemeProvider, withTheme, fe };
import { interceptDeprecation } from './_deprecate';
var Provider = interceptDeprecation(RendererProvider, 'Importing `Provider` from react-fela is deprecated. Import `RendererProvider` instead.\nSee http://fela.js.org/docs/api/bindings/renderer-provider');
export { connect, createComponent, createComponentWithProxy, FelaComponent, FelaTheme, Provider, RendererProvider, ThemeProvider, withTheme, fe };

@@ -1,8 +0,8 @@

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
import { Component, Children } from 'react';
import { ThemeProviderFactory, THEME_CHANNEL } from 'fela-bindings';
import { Component, createElement, Children } from 'react';
import { ThemeProviderFactory } from 'fela-bindings';
import PropTypes from 'prop-types';
export default ThemeProviderFactory(Component, function (children) {
import { ThemeContext } from './context';
export default ThemeProviderFactory(Component, ThemeContext, createElement, function (children) {
return Children.only(children);

@@ -14,4 +14,2 @@ }, {

},
childContextTypes: _defineProperty({}, THEME_CHANNEL, PropTypes.object),
contextTypes: _defineProperty({}, THEME_CHANNEL, PropTypes.object),
defaultProps: {

@@ -18,0 +16,0 @@ overwrite: false

@@ -1,7 +0,6 @@

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
import { createElement } from 'react';
import { withThemeFactory } from 'fela-bindings';
import { Component, createElement } from 'react';
import PropTypes from 'prop-types';
import { withThemeFactory, THEME_CHANNEL } from 'fela-bindings';
import FelaTheme from './FelaTheme';
export default withThemeFactory(Component, createElement, _defineProperty({}, THEME_CHANNEL, PropTypes.object));
export default withThemeFactory(createElement, FelaTheme);

@@ -9,18 +9,12 @@ 'use strict';

var _propTypes = require('prop-types');
var _felaBindings = require('fela-bindings');
var _propTypes2 = _interopRequireDefault(_propTypes);
var _context = require('./context');
var _felaBindings = require('fela-bindings');
var _FelaTheme = require('./FelaTheme');
var _withTheme = require('./withTheme');
var _FelaTheme2 = _interopRequireDefault(_FelaTheme);
var _withTheme2 = _interopRequireDefault(_withTheme);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
exports.default = (0, _felaBindings.connectFactory)(_react.Component, _react.createElement, _withTheme2.default, _defineProperty({
renderer: _propTypes2.default.object
}, _felaBindings.THEME_CHANNEL, _propTypes2.default.object));
exports.default = (0, _felaBindings.connectFactory)(_react.Component, _react.createElement, _context.RendererContext, _FelaTheme2.default);

@@ -9,18 +9,12 @@ 'use strict';

var _propTypes = require('prop-types');
var _felaBindings = require('fela-bindings');
var _propTypes2 = _interopRequireDefault(_propTypes);
var _context = require('./context');
var _felaBindings = require('fela-bindings');
var _FelaTheme = require('./FelaTheme');
var _withTheme = require('./withTheme');
var _FelaTheme2 = _interopRequireDefault(_FelaTheme);
var _withTheme2 = _interopRequireDefault(_withTheme);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
exports.default = (0, _felaBindings.createComponentFactory)(_react.createElement, _withTheme2.default, _defineProperty({
renderer: _propTypes2.default.object
}, _felaBindings.THEME_CHANNEL, _propTypes2.default.object));
exports.default = (0, _felaBindings.createComponentFactory)(_react.createElement, _context.RendererContext, _FelaTheme2.default);

@@ -9,18 +9,12 @@ 'use strict';

var _propTypes = require('prop-types');
var _felaBindings = require('fela-bindings');
var _propTypes2 = _interopRequireDefault(_propTypes);
var _context = require('./context');
var _felaBindings = require('fela-bindings');
var _FelaTheme = require('./FelaTheme');
var _withTheme = require('./withTheme');
var _FelaTheme2 = _interopRequireDefault(_FelaTheme);
var _withTheme2 = _interopRequireDefault(_withTheme);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
exports.default = (0, _felaBindings.createComponentFactory)(_react.createElement, _withTheme2.default, _defineProperty({
renderer: _propTypes2.default.object
}, _felaBindings.THEME_CHANNEL, _propTypes2.default.object), true);
exports.default = (0, _felaBindings.createComponentFactory)(_react.createElement, _context.RendererContext, _FelaTheme2.default, true);

@@ -9,8 +9,6 @@ 'use strict';

var _propTypes = require('prop-types');
var _felaBindings = require('fela-bindings');
var _propTypes2 = _interopRequireDefault(_propTypes);
var _context = require('./context');
var _felaBindings = require('fela-bindings');
var _FelaTheme = require('./FelaTheme');

@@ -22,6 +20,2 @@

function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
exports.default = (0, _felaBindings.FelaComponentFactory)(_react.createElement, _FelaTheme2.default, _defineProperty({
renderer: _propTypes2.default.object
}, _felaBindings.THEME_CHANNEL, _propTypes2.default.object));
exports.default = (0, _felaBindings.FelaComponentFactory)(_react.createElement, _context.RendererContext, _FelaTheme2.default);

@@ -9,12 +9,6 @@ 'use strict';

var _propTypes = require('prop-types');
var _propTypes2 = _interopRequireDefault(_propTypes);
var _felaBindings = require('fela-bindings');
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var _context = require('./context');
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
exports.default = (0, _felaBindings.FelaThemeFactory)(_react.Component, _defineProperty({}, _felaBindings.THEME_CHANNEL, _propTypes2.default.object));
exports.default = (0, _felaBindings.FelaThemeFactory)(_react.createElement, _context.ThemeContext);

@@ -6,3 +6,3 @@ 'use strict';

});
exports.fe = exports.withTheme = exports.ThemeProvider = exports.Provider = exports.FelaTheme = exports.FelaComponent = exports.createComponentWithProxy = exports.createComponent = exports.connect = undefined;
exports.fe = exports.withTheme = exports.ThemeProvider = exports.RendererProvider = exports.Provider = exports.FelaTheme = exports.FelaComponent = exports.createComponentWithProxy = exports.createComponent = exports.connect = undefined;

@@ -29,5 +29,5 @@ var _connect = require('./connect');

var _Provider = require('./Provider');
var _RendererProvider = require('./RendererProvider');
var _Provider2 = _interopRequireDefault(_Provider);
var _RendererProvider2 = _interopRequireDefault(_RendererProvider);

@@ -46,4 +46,8 @@ var _ThemeProvider = require('./ThemeProvider');

var _deprecate = require('./_deprecate');
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var Provider = (0, _deprecate.interceptDeprecation)(_RendererProvider2.default, 'Importing `Provider` from react-fela is deprecated. Import `RendererProvider` instead.\nSee http://fela.js.org/docs/api/bindings/renderer-provider');
exports.connect = _connect2.default;

@@ -54,5 +58,6 @@ exports.createComponent = _createComponent2.default;

exports.FelaTheme = _FelaTheme2.default;
exports.Provider = _Provider2.default;
exports.Provider = Provider;
exports.RendererProvider = _RendererProvider2.default;
exports.ThemeProvider = _ThemeProvider2.default;
exports.withTheme = _withTheme2.default;
exports.fe = _fe2.default;

@@ -15,7 +15,7 @@ 'use strict';

var _context = require('./context');
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
exports.default = (0, _felaBindings.ThemeProviderFactory)(_react.Component, function (children) {
exports.default = (0, _felaBindings.ThemeProviderFactory)(_react.Component, _context.ThemeContext, _react.createElement, function (children) {
return _react.Children.only(children);

@@ -27,4 +27,2 @@ }, {

},
childContextTypes: _defineProperty({}, _felaBindings.THEME_CHANNEL, _propTypes2.default.object),
contextTypes: _defineProperty({}, _felaBindings.THEME_CHANNEL, _propTypes2.default.object),
defaultProps: {

@@ -31,0 +29,0 @@ overwrite: false

@@ -9,12 +9,10 @@ 'use strict';

var _propTypes = require('prop-types');
var _felaBindings = require('fela-bindings');
var _propTypes2 = _interopRequireDefault(_propTypes);
var _FelaTheme = require('./FelaTheme');
var _felaBindings = require('fela-bindings');
var _FelaTheme2 = _interopRequireDefault(_FelaTheme);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
exports.default = (0, _felaBindings.withThemeFactory)(_react.Component, _react.createElement, _defineProperty({}, _felaBindings.THEME_CHANNEL, _propTypes2.default.object));
exports.default = (0, _felaBindings.withThemeFactory)(_react.createElement, _FelaTheme2.default);
{
"name": "react-fela",
"version": "8.0.4",
"version": "10.0.0",
"description": "React bindings for Fela",

@@ -28,9 +28,10 @@ "typings": "index.d.ts",

"peerDependencies": {
"react": "*"
"react": "^16.3.0"
},
"dependencies": {
"fela-bindings": "^3.0.4",
"fela-dom": "^8.0.4",
"fela-bindings": "^10.0.0",
"fela-dom": "^10.0.0",
"prop-types": "^15.5.8"
}
},
"gitHead": "7f81d463beac94a7ae8d642119c6ff394f1e9788"
}

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc