@samitouri / QOS-React-2 / commits / 94f1e6f27c

Add runtime dependencies to the dependencies

These are used somewhere in the `dist/` directory after building and as such should be included in the dependencies of the package.json.

Jan Kassens committed Oct 19, 2022 at 13:09 UTC 94f1e6f27c972432926d797e1b92cbf11e8b3799
23 files changed +76 -6
compiler/forget/package.json
+3 -4
@@ -20,13 +20,15 @@
20 "url": "git+https://github.com/huxpro/react-forget.git"
21 },
22 "dependencies": {
23 + "@babel/generator": "7.2.0",
24 "@babel/plugin-syntax-jsx": "^7.18.6",
25 + "@babel/types": "^7.19.0",
26 "invariant": "^2.2.4",
27 + "prettier": "2.7.1",
28 "pretty-format": "^24"
29 },
30 "devDependencies": {
31 "@babel/core": "^7.19.1",
29 - "@babel/generator": "^7.19.0",
32 "@babel/parser": "^7.19.1",
33 "@babel/plugin-syntax-typescript": "^7.18.6",
34 "@babel/plugin-transform-block-scoping": "^7.18.9",
@@ -34,7 +36,6 @@
36 "@babel/preset-react": "^7.18.6",
37 "@babel/preset-typescript": "^7.18.6",
38 "@babel/traverse": "^7.19.1",
37 - "@babel/types": "^7.19.0",
39 "@hpcc-js/wasm": "^1.15.0",
40 "@testing-library/react": "^13.4.0",
41 "@tsconfig/node16-strictest": "^1.0.3",
@@ -45,7 +46,6 @@
46 "concurrently": "^7.4.0",
47 "jest": "^29.0.3",
48 "jest-environment-jsdom": "^29.0.3",
48 - "prettier": "2.7.1",
49 "react": "^18.2.0",
50 "react-dom": "^18.2.0",
51 "ts-jest": "^29.0.1",
@@ -56,7 +56,6 @@
56 "./**/@babel/parser": "7.7.4",
57 "./**/@babel/types": "7.7.4",
58 "@babel/core": "7.2.0",
59 - "@babel/generator": "7.2.0",
59 "@babel/traverse": "7.1.6"
60 }
61 }
compiler/forget/src/__tests__/fixtures/hir/call.expect.md
+1
@@ -53,6 +53,7 @@ function Component$0(props$1) {
53 const b$3 = {};
54 foo$4(a$2, b$3);
55 let _$5 = <div a={a$2}></div>;
56 +
57 foo$4(b$3);
58 return <div a={a$2} b={b$3}></div>;
59 }
compiler/forget/src/__tests__/fixtures/hir/conditional-break.expect.md
+5
@@ -100,6 +100,7 @@ function Component$0(props$1) {
100 if (props$1.b) {
101 return null;
102 }
103 +
104 a_DEBUG$2.push(props$1.d);
105 return a_DEBUG$2;
106 }
@@ -132,6 +133,7 @@ function Component$0(props$1) {
133 a$2.push(props$1.c);
134 ("<<TODO: handle complex control flow in codegen>>");
135 }
136 +
137 a$2.push(props$1.d);
138 return a$2;
139 }
@@ -165,6 +167,7 @@ function Component$0(props$1) {
167 a$2.push(props$1.c);
168 return null;
169 }
170 +
171 a$2.push(props$1.d);
172 return a$2;
173 }
@@ -197,6 +200,7 @@ function Component$0(props$1) {
200 a$2.push(props$1.c);
201 return a$2;
202 }
203 +
204 a$2.push(props$1.d);
205 return a$2;
206 }
@@ -229,6 +233,7 @@ function Component$0(props$1) {
233 a$2.push(props$1.d);
234 return a$2;
235 }
236 +
237 a$2.push(props$1.c);
238 ("<<TODO: handle complex control flow in codegen>>");
239 }
compiler/forget/src/__tests__/fixtures/hir/conditional-on-mutable.expect.md
+4
@@ -97,10 +97,12 @@ function Component$0(props$1) {
97 a$2.push(props$1.p0);
98 ("<<TODO: handle complex control flow in codegen>>");
99 }
100 +
101 if (props$1.p1) {
102 b$3.push(props$1.p2);
103 ("<<TODO: handle complex control flow in codegen>>");
104 }
105 +
106 return <Foo$4 a={a$2} b={b$3}></Foo$4>;
107 }
108
@@ -140,10 +142,12 @@ function Component$0(props$1) {
142 a$2.push(props$1.p0);
143 ("<<TODO: handle complex control flow in codegen>>");
144 }
145 +
146 if (props$1.p1) {
147 b$3.push(props$1.p2);
148 ("<<TODO: handle complex control flow in codegen>>");
149 }
150 +
151 return <Foo$6 a={a$2} b={b$3}></Foo$6>;
152 }
153
compiler/forget/src/__tests__/fixtures/hir/constructor.expect.md
+1
@@ -53,6 +53,7 @@ function Component$0(props$1) {
53 const b$3 = {};
54 new Foo$4(a$2, b$3);
55 let _$5 = <div a={a$2}></div>;
56 +
57 new Foo$4(b$3);
58 return <div a={a$2} b={b$3}></div>;
59 }
compiler/forget/src/__tests__/fixtures/hir/hooks-freeze-possibly-mutable-arguments.expect.md
+1
@@ -60,6 +60,7 @@ function Component$0(props$1) {
60 a$4 = [];
61 ("<<TODO: handle complex control flow in codegen>>");
62 }
63 +
64 useFreeze$5(a$4);
65 useFreeze$5(a$4);
66 call$6(a$4);
compiler/forget/src/__tests__/fixtures/hir/independent-across-if.expect.md
+1
@@ -122,6 +122,7 @@ function Component$0(props$1) {
122 mutate$5(b$4);
123 ("<<TODO: handle complex control flow in codegen>>");
124 }
125 +
126 return <Foo$6 a={a$2} b={b$4}></Foo$6>;
127 }
128
compiler/forget/src/__tests__/fixtures/hir/interdependent-across-if.expect.md
+1
@@ -99,6 +99,7 @@ function Component$0(props$1) {
99 foo$5(a$2, b$4);
100 ("<<TODO: handle complex control flow in codegen>>");
101 }
102 +
103 return <Foo$6 a={a$2} b={b$4}></Foo$6>;
104 }
105
compiler/forget/src/__tests__/fixtures/hir/mutable-lifetime-with-aliasing.expect.md
+31
@@ -102,62 +102,78 @@ function Component$0(props$1) {
102 mutate$8(x$6, null);
103 return;
104 }
105 +
106 mutate$8(x$6, null);
107 return;
108 }
109 +
110 if (y$7) {
111 mutate$8(x$6, null);
112 return;
113 }
114 +
115 mutate$8(x$6, null);
116 return;
117 }
118 +
119 if (d$5) {
120 if (y$7) {
121 mutate$8(x$6, null);
122 return;
123 }
124 +
125 mutate$8(x$6, null);
126 return;
127 }
128 +
129 if (y$7) {
130 mutate$8(x$6, null);
131 return;
132 }
133 +
134 mutate$8(x$6, null);
135 return;
136 }
137 +
138 if (c$4) {
139 if (d$5) {
140 if (y$7) {
141 mutate$8(x$6, null);
142 return;
143 }
144 +
145 mutate$8(x$6, null);
146 return;
147 }
148 +
149 if (y$7) {
150 mutate$8(x$6, null);
151 return;
152 }
153 +
154 mutate$8(x$6, null);
155 return;
156 }
157 +
158 if (d$5) {
159 if (y$7) {
160 mutate$8(x$6, null);
161 return;
162 }
163 +
164 mutate$8(x$6, null);
165 return;
166 }
167 +
168 if (y$7) {
169 mutate$8(x$6, null);
170 return;
171 }
172 +
173 mutate$8(x$6, null);
174 return;
175 }
176 +
177 if (b$3) {
178 if (c$4) {
179 if (d$5) {
@@ -165,59 +181,74 @@ function Component$0(props$1) {
181 mutate$8(x$6, null);
182 return;
183 }
184 +
185 mutate$8(x$6, null);
186 return;
187 }
188 +
189 if (y$7) {
190 mutate$8(x$6, null);
191 return;
192 }
193 +
194 mutate$8(x$6, null);
195 return;
196 }
197 +
198 if (d$5) {
199 if (y$7) {
200 mutate$8(x$6, null);
201 return;
202 }
203 +
204 mutate$8(x$6, null);
205 return;
206 }
207 +
208 if (y$7) {
209 mutate$8(x$6, null);
210 return;
211 }
212 +
213 mutate$8(x$6, null);
214 return;
215 }
216 +
217 if (c$4) {
218 if (d$5) {
219 if (y$7) {
220 mutate$8(x$6, null);
221 return;
222 }
223 +
224 mutate$8(x$6, null);
225 return;
226 }
227 +
228 if (y$7) {
229 mutate$8(x$6, null);
230 return;
231 }
232 +
233 mutate$8(x$6, null);
234 return;
235 }
236 +
237 if (d$5) {
238 if (y$7) {
239 mutate$8(x$6, null);
240 return;
241 }
242 +
243 mutate$8(x$6, null);
244 return;
245 }
246 +
247 if (y$7) {
248 mutate$8(x$6, null);
249 return;
250 }
251 +
252 mutate$8(x$6, null);
253 return;
254 }
compiler/forget/src/__tests__/fixtures/hir/reassignment-conditional.expect.md
+2
@@ -50,7 +50,9 @@ function Component$0(props$1) {
50 x$2 = [];
51 ("<<TODO: handle complex control flow in codegen>>");
52 }
53 +
54 let _$4 = <Component$0 x={x$2}></Component$0>;
55 +
56 y$3.push(props$1.p2);
57 return <Component$0 x={x$2} y={y$3}></Component$0>;
58 }
compiler/forget/src/__tests__/fixtures/hir/reassignment.expect.md
+1
@@ -40,6 +40,7 @@ function Component$0(props$1) {
40 let y$3 = x$2;
41 x$2 = [];
42 let _$4 = <Component$0 x={x$2}></Component$0>;
43 +
44 y$3.push(props$1.p1);
45 return <Component$0 x={x$2} y={y$3}></Component$0>;
46 }
compiler/forget/src/__tests__/fixtures/hir/reverse-postorder.expect.md
+6
@@ -88,19 +88,23 @@ function Component$0(props$1) {
88 x$2 = props$1.v0;
89 ("<<TODO: handle complex control flow in codegen>>");
90 }
91 +
92 case 1: {
93 x$2 = props$1.v1;
94 ("<<TODO: handle complex control flow in codegen>>");
95 }
96 +
97 case 2: {
98 x$2 = props$1.v2;
99 ("<<TODO: handle complex control flow in codegen>>");
100 }
101 +
102 default: {
103 x$2 = props$1.v2;
104 ("<<TODO: handle complex control flow in codegen>>");
105 }
106 }
107 +
108 x$2;
109 return;
110 } else {
@@ -111,9 +115,11 @@ function Component$0(props$1) {
115 x$2 = props$1.c;
116 ("<<TODO: handle complex control flow in codegen>>");
117 }
118 +
119 x$2;
120 return;
121 }
122 +
123 x$2;
124 return;
125 }
compiler/forget/src/__tests__/fixtures/hir/ssa-complex-multiple-if.expect.md
+2
@@ -58,10 +58,12 @@ function foo$0() {
58 x$18 = 3;
59 ("<<TODO: handle complex control flow in codegen>>");
60 }
61 +
62 if (y$12 === 3) {
63 x$16 = 5;
64 ("<<TODO: handle complex control flow in codegen>>");
65 }
66 +
67 y$15 = x$14;
68 return;
69 }
compiler/forget/src/__tests__/fixtures/hir/ssa-complex-single-if.expect.md
+1
@@ -44,6 +44,7 @@ function foo$0() {
44 x$11 = 3;
45 ("<<TODO: handle complex control flow in codegen>>");
46 }
47 +
48 y$10 = x$9;
49 return;
50 }
compiler/forget/src/__tests__/fixtures/hir/ssa-if-else.expect.md
+1
@@ -48,6 +48,7 @@ function foo$0() {
48 let z$7 = x$5;
49 ("<<TODO: handle complex control flow in codegen>>");
50 }
51 +
52 return;
53 }
54
compiler/forget/src/__tests__/fixtures/hir/ssa-return.expect.md
+1
@@ -40,6 +40,7 @@ function foo$0() {
40 x$8 = 2;
41 ("<<TODO: handle complex control flow in codegen>>");
42 }
43 +
44 return x$7;
45 }
46
compiler/forget/src/__tests__/fixtures/hir/ssa-simple-phi.expect.md
+1
@@ -51,6 +51,7 @@ function foo$0() {
51 y$8 = 2;
52 ("<<TODO: handle complex control flow in codegen>>");
53 }
54 +
55 let x$10 = y$9;
56 return;
57 }
compiler/forget/src/__tests__/fixtures/hir/ssa-single-if.expect.md
+1
@@ -39,6 +39,7 @@ function foo$0() {
39 let z$6 = x$4 + y$5;
40 ("<<TODO: handle complex control flow in codegen>>");
41 }
42 +
43 return;
44 }
45
compiler/forget/src/__tests__/fixtures/hir/ssa-switch.expect.md
+3
@@ -69,15 +69,18 @@ function foo$0() {
69 x$22 = x$10 + 1;
70 ("<<TODO: handle complex control flow in codegen>>");
71 }
72 +
73 case x$10 === 2: {
74 x$20 = x$10 + 2;
75 ("<<TODO: handle complex control flow in codegen>>");
76 }
77 +
78 default: {
79 x$16 = x$10 + 3;
80 ("<<TODO: handle complex control flow in codegen>>");
81 }
82 }
83 +
84 let y$18 = x$17;
85 return;
86 }
compiler/forget/src/__tests__/fixtures/hir/ssa-throw.expect.md
+1
@@ -39,6 +39,7 @@ function foo$0() {
39 x$8 = 2;
40 ("<<TODO: handle complex control flow in codegen>>");
41 }
42 +
43 throw x$7;
44 }
45
compiler/forget/src/__tests__/fixtures/hir/switch-non-final-default.expect.md
+4
@@ -68,18 +68,22 @@ function Component$0(props$1) {
68 switch (props$1.p0) {
69 case 1:
70 break;
71 +
72 case true: {
73 x$2.push(props$1.p2);
74 y$3 = [];
75 ("<<TODO: handle complex control flow in codegen>>");
76 }
77 +
78 default:
79 break;
80 +
81 case false: {
82 y$3 = x$2;
83 ("<<TODO: handle complex control flow in codegen>>");
84 }
85 }
86 +
87 const child$7 = <Component$0 data={x$2}></Component$0>;
88 y$3.push(props$1.p4);
89 return <Component$0 data={y$3}>{child$7}</Component$0>;
compiler/forget/src/__tests__/fixtures/hir/switch.expect.md
+2
@@ -67,11 +67,13 @@ function Component$0(props$1) {
67 y$3 = [];
68 ("<<TODO: handle complex control flow in codegen>>");
69 }
70 +
71 case false: {
72 y$3 = x$2;
73 ("<<TODO: handle complex control flow in codegen>>");
74 }
75 }
76 +
77 const child$6 = <Component$0 data={x$2}></Component$0>;
78 y$3.push(props$1.p4);
79 return <Component$0 data={y$3}>{child$6}</Component$0>;
compiler/forget/yarn.lock
+2 -2
@@ -63,7 +63,7 @@
63 json5 "^2.2.1"
64 semver "^6.3.0"
65
66 -"@babel/generator@7.2.0", "@babel/generator@^7.1.6", "@babel/generator@^7.19.4", "@babel/generator@^7.2.0", "@babel/generator@^7.7.2":
66 +"@babel/generator@7.2.0", "@babel/generator@^7.1.6", "@babel/generator@^7.2.0":
67 version "7.2.0"
68 resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.2.0.tgz#eaf3821fa0301d9d4aef88e63d4bcc19b73ba16c"
69 integrity sha512-BA75MVfRlFQG2EZgFYIwyT1r6xSkwfP2bdkY/kLZusEYWiJs4xCowab/alaEaT0wSvmVuXGqiefeBlP+7V1yKg==
@@ -74,7 +74,7 @@
74 source-map "^0.5.0"
75 trim-right "^1.0.1"
76
77 -"@babel/generator@^7.19.0":
77 +"@babel/generator@^7.19.0", "@babel/generator@^7.19.4", "@babel/generator@^7.7.2":
78 version "7.19.5"
79 resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.19.5.tgz#da3f4b301c8086717eee9cab14da91b1fa5dcca7"
80 integrity sha512-DxbNz9Lz4aMZ99qPpO1raTbcrI1ZeYh+9NR9qhfkQIbFtVEqotHojEBxHzmxhVONkGt6VyrqVQcgpefMy9pqcg==