Skip to content
This repository has been archived by the owner on Mar 23, 2023. It is now read-only.

Commit

Permalink
v4.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
yangshun committed Sep 28, 2021
1 parent 779c1ca commit ddf73df
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 17 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

### 4.0.2

- Added support for `UNSAFE_componentWillReceiveProps` lifecycle method

### 4.0.1

- Upgrade `fbemitter` dependency to 3.x
Expand Down
54 changes: 41 additions & 13 deletions dist/FluxUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,17 +98,31 @@ return /******/ (function(modules) { // webpackBootstrap
function _inheritsLoose(subClass, superClass) {
subClass.prototype = Object.create(superClass.prototype);
subClass.prototype.constructor = subClass;
subClass.__proto__ = superClass;

_setPrototypeOf(subClass, superClass);
}

function _setPrototypeOf(o, p) {
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
o.__proto__ = p;
return o;
};

return _setPrototypeOf(o, p);
}

function ownKeys(object, enumerableOnly) {
var keys = Object.keys(object);

if (Object.getOwnPropertySymbols) {
var symbols = Object.getOwnPropertySymbols(object);
if (enumerableOnly) symbols = symbols.filter(function (sym) {
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
});

if (enumerableOnly) {
symbols = symbols.filter(function (sym) {
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
});
}

keys.push.apply(keys, symbols);
}

Expand Down Expand Up @@ -277,6 +291,10 @@ return /******/ (function(modules) { // webpackBootstrap
var _proto = ContainerClass.prototype;

_proto.UNSAFE_componentWillReceiveProps = function UNSAFE_componentWillReceiveProps(nextProps, nextContext) {
if (_Base.prototype.UNSAFE_componentWillReceiveProps) {
_Base.prototype.UNSAFE_componentWillReceiveProps.call(this, nextProps, nextContext);
}

if (_Base.prototype.componentWillReceiveProps) {
_Base.prototype.componentWillReceiveProps.call(this, nextProps, nextContext);
}
Expand Down Expand Up @@ -598,9 +616,9 @@ return /******/ (function(modules) { // webpackBootstrap
'use strict';

function _createForOfIteratorHelper(o, allowArrayLike) {
var it;
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];

if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) {
if (!it) {
if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
if (it) o = it;
var i = 0;
Expand Down Expand Up @@ -633,7 +651,7 @@ return /******/ (function(modules) { // webpackBootstrap
err;
return {
s: function s() {
it = o[Symbol.iterator]();
it = it.call(o);
},
n: function n() {
var step = it.next();
Expand Down Expand Up @@ -823,7 +841,7 @@ return /******/ (function(modules) { // webpackBootstrap
/* 6 */
/***/ (function(module, exports, __webpack_require__) {

/** @license React v17.0.1
/** @license React v17.0.2
* react.development.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
Expand All @@ -840,7 +858,7 @@ return /******/ (function(modules) { // webpackBootstrap
var _assign = __webpack_require__(7); // TODO: this is special because it gets imported during build.


var ReactVersion = '17.0.1'; // ATTENTION
var ReactVersion = '17.0.2'; // ATTENTION
// When adding new symbols to this file,
// Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'
// The Symbol used to tag the ReactElement-like types. If there is no native Symbol
Expand Down Expand Up @@ -3294,9 +3312,9 @@ return /******/ (function(modules) { // webpackBootstrap
'use strict';

function _createForOfIteratorHelper(o, allowArrayLike) {
var it;
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];

if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) {
if (!it) {
if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
if (it) o = it;
var i = 0;
Expand Down Expand Up @@ -3329,7 +3347,7 @@ return /******/ (function(modules) { // webpackBootstrap
err;
return {
s: function s() {
it = o[Symbol.iterator]();
it = it.call(o);
},
n: function n() {
var step = it.next();
Expand Down Expand Up @@ -3506,7 +3524,17 @@ return /******/ (function(modules) { // webpackBootstrap
function _inheritsLoose(subClass, superClass) {
subClass.prototype = Object.create(superClass.prototype);
subClass.prototype.constructor = subClass;
subClass.__proto__ = superClass;

_setPrototypeOf(subClass, superClass);
}

function _setPrototypeOf(o, p) {
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
o.__proto__ = p;
return o;
};

return _setPrototypeOf(o, p);
}

function _defineProperty(obj, key, value) {
Expand Down
Loading

0 comments on commit ddf73df

Please sign in to comment.