react-test-renderer 16.0.0-rc.3 → 16.0.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.
- package/LICENSE +16 -26
- package/cjs/react-test-renderer-shallow.development.js +12 -20
- package/cjs/react-test-renderer.development.js +58 -80
- package/package.json +4 -5
- package/PATENTS +0 -33
package/LICENSE
CHANGED
|
@@ -1,31 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
For React software
|
|
1
|
+
MIT License
|
|
4
2
|
|
|
5
3
|
Copyright (c) 2013-present, Facebook, Inc.
|
|
6
|
-
All rights reserved.
|
|
7
|
-
|
|
8
|
-
Redistribution and use in source and binary forms, with or without modification,
|
|
9
|
-
are permitted provided that the following conditions are met:
|
|
10
|
-
|
|
11
|
-
* Redistributions of source code must retain the above copyright notice, this
|
|
12
|
-
list of conditions and the following disclaimer.
|
|
13
4
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
17
11
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
prior written permission.
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
21
14
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
30
|
-
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
31
|
-
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
/** @license React v16.0.0
|
|
1
|
+
/** @license React v16.0.0
|
|
2
2
|
* react-test-renderer-shallow.development.js
|
|
3
3
|
*
|
|
4
|
-
* Copyright 2013-present, Facebook, Inc.
|
|
5
|
-
* All rights reserved.
|
|
4
|
+
* Copyright (c) 2013-present, Facebook, Inc.
|
|
6
5
|
*
|
|
7
|
-
* This source code is licensed under the
|
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
* of patent rights can be found in the PATENTS file in the same directory.
|
|
6
|
+
* This source code is licensed under the MIT license found in the
|
|
7
|
+
* LICENSE file in the root directory of this source tree.
|
|
10
8
|
*/
|
|
11
9
|
'use strict';
|
|
12
10
|
|
|
@@ -24,23 +22,19 @@ var invariant = require('fbjs/lib/invariant');
|
|
|
24
22
|
|
|
25
23
|
/**
|
|
26
24
|
* Copyright (c) 2013-present, Facebook, Inc.
|
|
27
|
-
* All rights reserved.
|
|
28
25
|
*
|
|
29
|
-
* This source code is licensed under the
|
|
30
|
-
* LICENSE file in the root directory of this source tree.
|
|
31
|
-
* of patent rights can be found in the PATENTS file in the same directory.
|
|
26
|
+
* This source code is licensed under the MIT license found in the
|
|
27
|
+
* LICENSE file in the root directory of this source tree.
|
|
32
28
|
*
|
|
33
29
|
* @providesModule reactProdInvariant
|
|
34
30
|
*
|
|
35
31
|
*/
|
|
36
32
|
|
|
37
33
|
/**
|
|
38
|
-
* Copyright 2016-present, Facebook, Inc.
|
|
39
|
-
* All rights reserved.
|
|
34
|
+
* Copyright (c) 2016-present, Facebook, Inc.
|
|
40
35
|
*
|
|
41
|
-
* This source code is licensed under the
|
|
42
|
-
* LICENSE file in the root directory of this source tree.
|
|
43
|
-
* of patent rights can be found in the PATENTS file in the same directory.
|
|
36
|
+
* This source code is licensed under the MIT license found in the
|
|
37
|
+
* LICENSE file in the root directory of this source tree.
|
|
44
38
|
*
|
|
45
39
|
*
|
|
46
40
|
* @providesModule describeComponentFrame
|
|
@@ -51,12 +45,10 @@ var describeComponentFrame = function (name, source, ownerName) {
|
|
|
51
45
|
};
|
|
52
46
|
|
|
53
47
|
/**
|
|
54
|
-
* Copyright 2013-present, Facebook, Inc.
|
|
55
|
-
* All rights reserved.
|
|
48
|
+
* Copyright (c) 2013-present, Facebook, Inc.
|
|
56
49
|
*
|
|
57
|
-
* This source code is licensed under the
|
|
58
|
-
* LICENSE file in the root directory of this source tree.
|
|
59
|
-
* of patent rights can be found in the PATENTS file in the same directory.
|
|
50
|
+
* This source code is licensed under the MIT license found in the
|
|
51
|
+
* LICENSE file in the root directory of this source tree.
|
|
60
52
|
*
|
|
61
53
|
* @providesModule getComponentName
|
|
62
54
|
*
|
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
/** @license React v16.0.0
|
|
1
|
+
/** @license React v16.0.0
|
|
2
2
|
* react-test-renderer.development.js
|
|
3
3
|
*
|
|
4
|
-
* Copyright 2013-present, Facebook, Inc.
|
|
5
|
-
* All rights reserved.
|
|
4
|
+
* Copyright (c) 2013-present, Facebook, Inc.
|
|
6
5
|
*
|
|
7
|
-
* This source code is licensed under the
|
|
8
|
-
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
* of patent rights can be found in the PATENTS file in the same directory.
|
|
6
|
+
* This source code is licensed under the MIT license found in the
|
|
7
|
+
* LICENSE file in the root directory of this source tree.
|
|
10
8
|
*/
|
|
11
9
|
'use strict';
|
|
12
10
|
|
|
@@ -26,23 +24,19 @@ var shallowEqual = require('fbjs/lib/shallowEqual');
|
|
|
26
24
|
|
|
27
25
|
/**
|
|
28
26
|
* Copyright (c) 2013-present, Facebook, Inc.
|
|
29
|
-
* All rights reserved.
|
|
30
27
|
*
|
|
31
|
-
* This source code is licensed under the
|
|
32
|
-
* LICENSE file in the root directory of this source tree.
|
|
33
|
-
* of patent rights can be found in the PATENTS file in the same directory.
|
|
28
|
+
* This source code is licensed under the MIT license found in the
|
|
29
|
+
* LICENSE file in the root directory of this source tree.
|
|
34
30
|
*
|
|
35
31
|
* @providesModule reactProdInvariant
|
|
36
32
|
*
|
|
37
33
|
*/
|
|
38
34
|
|
|
39
35
|
/**
|
|
40
|
-
* Copyright 2013-present, Facebook, Inc.
|
|
41
|
-
* All rights reserved.
|
|
36
|
+
* Copyright (c) 2013-present, Facebook, Inc.
|
|
42
37
|
*
|
|
43
|
-
* This source code is licensed under the
|
|
44
|
-
* LICENSE file in the root directory of this source tree.
|
|
45
|
-
* of patent rights can be found in the PATENTS file in the same directory.
|
|
38
|
+
* This source code is licensed under the MIT license found in the
|
|
39
|
+
* LICENSE file in the root directory of this source tree.
|
|
46
40
|
*
|
|
47
41
|
* @providesModule ReactFeatureFlags
|
|
48
42
|
*
|
|
@@ -55,12 +49,10 @@ var ReactFeatureFlags = {
|
|
|
55
49
|
var ReactFeatureFlags_1 = ReactFeatureFlags;
|
|
56
50
|
|
|
57
51
|
/**
|
|
58
|
-
* Copyright 2013-present, Facebook, Inc.
|
|
59
|
-
* All rights reserved.
|
|
52
|
+
* Copyright (c) 2013-present, Facebook, Inc.
|
|
60
53
|
*
|
|
61
|
-
* This source code is licensed under the
|
|
62
|
-
* LICENSE file in the root directory of this source tree.
|
|
63
|
-
* of patent rights can be found in the PATENTS file in the same directory.
|
|
54
|
+
* This source code is licensed under the MIT license found in the
|
|
55
|
+
* LICENSE file in the root directory of this source tree.
|
|
64
56
|
*
|
|
65
57
|
* @providesModule ReactTypeOfSideEffect
|
|
66
58
|
*
|
|
@@ -81,12 +73,10 @@ var ReactTypeOfSideEffect = {
|
|
|
81
73
|
Ref: 128 };
|
|
82
74
|
|
|
83
75
|
/**
|
|
84
|
-
* Copyright 2013-present, Facebook, Inc.
|
|
85
|
-
* All rights reserved.
|
|
76
|
+
* Copyright (c) 2013-present, Facebook, Inc.
|
|
86
77
|
*
|
|
87
|
-
* This source code is licensed under the
|
|
88
|
-
* LICENSE file in the root directory of this source tree.
|
|
89
|
-
* of patent rights can be found in the PATENTS file in the same directory.
|
|
78
|
+
* This source code is licensed under the MIT license found in the
|
|
79
|
+
* LICENSE file in the root directory of this source tree.
|
|
90
80
|
*
|
|
91
81
|
* @providesModule ReactPriorityLevel
|
|
92
82
|
*
|
|
@@ -101,12 +91,10 @@ var ReactPriorityLevel = {
|
|
|
101
91
|
OffscreenPriority: 5 };
|
|
102
92
|
|
|
103
93
|
/**
|
|
104
|
-
* Copyright 2013-present, Facebook, Inc.
|
|
105
|
-
* All rights reserved.
|
|
94
|
+
* Copyright (c) 2013-present, Facebook, Inc.
|
|
106
95
|
*
|
|
107
|
-
* This source code is licensed under the
|
|
108
|
-
* LICENSE file in the root directory of this source tree.
|
|
109
|
-
* of patent rights can be found in the PATENTS file in the same directory.
|
|
96
|
+
* This source code is licensed under the MIT license found in the
|
|
97
|
+
* LICENSE file in the root directory of this source tree.
|
|
110
98
|
*
|
|
111
99
|
* @providesModule ReactTypeOfWork
|
|
112
100
|
*
|
|
@@ -552,12 +540,10 @@ var ReactFiberUpdateQueue = {
|
|
|
552
540
|
};
|
|
553
541
|
|
|
554
542
|
/**
|
|
555
|
-
* Copyright 2013-present, Facebook, Inc.
|
|
556
|
-
* All rights reserved.
|
|
543
|
+
* Copyright (c) 2013-present, Facebook, Inc.
|
|
557
544
|
*
|
|
558
|
-
* This source code is licensed under the
|
|
559
|
-
* LICENSE file in the root directory of this source tree.
|
|
560
|
-
* of patent rights can be found in the PATENTS file in the same directory.
|
|
545
|
+
* This source code is licensed under the MIT license found in the
|
|
546
|
+
* LICENSE file in the root directory of this source tree.
|
|
561
547
|
*
|
|
562
548
|
* @providesModule getComponentName
|
|
563
549
|
*
|
|
@@ -587,12 +573,10 @@ function getComponentName$1(instanceOrFiber) {
|
|
|
587
573
|
var getComponentName_1 = getComponentName$1;
|
|
588
574
|
|
|
589
575
|
/**
|
|
590
|
-
* Copyright 2013-present, Facebook, Inc.
|
|
591
|
-
* All rights reserved.
|
|
576
|
+
* Copyright (c) 2013-present, Facebook, Inc.
|
|
592
577
|
*
|
|
593
|
-
* This source code is licensed under the
|
|
594
|
-
* LICENSE file in the root directory of this source tree.
|
|
595
|
-
* of patent rights can be found in the PATENTS file in the same directory.
|
|
578
|
+
* This source code is licensed under the MIT license found in the
|
|
579
|
+
* LICENSE file in the root directory of this source tree.
|
|
596
580
|
*
|
|
597
581
|
* @providesModule ReactInstanceMap
|
|
598
582
|
*/
|
|
@@ -989,12 +973,10 @@ var ReactFiberStack = {
|
|
|
989
973
|
};
|
|
990
974
|
|
|
991
975
|
/**
|
|
992
|
-
* Copyright 2016-present, Facebook, Inc.
|
|
993
|
-
* All rights reserved.
|
|
976
|
+
* Copyright (c) 2016-present, Facebook, Inc.
|
|
994
977
|
*
|
|
995
|
-
* This source code is licensed under the
|
|
996
|
-
* LICENSE file in the root directory of this source tree.
|
|
997
|
-
* of patent rights can be found in the PATENTS file in the same directory.
|
|
978
|
+
* This source code is licensed under the MIT license found in the
|
|
979
|
+
* LICENSE file in the root directory of this source tree.
|
|
998
980
|
*
|
|
999
981
|
*
|
|
1000
982
|
* @providesModule describeComponentFrame
|
|
@@ -1109,12 +1091,10 @@ var ReactDebugCurrentFiber_1 = ReactDebugCurrentFiber$2;
|
|
|
1109
1091
|
|
|
1110
1092
|
// Trust the developer to only use this with a true check
|
|
1111
1093
|
/**
|
|
1112
|
-
* Copyright 2013-present, Facebook, Inc.
|
|
1113
|
-
* All rights reserved.
|
|
1094
|
+
* Copyright (c) 2013-present, Facebook, Inc.
|
|
1114
1095
|
*
|
|
1115
|
-
* This source code is licensed under the
|
|
1116
|
-
* LICENSE file in the root directory of this source tree.
|
|
1117
|
-
* of patent rights can be found in the PATENTS file in the same directory.
|
|
1096
|
+
* This source code is licensed under the MIT license found in the
|
|
1097
|
+
* LICENSE file in the root directory of this source tree.
|
|
1118
1098
|
*
|
|
1119
1099
|
* @providesModule ReactDebugFiberPerf
|
|
1120
1100
|
*
|
|
@@ -1712,12 +1692,10 @@ var ReactFiberContext = {
|
|
|
1712
1692
|
};
|
|
1713
1693
|
|
|
1714
1694
|
/**
|
|
1715
|
-
* Copyright 2013-present, Facebook, Inc.
|
|
1716
|
-
* All rights reserved.
|
|
1695
|
+
* Copyright (c) 2013-present, Facebook, Inc.
|
|
1717
1696
|
*
|
|
1718
|
-
* This source code is licensed under the
|
|
1719
|
-
* LICENSE file in the root directory of this source tree.
|
|
1720
|
-
* of patent rights can be found in the PATENTS file in the same directory.
|
|
1697
|
+
* This source code is licensed under the MIT license found in the
|
|
1698
|
+
* LICENSE file in the root directory of this source tree.
|
|
1721
1699
|
*
|
|
1722
1700
|
* @providesModule ReactTypeOfInternalContext
|
|
1723
1701
|
*
|
|
@@ -2304,12 +2282,10 @@ var rethrowCaughtError = function () {
|
|
|
2304
2282
|
var ReactErrorUtils_1 = ReactErrorUtils;
|
|
2305
2283
|
|
|
2306
2284
|
/**
|
|
2307
|
-
* Copyright 2014-present, Facebook, Inc.
|
|
2308
|
-
* All rights reserved.
|
|
2285
|
+
* Copyright (c) 2014-present, Facebook, Inc.
|
|
2309
2286
|
*
|
|
2310
|
-
* This source code is licensed under the
|
|
2311
|
-
* LICENSE file in the root directory of this source tree.
|
|
2312
|
-
* of patent rights can be found in the PATENTS file in the same directory.
|
|
2287
|
+
* This source code is licensed under the MIT license found in the
|
|
2288
|
+
* LICENSE file in the root directory of this source tree.
|
|
2313
2289
|
*
|
|
2314
2290
|
* @providesModule ReactCoroutine
|
|
2315
2291
|
*
|
|
@@ -2394,12 +2370,10 @@ var ReactCoroutine = {
|
|
|
2394
2370
|
};
|
|
2395
2371
|
|
|
2396
2372
|
/**
|
|
2397
|
-
* Copyright 2014-present, Facebook, Inc.
|
|
2398
|
-
* All rights reserved.
|
|
2373
|
+
* Copyright (c) 2014-present, Facebook, Inc.
|
|
2399
2374
|
*
|
|
2400
|
-
* This source code is licensed under the
|
|
2401
|
-
* LICENSE file in the root directory of this source tree.
|
|
2402
|
-
* of patent rights can be found in the PATENTS file in the same directory.
|
|
2375
|
+
* This source code is licensed under the MIT license found in the
|
|
2376
|
+
* LICENSE file in the root directory of this source tree.
|
|
2403
2377
|
*
|
|
2404
2378
|
* @providesModule ReactPortal
|
|
2405
2379
|
*
|
|
@@ -4543,6 +4517,9 @@ var ReactFiberBeginWork = function (config, hostContext, hydrationContext, sched
|
|
|
4543
4517
|
// TODO: Handle HostComponent tags here as well and call pushHostContext()?
|
|
4544
4518
|
// See PR 8590 discussion for context
|
|
4545
4519
|
switch (workInProgress.tag) {
|
|
4520
|
+
case HostRoot$7:
|
|
4521
|
+
pushHostRootContext(workInProgress);
|
|
4522
|
+
break;
|
|
4546
4523
|
case ClassComponent$7:
|
|
4547
4524
|
pushContextProvider$1(workInProgress);
|
|
4548
4525
|
break;
|
|
@@ -5921,12 +5898,10 @@ var ReactFiberHydrationContext = function (config) {
|
|
|
5921
5898
|
};
|
|
5922
5899
|
|
|
5923
5900
|
/**
|
|
5924
|
-
* Copyright 2013-present, Facebook, Inc.
|
|
5925
|
-
* All rights reserved.
|
|
5901
|
+
* Copyright (c) 2013-present, Facebook, Inc.
|
|
5926
5902
|
*
|
|
5927
|
-
* This source code is licensed under the
|
|
5928
|
-
* LICENSE file in the root directory of this source tree.
|
|
5929
|
-
* of patent rights can be found in the PATENTS file in the same directory.
|
|
5903
|
+
* This source code is licensed under the MIT license found in the
|
|
5904
|
+
* LICENSE file in the root directory of this source tree.
|
|
5930
5905
|
*
|
|
5931
5906
|
* @providesModule ReactFiberInstrumentation
|
|
5932
5907
|
*
|
|
@@ -7278,12 +7253,10 @@ var ReactFiberScheduler = function (config) {
|
|
|
7278
7253
|
};
|
|
7279
7254
|
|
|
7280
7255
|
/**
|
|
7281
|
-
* Copyright 2013-present, Facebook, Inc.
|
|
7282
|
-
* All rights reserved.
|
|
7256
|
+
* Copyright (c) 2013-present, Facebook, Inc.
|
|
7283
7257
|
*
|
|
7284
|
-
* This source code is licensed under the
|
|
7285
|
-
* LICENSE file in the root directory of this source tree.
|
|
7286
|
-
* of patent rights can be found in the PATENTS file in the same directory.
|
|
7258
|
+
* This source code is licensed under the MIT license found in the
|
|
7259
|
+
* LICENSE file in the root directory of this source tree.
|
|
7287
7260
|
*
|
|
7288
7261
|
* @providesModule getContextForSubtree
|
|
7289
7262
|
*
|
|
@@ -7940,14 +7913,19 @@ function toJSON(inst) {
|
|
|
7940
7913
|
}
|
|
7941
7914
|
}
|
|
7942
7915
|
|
|
7943
|
-
function
|
|
7916
|
+
function nodeAndSiblingsTrees(nodeWithSibling) {
|
|
7944
7917
|
var array = [];
|
|
7945
7918
|
var node = nodeWithSibling;
|
|
7946
7919
|
while (node != null) {
|
|
7947
7920
|
array.push(node);
|
|
7948
7921
|
node = node.sibling;
|
|
7949
7922
|
}
|
|
7950
|
-
|
|
7923
|
+
var trees = array.map(toTree);
|
|
7924
|
+
return trees.length ? trees : null;
|
|
7925
|
+
}
|
|
7926
|
+
|
|
7927
|
+
function hasSiblings(node) {
|
|
7928
|
+
return node && node.sibling;
|
|
7951
7929
|
}
|
|
7952
7930
|
|
|
7953
7931
|
function toTree(node) {
|
|
@@ -7964,7 +7942,7 @@ function toTree(node) {
|
|
|
7964
7942
|
type: node.type,
|
|
7965
7943
|
props: _assign({}, node.memoizedProps),
|
|
7966
7944
|
instance: node.stateNode,
|
|
7967
|
-
rendered: toTree(node.child)
|
|
7945
|
+
rendered: hasSiblings(node.child) ? nodeAndSiblingsTrees(node.child) : toTree(node.child)
|
|
7968
7946
|
};
|
|
7969
7947
|
case FunctionalComponent:
|
|
7970
7948
|
// 1
|
|
@@ -7973,7 +7951,7 @@ function toTree(node) {
|
|
|
7973
7951
|
type: node.type,
|
|
7974
7952
|
props: _assign({}, node.memoizedProps),
|
|
7975
7953
|
instance: null,
|
|
7976
|
-
rendered: toTree(node.child)
|
|
7954
|
+
rendered: hasSiblings(node.child) ? nodeAndSiblingsTrees(node.child) : toTree(node.child)
|
|
7977
7955
|
};
|
|
7978
7956
|
case HostComponent:
|
|
7979
7957
|
// 5
|
|
@@ -7982,7 +7960,7 @@ function toTree(node) {
|
|
|
7982
7960
|
type: node.type,
|
|
7983
7961
|
props: _assign({}, node.memoizedProps),
|
|
7984
7962
|
instance: null, // TODO: use createNodeMock here somehow?
|
|
7985
|
-
rendered:
|
|
7963
|
+
rendered: nodeAndSiblingsTrees(node.child)
|
|
7986
7964
|
};
|
|
7987
7965
|
case HostText:
|
|
7988
7966
|
// 6
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-test-renderer",
|
|
3
|
-
"version": "16.0.0
|
|
3
|
+
"version": "16.0.0",
|
|
4
4
|
"description": "React package for snapshot testing.",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"repository": "facebook/react",
|
|
@@ -9,21 +9,20 @@
|
|
|
9
9
|
"react-native",
|
|
10
10
|
"react-testing"
|
|
11
11
|
],
|
|
12
|
-
"license": "
|
|
12
|
+
"license": "MIT",
|
|
13
13
|
"bugs": {
|
|
14
14
|
"url": "https://github.com/facebook/react/issues"
|
|
15
15
|
},
|
|
16
16
|
"homepage": "https://facebook.github.io/react/",
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"fbjs": "^0.8.
|
|
19
|
-
"object-assign": "^4.1.
|
|
18
|
+
"fbjs": "^0.8.16",
|
|
19
|
+
"object-assign": "^4.1.1"
|
|
20
20
|
},
|
|
21
21
|
"peerDependencies": {
|
|
22
22
|
"react": "^16.0.0-beta.5"
|
|
23
23
|
},
|
|
24
24
|
"files": [
|
|
25
25
|
"LICENSE",
|
|
26
|
-
"PATENTS",
|
|
27
26
|
"README.md",
|
|
28
27
|
"index.js",
|
|
29
28
|
"shallow.js",
|
package/PATENTS
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
Additional Grant of Patent Rights Version 2
|
|
2
|
-
|
|
3
|
-
"Software" means the React software distributed by Facebook, Inc.
|
|
4
|
-
|
|
5
|
-
Facebook, Inc. ("Facebook") hereby grants to each recipient of the Software
|
|
6
|
-
("you") a perpetual, worldwide, royalty-free, non-exclusive, irrevocable
|
|
7
|
-
(subject to the termination provision below) license under any Necessary
|
|
8
|
-
Claims, to make, have made, use, sell, offer to sell, import, and otherwise
|
|
9
|
-
transfer the Software. For avoidance of doubt, no license is granted under
|
|
10
|
-
Facebook's rights in any patent claims that are infringed by (i) modifications
|
|
11
|
-
to the Software made by you or any third party or (ii) the Software in
|
|
12
|
-
combination with any software or other technology.
|
|
13
|
-
|
|
14
|
-
The license granted hereunder will terminate, automatically and without notice,
|
|
15
|
-
if you (or any of your subsidiaries, corporate affiliates or agents) initiate
|
|
16
|
-
directly or indirectly, or take a direct financial interest in, any Patent
|
|
17
|
-
Assertion: (i) against Facebook or any of its subsidiaries or corporate
|
|
18
|
-
affiliates, (ii) against any party if such Patent Assertion arises in whole or
|
|
19
|
-
in part from any software, technology, product or service of Facebook or any of
|
|
20
|
-
its subsidiaries or corporate affiliates, or (iii) against any party relating
|
|
21
|
-
to the Software. Notwithstanding the foregoing, if Facebook or any of its
|
|
22
|
-
subsidiaries or corporate affiliates files a lawsuit alleging patent
|
|
23
|
-
infringement against you in the first instance, and you respond by filing a
|
|
24
|
-
patent infringement counterclaim in that lawsuit against that party that is
|
|
25
|
-
unrelated to the Software, the license granted hereunder will not terminate
|
|
26
|
-
under section (i) of this paragraph due to such counterclaim.
|
|
27
|
-
|
|
28
|
-
A "Necessary Claim" is a claim of a patent owned by Facebook that is
|
|
29
|
-
necessarily infringed by the Software standing alone.
|
|
30
|
-
|
|
31
|
-
A "Patent Assertion" is any lawsuit or other action alleging direct, indirect,
|
|
32
|
-
or contributory infringement or inducement to infringe any patent, including a
|
|
33
|
-
cross-claim or counterclaim.
|