react 0.9.0-rc1 → 0.9.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 (141) hide show
  1. package/lib/AutoFocusMixin.js +1 -1
  2. package/lib/CSSCore.js +1 -1
  3. package/lib/CSSProperty.js +1 -1
  4. package/lib/CSSPropertyOperations.js +1 -1
  5. package/lib/ChangeEventPlugin.js +1 -1
  6. package/lib/ClientReactRootIndex.js +1 -1
  7. package/lib/CompositionEventPlugin.js +1 -1
  8. package/lib/DOMChildrenOperations.js +1 -1
  9. package/lib/DOMProperty.js +1 -1
  10. package/lib/DOMPropertyOperations.js +1 -1
  11. package/lib/Danger.js +1 -1
  12. package/lib/DefaultDOMPropertyConfig.js +7 -1
  13. package/lib/DefaultEventPluginOrder.js +1 -1
  14. package/lib/EnterLeaveEventPlugin.js +1 -1
  15. package/lib/EventConstants.js +1 -1
  16. package/lib/EventPluginHub.js +3 -1
  17. package/lib/EventPluginRegistry.js +23 -2
  18. package/lib/EventPluginUtils.js +1 -1
  19. package/lib/EventPropagators.js +1 -1
  20. package/lib/ExecutionEnvironment.js +1 -1
  21. package/lib/LinkedStateMixin.js +1 -1
  22. package/lib/LinkedValueUtils.js +1 -1
  23. package/lib/MobileSafariClickEventPlugin.js +1 -1
  24. package/lib/PooledClass.js +1 -1
  25. package/lib/React.js +2 -2
  26. package/lib/ReactCSSTransitionGroup.js +1 -1
  27. package/lib/ReactCSSTransitionGroupChild.js +1 -1
  28. package/lib/ReactChildren.js +4 -4
  29. package/lib/ReactComponent.js +1 -1
  30. package/lib/ReactComponentBrowserEnvironment.js +1 -1
  31. package/lib/ReactComponentEnvironment.js +1 -1
  32. package/lib/ReactCompositeComponent.js +1 -1
  33. package/lib/ReactContext.js +1 -1
  34. package/lib/ReactCurrentOwner.js +1 -1
  35. package/lib/ReactDOM.js +1 -1
  36. package/lib/ReactDOMButton.js +1 -1
  37. package/lib/ReactDOMComponent.js +1 -1
  38. package/lib/ReactDOMForm.js +1 -1
  39. package/lib/ReactDOMIDOperations.js +1 -1
  40. package/lib/ReactDOMImg.js +1 -1
  41. package/lib/ReactDOMInput.js +1 -1
  42. package/lib/ReactDOMOption.js +1 -1
  43. package/lib/ReactDOMSelect.js +1 -1
  44. package/lib/ReactDOMSelection.js +1 -1
  45. package/lib/ReactDOMTextarea.js +1 -1
  46. package/lib/ReactDefaultBatchingStrategy.js +1 -1
  47. package/lib/ReactDefaultInjection.js +1 -1
  48. package/lib/ReactDefaultPerf.js +1 -1
  49. package/lib/ReactDefaultPerfAnalysis.js +1 -1
  50. package/lib/ReactErrorUtils.js +1 -1
  51. package/lib/ReactEventEmitter.js +3 -1
  52. package/lib/ReactEventEmitterMixin.js +1 -1
  53. package/lib/ReactEventTopLevelCallback.js +56 -16
  54. package/lib/ReactInjection.js +1 -1
  55. package/lib/ReactInputSelection.js +1 -1
  56. package/lib/ReactInstanceHandles.js +1 -1
  57. package/lib/ReactLink.js +1 -1
  58. package/lib/ReactMarkupChecksum.js +1 -1
  59. package/lib/ReactMount.js +1 -1
  60. package/lib/ReactMountReady.js +1 -1
  61. package/lib/ReactMultiChild.js +1 -1
  62. package/lib/ReactMultiChildUpdateTypes.js +1 -1
  63. package/lib/ReactOwner.js +1 -1
  64. package/lib/ReactPerf.js +1 -1
  65. package/lib/ReactPropTransferer.js +1 -1
  66. package/lib/ReactPropTypeLocationNames.js +1 -1
  67. package/lib/ReactPropTypeLocations.js +1 -1
  68. package/lib/ReactPropTypes.js +19 -19
  69. package/lib/ReactPutListenerQueue.js +1 -1
  70. package/lib/ReactReconcileTransaction.js +1 -1
  71. package/lib/ReactRootIndex.js +1 -1
  72. package/lib/ReactServerRendering.js +1 -1
  73. package/lib/ReactStateSetters.js +1 -1
  74. package/lib/ReactTestUtils.js +394 -0
  75. package/lib/ReactTextComponent.js +1 -1
  76. package/lib/ReactTransitionChildMapping.js +1 -1
  77. package/lib/ReactTransitionEvents.js +1 -1
  78. package/lib/ReactTransitionGroup.js +1 -1
  79. package/lib/ReactUpdates.js +1 -1
  80. package/lib/ReactWithAddons.js +6 -1
  81. package/lib/SelectEventPlugin.js +1 -1
  82. package/lib/ServerReactRootIndex.js +1 -1
  83. package/lib/SimpleEventPlugin.js +1 -1
  84. package/lib/SyntheticClipboardEvent.js +1 -1
  85. package/lib/SyntheticCompositionEvent.js +1 -1
  86. package/lib/SyntheticDragEvent.js +1 -1
  87. package/lib/SyntheticEvent.js +1 -1
  88. package/lib/SyntheticFocusEvent.js +1 -1
  89. package/lib/SyntheticKeyboardEvent.js +1 -1
  90. package/lib/SyntheticMouseEvent.js +1 -1
  91. package/lib/SyntheticTouchEvent.js +1 -1
  92. package/lib/SyntheticUIEvent.js +1 -1
  93. package/lib/SyntheticWheelEvent.js +1 -1
  94. package/lib/Transaction.js +1 -1
  95. package/lib/ViewportMetrics.js +1 -1
  96. package/lib/accumulate.js +1 -1
  97. package/lib/adler32.js +1 -1
  98. package/lib/cloneWithProps.js +1 -1
  99. package/lib/containsNode.js +1 -1
  100. package/lib/copyProperties.js +1 -1
  101. package/lib/createArrayFrom.js +1 -1
  102. package/lib/createFullPageComponent.js +1 -1
  103. package/lib/createNodesFromMarkup.js +1 -1
  104. package/lib/createObjectFrom.js +1 -1
  105. package/lib/cx.js +1 -1
  106. package/lib/dangerousStyleValue.js +1 -1
  107. package/lib/emptyFunction.js +1 -1
  108. package/lib/escapeTextForBrowser.js +1 -1
  109. package/lib/flattenChildren.js +1 -1
  110. package/lib/forEachAccumulated.js +1 -1
  111. package/lib/getActiveElement.js +1 -1
  112. package/lib/getEventKey.js +1 -1
  113. package/lib/getEventTarget.js +1 -1
  114. package/lib/getMarkupWrap.js +1 -1
  115. package/lib/getNodeForCharacterOffset.js +1 -1
  116. package/lib/getReactRootElementInContainer.js +1 -1
  117. package/lib/getTextContentAccessor.js +1 -1
  118. package/lib/getUnboundedScrollPosition.js +1 -1
  119. package/lib/hyphenate.js +1 -1
  120. package/lib/invariant.js +8 -8
  121. package/lib/isEventSupported.js +1 -1
  122. package/lib/isNode.js +1 -1
  123. package/lib/isTextInputElement.js +1 -1
  124. package/lib/isTextNode.js +1 -1
  125. package/lib/joinClasses.js +1 -1
  126. package/lib/keyMirror.js +1 -1
  127. package/lib/keyOf.js +1 -1
  128. package/lib/memoizeStringOnly.js +1 -1
  129. package/lib/merge.js +1 -1
  130. package/lib/mergeHelpers.js +1 -1
  131. package/lib/mergeInto.js +1 -1
  132. package/lib/mixInto.js +1 -1
  133. package/lib/objMap.js +1 -1
  134. package/lib/objMapKeyVal.js +1 -1
  135. package/lib/onlyChild.js +1 -1
  136. package/lib/performanceNow.js +1 -1
  137. package/lib/shallowEqual.js +1 -1
  138. package/lib/shouldUpdateReactComponent.js +1 -1
  139. package/lib/traverseAllChildren.js +1 -1
  140. package/lib/warning.js +19 -11
  141. package/package.json +3 -2
