react-test-renderer 15.5.3 → 15.5.4

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.
@@ -124,6 +124,12 @@ var ReactShallowRenderer = function () {
124
124
  }
125
125
  };
126
126
 
127
+ ReactShallowRenderer.prototype.unstable_batchedUpdates = function unstable_batchedUpdates(callback, bookkeeping) {
128
+ // This is used by Enzyme for fake-simulating events in shallow mode.
129
+ injectDefaults();
130
+ return ReactUpdates.batchedUpdates(callback, bookkeeping);
131
+ };
132
+
127
133
  ReactShallowRenderer.prototype._render = function _render(element, transaction, context) {
128
134
  if (this._instance) {
129
135
  ReactReconciler.receiveComponent(this._instance, element, transaction, context);
@@ -10,4 +10,4 @@
10
10
 
11
11
  'use strict';
12
12
 
13
- module.exports = '15.5.3';
13
+ module.exports = '15.5.0';
@@ -124,6 +124,12 @@ var ReactShallowRenderer = function () {
124
124
  }
125
125
  };
126
126
 
127
+ ReactShallowRenderer.prototype.unstable_batchedUpdates = function unstable_batchedUpdates(callback, bookkeeping) {
128
+ // This is used by Enzyme for fake-simulating events in shallow mode.
129
+ injectDefaults();
130
+ return ReactUpdates.batchedUpdates(callback, bookkeeping);
131
+ };
132
+
127
133
  ReactShallowRenderer.prototype._render = function _render(element, transaction, context) {
128
134
  if (this._instance) {
129
135
  ReactReconciler.receiveComponent(this._instance, element, transaction, context);
@@ -10,4 +10,4 @@
10
10
 
11
11
  'use strict';
12
12
 
13
- module.exports = '15.5.3';
13
+ module.exports = '15.5.0';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-test-renderer",
3
- "version": "15.5.3",
3
+ "version": "15.5.4",
4
4
  "description": "React package for snapshot testing.",
5
5
  "main": "index.js",
6
6
  "repository": "facebook/react",
@@ -19,7 +19,7 @@
19
19
  "object-assign": "^4.1.0"
20
20
  },
21
21
  "peerDependencies": {
22
- "react": "^15.5.3"
22
+ "react": "^15.5.0"
23
23
  },
24
24
  "files": [
25
25
  "LICENSE",