react-test-renderer 15.5.4 → 15.7.0

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.
Files changed (250) hide show
  1. package/LICENSE +16 -26
  2. package/lib/CallbackQueue.js +3 -5
  3. package/lib/EventConstants.js +3 -5
  4. package/lib/EventPluginHub.js +3 -9
  5. package/lib/EventPluginRegistry.js +3 -7
  6. package/lib/EventPluginUtils.js +3 -5
  7. package/lib/EventPropagators.js +3 -5
  8. package/lib/KeyEscapeUtils.js +3 -5
  9. package/lib/PluginModuleType.js +3 -5
  10. package/lib/PooledClass.js +3 -5
  11. package/lib/ReactChildFiber.js +3 -6
  12. package/lib/ReactChildReconciler.js +7 -10
  13. package/lib/ReactComponentEnvironment.js +3 -7
  14. package/lib/ReactCompositeComponent.js +5 -9
  15. package/lib/ReactCoroutine.js +3 -5
  16. package/lib/ReactDebugTool.js +6 -6
  17. package/lib/ReactDefaultBatchingStrategy.js +3 -5
  18. package/lib/ReactElementSymbol.js +3 -5
  19. package/lib/ReactEmptyComponent.js +3 -5
  20. package/lib/ReactErrorUtils.js +6 -6
  21. package/lib/ReactEventEmitterMixin.js +3 -6
  22. package/lib/ReactFeatureFlags.js +3 -5
  23. package/lib/ReactFiber.js +3 -7
  24. package/lib/ReactFiberBeginWork.js +3 -6
  25. package/lib/ReactFiberCommitWork.js +3 -6
  26. package/lib/ReactFiberCompleteWork.js +3 -7
  27. package/lib/ReactFiberReconciler.js +3 -5
  28. package/lib/ReactFiberRoot.js +3 -5
  29. package/lib/ReactFiberScheduler.js +3 -5
  30. package/lib/ReactFiberUpdateQueue.js +3 -5
  31. package/lib/ReactHostComponent.js +3 -5
  32. package/lib/ReactHostOperationHistoryHook.js +3 -5
  33. package/lib/ReactInstanceMap.js +3 -7
  34. package/lib/ReactInstanceType.js +3 -5
  35. package/lib/ReactInstrumentation.js +3 -5
  36. package/lib/ReactInvalidSetStateWarningHook.js +3 -5
  37. package/lib/ReactMultiChild.js +3 -9
  38. package/lib/ReactMultiChildUpdateTypes.js +3 -5
  39. package/lib/ReactNodeTypes.js +3 -5
  40. package/lib/ReactOwner.js +3 -6
  41. package/lib/ReactPerf.js +9 -11
  42. package/lib/ReactPriorityLevel.js +5 -6
  43. package/lib/ReactPropTypeLocationNames.js +3 -5
  44. package/lib/ReactPropTypeLocations.js +3 -5
  45. package/lib/ReactPropTypesSecret.js +3 -5
  46. package/lib/ReactReconciler.js +5 -9
  47. package/lib/ReactRef.js +3 -5
  48. package/lib/ReactReifiedYield.js +3 -5
  49. package/lib/ReactShallowRenderer.js +3 -5
  50. package/lib/ReactSimpleEmptyComponent.js +5 -7
  51. package/lib/ReactSyntheticEventType.js +3 -5
  52. package/lib/ReactTestEmptyComponent.js +3 -5
  53. package/lib/ReactTestMount.js +8 -8
  54. package/lib/ReactTestReconcileTransaction.js +2 -4
  55. package/lib/ReactTestRenderer.js +4 -5
  56. package/lib/ReactTestTextComponent.js +3 -5
  57. package/lib/ReactTypeOfWork.js +3 -5
  58. package/lib/ReactTypes.js +3 -5
  59. package/lib/ReactUpdateQueue.js +4 -8
  60. package/lib/ReactUpdates.js +4 -6
  61. package/lib/ReactVersion.js +4 -6
  62. package/lib/ResponderEventPlugin.js +3 -7
  63. package/lib/ResponderSyntheticEvent.js +3 -5
  64. package/lib/ResponderTouchHistoryStore.js +3 -5
  65. package/lib/SyntheticEvent.js +34 -33
  66. package/lib/Transaction.js +6 -5
  67. package/lib/accumulate.js +3 -5
  68. package/lib/accumulateInto.js +3 -5
  69. package/lib/adler32.js +3 -5
  70. package/lib/canDefineProperty.js +3 -5
  71. package/lib/checkReactTypeSpec.js +3 -5
  72. package/lib/deprecated.js +6 -8
  73. package/lib/flattenChildren.js +3 -5
  74. package/lib/forEachAccumulated.js +3 -5
  75. package/lib/getHostComponentFromComposite.js +3 -5
  76. package/lib/getIteratorFn.js +3 -5
  77. package/lib/instantiateReactComponent.js +4 -6
  78. package/lib/isTextInputElement.js +17 -19
  79. package/lib/lowPriorityWarning.js +62 -0
  80. package/lib/reactProdInvariant.js +2 -4
  81. package/lib/shallow/ARIADOMPropertyConfig.js +3 -5
  82. package/lib/shallow/AutoFocusUtils.js +3 -5
  83. package/lib/shallow/BeforeInputEventPlugin.js +3 -6
  84. package/lib/shallow/CSSProperty.js +10 -5
  85. package/lib/shallow/CSSPropertyOperations.js +17 -13
  86. package/lib/shallow/CallbackQueue.js +3 -5
  87. package/lib/shallow/ChangeEventPlugin.js +52 -88
  88. package/lib/shallow/DOMChildrenOperations.js +7 -8
  89. package/lib/shallow/DOMLazyTree.js +3 -5
  90. package/lib/shallow/DOMNamespaces.js +3 -5
  91. package/lib/shallow/DOMProperty.js +3 -6
  92. package/lib/shallow/DOMPropertyOperations.js +3 -7
  93. package/lib/shallow/Danger.js +3 -7
  94. package/lib/shallow/DefaultEventPluginOrder.js +3 -5
  95. package/lib/shallow/EnterLeaveEventPlugin.js +3 -7
  96. package/lib/shallow/EventConstants.js +3 -5
  97. package/lib/shallow/EventPluginHub.js +3 -9
  98. package/lib/shallow/EventPluginRegistry.js +3 -7
  99. package/lib/shallow/EventPluginUtils.js +3 -5
  100. package/lib/shallow/EventPropagators.js +3 -5
  101. package/lib/shallow/FallbackCompositionState.js +3 -5
  102. package/lib/shallow/HTMLDOMPropertyConfig.js +4 -5
  103. package/lib/shallow/KeyEscapeUtils.js +3 -5
  104. package/lib/shallow/LinkedValueUtils.js +10 -12
  105. package/lib/shallow/PluginModuleType.js +3 -5
  106. package/lib/shallow/PooledClass.js +3 -5
  107. package/lib/shallow/ReactBrowserEventEmitter.js +3 -9
  108. package/lib/shallow/ReactChildFiber.js +3 -6
  109. package/lib/shallow/ReactChildReconciler.js +7 -10
  110. package/lib/shallow/ReactComponentBrowserEnvironment.js +3 -7
  111. package/lib/shallow/ReactComponentEnvironment.js +3 -7
  112. package/lib/shallow/ReactCompositeComponent.js +5 -9
  113. package/lib/shallow/ReactCoroutine.js +3 -5
  114. package/lib/shallow/ReactDOM.js +5 -7
  115. package/lib/shallow/ReactDOMComponent.js +40 -29
  116. package/lib/shallow/ReactDOMComponentFlags.js +3 -5
  117. package/lib/shallow/ReactDOMComponentTree.js +3 -5
  118. package/lib/shallow/ReactDOMContainerInfo.js +3 -5
  119. package/lib/shallow/ReactDOMEmptyComponent.js +3 -5
  120. package/lib/shallow/ReactDOMFeatureFlags.js +3 -5
  121. package/lib/shallow/ReactDOMFiber.js +3 -6
  122. package/lib/shallow/ReactDOMIDOperations.js +3 -6
  123. package/lib/shallow/ReactDOMInput.js +8 -8
  124. package/lib/shallow/ReactDOMInvalidARIAHook.js +3 -5
  125. package/lib/shallow/ReactDOMNullInputValuePropHook.js +3 -5
  126. package/lib/shallow/ReactDOMOption.js +3 -6
  127. package/lib/shallow/ReactDOMSelect.js +3 -5
  128. package/lib/shallow/ReactDOMSelection.js +3 -5
  129. package/lib/shallow/ReactDOMServer.js +3 -5
  130. package/lib/shallow/ReactDOMTextComponent.js +3 -7
  131. package/lib/shallow/ReactDOMTextarea.js +3 -5
  132. package/lib/shallow/ReactDOMTreeTraversal.js +3 -5
  133. package/lib/shallow/ReactDOMUnknownPropertyHook.js +3 -5
  134. package/lib/shallow/ReactDebugTool.js +6 -6
  135. package/lib/shallow/ReactDefaultBatchingStrategy.js +3 -5
  136. package/lib/shallow/ReactDefaultInjection.js +3 -5
  137. package/lib/shallow/ReactElementSymbol.js +3 -5
  138. package/lib/shallow/ReactEmptyComponent.js +3 -5
  139. package/lib/shallow/ReactErrorUtils.js +6 -6
  140. package/lib/shallow/ReactEventEmitterMixin.js +3 -6
  141. package/lib/shallow/ReactEventListener.js +3 -5
  142. package/lib/shallow/ReactFeatureFlags.js +3 -5
  143. package/lib/shallow/ReactFiber.js +3 -7
  144. package/lib/shallow/ReactFiberBeginWork.js +3 -6
  145. package/lib/shallow/ReactFiberCommitWork.js +3 -6
  146. package/lib/shallow/ReactFiberCompleteWork.js +3 -7
  147. package/lib/shallow/ReactFiberReconciler.js +3 -5
  148. package/lib/shallow/ReactFiberRoot.js +3 -5
  149. package/lib/shallow/ReactFiberScheduler.js +3 -5
  150. package/lib/shallow/ReactFiberUpdateQueue.js +3 -5
  151. package/lib/shallow/ReactHostComponent.js +3 -5
  152. package/lib/shallow/ReactHostOperationHistoryHook.js +3 -5
  153. package/lib/shallow/ReactInjection.js +3 -5
  154. package/lib/shallow/ReactInputSelection.js +3 -6
  155. package/lib/shallow/ReactInstanceMap.js +3 -7
  156. package/lib/shallow/ReactInstanceType.js +3 -5
  157. package/lib/shallow/ReactInstrumentation.js +3 -5
  158. package/lib/shallow/ReactInvalidSetStateWarningHook.js +3 -5
  159. package/lib/shallow/ReactMarkupChecksum.js +3 -5
  160. package/lib/shallow/ReactMount.js +10 -12
  161. package/lib/shallow/ReactMultiChild.js +3 -9
  162. package/lib/shallow/ReactMultiChildUpdateTypes.js +3 -5
  163. package/lib/shallow/ReactNodeTypes.js +3 -5
  164. package/lib/shallow/ReactOwner.js +3 -6
  165. package/lib/shallow/ReactPerf.js +9 -11
  166. package/lib/shallow/ReactPriorityLevel.js +5 -6
  167. package/lib/shallow/ReactPropTypeLocationNames.js +3 -5
  168. package/lib/shallow/ReactPropTypeLocations.js +3 -5
  169. package/lib/shallow/ReactPropTypesSecret.js +3 -5
  170. package/lib/shallow/ReactReconcileTransaction.js +3 -5
  171. package/lib/shallow/ReactReconciler.js +5 -9
  172. package/lib/shallow/ReactRef.js +3 -5
  173. package/lib/shallow/ReactReifiedYield.js +3 -5
  174. package/lib/shallow/ReactServerBatchingStrategy.js +3 -5
  175. package/lib/shallow/ReactServerRendering.js +3 -5
  176. package/lib/shallow/ReactServerRenderingTransaction.js +3 -5
  177. package/lib/shallow/ReactServerUpdateQueue.js +3 -5
  178. package/lib/shallow/ReactShallowRenderer.js +3 -5
  179. package/lib/shallow/ReactSimpleEmptyComponent.js +5 -7
  180. package/lib/shallow/ReactSyntheticEventType.js +3 -5
  181. package/lib/shallow/ReactTestEmptyComponent.js +3 -5
  182. package/lib/shallow/ReactTestMount.js +8 -8
  183. package/lib/shallow/ReactTestReconcileTransaction.js +2 -4
  184. package/lib/shallow/ReactTestRenderer.js +4 -5
  185. package/lib/shallow/ReactTestTextComponent.js +3 -5
  186. package/lib/shallow/ReactTypeOfWork.js +3 -5
  187. package/lib/shallow/ReactTypes.js +3 -5
  188. package/lib/shallow/ReactUpdateQueue.js +4 -8
  189. package/lib/shallow/ReactUpdates.js +4 -6
  190. package/lib/shallow/ReactVersion.js +4 -6
  191. package/lib/shallow/ResponderEventPlugin.js +3 -7
  192. package/lib/shallow/ResponderSyntheticEvent.js +3 -5
  193. package/lib/shallow/ResponderTouchHistoryStore.js +3 -5
  194. package/lib/shallow/SVGDOMPropertyConfig.js +3 -5
  195. package/lib/shallow/SelectEventPlugin.js +3 -8
  196. package/lib/shallow/SimpleEventPlugin.js +3 -7
  197. package/lib/shallow/SyntheticAnimationEvent.js +3 -5
  198. package/lib/shallow/SyntheticClipboardEvent.js +3 -5
  199. package/lib/shallow/SyntheticCompositionEvent.js +3 -5
  200. package/lib/shallow/SyntheticDragEvent.js +3 -5
  201. package/lib/shallow/SyntheticEvent.js +34 -33
  202. package/lib/shallow/SyntheticFocusEvent.js +3 -5
  203. package/lib/shallow/SyntheticInputEvent.js +3 -5
  204. package/lib/shallow/SyntheticKeyboardEvent.js +3 -5
  205. package/lib/shallow/SyntheticMouseEvent.js +3 -5
  206. package/lib/shallow/SyntheticTouchEvent.js +3 -5
  207. package/lib/shallow/SyntheticTransitionEvent.js +3 -5
  208. package/lib/shallow/SyntheticUIEvent.js +3 -5
  209. package/lib/shallow/SyntheticWheelEvent.js +6 -11
  210. package/lib/shallow/TapEventPlugin.js +3 -7
  211. package/lib/shallow/Transaction.js +6 -5
  212. package/lib/shallow/ViewportMetrics.js +3 -7
  213. package/lib/shallow/accumulate.js +3 -5
  214. package/lib/shallow/accumulateInto.js +3 -5
  215. package/lib/shallow/adler32.js +3 -5
  216. package/lib/shallow/canDefineProperty.js +3 -5
  217. package/lib/shallow/checkReactTypeSpec.js +3 -5
  218. package/lib/shallow/createMicrosoftUnsafeLocalFunction.js +3 -5
  219. package/lib/shallow/dangerousStyleValue.js +5 -7
  220. package/lib/shallow/deprecated.js +6 -8
  221. package/lib/shallow/escapeTextContentForBrowser.js +3 -6
  222. package/lib/shallow/findDOMNode.js +3 -5
  223. package/lib/shallow/flattenChildren.js +3 -5
  224. package/lib/shallow/forEachAccumulated.js +3 -5
  225. package/lib/shallow/getEventCharCode.js +3 -5
  226. package/lib/shallow/getEventKey.js +27 -19
  227. package/lib/shallow/getEventModifierState.js +7 -9
  228. package/lib/shallow/getEventTarget.js +3 -5
  229. package/lib/shallow/getHostComponentFromComposite.js +3 -5
  230. package/lib/shallow/getIteratorFn.js +3 -5
  231. package/lib/shallow/getNodeForCharacterOffset.js +3 -5
  232. package/lib/shallow/getTextContentAccessor.js +3 -5
  233. package/lib/shallow/getVendorPrefixedEventName.js +3 -5
  234. package/lib/shallow/inputValueTracking.js +120 -0
  235. package/lib/shallow/instantiateReactComponent.js +4 -6
  236. package/lib/shallow/isEventSupported.js +3 -5
  237. package/lib/shallow/isTextInputElement.js +17 -19
  238. package/lib/shallow/lowPriorityWarning.js +62 -0
  239. package/lib/shallow/quoteAttributeValueForBrowser.js +3 -5
  240. package/lib/shallow/reactProdInvariant.js +2 -4
  241. package/lib/shallow/renderSubtreeIntoContainer.js +3 -5
  242. package/lib/shallow/setInnerHTML.js +4 -6
  243. package/lib/shallow/setTextContent.js +3 -5
  244. package/lib/shallow/shouldUpdateReactComponent.js +3 -5
  245. package/lib/shallow/traverseAllChildren.js +4 -6
  246. package/lib/shallow/validateDOMNesting.js +4 -12
  247. package/lib/shouldUpdateReactComponent.js +3 -5
  248. package/lib/traverseAllChildren.js +4 -6
  249. package/package.json +21 -17
  250. package/PATENTS +0 -33