package/lib/isTextNode.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright 2013 Facebook, Inc.
2
+ * Copyright 2013-2014 Facebook, Inc.
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright 2013 Facebook, Inc.
2
+ * Copyright 2013-2014 Facebook, Inc.
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
package/lib/keyMirror.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright 2013 Facebook, Inc.
2
+ * Copyright 2013-2014 Facebook, Inc.
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
package/lib/keyOf.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright 2013 Facebook, Inc.
2
+ * Copyright 2013-2014 Facebook, Inc.
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright 2013 Facebook, Inc.
2
+ * Copyright 2013-2014 Facebook, Inc.
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
package/lib/merge.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright 2013 Facebook, Inc.
2
+ * Copyright 2013-2014 Facebook, Inc.
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright 2013 Facebook, Inc.
2
+ * Copyright 2013-2014 Facebook, Inc.
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
package/lib/mergeInto.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright 2013 Facebook, Inc.
2
+ * Copyright 2013-2014 Facebook, Inc.
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
package/lib/mixInto.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright 2013 Facebook, Inc.
2
+ * Copyright 2013-2014 Facebook, Inc.
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
package/lib/objMap.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright 2013 Facebook, Inc.
2
+ * Copyright 2013-2014 Facebook, Inc.
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright 2013 Facebook, Inc.
2
+ * Copyright 2013-2014 Facebook, Inc.
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
package/lib/onlyChild.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright 2013 Facebook, Inc.
2
+ * Copyright 2013-2014 Facebook, Inc.
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright 2013 Facebook, Inc.
2
+ * Copyright 2013-2014 Facebook, Inc.
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright 2013 Facebook, Inc.
2
+ * Copyright 2013-2014 Facebook, Inc.
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright 2013 Facebook, Inc.
2
+ * Copyright 2013-2014 Facebook, Inc.
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright 2013 Facebook, Inc.
2
+ * Copyright 2013-2014 Facebook, Inc.
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License");
5
5
  * you may not use this file except in compliance with the License.
