react-is 16.9.0-rc.0 → 16.10.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build-info.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
- "branch": "master",
3
- "buildNumber": "33869",
4
- "checksum": "2fe1c5c",
5
- "commit": "a1dbb852c",
2
+ "branch": "pull/17007",
3
+ "buildNumber": "50178",
4
+ "checksum": "39106c3",
5
+ "commit": "4ab6305f6",
6
6
  "environment": "ci",
7
- "reactVersion": "16.8.6-canary-a1dbb852c"
7
+ "reactVersion": "16.10.1-canary-4ab6305f6"
8
8
  }
@@ -1,4 +1,4 @@
1
- /** @license React v16.9.0-rc.0
1
+ /** @license React v16.10.2
2
2
  * react-is.development.js
3
3
  *
4
4
  * Copyright (c) Facebook, Inc. and its affiliates.
@@ -20,16 +20,15 @@ Object.defineProperty(exports, '__esModule', { value: true });
20
20
  // The Symbol used to tag the ReactElement-like types. If there is no native Symbol
21
21
  // nor polyfill, then a plain number is used for performance.
22
22
  var hasSymbol = typeof Symbol === 'function' && Symbol.for;
23
-
24
23
  var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
25
24
  var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
26
25
  var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
27
26
  var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
28
27
  var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
29
28
  var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
30
- var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace;
31
- // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
29
+ var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
32
30
  // (unstable) APIs that have been removed. Can we remove the symbols?
31
+
33
32
  var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
34
33
  var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
35
34
  var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
@@ -39,11 +38,11 @@ var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
39
38
  var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
40
39
  var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
41
40
  var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
41
+ var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
42
42
 
43
43
  function isValidElementType(type) {
44
- return typeof type === 'string' || typeof type === 'function' ||
45
- // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
46
- type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE);
44
+ return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
45
+ type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE);
47
46
  }
48
47
 
49
48
  /**
@@ -59,12 +58,11 @@ function isValidElementType(type) {
59
58
  * paths. Removing the logging code for production environments will keep the
60
59
  * same logic and follow the same code paths.
61
60
  */
62
-
63
- var lowPriorityWarning = function () {};
61
+ var lowPriorityWarningWithoutStack = function () {};
64
62
 
65
63
  {
66
64
  var printWarning = function (format) {
67
- for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
65
+ for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
68
66
  args[_key - 1] = arguments[_key];
69
67
  }
70
68
 
@@ -72,9 +70,11 @@ var lowPriorityWarning = function () {};
72
70
  var message = 'Warning: ' + format.replace(/%s/g, function () {
73
71
  return args[argIndex++];
74
72
  });
73
+
75
74
  if (typeof console !== 'undefined') {
76
75
  console.warn(message);
77
76
  }
77
+
78
78
  try {
79
79
  // --- Welcome to debugging React ---
80
80
  // This error was thrown as a convenience so that you can use this stack
@@ -83,25 +83,27 @@ var lowPriorityWarning = function () {};
83
83
  } catch (x) {}
84
84
  };
85
85
 
