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

react-hot-loader

Package Overview
Dependencies
Maintainers
6
Versions
180
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-hot-loader - npm Package Compare versions

Comparing version 4.9.0 to 4.10.0

10

CHANGELOG.md

@@ -5,2 +5,12 @@ # Change Log

<a name="4.10.0"></a>
# [4.10.0](https://github.com/gaearon/react-hot-loader/compare/v4.9.0...v4.10.0) (2019-06-02)
### Features
* transparent class wrapping, fixes [#304](https://github.com/gaearon/react-hot-loader/issues/304) ([9fe4cad](https://github.com/gaearon/react-hot-loader/commit/9fe4cad))
<a name="4.9.0"></a>

@@ -7,0 +17,0 @@ # [4.9.0](https://github.com/gaearon/react-hot-loader/compare/v4.8.8...v4.9.0) (2019-06-02)

10

dist/webpack.development.js

@@ -48,6 +48,10 @@ 'use strict';

'16.4-update': ['if (current !== null && current.type === element.type) {', 'if (current !== null && hotCompareElements(current.type, element.type, hotUpdateChild(current),current.type)) {'],
'16.4-update-compact': ['if (current!== null&&current.type===element.type)', 'if (current!== null&&hotCompareElements(current.type,element.type,hotUpdateChild(current)))']
'16.4-update-compact': ['if (current!== null&&current.type===element.type)', 'if (current!== null&&hotCompareElements(current.type,element.type,hotUpdateChild(current)))'],
'16.8-type': ['function createFiberFromTypeAndProps(type, // React$ElementType\nkey, pendingProps, owner, mode, expirationTime) {', 'function createFiberFromTypeAndProps(type, // React$ElementType\nkey, pendingProps, owner, mode, expirationTime) {type = hotResolveType(type);'],
'16.8-type-compact': ['function createFiberFromTypeAndProps(type,// React$ElementType\nkey,pendingProps,owner,mode,expirationTime){', 'function createFiberFromTypeAndProps(type,// React$ElementType\nkey,pendingProps,owner,mode,expirationTime){type = hotResolveType(type);']
};
var ReactHotLoaderInjection = '\nvar hotUpdateChild = function (child) {\n return function (newType) {\n child.type = newType;\n if (child.alternate) {\n child.alternate.type = newType;\n }\n }\n};\nvar hotCompareElements = function (oldType, newType) {\n return oldType === newType\n};\nvar hotCleanupHooks = function () {\n if (typeof resetHooks !== \'undefined\') {\n resetHooks();\n }\n}\nvar ReactDOM = {\n evalInReactContext: function (injection) {\n return eval(injection);\n },\n hotCleanup: hotCleanupHooks,\n hotRenderWithHooks: function (current, render) { \n hotCleanupHooks();\n \n if (typeof nextCurrentHook !== \'undefined\' && typeof ReactCurrentDispatcher$1 !== \'undefined\') { \n nextCurrentHook = current !== null ? current.memoizedState : null;\n if(typeof firstCurrentHook !== \'undefined\') {\n firstCurrentHook = nextCurrentHook;\n }\n \n ReactCurrentDispatcher$1.current = nextCurrentHook === null ? HooksDispatcherOnMountInDEV : HooksDispatcherOnUpdateInDEV;\n }\n \n var rendered = render();\n \n hotCleanupHooks();\n \n return rendered;\n },\n setHotElementComparator: function (newComparator) {\n hotCompareElements = newComparator\n },\n';
var ReactHotLoaderInjection = '\nvar hotUpdateChild = function (child) {\n return function (newType) {\n child.type = newType;\n if (child.alternate) {\n child.alternate.type = newType;\n }\n }\n};\nvar hotResolveType = function (type) {\n return type;\n};\nvar hotCompareElements = function (oldType, newType) {\n return oldType === newType\n};\nvar hotCleanupHooks = function () {\n if (typeof resetHooks !== \'undefined\') {\n resetHooks();\n }\n}\nvar ReactDOM = {\n evalInReactContext: function (injection) {\n return eval(injection);\n },\n hotCleanup: hotCleanupHooks,\n hotRenderWithHooks: function (current, render) { \n hotCleanupHooks();\n \n if (typeof nextCurrentHook !== \'undefined\' && typeof ReactCurrentDispatcher$1 !== \'undefined\') { \n nextCurrentHook = current !== null ? current.memoizedState : null;\n if(typeof firstCurrentHook !== \'undefined\') {\n firstCurrentHook = nextCurrentHook;\n }\n \n ReactCurrentDispatcher$1.current = nextCurrentHook === null ? HooksDispatcherOnMountInDEV : HooksDispatcherOnUpdateInDEV;\n }\n \n var rendered = render();\n \n hotCleanupHooks();\n \n return rendered;\n },\n setHotElementComparator: function (newComparator) {\n hotCompareElements = newComparator\n },\n setHotTypeResolver: function (newResolver) {\n hotResolveType = newResolver;\n },\n';