package/lib/warning.js CHANGED
@@ -16,6 +16,9 @@
16
16
  * @providesModule warning
17
17
  */
18
18
 
19
+ "use strict";
20
+
21
+ var emptyFunction = require("./emptyFunction");
19
22
 
20
23
  /**
21
24
  * Similar to invariant but only logs a warning if the condition is not met.
@@ -23,18 +26,23 @@
23
26
  * paths. Removing the logging code for production environments will keep the
24
27
  * same logic and follow the same code paths.
25
28
  */
26
- function warning(condition, format ) {var args=Array.prototype.slice.call(arguments,2);
27
- if (format === undefined) {
28
- throw new Error(
29
- '`warning(condition, format, ...args)` requires a warning ' +
30
- 'message argument'
31
- );
32
- }
33
29
 
34
- if (!condition) {
35
- var argIndex = 0;
36
- console.warn('Warning: ' + format.replace(/%s/g, function() {return args[argIndex++];}));
37
- }
30
+ var warning = emptyFunction;
31
+
32
+ if ("production" !== process.env.NODE_ENV) {
33
+ warning = function(condition, format ) {var args=Array.prototype.slice.call(arguments,2);
34
+ if (format === undefined) {
35
+ throw new Error(
36
+ '`warning(condition, format, ...args)` requires a warning ' +
37
+ 'message argument'
38
+ );
39
+ }
40
+
41
+ if (!condition) {
42
+ var argIndex = 0;
43
+ console.warn('Warning: ' + format.replace(/%s/g, function() {return args[argIndex++];}));
44
+ }
45
+ };
38
46
  }
39
47
 
40
48
  module.exports = warning;
package/package.json CHANGED
@@ -1,6 +1,7 @@
1
1
  {
2
2
  "name": "react",
3
- "version": "0.9.0-rc1",
3
+ "description": "React is a JavaScript library for building user interfaces.",
4
+ "version": "0.9.0",
4
5
  "keywords": [
5
6
  "react"
6
7
  ],
@@ -27,7 +28,7 @@
27
28
  "node": ">=0.10.0"
28
29
  },
29
30
  "peerDependencies": {
30
- "envify": "~1.0.1"
31
+ "envify": "~1.2.0"
31
32
  },
32
33
  "browserify": {
33
34
  "transform": [