@@ -1,10 +1,8 @@
1
1
  /**
2
- * Copyright 2013-present, Facebook, Inc.
3
- * All rights reserved.
2
+ * Copyright (c) 2013-present, Facebook, Inc.
4
3
  *
5
- * This source code is licensed under the BSD-style license found in the
6
- * LICENSE file in the root directory of this source tree. An additional grant
7
- * of patent rights can be found in the PATENTS file in the same directory.
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
8
6
  *
9
7
  */
10
8
 
@@ -1,10 +1,8 @@
1
1
  /**
2
- * Copyright 2013-present, Facebook, Inc.
3
- * All rights reserved.
2
+ * Copyright (c) 2013-present, Facebook, Inc.
4
3
  *
5
- * This source code is licensed under the BSD-style license found in the
6
- * LICENSE file in the root directory of this source tree. An additional grant
7
- * of patent rights can be found in the PATENTS file in the same directory.
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
8
6
  *
9
7
  */
10
8
 
@@ -1,10 +1,8 @@
1
1
  /**
2
- * Copyright 2014-present, Facebook, Inc.
3
- * All rights reserved.
2
+ * Copyright (c) 2014-present, Facebook, Inc.
4
3
  *
5
- * This source code is licensed under the BSD-style license found in the
6
- * LICENSE file in the root directory of this source tree. An additional grant
7
- * of patent rights can be found in the PATENTS file in the same directory.
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
8
6
  *
9
7
  */