@@ -65,3 +69,3 @@ var defaultEnd = ['var ReactDOM = {', ReactHotLoaderInjection];

var sign = '/* 🔥 this is hot-loader/react-dom 🔥 */';
var sign = '/* 🔥 this is hot-loader/react-dom 4.8+ 🔥 */';

@@ -68,0 +72,0 @@ function additionalTransform(source) {

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

"use strict";function _interopDefault(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var sourceMap=_interopDefault(require("source-map")),fs=_interopDefault(require("fs")),path=_interopDefault(require("path")),loaderUtils=_interopDefault(require("loader-utils")),SourceMapGenerator=sourceMap.SourceMapGenerator;function makeIdentitySourceMap(e,t){var n=new SourceMapGenerator;return n.setSourceContent(t,e),e.split("\n").forEach(function(e,r){n.addMapping({source:t,original:{line:r+1,column:0},generated:{line:r+1,column:0}})}),n.toJSON()}var makeIdentitySourceMap_1=makeIdentitySourceMap,injectionStart={16.6:["if (child.tag === Fragment ? element.type === REACT_FRAGMENT_TYPE : child.elementType === element.type)","if (child.tag === Fragment ? element.type === REACT_FRAGMENT_TYPE : hotCompareElements(child.elementType, element.type, hotUpdateChild(child), child.type))"],"16.6-compact":["if(child.tag===Fragment?element.type===REACT_FRAGMENT_TYPE:child.elementType===element.type)","if(child.tag===Fragment?element.type===REACT_FRAGMENT_TYPE:hotCompareElements(child.elementType,element.type, hotUpdateChild(child), child.type))"],16.4:["if (child.tag === Fragment ? element.type === REACT_FRAGMENT_TYPE : child.type === element.type) {","if (child.tag === Fragment ? element.type === REACT_FRAGMENT_TYPE : hotCompareElements(child.type, element.type, hotUpdateChild(child), child.type)) {"],"16.4-compact":["if(child.tag===Fragment?element.type===REACT_FRAGMENT_TYPE:child.type===element.type)","if(child.tag===Fragment?element.type===REACT_FRAGMENT_TYPE:hotCompareElements(child.type,element.type, hotUpdateChild(child), child.type))"]},additional={"16.6-update":["if (current$$1 !== null && current$$1.elementType === element.type) {","if (current$$1 !== null && hotCompareElements(current$$1.elementType, element.type, hotUpdateChild(current$$1),current$$1.type)) {"],"16.6-update-compact":["if(current$$1!==null&&current$$1.elementType===element.type)","if(current$$1!==null&&hotCompareElements(current$$1.elementType,element.type,hotUpdateChild(current$$1),current$$1.type))"],"16.4-update":["if (current !== null && current.type === element.type) {","if (current !== null && hotCompareElements(current.type, element.type, hotUpdateChild(current),current.type)) {"],"16.4-update-compact":["if (current!== null&&current.type===element.type)","if (current!== null&&hotCompareElements(current.type,element.type,hotUpdateChild(current)))"]},ReactHotLoaderInjection="\nvar hotUpdateChild = function (child) {\n return function (newType) {\n child.type = newType;\n if (child.alternate) {\n child.alternate.type = newType;\n }\n }\n};\nvar hotCompareElements = function (oldType, newType) {\n return oldType === newType\n};\nvar hotCleanupHooks = function () {\n if (typeof resetHooks !== 'undefined') {\n resetHooks();\n }\n}\nvar ReactDOM = {\n evalInReactContext: function (injection) {\n return eval(injection);\n },\n hotCleanup: hotCleanupHooks,\n hotRenderWithHooks: function (current, render) { \n hotCleanupHooks();\n \n if (typeof nextCurrentHook !== 'undefined' && typeof ReactCurrentDispatcher$1 !== 'undefined') { \n nextCurrentHook = current !== null ? current.memoizedState : null;\n if(typeof firstCurrentHook !== 'undefined') {\n firstCurrentHook = nextCurrentHook;\n }\n \n ReactCurrentDispatcher$1.current = nextCurrentHook === null ? HooksDispatcherOnMountInDEV : HooksDispatcherOnUpdateInDEV;\n }\n \n var rendered = render();\n \n hotCleanupHooks();\n \n return rendered;\n },\n setHotElementComparator: function (newComparator) {\n hotCompareElements = newComparator\n },\n",defaultEnd=["var ReactDOM = {",ReactHotLoaderInjection],defaultEndCompact=["var ReactDOM={",ReactHotLoaderInjection],injectionEnd={16.6:defaultEnd,16.4:defaultEnd,"16.6-compact":defaultEndCompact,"16.4-compact":defaultEndCompact},sign="/* 🔥 this is hot-loader/react-dom 🔥 */";function additionalTransform(e){for(var t in additional)e=e.split(additional[t][0]).join(additional[t][1]);return e}function transform(e){if(e.indexOf("reconcileSingleElement")<0)return e;if(e.indexOf(sign)>=0)return e;for(var t in injectionStart)if(e.indexOf(injectionStart[t][0])>0&&e.indexOf(injectionEnd[t][0])>0){var n=additionalTransform(e.replace(injectionStart[t][0],injectionStart[t][1]).replace(injectionEnd[t][0],injectionEnd[t][1]));return sign+"\n"+n+"\n"+sign}return e}var patch=transform,SourceNode=sourceMap.SourceNode,SourceMapConsumer=sourceMap.SourceMapConsumer,tagCommonJSExportsSource=null;function transform$1(e,t){var n=this.async();return n(null,e,t)}transform$1.patch=patch;var webpack=transform$1;exports.default=webpack;
"use strict";function _interopDefault(e){return e&&"object"==typeof e&&"default"in e?e.default:e}Object.defineProperty(exports,"__esModule",{value:!0});var sourceMap=_interopDefault(require("source-map")),fs=_interopDefault(require("fs")),path=_interopDefault(require("path")),loaderUtils=_interopDefault(require("loader-utils")),SourceMapGenerator=sourceMap.SourceMapGenerator;function makeIdentitySourceMap(e,t){var n=new SourceMapGenerator;return n.setSourceContent(t,e),e.split("\n").forEach(function(e,r){n.addMapping({source:t,original:{line:r+1,column:0},generated:{line:r+1,column:0}})}),n.toJSON()}var makeIdentitySourceMap_1=makeIdentitySourceMap,injectionStart={16.6:["if (child.tag === Fragment ? element.type === REACT_FRAGMENT_TYPE : child.elementType === element.type)","if (child.tag === Fragment ? element.type === REACT_FRAGMENT_TYPE : hotCompareElements(child.elementType, element.type, hotUpdateChild(child), child.type))"],"16.6-compact":["if(child.tag===Fragment?element.type===REACT_FRAGMENT_TYPE:child.elementType===element.type)","if(child.tag===Fragment?element.type===REACT_FRAGMENT_TYPE:hotCompareElements(child.elementType,element.type, hotUpdateChild(child), child.type))"],16.4:["if (child.tag === Fragment ? element.type === REACT_FRAGMENT_TYPE : child.type === element.type) {","if (child.tag === Fragment ? element.type === REACT_FRAGMENT_TYPE : hotCompareElements(child.type, element.type, hotUpdateChild(child), child.type)) {"],"16.4-compact":["if(child.tag===Fragment?element.type===REACT_FRAGMENT_TYPE:child.type===element.type)","if(child.tag===Fragment?element.type===REACT_FRAGMENT_TYPE:hotCompareElements(child.type,element.type, hotUpdateChild(child), child.type))"]},additional={"16.6-update":["if (current$$1 !== null && current$$1.elementType === element.type) {","if (current$$1 !== null && hotCompareElements(current$$1.elementType, element.type, hotUpdateChild(current$$1),current$$1.type)) {"],"16.6-update-compact":["if(current$$1!==null&&current$$1.elementType===element.type)","if(current$$1!==null&&hotCompareElements(current$$1.elementType,element.type,hotUpdateChild(current$$1),current$$1.type))"],"16.4-update":["if (current !== null && current.type === element.type) {","if (current !== null && hotCompareElements(current.type, element.type, hotUpdateChild(current),current.type)) {"],"16.4-update-compact":["if (current!== null&&current.type===element.type)","if (current!== null&&hotCompareElements(current.type,element.type,hotUpdateChild(current)))"],"16.8-type":["function createFiberFromTypeAndProps(type, // React$ElementType\nkey, pendingProps, owner, mode, expirationTime) {","function createFiberFromTypeAndProps(type, // React$ElementType\nkey, pendingProps, owner, mode, expirationTime) {type = hotResolveType(type);"],"16.8-type-compact":["function createFiberFromTypeAndProps(type,// React$ElementType\nkey,pendingProps,owner,mode,expirationTime){","function createFiberFromTypeAndProps(type,// React$ElementType\nkey,pendingProps,owner,mode,expirationTime){type = hotResolveType(type);"]},ReactHotLoaderInjection="\nvar hotUpdateChild = function (child) {\n return function (newType) {\n child.type = newType;\n if (child.alternate) {\n child.alternate.type = newType;\n }\n }\n};\nvar hotResolveType = function (type) {\n return type;\n};\nvar hotCompareElements = function (oldType, newType) {\n return oldType === newType\n};\nvar hotCleanupHooks = function () {\n if (typeof resetHooks !== 'undefined') {\n resetHooks();\n }\n}\nvar ReactDOM = {\n evalInReactContext: function (injection) {\n return eval(injection);\n },\n hotCleanup: hotCleanupHooks,\n hotRenderWithHooks: function (current, render) { \n hotCleanupHooks();\n \n if (typeof nextCurrentHook !== 'undefined' && typeof ReactCurrentDispatcher$1 !== 'undefined') { \n nextCurrentHook = current !== null ? current.memoizedState : null;\n if(typeof firstCurrentHook !== 'undefined') {\n firstCurrentHook = nextCurrentHook;\n }\n \n ReactCurrentDispatcher$1.current = nextCurrentHook === null ? HooksDispatcherOnMountInDEV : HooksDispatcherOnUpdateInDEV;\n }\n \n var rendered = render();\n \n hotCleanupHooks();\n \n return rendered;\n },\n setHotElementComparator: function (newComparator) {\n hotCompareElements = newComparator\n },\n setHotTypeResolver: function (newResolver) {\n hotResolveType = newResolver;\n },\n",defaultEnd=["var ReactDOM = {",ReactHotLoaderInjection],defaultEndCompact=["var ReactDOM={",ReactHotLoaderInjection],injectionEnd={16.6:defaultEnd,16.4:defaultEnd,"16.6-compact":defaultEndCompact,"16.4-compact":defaultEndCompact},sign="/* 🔥 this is hot-loader/react-dom 4.8+ 🔥 */";function additionalTransform(e){for(var t in additional)e=e.split(additional[t][0]).join(additional[t][1]);return e}function transform(e){if(e.indexOf("reconcileSingleElement")<0)return e;if(e.indexOf(sign)>=0)return e;for(var t in injectionStart)if(e.indexOf(injectionStart[t][0])>0&&e.indexOf(injectionEnd[t][0])>0){var n=additionalTransform(e.replace(injectionStart[t][0],injectionStart[t][1]).replace(injectionEnd[t][0],injectionEnd[t][1]));return sign+"\n"+n+"\n"+sign}return e}var patch=transform,SourceNode=sourceMap.SourceNode,SourceMapConsumer=sourceMap.SourceMapConsumer,tagCommonJSExportsSource=null;function transform$1(e,t){var n=this.async();return n(null,e,t)}transform$1.patch=patch;var webpack=transform$1;exports.default=webpack;
{
"name": "react-hot-loader",
"version": "4.9.0",
"version": "4.10.0",
"description": "Tweak React components in real time.",

@@ -5,0 +5,0 @@ "main": "index.js",

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