86
- lowPriorityWarning = function (condition, format) {
86
+ lowPriorityWarningWithoutStack = function (condition, format) {
87
87
  if (format === undefined) {
88
- throw new Error('`lowPriorityWarning(condition, format, ...args)` requires a warning ' + 'message argument');
88
+ throw new Error('`lowPriorityWarningWithoutStack(condition, format, ...args)` requires a warning ' + 'message argument');
89
89
  }
90
+
90
91
  if (!condition) {
91
- for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {
92
+ for (var _len2 = arguments.length, args = new Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {
92
93
  args[_key2 - 2] = arguments[_key2];
93
94
  }
94
95
 
95
- printWarning.apply(undefined, [format].concat(args));
96
+ printWarning.apply(void 0, [format].concat(args));
96
97
  }
97
98
  };
98
99
  }
99
100
 
100
- var lowPriorityWarning$1 = lowPriorityWarning;
101
+ var lowPriorityWarningWithoutStack$1 = lowPriorityWarningWithoutStack;
101
102
 
102
103
  function typeOf(object) {
103
104
  if (typeof object === 'object' && object !== null) {
104
105
  var $$typeof = object.$$typeof;
106
+
105
107
  switch ($$typeof) {
106
108
  case REACT_ELEMENT_TYPE:
107
109
  var type = object.type;
@@ -114,6 +116,7 @@ function typeOf(object) {
114
116
  case REACT_STRICT_MODE_TYPE:
115
117
  case REACT_SUSPENSE_TYPE:
116
118
  return type;
119
+
117
120
  default:
118
121
  var $$typeofType = type && type.$$typeof;
119
122
 
@@ -122,10 +125,13 @@ function typeOf(object) {
122
125
  case REACT_FORWARD_REF_TYPE:
123
126
  case REACT_PROVIDER_TYPE:
124
127
  return $$typeofType;
128
+
125
129
  default:
126
130
  return $$typeof;
127
131
  }
132
+
128
133
  }
134
+
129
135
  case REACT_LAZY_TYPE:
130
136
  case REACT_MEMO_TYPE:
131
137
  case REACT_PORTAL_TYPE:
@@ -134,9 +140,8 @@ function typeOf(object) {
134
140
  }
135
141
 
136
142
  return undefined;
137
- }
143
+ } // AsyncMode is deprecated along with isAsyncMode
138
144
 
139
- // AsyncMode is deprecated along with isAsyncMode
140
145
  var AsyncMode = REACT_ASYNC_MODE_TYPE;
141
146
  var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
142
147
  var ContextConsumer = REACT_CONTEXT_TYPE;
@@ -150,17 +155,16 @@ var Portal = REACT_PORTAL_TYPE;
150
155
  var Profiler = REACT_PROFILER_TYPE;
151
156
  var StrictMode = REACT_STRICT_MODE_TYPE;
152
157
  var Suspense = REACT_SUSPENSE_TYPE;
158
+ var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
153
159
 
154
- var hasWarnedAboutDeprecatedIsAsyncMode = false;
155
-
156
- // AsyncMode should be deprecated
157
160
  function isAsyncMode(object) {
158
161
  {
159
162
  if (!hasWarnedAboutDeprecatedIsAsyncMode) {
160
163
  hasWarnedAboutDeprecatedIsAsyncMode = true;
161
- lowPriorityWarning$1(false, 'The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');
164
+ lowPriorityWarningWithoutStack$1(false, 'The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');
162
165
  }
163
166
  }
167
+
164
168
  return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
165
169
  }
166
170
  function isConcurrentMode(object) {
@@ -1,4 +1,4 @@
1
- /** @license React v16.9.0-rc.0
1
+ /** @license React v16.10.2
2
2
  * react-is.production.min.js
3
3
  *
4
4
  * Copyright (c) Facebook, Inc. and its affiliates.
@@ -9,7 +9,7 @@
9
9
 
10
10
  'use strict';Object.defineProperty(exports,"__esModule",{value:!0});
11
11
  var b="function"===typeof Symbol&&Symbol.for,c=b?Symbol.for("react.element"):60103,d=b?Symbol.for("react.portal"):60106,e=b?Symbol.for("react.fragment"):60107,f=b?Symbol.for("react.strict_mode"):60108,g=b?Symbol.for("react.profiler"):60114,h=b?Symbol.for("react.provider"):60109,k=b?Symbol.for("react.context"):60110,l=b?Symbol.for("react.async_mode"):60111,m=b?Symbol.for("react.concurrent_mode"):60111,n=b?Symbol.for("react.forward_ref"):60112,p=b?Symbol.for("react.suspense"):60113,q=b?Symbol.for("react.suspense_list"):
12
- 60120,r=b?Symbol.for("react.memo"):60115,t=b?Symbol.for("react.lazy"):60116,v=b?Symbol.for("react.fundamental"):60117,w=b?Symbol.for("react.responder"):60118;function x(a){if("object"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case h:return a;default:return u}}case t:case r:case d:return u}}}function y(a){return x(a)===m}exports.typeOf=x;exports.AsyncMode=l;
13
- exports.ConcurrentMode=m;exports.ContextConsumer=k;exports.ContextProvider=h;exports.Element=c;exports.ForwardRef=n;exports.Fragment=e;exports.Lazy=t;exports.Memo=r;exports.Portal=d;exports.Profiler=g;exports.StrictMode=f;exports.Suspense=p;
14
- exports.isValidElementType=function(a){return"string"===typeof a||"function"===typeof a||a===e||a===m||a===g||a===f||a===p||a===q||"object"===typeof a&&null!==a&&(a.$$typeof===t||a.$$typeof===r||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n||a.$$typeof===v||a.$$typeof===w)};exports.isAsyncMode=function(a){return y(a)||x(a)===l};exports.isConcurrentMode=y;exports.isContextConsumer=function(a){return x(a)===k};exports.isContextProvider=function(a){return x(a)===h};
15
- exports.isElement=function(a){return"object"===typeof a&&null!==a&&a.$$typeof===c};exports.isForwardRef=function(a){return x(a)===n};exports.isFragment=function(a){return x(a)===e};exports.isLazy=function(a){return x(a)===t};exports.isMemo=function(a){return x(a)===r};exports.isPortal=function(a){return x(a)===d};exports.isProfiler=function(a){return x(a)===g};exports.isStrictMode=function(a){return x(a)===f};exports.isSuspense=function(a){return x(a)===p};
12
+ 60120,r=b?Symbol.for("react.memo"):60115,t=b?Symbol.for("react.lazy"):60116,v=b?Symbol.for("react.fundamental"):60117,w=b?Symbol.for("react.responder"):60118,x=b?Symbol.for("react.scope"):60119;function y(a){if("object"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case h:return a;default:return u}}case t:case r:case d:return u}}}function z(a){return y(a)===m}
13
+ exports.typeOf=y;exports.AsyncMode=l;exports.ConcurrentMode=m;exports.ContextConsumer=k;exports.ContextProvider=h;exports.Element=c;exports.ForwardRef=n;exports.Fragment=e;exports.Lazy=t;exports.Memo=r;exports.Portal=d;exports.Profiler=g;exports.StrictMode=f;exports.Suspense=p;
14
+ exports.isValidElementType=function(a){return"string"===typeof a||"function"===typeof a||a===e||a===m||a===g||a===f||a===p||a===q||"object"===typeof a&&null!==a&&(a.$$typeof===t||a.$$typeof===r||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n||a.$$typeof===v||a.$$typeof===w||a.$$typeof===x)};exports.isAsyncMode=function(a){return z(a)||y(a)===l};exports.isConcurrentMode=z;exports.isContextConsumer=function(a){return y(a)===k};exports.isContextProvider=function(a){return y(a)===h};
15
+ exports.isElement=function(a){return"object"===typeof a&&null!==a&&a.$$typeof===c};exports.isForwardRef=function(a){return y(a)===n};exports.isFragment=function(a){return y(a)===e};exports.isLazy=function(a){return y(a)===t};exports.isMemo=function(a){return y(a)===r};exports.isPortal=function(a){return y(a)===d};exports.isProfiler=function(a){return y(a)===g};exports.isStrictMode=function(a){return y(a)===f};exports.isSuspense=function(a){return y(a)===p};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-is",
3
- "version": "16.9.0-rc.0",
3
+ "version": "16.10.2",
4
4
  "description": "Brand checking of React Elements.",
5
5
  "main": "index.js",
6
6
  "repository": {
@@ -1,4 +1,4 @@
1
- /** @license React v16.9.0-rc.0
1
+ /** @license React v16.10.2
2
2
  * react-is.development.js
3
3
  *
4
4
  * Copyright (c) Facebook, Inc. and its affiliates.
@@ -18,16 +18,15 @@
18
18
  // The Symbol used to tag the ReactElement-like types. If there is no native Symbol
19
19
  // nor polyfill, then a plain number is used for performance.
20
20
  var hasSymbol = typeof Symbol === 'function' && Symbol.for;
21
-
22
21
  var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
23
22
  var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;
24
23
  var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;
25
24
  var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;
26
25
  var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
27
26
  var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
28
- var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace;
29
- // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
27
+ var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary
30
28
  // (unstable) APIs that have been removed. Can we remove the symbols?
29
+
31
30
  var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;
32
31
  var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
33
32
  var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
@@ -37,11 +36,11 @@ var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
37
36
  var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
38
37
  var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
39
38
  var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
39
+ var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
40
40
 
41
41
  function isValidElementType(type) {
42
- return typeof type === 'string' || typeof type === 'function' ||
43
- // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
44
- type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE);
42
+ return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
43
+ type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE);
45
44
  }
46
45
 
47
46
  /**
@@ -57,12 +56,11 @@ function isValidElementType(type) {
57
56
  * paths. Removing the logging code for production environments will keep the
58
57
  * same logic and follow the same code paths.
59
58
  */
60
-
61
- var lowPriorityWarning = function () {};
59
+ var lowPriorityWarningWithoutStack = function () {};
62
60
 
63
61
  {
64
62
  var printWarning = function (format) {
65
- for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
63
+ for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
66
64
  args[_key - 1] = arguments[_key];
67
65
  }
68
66
 
@@ -70,9 +68,11 @@ var lowPriorityWarning = function () {};
70
68
  var message = 'Warning: ' + format.replace(/%s/g, function () {
71
69
  return args[argIndex++];
72
70
  });
71
+
73
72
  if (typeof console !== 'undefined') {
74
73
  console.warn(message);
75
74
  }
75
+
76
76
  try {
77
77
  // --- Welcome to debugging React ---
78
78
  // This error was thrown as a convenience so that you can use this stack
@@ -81,25 +81,27 @@ var lowPriorityWarning = function () {};
81
81
  } catch (x) {}
82
82
  };
83
83
 
84
- lowPriorityWarning = function (condition, format) {
84
+ lowPriorityWarningWithoutStack = function (condition, format) {
85
85
  if (format === undefined) {
86
- throw new Error('`lowPriorityWarning(condition, format, ...args)` requires a warning ' + 'message argument');
86
+ throw new Error('`lowPriorityWarningWithoutStack(condition, format, ...args)` requires a warning ' + 'message argument');
87
87
  }
88
+
88
89
  if (!condition) {
89
- for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {
90
+ for (var _len2 = arguments.length, args = new Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {
90
91
  args[_key2 - 2] = arguments[_key2];
91
92
  }
92
93
 
93
- printWarning.apply(undefined, [format].concat(args));
94
+ printWarning.apply(void 0, [format].concat(args));
94
95
  }
95
96
  };
96
97
  }
97
98
 
98
- var lowPriorityWarning$1 = lowPriorityWarning;
99
+ var lowPriorityWarningWithoutStack$1 = lowPriorityWarningWithoutStack;
99
100
 
100
101
  function typeOf(object) {
101
102
  if (typeof object === 'object' && object !== null) {
102
103
  var $$typeof = object.$$typeof;
104
+
103
105
  switch ($$typeof) {
104
106
  case REACT_ELEMENT_TYPE:
105
107
  var type = object.type;
@@ -112,6 +114,7 @@ function typeOf(object) {
112
114
  case REACT_STRICT_MODE_TYPE:
113
115
  case REACT_SUSPENSE_TYPE:
114
116
  return type;
117
+
115
118
  default:
116
119
  var $$typeofType = type && type.$$typeof;
117
120
 
@@ -120,10 +123,13 @@ function typeOf(object) {
120
123
  case REACT_FORWARD_REF_TYPE:
121
124
  case REACT_PROVIDER_TYPE:
122
125
  return $$typeofType;
126
+
123
127
  default:
124
128
  return $$typeof;
125
129
  }
130
+
126
131
  }
132
+
127
133
  case REACT_LAZY_TYPE:
128
134
  case REACT_MEMO_TYPE:
129
135
  case REACT_PORTAL_TYPE:
@@ -132,9 +138,8 @@ function typeOf(object) {
132
138
  }
133
139
 
134
140
  return undefined;
135
- }
141
+ } // AsyncMode is deprecated along with isAsyncMode
136
142
 
137
- // AsyncMode is deprecated along with isAsyncMode
138
143
  var AsyncMode = REACT_ASYNC_MODE_TYPE;
139
144
  var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
140
145
  var ContextConsumer = REACT_CONTEXT_TYPE;
@@ -148,17 +153,16 @@ var Portal = REACT_PORTAL_TYPE;
148
153
  var Profiler = REACT_PROFILER_TYPE;
149
154
  var StrictMode = REACT_STRICT_MODE_TYPE;
150
155
  var Suspense = REACT_SUSPENSE_TYPE;
156
+ var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated
151
157
 
152
- var hasWarnedAboutDeprecatedIsAsyncMode = false;
153
-
154
- // AsyncMode should be deprecated
155
158
  function isAsyncMode(object) {
156
159
  {
157
160
  if (!hasWarnedAboutDeprecatedIsAsyncMode) {
158
161
  hasWarnedAboutDeprecatedIsAsyncMode = true;
159
- lowPriorityWarning$1(false, 'The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');
162
+ lowPriorityWarningWithoutStack$1(false, 'The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');
160
163
  }
161
164
  }
165
+
162
166
  return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
163
167
  }
164
168
  function isConcurrentMode(object) {
@@ -1,4 +1,4 @@
1
- /** @license React v16.9.0-rc.0
1
+ /** @license React v16.10.2
2
2
  * react-is.production.min.js
3
3
  *
4
4
  * Copyright (c) Facebook, Inc. and its affiliates.
@@ -8,6 +8,6 @@
8
8
  */
9
9
  'use strict';(function(b,c){"object"===typeof exports&&"undefined"!==typeof module?c(exports):"function"===typeof define&&define.amd?define(["exports"],c):c(b.ReactIs={})})(this,function(b){function c(a){if("object"===typeof a&&null!==a){var b=a.$$typeof;switch(b){case r:switch(a=a.type,a){case t:case e:case f:case g:case h:case k:return a;default:switch(a=a&&a.$$typeof,a){case l:case m:case n:return a;default:return b}}case p:case q:case u:return b}}}function v(a){return c(a)===e}var d="function"===
10
10
  typeof Symbol&&Symbol.for,r=d?Symbol.for("react.element"):60103,u=d?Symbol.for("react.portal"):60106,f=d?Symbol.for("react.fragment"):60107,h=d?Symbol.for("react.strict_mode"):60108,g=d?Symbol.for("react.profiler"):60114,n=d?Symbol.for("react.provider"):60109,l=d?Symbol.for("react.context"):60110,t=d?Symbol.for("react.async_mode"):60111,e=d?Symbol.for("react.concurrent_mode"):60111,m=d?Symbol.for("react.forward_ref"):60112,k=d?Symbol.for("react.suspense"):60113,w=d?Symbol.for("react.suspense_list"):
11
- 60120,q=d?Symbol.for("react.memo"):60115,p=d?Symbol.for("react.lazy"):60116,x=d?Symbol.for("react.fundamental"):60117,y=d?Symbol.for("react.responder"):60118;b.typeOf=c;b.AsyncMode=t;b.ConcurrentMode=e;b.ContextConsumer=l;b.ContextProvider=n;b.Element=r;b.ForwardRef=m;b.Fragment=f;b.Lazy=p;b.Memo=q;b.Portal=u;b.Profiler=g;b.StrictMode=h;b.Suspense=k;b.isValidElementType=function(a){return"string"===typeof a||"function"===typeof a||a===f||a===e||a===g||a===h||a===k||a===w||"object"===typeof a&&null!==
12
- a&&(a.$$typeof===p||a.$$typeof===q||a.$$typeof===n||a.$$typeof===l||a.$$typeof===m||a.$$typeof===x||a.$$typeof===y)};b.isAsyncMode=function(a){return v(a)||c(a)===t};b.isConcurrentMode=v;b.isContextConsumer=function(a){return c(a)===l};b.isContextProvider=function(a){return c(a)===n};b.isElement=function(a){return"object"===typeof a&&null!==a&&a.$$typeof===r};b.isForwardRef=function(a){return c(a)===m};b.isFragment=function(a){return c(a)===f};b.isLazy=function(a){return c(a)===p};b.isMemo=function(a){return c(a)===
13
- q};b.isPortal=function(a){return c(a)===u};b.isProfiler=function(a){return c(a)===g};b.isStrictMode=function(a){return c(a)===h};b.isSuspense=function(a){return c(a)===k};Object.defineProperty(b,"__esModule",{value:!0})});
11
+ 60120,q=d?Symbol.for("react.memo"):60115,p=d?Symbol.for("react.lazy"):60116,x=d?Symbol.for("react.fundamental"):60117,y=d?Symbol.for("react.responder"):60118,z=d?Symbol.for("react.scope"):60119;b.typeOf=c;b.AsyncMode=t;b.ConcurrentMode=e;b.ContextConsumer=l;b.ContextProvider=n;b.Element=r;b.ForwardRef=m;b.Fragment=f;b.Lazy=p;b.Memo=q;b.Portal=u;b.Profiler=g;b.StrictMode=h;b.Suspense=k;b.isValidElementType=function(a){return"string"===typeof a||"function"===typeof a||a===f||a===e||a===g||a===h||a===
12
+ k||a===w||"object"===typeof a&&null!==a&&(a.$$typeof===p||a.$$typeof===q||a.$$typeof===n||a.$$typeof===l||a.$$typeof===m||a.$$typeof===x||a.$$typeof===y||a.$$typeof===z)};b.isAsyncMode=function(a){return v(a)||c(a)===t};b.isConcurrentMode=v;b.isContextConsumer=function(a){return c(a)===l};b.isContextProvider=function(a){return c(a)===n};b.isElement=function(a){return"object"===typeof a&&null!==a&&a.$$typeof===r};b.isForwardRef=function(a){return c(a)===m};b.isFragment=function(a){return c(a)===f};
13
+ b.isLazy=function(a){return c(a)===p};b.isMemo=function(a){return c(a)===q};b.isPortal=function(a){return c(a)===u};b.isProfiler=function(a){return c(a)===g};b.isStrictMode=function(a){return c(a)===h};b.isSuspense=function(a){return c(a)===k};Object.defineProperty(b,"__esModule",{value:!0})});