react-dom 16.6.3 → 16.7.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 (37) hide show
  1. package/build-info.json +8 -0
  2. package/cjs/react-dom-server.browser.development.js +13 -11
  3. package/cjs/react-dom-server.browser.production.min.js +3 -3
  4. package/cjs/react-dom-server.node.development.js +15 -12
  5. package/cjs/react-dom-server.node.production.min.js +4 -4
  6. package/cjs/react-dom-test-utils.development.js +1 -1
  7. package/cjs/react-dom-test-utils.production.min.js +1 -1
  8. package/cjs/react-dom-unstable-fire.development.js +20093 -0
  9. package/cjs/react-dom-unstable-fire.production.min.js +249 -0
  10. package/cjs/react-dom-unstable-fire.profiling.min.js +261 -0
  11. package/cjs/react-dom-unstable-fizz.browser.development.js +144 -0
  12. package/cjs/react-dom-unstable-fizz.browser.production.min.js +11 -0
  13. package/cjs/react-dom-unstable-fizz.node.development.js +150 -0
  14. package/cjs/react-dom-unstable-fizz.node.production.min.js +11 -0
  15. package/cjs/react-dom-unstable-native-dependencies.development.js +1 -1
  16. package/cjs/react-dom-unstable-native-dependencies.production.min.js +1 -1
  17. package/cjs/react-dom.development.js +503 -145
  18. package/cjs/react-dom.production.min.js +163 -163
  19. package/cjs/react-dom.profiling.min.js +140 -139
  20. package/package.json +58 -37
  21. package/umd/react-dom-server.browser.development.js +13 -11
  22. package/umd/react-dom-server.browser.production.min.js +11 -11
  23. package/umd/react-dom-test-utils.development.js +1 -1
  24. package/umd/react-dom-test-utils.production.min.js +1 -1
  25. package/umd/react-dom-unstable-fire.development.js +20220 -0
  26. package/umd/react-dom-unstable-fire.production.min.js +207 -0
  27. package/umd/react-dom-unstable-fire.profiling.min.js +212 -0
  28. package/umd/react-dom-unstable-fizz.browser.development.js +144 -0
  29. package/umd/react-dom-unstable-fizz.browser.production.min.js +10 -0
  30. package/umd/react-dom-unstable-native-dependencies.development.js +1 -1
  31. package/umd/react-dom-unstable-native-dependencies.production.min.js +1 -1
  32. package/umd/react-dom.development.js +506 -145
  33. package/umd/react-dom.production.min.js +195 -192
  34. package/umd/react-dom.profiling.min.js +178 -176
  35. package/unstable-fizz.browser.js +7 -0
  36. package/unstable-fizz.js +3 -0
  37. package/unstable-fizz.node.js +7 -0
