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/build-info.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
- "branch": "master",
3
- "buildNumber": "216201",
4
- "checksum": "6a2f7e9",
5
- "commit": "4ead6b530",
2
+ "branch": "17.0.1",
3
+ "buildNumber": "222790",
4
+ "checksum": "addb3df",
5
+ "commit": "8e5adfbd7",
6
6
  "environment": "ci",
7
- "reactVersion": "17.0.0-alpha.0-4ead6b530"
7
+ "reactVersion": "17.0.0-8e5adfbd7"
8
8
  }
@@ -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.
@@ -2269,7 +2269,15 @@ function laneToLanes(lane) {
2269
2269
  return lane;
2270
2270
  }
2271
2271
  function createLaneMap(initial) {
2272
- return new Array(TotalLanes).fill(initial);
2272
+ // Intentionally pushing one by one.
2273
+ // https://v8.dev/blog/elements-kinds#avoid-creating-holes
2274
+ var laneMap = [];
2275
+
2276
+ for (var i = 0; i < TotalLanes; i++) {
2277
+ laneMap.push(initial);
2278
+ }
2279
+
2280
+ return laneMap;
2273
2281
  }
2274
2282
  function markRootUpdated(root, updateLane, eventTime) {
2275
2283
  root.pendingLanes |= updateLane; // TODO: Theoretically, any update to any lane can unblock any other lane. But
@@ -2548,7 +2556,7 @@ function flushSyncCallbackQueueImpl() {
2548
2556
  }
2549
2557
 
2550
2558
  // TODO: this is special because it gets imported during build.
2551
- var ReactVersion = '17.0.0';
2559
+ var ReactVersion = '17.0.1';
2552
2560
 
2553
2561
  var NoMode = 0;
2554
2562
  var StrictMode = 1; // TODO: Remove BlockingMode and ConcurrentMode by reading from the root