10
8
 
@@ -1,10 +1,8 @@
1
1
  /**
2
- * Copyright 2013-present, Facebook, Inc.
3
- * All rights reserved.
2
+ * Copyright (c) 2013-present, Facebook, Inc.
4
3
  *
5
- * This source code is licensed under the BSD-style license found in the
6
- * LICENSE file in the root directory of this source tree. An additional grant
7
- * of patent rights can be found in the PATENTS file in the same directory.
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
8
6
  *
9
7
  */
10
8
 
@@ -1,10 +1,8 @@
1
1
  /**
2
- * Copyright 2013-present, Facebook, Inc.
3
- * All rights reserved.
2
+ * Copyright (c) 2013-present, Facebook, Inc.
4
3
  *
5
- * This source code is licensed under the BSD-style license found in the
6
- * LICENSE file in the root directory of this source tree. An additional grant
7
- * of patent rights can be found in the PATENTS file in the same directory.
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
8
6
  *
9
7
  *
10
8
  */
@@ -63,7 +61,6 @@ var DOMRenderer = ReactFiberReconciler({
63
61
  scheduleAnimationCallback: window.requestAnimationFrame,
64
62
 
65
63
  scheduleDeferredCallback: window.requestIdleCallback
66
-
67
64
  });
68
65
 
