react-test-renderer 17.0.0 → 17.0.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-test-renderer",
3
- "version": "17.0.0",
3
+ "version": "17.0.1",
4
4
  "description": "React package for snapshot testing.",
5
5
  "main": "index.js",
6
6
  "repository": {
@@ -20,12 +20,12 @@
20
20
  "homepage": "https://reactjs.org/",
21
21
  "dependencies": {
22
22
  "object-assign": "^4.1.1",
23
- "react-is": "^17.0.0",
23
+ "react-is": "^17.0.1",
24
24
  "react-shallow-renderer": "^16.13.1",
25
- "scheduler": "^0.20.0"
25
+ "scheduler": "^0.20.1"
26
26
  },
27
27
  "peerDependencies": {
28
- "react": "17.0.0"
28
+ "react": "17.0.1"
29
29
  },
30
30
  "files": [
31
31
  "LICENSE",
@@ -1,4 +1,4 @@
1
- /** @license React v17.0.0
1
+ /** @license React v17.0.1
2
2
  * react-test-renderer.development.js
3
3
  *
4
4
  * Copyright (c) Facebook, Inc. and its affiliates.
@@ -2277,7 +2277,15 @@
2277
2277
  return lane;
2278
2278
  }
2279
2279
  function createLaneMap(initial) {
2280
- return new Array(TotalLanes).fill(initial);
2280
+ // Intentionally pushing one by one.
2281
+ // https://v8.dev/blog/elements-kinds#avoid-creating-holes
2282
+ var laneMap = [];
2283
+
2284
+ for (var i = 0; i < TotalLanes; i++) {
2285
+ laneMap.push(initial);
2286
+ }
2287
+
2288
+ return laneMap;
2281
2289
  }
2282
2290
  function markRootUpdated(root, updateLane, eventTime) {
2283
2291
  root.pendingLanes |= updateLane; // TODO: Theoretically, any update to any lane can unblock any other lane. But
@@ -2556,7 +2564,7 @@
2556
2564
  }
2557
2565
 
2558
2566
  // TODO: this is special because it gets imported during build.
2559
- var ReactVersion = '17.0.0';
2567
+ var ReactVersion = '17.0.1';
2560
2568
 
2561
2569
  var NoMode = 0;
2562
2570
  var StrictMode = 1; // TODO: Remove BlockingMode and ConcurrentMode by reading from the root