@@ -0,0 +1,11 @@
1
+ /** @license React v16.7.0
2
+ * react-dom-unstable-fizz.browser.production.min.js
3
+ *
4
+ * Copyright (c) Facebook, Inc. and its affiliates.
5
+ *
6
+ * This source code is licensed under the MIT license found in the
7
+ * LICENSE file in the root directory of this source tree.
8
+ */
9
+
10
+ 'use strict';var e=new TextEncoder;function g(b,c){var a="<"+b+">";"string"===typeof c.children&&(a+=c.children);return e.encode(a+("</"+b+">"))}var h="function"===typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function k(b){var c=b.destination,a=b.completedChunks;b.completedChunks=[];for(b=0;b<a.length;b++)c.enqueue(a[b]);c.close()}
11
+ var l={renderToReadableStream:function(b){var c=void 0;return new ReadableStream({start:function(a){a=c={destination:a,children:b,completedChunks:[],flowing:!1};a.flowing=!0;var d=a.children;a.children=null;if(!d||d.$$typeof===h){var f=d.type;d=d.props;"string"===typeof f&&(a.completedChunks.push(g(f,d)),a.flowing&&k(a))}},pull:function(){var a=c;a.flowing=!1;k(a)},cancel:function(){}})}},m={default:l},n=m&&l||m;module.exports=n.default||n;
@@ -0,0 +1,150 @@
1
+ /** @license React v16.7.0
2
+ * react-dom-unstable-fizz.node.development.js
3
+ *
4
+ * Copyright (c) Facebook, Inc. and its affiliates.
5
+ *
6
+ * This source code is licensed under the MIT license found in the
7
+ * LICENSE file in the root directory of this source tree.
8
+ */
9
+
10
+ 'use strict';
11
+
12
+
13
+
14
+ if (process.env.NODE_ENV !== "production") {
15
+ (function() {
16
+ 'use strict';
17
+
18
+ function scheduleWork(callback) {
19
+ setImmediate(callback);
20
+ }
21
+
22
+ function flushBuffered(destination) {
23
+ // If we don't have any more data to send right now.
24
+ // Flush whatever is in the buffer to the wire.
25
+ if (typeof destination.flush === 'function') {
26
+ // By convention the Zlib streams provide a flush function for this purpose.
27
+ destination.flush();
28
+ }
29
+ }
30
+
31
+ function beginWriting(destination) {
32
+ destination.cork();
33
+ }
34
+
35
+ function writeChunk(destination, buffer) {
36
+ var nodeBuffer = buffer; // close enough
37
+ destination.write(nodeBuffer);
38
+ }
39
+
40
+ function completeWriting(destination) {
41
+ destination.uncork();
42
+ }
43
+
44
+ function close(destination) {
45
+ destination.end();
46
+ }
47
+
48
+ function convertStringToBuffer(content) {
49
+ return Buffer.from(content, 'utf8');
50
+ }
51
+
52
+ function formatChunk(type, props) {
53
+ var str = '<' + type + '>';
54
+ if (typeof props.children === 'string') {
55
+ str += props.children;
56
+ }
57
+ str += '</' + type + '>';
58
+ return convertStringToBuffer(str);
59
+ }
60
+
61
+ // The Symbol used to tag the ReactElement-like types. If there is no native Symbol
62
+ // nor polyfill, then a plain number is used for performance.
63
+ var hasSymbol = typeof Symbol === 'function' && Symbol.for;
64
+
65
+ var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;
66
+
67
+ function createRequest(children, destination) {
68
+ return { destination: destination, children: children, completedChunks: [], flowing: false };
69
+ }
70
+
71
+ function performWork(request) {
72
+ var element = request.children;
73
+ request.children = null;
74
+ if (element && element.$$typeof !== REACT_ELEMENT_TYPE) {
75
+ return;
76
+ }
77
+ var type = element.type;
78
+ var props = element.props;
79
+ if (typeof type !== 'string') {
80
+ return;
81
+ }
82
+ request.completedChunks.push(formatChunk(type, props));
83
+ if (request.flowing) {
84
+ flushCompletedChunks(request);
85
+ }
86
+
87
+ flushBuffered(request.destination);
88
+ }
89
+
90
+ function flushCompletedChunks(request) {
91
+ var destination = request.destination;
92
+ var chunks = request.completedChunks;
93
+ request.completedChunks = [];
94
+
95
+ beginWriting(destination);
96
+ try {
97
+ for (var i = 0; i < chunks.length; i++) {
98
+ var chunk = chunks[i];
99
+ writeChunk(destination, chunk);
100
+ }
101
+ } finally {
102
+ completeWriting(destination);
103
+ }
104
+ close(destination);
105
+ }
106
+
107
+ function startWork(request) {
108
+ request.flowing = true;
109
+ scheduleWork(function () {
110
+ return performWork(request);
111
+ });
112
+ }
113
+
114
+ function startFlowing(request, desiredBytes) {
115
+ request.flowing = false;
116
+ flushCompletedChunks(request);
117
+ }
118
+
119
+ // This file intentionally does *not* have the Flow annotation.
120
+ // Don't add it. See `./inline-typed.js` for an explanation.
121
+
122
+ function createDrainHandler(destination, request) {
123
+ return function () {
124
+ return startFlowing(request, 0);
125
+ };
126
+ }
127
+
128
+ function pipeToNodeWritable(children, destination) {
129
+ var request = createRequest(children, destination);
130
+ destination.on('drain', createDrainHandler(destination, request));
131
+ startWork(request);
132
+ }
133
+
134
+ var ReactDOMFizzServerNode = {
135
+ pipeToNodeWritable: pipeToNodeWritable
136
+ };
137
+
138
+ var ReactDOMFizzServerNode$1 = Object.freeze({
139
+ default: ReactDOMFizzServerNode
140
+ });
141
+
142
+ var ReactDOMFizzServerNode$2 = ( ReactDOMFizzServerNode$1 && ReactDOMFizzServerNode ) || ReactDOMFizzServerNode$1;
143
+
144
+ // TODO: decide on the top-level export form.
145
+ // This is hacky but makes it work with both Rollup and Jest
146
+ var unstableFizz_node = ReactDOMFizzServerNode$2.default || ReactDOMFizzServerNode$2;
147
+
148
+ module.exports = unstableFizz_node;
149
+ })();
150
+ }
@@ -0,0 +1,11 @@
1
+ /** @license React v16.7.0
2
+ * react-dom-unstable-fizz.node.production.min.js
3
+ *
4
+ * Copyright (c) Facebook, Inc. and its affiliates.
5
+ *
6
+ * This source code is licensed under the MIT license found in the
7
+ * LICENSE file in the root directory of this source tree.
8
+ */
9
+
10
+ 'use strict';function d(a,b){var c="<"+a+">";"string"===typeof b.children&&(c+=b.children);return Buffer.from(c+("</"+a+">"),"utf8")}var e="function"===typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function f(a){var b=a.destination,c=a.completedChunks;a.completedChunks=[];b.cork();try{for(a=0;a<c.length;a++)b.write(c[a])}finally{b.uncork()}b.end()}
11
+ function g(a){a.flowing=!0;setImmediate(function(){var b=a.children;a.children=null;if(!b||b.$$typeof===e){var c=b.type;b=b.props;"string"===typeof c&&(a.completedChunks.push(d(c,b)),a.flowing&&f(a),c=a.destination,"function"===typeof c.flush&&c.flush())}})}function h(a,b){return function(){b.flowing=!1;f(b)}}var k={pipeToNodeWritable:function(a,b){a={destination:b,children:a,completedChunks:[],flowing:!1};b.on("drain",h(b,a));g(a)}},l={default:k},m=l&&k||l;module.exports=m.default||m;
@@ -1,4 +1,4 @@
1
- /** @license React v16.6.1
1
+ /** @license React v16.7.0
2
2
  * react-dom-unstable-native-dependencies.development.js
3
3
  *
4
4
  * Copyright (c) Facebook, Inc. and its affiliates.
@@ -1,4 +1,4 @@
1
- /** @license React v16.6.1
1
+ /** @license React v16.7.0
2
2
  * react-dom-unstable-native-dependencies.production.min.js
3
3
  *
4
4
  * Copyright (c) Facebook, Inc. and its affiliates.