69
66
  var warned = false;
@@ -1,10 +1,8 @@
1
1
  /**
2
- * Copyright 2013-present, Facebook, Inc.
3
- * All rights reserved.
2
+ * Copyright (c) 2013-present, Facebook, Inc.
4
3
  *
5
- * This source code is licensed under the BSD-style license found in the
6
- * LICENSE file in the root directory of this source tree. An additional grant
7
- * of patent rights can be found in the PATENTS file in the same directory.
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
8
6
  *
9
7
  */
10
8
 
@@ -17,7 +15,6 @@ var ReactDOMComponentTree = require('./ReactDOMComponentTree');
17
15
  * Operations used to process updates to DOM nodes.
18
16
  */
19
17
  var ReactDOMIDOperations = {
20
-
21
18
  /**
22
19
  * Updates a component's children by processing a series of updates.
23
20
  *
@@ -1,10 +1,8 @@
1
1
  /**
2
- * Copyright 2013-present, Facebook, Inc.
3
- * All rights reserved.
2
+ * Copyright (c) 2013-present, Facebook, Inc.
4
3
  *
5
- * This source code is licensed under the BSD-style license found in the
6
- * LICENSE file in the root directory of this source tree. An additional grant
7
- * of patent rights can be found in the PATENTS file in the same directory.
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
8
6
  *
9
7
  */
10
8
 
@@ -150,14 +148,16 @@ var ReactDOMInput = {
150
148
  // Simulate `input.valueAsNumber`. IE9 does not support it
151
149
  var valueAsNumber = parseFloat(node.value, 10) || 0;
152
150
 
151
+ if (
153
152
  // eslint-disable-next-line
154
- if (value != valueAsNumber) {
153
+ value != valueAsNumber ||
154
+ // eslint-disable-next-line
155
+ value == valueAsNumber && node.value != value) {
155
156
  // Cast `value` to a string to ensure the value is set correctly. While
156
157
  // browsers typically do this as necessary, jsdom doesn't.
157
158
  node.value = '' + value;
158
159
  }
159
- // eslint-disable-next-line
160
- } else if (value != node.value) {
160
+ } else if (node.value !== '' + value) {
161
161
  // Cast `value` to a string to ensure the value is set correctly. While
162
162
  // browsers typically do this as necessary, jsdom doesn't.
163
163
  node.value = '' + value;
@@ -1,10 +1,8 @@
1
1
  /**
2
- * Copyright 2013-present, Facebook, Inc.
3
- * All rights reserved.
2
+ * Copyright (c) 2013-present, Facebook, Inc.
4
3
  *
5
- * This source code is licensed under the BSD-style license found in the
6
- * LICENSE file in the root directory of this source tree. An additional grant
7
- * of patent rights can be found in the PATENTS file in the same directory.
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
8
6
  *
9
7
  */
10
8
 
@@ -1,10 +1,8 @@
1
1
  /**
2
- * Copyright 2013-present, Facebook, Inc.
3
- * All rights reserved.
2
+ * Copyright (c) 2013-present, Facebook, Inc.
4
3
  *
5
- * This source code is licensed under the BSD-style license found in the
6
- * LICENSE file in the root directory of this source tree. An additional grant
7
- * of patent rights can be found in the PATENTS file in the same directory.
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
8
6
  *
9
7
  */
10
8
 
@@ -1,10 +1,8 @@
1
1
  /**
2
- * Copyright 2013-present, Facebook, Inc.
3
- * All rights reserved.
2
+ * Copyright (c) 2013-present, Facebook, Inc.
4
3
  *
5
- * This source code is licensed under the BSD-style license found in the
6
- * LICENSE file in the root directory of this source tree. An additional grant
7
- * of patent rights can be found in the PATENTS file in the same directory.
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
8
6
  *
9
7
  */
10
8
 
@@ -116,7 +114,6 @@ var ReactDOMOption = {
116
114
 
117
115
  return hostProps;
118
116
  }
119
-
120
117
  };
121
118
 
122
119
  module.exports = ReactDOMOption;
@@ -1,10 +1,8 @@
1
1
  /**
2
- * Copyright 2013-present, Facebook, Inc.
3
- * All rights reserved.
2
+ * Copyright (c) 2013-present, Facebook, Inc.
4
3
  *
5
- * This source code is licensed under the BSD-style license found in the
6
- * LICENSE file in the root directory of this source tree. An additional grant
7
- * of patent rights can be found in the PATENTS file in the same directory.
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
8
6
  *
9
7
  */
10
8
 
@@ -1,10 +1,8 @@
1
1
  /**
2
- * Copyright 2013-present, Facebook, Inc.
3
- * All rights reserved.
2
+ * Copyright (c) 2013-present, Facebook, Inc.
4
3
  *
5
- * This source code is licensed under the BSD-style license found in the
6
- * LICENSE file in the root directory of this source tree. An additional grant
7
- * of patent rights can be found in the PATENTS file in the same directory.
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
8
6
  *
9
7
  */
10
8
 
@@ -1,10 +1,8 @@
1
1
  /**
2
- * Copyright 2013-present, Facebook, Inc.
3
- * All rights reserved.
2
+ * Copyright (c) 2013-present, Facebook, Inc.
4
3
  *
5
- * This source code is licensed under the BSD-style license found in the
6
- * LICENSE file in the root directory of this source tree. An additional grant
7
- * of patent rights can be found in the PATENTS file in the same directory.
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
8
6
  *
9
7
  */
10
8
 
@@ -1,10 +1,8 @@
1
1
  /**
2
- * Copyright 2013-present, Facebook, Inc.
3
- * All rights reserved.
2
+ * Copyright (c) 2013-present, Facebook, Inc.
4
3
  *
5
- * This source code is licensed under the BSD-style license found in the
6
- * LICENSE file in the root directory of this source tree. An additional grant
7
- * of patent rights can be found in the PATENTS file in the same directory.
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
8
6
  *
9
7
  */
10
8
 
@@ -52,7 +50,6 @@ var ReactDOMTextComponent = function (text) {
52
50
  };
53
51
 
54
52
  _assign(ReactDOMTextComponent.prototype, {
55
-
56
53
  /**
57
54
  * Creates the markup for this text node. This node is not intended to have
58
55
  * any features besides containing text content.
@@ -157,7 +154,6 @@ _assign(ReactDOMTextComponent.prototype, {
157
154
  this._commentNodes = null;
158
155
  ReactDOMComponentTree.uncacheNode(this);
159
156
  }
160
-
161
157
  });
162
158
 
163
159
  module.exports = ReactDOMTextComponent;
@@ -1,10 +1,8 @@
1
1
  /**
2
- * Copyright 2013-present, Facebook, Inc.
3
- * All rights reserved.
2
+ * Copyright (c) 2013-present, Facebook, Inc.
4
3
  *
5
- * This source code is licensed under the BSD-style license found in the
6
- * LICENSE file in the root directory of this source tree. An additional grant
7
- * of patent rights can be found in the PATENTS file in the same directory.
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
8
6
  *
9
7
  */
10
8
 
@@ -1,10 +1,8 @@
1
1
  /**
2
- * Copyright 2015-present, Facebook, Inc.
3
- * All rights reserved.
2
+ * Copyright (c) 2015-present, Facebook, Inc.
4
3
  *
5
- * This source code is licensed under the BSD-style license found in the
6
- * LICENSE file in the root directory of this source tree. An additional grant
7
- * of patent rights can be found in the PATENTS file in the same directory.
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
8
6
  *
9
7
  */
10
8
 
@@ -1,10 +1,8 @@
1
1
  /**
2
- * Copyright 2013-present, Facebook, Inc.
3
- * All rights reserved.
2
+ * Copyright (c) 2013-present, Facebook, Inc.
4
3
  *
5
- * This source code is licensed under the BSD-style license found in the
6
- * LICENSE file in the root directory of this source tree. An additional grant
7
- * of patent rights can be found in the PATENTS file in the same directory.
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
8
6
  *
9
7
  */
10
8
 
@@ -1,10 +1,8 @@
1
1
  /**
2
- * Copyright 2016-present, Facebook, Inc.
3
- * All rights reserved.
2
+ * Copyright (c) 2016-present, Facebook, Inc.
4
3
  *
5
- * This source code is licensed under the BSD-style license found in the
6
- * LICENSE file in the root directory of this source tree. An additional grant
7
- * of patent rights can be found in the PATENTS file in the same directory.
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
8
6
  *
9
7
  *
10
8
  */
@@ -226,7 +224,9 @@ function markEnd(debugID, markType) {
226
224
  }
227
225
 
228
226
  performance.clearMarks(markName);
229
- performance.clearMeasures(measurementName);
227
+ if (measurementName) {
228
+ performance.clearMeasures(measurementName);
229
+ }
230
230
  }
231
231
 
232
232
  var ReactDebugTool = {
@@ -1,10 +1,8 @@
1
1
  /**
2
- * Copyright 2013-present, Facebook, Inc.
3
- * All rights reserved.
2
+ * Copyright (c) 2013-present, Facebook, Inc.
4
3
  *
5
- * This source code is licensed under the BSD-style license found in the
6
- * LICENSE file in the root directory of this source tree. An additional grant
7
- * of patent rights can be found in the PATENTS file in the same directory.
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
8
6
  *
9
7
  */
10
8
 
@@ -1,10 +1,8 @@
1
1
  /**
2
- * Copyright 2013-present, Facebook, Inc.
3
- * All rights reserved.
2
+ * Copyright (c) 2013-present, Facebook, Inc.
4
3
  *
5
- * This source code is licensed under the BSD-style license found in the
6
- * LICENSE file in the root directory of this source tree. An additional grant
7
- * of patent rights can be found in the PATENTS file in the same directory.
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
8
6
  *
9
7
  */
10
8
 
@@ -1,10 +1,8 @@
1
1
  /**
2
- * Copyright 2014-present, Facebook, Inc.
3
- * All rights reserved.
2
+ * Copyright (c) 2014-present, Facebook, Inc.
4
3
  *
5
- * This source code is licensed under the BSD-style license found in the
6
- * LICENSE file in the root directory of this source tree. An additional grant
7
- * of patent rights can be found in the PATENTS file in the same directory.
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
8
6
  *
9
7
  *
10
8
  */
@@ -1,10 +1,8 @@
1
1
  /**
2
- * Copyright 2014-present, Facebook, Inc.
3
- * All rights reserved.
2
+ * Copyright (c) 2014-present, Facebook, Inc.
4
3
  *
5
- * This source code is licensed under the BSD-style license found in the
6
- * LICENSE file in the root directory of this source tree. An additional grant
7
- * of patent rights can be found in the PATENTS file in the same directory.
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
8
6
  *
9
7
  */
10
8
 
@@ -1,10 +1,8 @@
1
1
  /**
2
- * Copyright 2013-present, Facebook, Inc.
3
- * All rights reserved.
2
+ * Copyright (c) 2013-present, Facebook, Inc.
4
3
  *
5
- * This source code is licensed under the BSD-style license found in the
6
- * LICENSE file in the root directory of this source tree. An additional grant
7
- * of patent rights can be found in the PATENTS file in the same directory.
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
8
6
  *
9
7
  *
10
8
  */
@@ -61,7 +59,9 @@ if (process.env.NODE_ENV !== 'production') {
61
59
  if (typeof window !== 'undefined' && typeof window.dispatchEvent === 'function' && typeof document !== 'undefined' && typeof document.createEvent === 'function') {
62
60
  var fakeNode = document.createElement('react');
63
61
  ReactErrorUtils.invokeGuardedCallback = function (name, func, a) {
64
- var boundFunc = func.bind(null, a);
62
+ var boundFunc = function () {
63
+ func(a);
64
+ };
65
65
  var evtType = 'react-' + name;
66
66
  fakeNode.addEventListener(evtType, boundFunc, false);
67
67
  var evt = document.createEvent('Event');
@@ -1,10 +1,8 @@
1
1
  /**
2
- * Copyright 2013-present, Facebook, Inc.
3
- * All rights reserved.
2
+ * Copyright (c) 2013-present, Facebook, Inc.
4
3
  *
5
- * This source code is licensed under the BSD-style license found in the
6
- * LICENSE file in the root directory of this source tree. An additional grant
7
- * of patent rights can be found in the PATENTS file in the same directory.
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
8
6
  *
9
7
  */
10
8
 
@@ -18,7 +16,6 @@ function runEventQueueInBatch(events) {
18
16
  }
19
17
 
20
18
  var ReactEventEmitterMixin = {
21
-
22
19
  /**
23
20
  * Streams a fired top-level event to `EventPluginHub` where plugins have the
24
21
  * opportunity to create `ReactEvent`s to be dispatched.
@@ -1,10 +1,8 @@
1
1
  /**
2
- * Copyright 2013-present, Facebook, Inc.
3
- * All rights reserved.
2
+ * Copyright (c) 2013-present, Facebook, Inc.
4
3
  *
5
- * This source code is licensed under the BSD-style license found in the
6
- * LICENSE file in the root directory of this source tree. An additional grant
7
- * of patent rights can be found in the PATENTS file in the same directory.
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
8
6
  *
9
7
  */
10
8
 
@@ -1,10 +1,8 @@
1
1
  /**
2
- * Copyright 2013-present, Facebook, Inc.
3
- * All rights reserved.
2
+ * Copyright (c) 2013-present, Facebook, Inc.
4
3
  *
5
- * This source code is licensed under the BSD-style license found in the
6
- * LICENSE file in the root directory of this source tree. An additional grant
7
- * of patent rights can be found in the PATENTS file in the same directory.
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
8
6
  *
9
7
  *
10
8
  */
@@ -1,10 +1,8 @@
1
1
  /**
2
- * Copyright 2013-present, Facebook, Inc.
3
- * All rights reserved.
2
+ * Copyright (c) 2013-present, Facebook, Inc.
4
3
  *
5
- * This source code is licensed under the BSD-style license found in the
6
- * LICENSE file in the root directory of this source tree. An additional grant
7
- * of patent rights can be found in the PATENTS file in the same directory.
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
8
6
  *
9
7
  *
10
8
  */
@@ -47,7 +45,6 @@ var _require = require('./ReactPriorityLevel'),
47
45
  // compatible.
48
46
  var createFiber = function (tag, key) {
49
47
  return {
50
-
51
48
  // Instance
52
49
 
53
50
  tag: tag,
@@ -83,7 +80,6 @@ var createFiber = function (tag, key) {
83
80
  progressedChild: null,
84
81
 
85
82
  alternate: null
86
-
87
83
  };
88
84
  };
89
85
 
@@ -1,10 +1,8 @@
1
1
  /**
2
- * Copyright 2013-present, Facebook, Inc.
3
- * All rights reserved.
2
+ * Copyright (c) 2013-present, Facebook, Inc.
4
3
  *
5
- * This source code is licensed under the BSD-style license found in the
6
- * LICENSE file in the root directory of this source tree. An additional grant
7
- * of patent rights can be found in the PATENTS file in the same directory.
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
8
6
  *
9
7
  *
10
8
  */
@@ -42,7 +40,6 @@ var _require4 = require('./ReactFiberUpdateQueue'),
42
40
  var ReactInstanceMap = require('./ReactInstanceMap');
43
41
 
44
42
  module.exports = function (config, getScheduler) {
45
-
46
43
  function markChildAsProgressed(current, workInProgress, priorityLevel) {
47
44
  // We now have clones. Let's store them as the currently progressed work.
48
45
  workInProgress.progressedChild = workInProgress.child;
@@ -1,10 +1,8 @@
1
1
  /**
2
- * Copyright 2013-present, Facebook, Inc.
3
- * All rights reserved.
2
+ * Copyright (c) 2013-present, Facebook, Inc.
4
3
  *
5
- * This source code is licensed under the BSD-style license found in the
6
- * LICENSE file in the root directory of this source tree. An additional grant
7
- * of patent rights can be found in the PATENTS file in the same directory.
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
8
6
  *
9
7
  *
10
8
  */
@@ -20,7 +18,6 @@ var _require = require('./ReactFiberUpdateQueue'),
20
18
  callCallbacks = _require.callCallbacks;
21
19
 
22
20
  module.exports = function (config) {
23
-
24
21
  var updateContainer = config.updateContainer;
25
22
  var commitUpdate = config.commitUpdate;
26
23
 
@@ -1,10 +1,8 @@
1
1
  /**
2
- * Copyright 2013-present, Facebook, Inc.
3
- * All rights reserved.
2
+ * Copyright (c) 2013-present, Facebook, Inc.
4
3
  *
5
- * This source code is licensed under the BSD-style license found in the
6
- * LICENSE file in the root directory of this source tree. An additional grant
7
- * of patent rights can be found in the PATENTS file in the same directory.
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
8
6
  *
9
7
  *
10
8
  */
@@ -26,7 +24,6 @@ var IndeterminateComponent = ReactTypeOfWork.IndeterminateComponent,
26
24
 
27
25
 
28
26
  module.exports = function (config) {
29
-
30
27
  var createInstance = config.createInstance;
31
28
  var prepareUpdate = config.prepareUpdate;
32
29
 
@@ -193,7 +190,6 @@ module.exports = function (config) {
193
190
  case YieldComponent:
194
191
  // Does nothing.
195
192
  return null;
196
-
197
193
  // Error cases
198
194
  case IndeterminateComponent:
199
195
  throw new Error('An indeterminate component should have become determinate before completing.');
@@ -1,10 +1,8 @@
1
1
  /**
2
- * Copyright 2013-present, Facebook, Inc.
3
- * All rights reserved.
2
+ * Copyright (c) 2013-present, Facebook, Inc.
4
3
  *
5
- * This source code is licensed under the BSD-style license found in the
6
- * LICENSE file in the root directory of this source tree. An additional grant
7
- * of patent rights can be found in the PATENTS file in the same directory.
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
8
6
  *
9
7
  *
10
8
  */
@@ -1,10 +1,8 @@
1
1
  /**
2
- * Copyright 2013-present, Facebook, Inc.
3
- * All rights reserved.
2
+ * Copyright (c) 2013-present, Facebook, Inc.
4
3
  *
5
- * This source code is licensed under the BSD-style license found in the
6
- * LICENSE file in the root directory of this source tree. An additional grant
7
- * of patent rights can be found in the PATENTS file in the same directory.
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
8
6
  *
9
7
  *
10
8
  */
@@ -1,10 +1,8 @@
1
1
  /**
2
- * Copyright 2013-present, Facebook, Inc.
3
- * All rights reserved.
2
+ * Copyright (c) 2013-present, Facebook, Inc.
4
3
  *
5
- * This source code is licensed under the BSD-style license found in the
6
- * LICENSE file in the root directory of this source tree. An additional grant
7
- * of patent rights can be found in the PATENTS file in the same directory.
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
8
6
  *
9
7
  *
10
8
  */
@@ -1,10 +1,8 @@
1
1
  /**
2
- * Copyright 2013-present, Facebook, Inc.
3
- * All rights reserved.
2
+ * Copyright (c) 2013-present, Facebook, Inc.
4
3
  *
5
- * This source code is licensed under the BSD-style license found in the
6
- * LICENSE file in the root directory of this source tree. An additional grant
7
- * of patent rights can be found in the PATENTS file in the same directory.
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
8
6
  *
9
7
  *
10
8
  */
@@ -1,10 +1,8 @@
1
1
  /**
2
- * Copyright 2014-present, Facebook, Inc.
3
- * All rights reserved.
2
+ * Copyright (c) 2014-present, Facebook, Inc.
4
3
  *
5
- * This source code is licensed under the BSD-style license found in the
6
- * LICENSE file in the root directory of this source tree. An additional grant
7
- * of patent rights can be found in the PATENTS file in the same directory.
4
+ * This source code is licensed under the MIT license found in the
5
+ * LICENSE file in the root directory of this source tree.
8
6
  *
9
7
  */
10
8