@react-native-windows/codegen 0.0.0-canary.6 → 0.0.0-canary.60

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 (53) hide show
  1. package/CHANGELOG.md +530 -9
  2. package/README.md +1 -1
  3. package/bin.js +0 -0
  4. package/lib-commonjs/Cli.d.ts +7 -0
  5. package/lib-commonjs/Cli.js +74 -0
  6. package/lib-commonjs/Cli.js.map +1 -0
  7. package/lib-commonjs/generators/AliasGen.d.ts +11 -0
  8. package/lib-commonjs/generators/AliasGen.js +72 -0
  9. package/lib-commonjs/generators/AliasGen.js.map +1 -0
  10. package/lib-commonjs/generators/AliasManaging.d.ts +15 -0
  11. package/lib-commonjs/generators/AliasManaging.js +49 -0
  12. package/lib-commonjs/generators/AliasManaging.js.map +1 -0
  13. package/lib-commonjs/generators/GenerateNM2.d.ts +12 -0
  14. package/lib-commonjs/generators/GenerateNM2.js +94 -0
  15. package/lib-commonjs/generators/GenerateNM2.js.map +1 -0
  16. package/lib-commonjs/generators/GenerateTypeScript.d.ts +11 -0
  17. package/lib-commonjs/generators/GenerateTypeScript.js +166 -0
  18. package/lib-commonjs/generators/GenerateTypeScript.js.map +1 -0
  19. package/lib-commonjs/generators/ObjectTypes.d.ts +9 -0
  20. package/lib-commonjs/generators/ObjectTypes.js +73 -0
  21. package/lib-commonjs/generators/ObjectTypes.js.map +1 -0
  22. package/lib-commonjs/generators/ParamTypes.d.ts +11 -0
  23. package/lib-commonjs/generators/ParamTypes.js +135 -0
  24. package/lib-commonjs/generators/ParamTypes.js.map +1 -0
  25. package/lib-commonjs/generators/ReturnTypes.d.ts +9 -0
  26. package/lib-commonjs/generators/ReturnTypes.js +29 -0
  27. package/lib-commonjs/generators/ReturnTypes.js.map +1 -0
  28. package/lib-commonjs/generators/ValidateConstants.d.ts +8 -0
  29. package/lib-commonjs/generators/ValidateConstants.js +38 -0
  30. package/lib-commonjs/generators/ValidateConstants.js.map +1 -0
  31. package/lib-commonjs/generators/ValidateMethods.d.ts +8 -0
  32. package/lib-commonjs/generators/ValidateMethods.js +75 -0
  33. package/lib-commonjs/generators/ValidateMethods.js.map +1 -0
  34. package/lib-commonjs/index.d.ts +39 -0
  35. package/lib-commonjs/index.js +220 -0
  36. package/lib-commonjs/index.js.map +1 -0
  37. package/package.json +37 -20
  38. package/src/Cli.ts +37 -192
  39. package/src/generators/AliasGen.ts +105 -0
  40. package/src/generators/AliasManaging.ts +75 -0
  41. package/src/generators/GenerateNM2.ts +65 -291
  42. package/src/generators/GenerateTypeScript.ts +247 -0
  43. package/src/generators/ObjectTypes.ts +110 -0
  44. package/src/generators/ParamTypes.ts +262 -0
  45. package/src/generators/ReturnTypes.ts +55 -0
  46. package/src/generators/ValidateConstants.ts +50 -0
  47. package/src/generators/ValidateMethods.ts +149 -0
  48. package/src/index.ts +384 -0
  49. package/.eslintrc.js +0 -4
  50. package/.vscode/launch.json +0 -23
  51. package/CHANGELOG.json +0 -506
  52. package/jest.config.js +0 -1
  53. package/tsconfig.json +0 -5
package/CHANGELOG.md CHANGED
@@ -1,22 +1,543 @@
1
1
  # Change Log - @react-native-windows/codegen
2
2
 
3
- This log was last generated on Fri, 21 May 2021 05:14:43 GMT and should not be manually modified.
3
+ This log was last generated on Wed, 07 Jun 2023 05:14:04 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
- ## 0.0.0-canary.6
7
+ ## 0.0.0-canary.60
8
8
 
9
- Fri, 21 May 2021 05:14:43 GMT
10
-
11
- ### Patches
12
-
13
- - Bump @rnw-scripts/just-task to v2.1.1 (ngerlem@microsoft.com)
14
- - Bump @rnw-scripts/jest-unittest-config to v1.2.1 (ngerlem@microsoft.com)
9
+ Wed, 07 Jun 2023 05:14:04 GMT
15
10
 
16
11
  ### Changes
17
12
 
18
- - Integrate Apr 28 (base of 0.65) Nightly RN Build (ngerlem@microsoft.com)
13
+ - Bump @react-native-windows/fs to v0.0.0-canary.22
14
+ - Bump @rnw-scripts/jest-unittest-config to v1.5.5
15
+ - Bump @rnw-scripts/just-task to v2.3.11
19
16
 
17
+ ## 0.0.0-canary.59
18
+
19
+ Tue, 06 Jun 2023 19:06:44 GMT
20
+
21
+ ### Changes
22
+
23
+ - integrate RN nightly 5/19/23 (tatianakapos@microsoft.com)
24
+ - Bump @react-native-windows/fs to v0.0.0-canary.21
25
+ - Bump @rnw-scripts/jest-unittest-config to v1.5.4
26
+ - Bump @rnw-scripts/just-task to v2.3.10
27
+
28
+ ## 0.0.0-canary.58
29
+
30
+ Tue, 16 May 2023 05:16:30 GMT
31
+
32
+ ### Changes
33
+
34
+ - Bump @react-native-windows/fs to v0.0.0-canary.20
35
+ - Bump @rnw-scripts/jest-unittest-config to v1.5.3
36
+ - Bump @rnw-scripts/just-task to v2.3.9
37
+
38
+ ## 0.0.0-canary.57
39
+
40
+ Mon, 08 May 2023 17:41:04 GMT
41
+
42
+ ### Changes
43
+
44
+ - Fix typos and add `cspell` configuration (jthysell@microsoft.com)
45
+ - Bump @react-native-windows/fs to v0.0.0-canary.19
46
+ - Bump @rnw-scripts/just-task to v2.3.8
47
+
48
+ ## 0.0.0-canary.56
49
+
50
+ Tue, 25 Apr 2023 05:16:58 GMT
51
+
52
+ ### Changes
53
+
54
+ - Update Node to 16 (34109996+chiaramooney@users.noreply.github.com)
55
+ - Bump @react-native-windows/fs to v0.0.0-canary.18
56
+ - Bump @rnw-scripts/eslint-config to v1.1.16
57
+ - Bump @rnw-scripts/jest-unittest-config to v1.5.2
58
+ - Bump @rnw-scripts/just-task to v2.3.7
59
+ - Bump @rnw-scripts/ts-config to v2.0.4
60
+
61
+ ## 0.0.0-canary.55
62
+
63
+ Thu, 13 Apr 2023 05:14:28 GMT
64
+
65
+ ### Changes
66
+
67
+ - Fix RNW not being detected on case-sensitive file systems (4123478+tido64@users.noreply.github.com)
68
+
69
+ ## 0.0.0-canary.54
70
+
71
+ Tue, 21 Mar 2023 21:21:55 GMT
72
+
73
+ ### Changes
74
+
75
+ - Bump @react-native-windows/fs to v0.0.0-canary.17
76
+ - Bump @rnw-scripts/jest-unittest-config to v1.5.1
77
+ - Bump @rnw-scripts/just-task to v2.3.6
78
+
79
+ ## 0.0.0-canary.53
80
+
81
+ Thu, 02 Mar 2023 06:14:21 GMT
82
+
83
+ ### Changes
84
+
85
+ - Merge branch 'YajurG-8875' of https://github.com/YajurG/react-native-windows into YajurG-8875 (email not defined)
86
+ - Bump @react-native-windows/fs to v0.0.0-canary.16
87
+
88
+ ## 0.0.0-canary.52
89
+
90
+ Sat, 25 Feb 2023 06:13:35 GMT
91
+
92
+ ### Changes
93
+
94
+ - Move `@typescript-eslint/eslint-plugin` to `devDependencies` so they don't get installed by consumers (4123478+tido64@users.noreply.github.com)
95
+ - Bump @react-native-windows/fs to v0.0.0-canary.15
96
+
97
+ ## 0.0.0-canary.51
98
+
99
+ Wed, 22 Feb 2023 06:14:08 GMT
100
+
101
+ ### Changes
102
+
103
+ - Fix code to handle newer version of @react-native/codegen (30809111+acoates-ms@users.noreply.github.com)
104
+
105
+ ## 0.0.0-canary.50
106
+
107
+ Fri, 10 Feb 2023 06:15:30 GMT
108
+
109
+ ### Changes
110
+
111
+ - codegen-windows --check always fails (30809111+acoates-ms@users.noreply.github.com)
112
+
113
+ ## 0.0.0-canary.49
114
+
115
+ Thu, 09 Feb 2023 06:16:42 GMT
116
+
117
+ ### Changes
118
+
119
+ - Bump typescript version (30809111+acoates-ms@users.noreply.github.com)
120
+ - Bump @react-native-windows/fs to v0.0.0-canary.14
121
+
122
+ ## 0.0.0-canary.48
123
+
124
+ Wed, 11 Jan 2023 06:15:29 GMT
125
+
126
+ ### Changes
127
+
128
+ - integrate 12/2/22 (tatianakapos@microsoft.com)
129
+ - Bump @react-native-windows/fs to v0.0.0-canary.13
130
+ - Bump @rnw-scripts/jest-unittest-config to v1.5.0
131
+ - Bump @rnw-scripts/just-task to v2.3.5
132
+
133
+ ## 0.0.0-canary.47
134
+
135
+ Wed, 21 Dec 2022 06:15:26 GMT
136
+
137
+ ### Changes
138
+
139
+ - Support enum/union and T in Promise<T> in codegen (53799235+ZihanChen-MSFT@users.noreply.github.com)
140
+
141
+ ## 0.0.0-canary.46
142
+
143
+ Tue, 13 Dec 2022 06:15:22 GMT
144
+
145
+ ### Changes
146
+
147
+ - Standardize on the repository field in package.json (dannyvv@microsoft.com)
148
+ - Bump @react-native-windows/fs to v0.0.0-canary.12
149
+ - Bump @rnw-scripts/eslint-config to v1.1.15
150
+ - Bump @rnw-scripts/jest-unittest-config to v1.4.3
151
+ - Bump @rnw-scripts/just-task to v2.3.4
152
+ - Bump @rnw-scripts/ts-config to v2.0.3
153
+
154
+ ## 0.0.0-canary.45
155
+
156
+ Fri, 02 Dec 2022 06:19:03 GMT
157
+
158
+ ### Changes
159
+
160
+ - Integrate 10/10 (34109996+chiaramooney@users.noreply.github.com)
161
+ - Bump codegen version (30809111+acoates-ms@users.noreply.github.com)
162
+ - Bump @react-native-windows/fs to v0.0.0-canary.11
163
+ - Bump @rnw-scripts/jest-unittest-config to v1.4.2
164
+ - Bump @rnw-scripts/just-task to v2.3.3
165
+
166
+ ## 0.0.0-canary.44
167
+
168
+ Mon, 21 Nov 2022 06:15:36 GMT
169
+
170
+ ### Changes
171
+
172
+ - Enable ability to codegen JSI C++ TurboModule specs (30809111+acoates-ms@users.noreply.github.com)
173
+
174
+ ## 0.0.0-canary.43
175
+
176
+ Wed, 16 Nov 2022 06:16:01 GMT
177
+
178
+ ### Changes
179
+
180
+ - Bump @react-native-windows/fs to v0.0.0-canary.10
181
+ - Bump @rnw-scripts/just-task to v2.3.2
182
+
183
+ ## 0.0.0-canary.42
184
+
185
+ Sat, 12 Nov 2022 06:17:21 GMT
186
+
187
+ ### Changes
188
+
189
+ - Integrate 10/10 (34109996+chiaramooney@users.noreply.github.com)
190
+ - Bump @react-native-windows/fs to v0.0.0-canary.9
191
+ - Bump @rnw-scripts/jest-unittest-config to v1.4.1
192
+ - Bump @rnw-scripts/just-task to v2.3.1
193
+
194
+ ## 0.0.0-canary.41
195
+
196
+ Thu, 10 Nov 2022 06:17:10 GMT
197
+
198
+ ### Changes
199
+
200
+ - integration 9/26/22 (tatianakapos@microsoft.com)
201
+ - Bump @react-native-windows/fs to v0.0.0-canary.8
202
+ - Bump @rnw-scripts/jest-unittest-config to v1.4.0
203
+ - Bump @rnw-scripts/just-task to v2.3.0
204
+
205
+ ## 0.0.0-canary.40
206
+
207
+ Tue, 18 Oct 2022 05:12:09 GMT
208
+
209
+ ### Changes
210
+
211
+ - Use newer react-native-codegen generators (30809111+acoates-ms@users.noreply.github.com)
212
+
213
+ ## 0.0.0-canary.39
214
+
215
+ Sat, 15 Oct 2022 05:12:00 GMT
216
+
217
+ ### Changes
218
+
219
+ - Bump @react-native-windows/fs to v0.0.0-canary.7
220
+
221
+ ## 0.0.0-canary.38
222
+
223
+ Fri, 07 Oct 2022 05:11:46 GMT
224
+
225
+ ### Changes
226
+
227
+ - Remove extra paren in codegen output (30809111+acoates-ms@users.noreply.github.com)
228
+
229
+ ## 0.0.0-canary.37
230
+
231
+ Wed, 05 Oct 2022 05:13:46 GMT
232
+
233
+ ### Changes
234
+
235
+ - Use react-native-codegen from rn, instead of from react-native-tscodegen (30809111+acoates-ms@users.noreply.github.com)
236
+ - integrate 7/29/22 (tatianakapos@microsoft.com)
237
+ - Bump @react-native-windows/fs to v0.0.0-canary.6
238
+ - Bump @rnw-scripts/eslint-config to v1.1.14
239
+ - Bump @rnw-scripts/jest-unittest-config to v1.3.0
240
+ - Bump @rnw-scripts/just-task to v2.2.6
241
+
242
+ ## 0.0.0-canary.36
243
+
244
+ Tue, 27 Sep 2022 05:11:30 GMT
245
+
246
+ ### Changes
247
+
248
+ - Export functionality to allow cli to use it (30809111+acoates-ms@users.noreply.github.com)
249
+
250
+ ## 0.0.0-canary.35
251
+
252
+ Sat, 04 Jun 2022 05:10:05 GMT
253
+
254
+ ### Changes
255
+
256
+ - Bump @react-native-windows/fs to v0.0.0-canary.5
257
+ - Bump @rnw-scripts/jest-unittest-config to v1.2.8
258
+ - Bump @rnw-scripts/just-task to v2.2.5
259
+
260
+ ## 0.0.0-canary.34
261
+
262
+ Thu, 12 May 2022 05:09:43 GMT
263
+
264
+ ### Changes
265
+
266
+ - Build/dependency fixes (ngerlem@microsoft.com)
267
+ - Bump @react-native-windows/fs to v0.0.0-canary.4
268
+ - Bump @rnw-scripts/eslint-config to v1.1.13
269
+ - Bump @rnw-scripts/jest-unittest-config to v1.2.7
270
+ - Bump @rnw-scripts/just-task to v2.2.4
271
+
272
+ ## 0.0.0-canary.33
273
+
274
+ Wed, 11 May 2022 05:08:51 GMT
275
+
276
+ ### Changes
277
+
278
+ - Add --methodonly to RNW/codegen (53799235+ZihanChen-MSFT@users.noreply.github.com)
279
+
280
+ ## 0.0.0-canary.32
281
+
282
+ Wed, 27 Apr 2022 05:10:23 GMT
283
+
284
+ ### Changes
285
+
286
+ - Merge (34109996+chiaramooney@users.noreply.github.com)
287
+ - Bump @react-native-windows/fs to v0.0.0-canary.3
288
+ - Bump @rnw-scripts/eslint-config to v1.1.12
289
+
290
+ ## 0.0.0-canary.31
291
+
292
+ Mon, 25 Apr 2022 22:50:30 GMT
293
+
294
+ ### Changes
295
+
296
+ - Update globby of @react-native-windows/codegen to remove glob-parent 3.x dependency (dannyvv@microsoft.com)
297
+
298
+ ## 0.0.0-canary.30
299
+
300
+ Tue, 12 Apr 2022 05:10:38 GMT
301
+
302
+ ### Changes
303
+
304
+ - Fix Overrides (34109996+chiaramooney@users.noreply.github.com)
305
+ - Bump @react-native-windows/fs to v0.0.0-canary.2
306
+
307
+ ## 0.0.0-canary.29
308
+
309
+ Fri, 01 Apr 2022 05:09:56 GMT
310
+
311
+ ### Changes
312
+
313
+ - Fix publish after promotion to preview (ngerlem@microsoft.com)
314
+ - Bump @react-native-windows/fs to v0.0.0-canary.1
315
+
316
+ ## 0.0.0-canary.28
317
+
318
+ Wed, 09 Mar 2022 06:09:07 GMT
319
+
320
+ ### Changes
321
+
322
+ - Fix turbo module codegen to generate correct import statement and registration (53799235+ZihanChen-MSFT@users.noreply.github.com)
323
+
324
+ ## 0.0.0-canary.27
325
+
326
+ Fri, 04 Mar 2022 06:09:13 GMT
327
+
328
+ ### Changes
329
+
330
+ - Generate fabric eventemitter.cpp (acoates@microsoft.com)
331
+
332
+ ## 0.0.0-canary.26
333
+
334
+ Thu, 24 Feb 2022 06:07:47 GMT
335
+
336
+ ### Changes
337
+
338
+ - Add TypeScript turbo module definition as new codegen traget (53799235+ZihanChen-MSFT@users.noreply.github.com)
339
+
340
+ ## 0.0.0-canary.25
341
+
342
+ Wed, 09 Feb 2022 06:09:36 GMT
343
+
344
+ ### Changes
345
+
346
+ - Bump minimum Node version to 14 (jthysell@microsoft.com)
347
+ - Bump @react-native-windows/fs to v1.0.2
348
+ - Bump @rnw-scripts/eslint-config to v1.1.11
349
+ - Bump @rnw-scripts/jest-unittest-config to v1.2.6
350
+ - Bump @rnw-scripts/just-task to v2.2.3
351
+ - Bump @rnw-scripts/ts-config to v2.0.2
352
+
353
+ ## 0.0.0-canary.24
354
+
355
+ Tue, 08 Feb 2022 18:21:23 GMT
356
+
357
+ ### Changes
358
+
359
+ - Fix TurboModule codegen document (53799235+ZihanChen-MSFT@users.noreply.github.com)
360
+
361
+ ## 0.0.0-canary.23
362
+
363
+ Sat, 29 Jan 2022 06:08:58 GMT
364
+
365
+ ### Changes
366
+
367
+ - Add document for turbo module codegen (53799235+ZihanChen-MSFT@users.noreply.github.com)
368
+
369
+ ## 0.0.0-canary.22
370
+
371
+ Fri, 03 Dec 2021 06:12:10 GMT
372
+
373
+ ### Changes
374
+
375
+ - Integrate 11/11 (34109996+chiaramooney@users.noreply.github.com)
376
+ - Bump @react-native-windows/fs to v1.0.1
377
+ - Bump @rnw-scripts/eslint-config to v1.1.10
378
+ - Bump @rnw-scripts/jest-unittest-config to v1.2.5
379
+ - Bump @rnw-scripts/just-task to v2.2.2
380
+
381
+ ## 0.0.0-canary.21
382
+
383
+ Thu, 18 Nov 2021 06:11:20 GMT
384
+
385
+ ### Changes
386
+
387
+ - Use '@react-native-windows/fs' (ngerlem@microsoft.com)
388
+ - Bump @react-native-windows/fs to v1.0.0
389
+ - Bump @rnw-scripts/eslint-config to v1.1.9
390
+
391
+ ## 0.0.0-canary.20
392
+
393
+ Thu, 04 Nov 2021 05:07:29 GMT
394
+
395
+ ### Changes
396
+
397
+ - Codegen prints `::React::JSValue` instead of `React::JSValue` (53799235+ZihanChen-MSFT@users.noreply.github.com)
398
+
399
+ ## 0.0.0-canary.20
400
+
401
+ Thu, 04 Nov 2021 05:07:08 GMT
402
+
403
+ ### Changes
404
+
405
+ - Codegen prints `::React::JSValue` instead of `React::JSValue` (53799235+ZihanChen-MSFT@users.noreply.github.com)
406
+
407
+ ## 0.0.0-canary.19
408
+
409
+ Sat, 23 Oct 2021 05:06:49 GMT
410
+
411
+ ### Changes
412
+
413
+ - Only generate component files if a component is specified (30809111+acoates-ms@users.noreply.github.com)
414
+
415
+ ## 0.0.0-canary.18
416
+
417
+ Fri, 22 Oct 2021 05:06:46 GMT
418
+
419
+ ### Changes
420
+
421
+ - Built files not included in published package (30809111+acoates-ms@users.noreply.github.com)
422
+
423
+ ## 0.0.0-canary.17
424
+
425
+ Thu, 21 Oct 2021 05:08:01 GMT
426
+
427
+ ### Changes
428
+
429
+ - Update to typescript 4 (30809111+acoates-ms@users.noreply.github.com)
430
+
431
+ ## 0.0.0-canary.16
432
+
433
+ Wed, 29 Sep 2021 05:06:54 GMT
434
+
435
+ ### Changes
436
+
437
+ - Check constants in generated turbo module specs (53799235+ZihanChen-MSFT@users.noreply.github.com)
438
+
439
+ ## 0.0.0-canary.15
440
+
441
+ Wed, 15 Sep 2021 05:07:04 GMT
442
+
443
+ ### Changes
444
+
445
+ - Generate anonymous objects in correct order for turbo module (53799235+ZihanChen-MSFT@users.noreply.github.com)
446
+
447
+ ## 0.0.0-canary.14
448
+
449
+ Fri, 10 Sep 2021 05:07:31 GMT
450
+
451
+ ### Changes
452
+
453
+ - Generate `std::vector<T>` for array types in turbo modules (53799235+ZihanChen-MSFT@users.noreply.github.com)
454
+
455
+ ## 0.0.0-canary.13
456
+
457
+ Thu, 09 Sep 2021 05:07:46 GMT
458
+
459
+ ### Changes
460
+
461
+ - Bump to 0.66-based react-native-tscodegen (ngerlem@microsoft.com)
462
+ - Generate nullable type for turbo module (53799235+ZihanChen-MSFT@users.noreply.github.com)
463
+
464
+ ## 0.0.0-canary.12
465
+
466
+ Wed, 08 Sep 2021 05:08:53 GMT
467
+
468
+ ### Patches
469
+
470
+ - Bump @rnw-scripts/jest-unittest-config to v1.2.4 (ngerlem@microsoft.com)
471
+ - Bump @rnw-scripts/just-task to v2.2.1 (ngerlem@microsoft.com)
472
+ - Bump @rnw-scripts/ts-config to v2.0.1 (ngerlem@microsoft.com)
473
+ - Bump @rnw-scripts/eslint-config to v1.1.8 (ngerlem@microsoft.com)
474
+
475
+ ### Changes
476
+
477
+ - Set consistent node requirements on our packages (ngerlem@microsoft.com)
478
+ - Match Alert module with NativeDialogManagerWindowsSpec.h (53799235+ZihanChen-MSFT@users.noreply.github.com)
479
+
480
+ ## 0.0.0-canary.11
481
+
482
+ Fri, 03 Sep 2021 05:06:04 GMT
483
+
484
+ ### Changes
485
+
486
+ - Generate aliased struct for turbo module (53799235+ZihanChen-MSFT@users.noreply.github.com)
487
+
488
+ ## 0.0.0-canary.10
489
+
490
+ Thu, 05 Aug 2021 05:07:20 GMT
491
+
492
+ ### Changes
493
+
494
+ - Do not write codegen files if the contents have not changed, as this breaks incremental builds (30809111+acoates-ms@users.noreply.github.com)
495
+
496
+ ## 0.0.0-canary.9
497
+
498
+ Fri, 11 Jun 2021 05:08:55 GMT
499
+
500
+ ### Patches
501
+
502
+ - Bump @rnw-scripts/just-task to v2.2.0 (ngerlem@microsoft.com)
503
+
504
+ ## 0.0.0-canary.8
505
+
506
+ Wed, 09 Jun 2021 05:10:07 GMT
507
+
508
+ ### Patches
509
+
510
+ - Bump @rnw-scripts/just-task to v2.1.3 (igklemen@microsoft.com)
511
+ - Bump @rnw-scripts/jest-unittest-config to v1.2.3 (igklemen@microsoft.com)
512
+
513
+ ## 0.0.0-canary.7
514
+
515
+ Thu, 03 Jun 2021 05:09:47 GMT
516
+
517
+ ### Patches
518
+
519
+ - Bump @rnw-scripts/just-task to v2.1.2 (ngerlem@microsoft.com)
520
+ - Bump @rnw-scripts/ts-config to v2.0.0 (ngerlem@microsoft.com)
521
+ - Bump @rnw-scripts/eslint-config to v1.1.7 (ngerlem@microsoft.com)
522
+ - Bump @rnw-scripts/jest-unittest-config to v1.2.2 (ngerlem@microsoft.com)
523
+
524
+ ### Changes
525
+
526
+ - Enable esModuleInterop Repo Wide (ngerlem@microsoft.com)
527
+
528
+ ## 0.0.0-canary.6
529
+
530
+ Fri, 21 May 2021 05:17:18 GMT
531
+
532
+ ### Patches
533
+
534
+ - Bump @rnw-scripts/just-task to v2.1.1 (ngerlem@microsoft.com)
535
+ - Bump @rnw-scripts/jest-unittest-config to v1.2.1 (ngerlem@microsoft.com)
536
+
537
+ ### Changes
538
+
539
+ - Integrate Apr 28 (base of 0.65) Nightly RN Build (ngerlem@microsoft.com)
540
+
20
541
  ## 0.0.0-canary.5
21
542
 
22
543
  Thu, 13 May 2021 05:11:48 GMT
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @react-native-windows/codegen
2
2
 
3
- Generators for react-native-codegen targeting react-native-windows
3
+ Generators for @react-native/codegen targeting react-native-windows
4
4
 
5
5
  ## Usage
6
6
 
package/bin.js CHANGED
File without changes
@@ -0,0 +1,7 @@
1
+ /**
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * @format
6
+ */
7
+ export {};
@@ -0,0 +1,74 @@
1
+ "use strict";
2
+ /**
3
+ * Copyright (c) Microsoft Corporation.
4
+ * Licensed under the MIT License.
5
+ *
6
+ * @format
7
+ */
8
+ var __importDefault = (this && this.__importDefault) || function (mod) {
9
+ return (mod && mod.__esModule) ? mod : { "default": mod };
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ const yargs_1 = __importDefault(require("yargs"));
13
+ const index_1 = require("./index");
14
+ const argv = yargs_1.default.options({
15
+ file: {
16
+ type: 'string',
17
+ describe: 'file which contains spec',
18
+ },
19
+ files: {
20
+ type: 'string',
21
+ array: true,
22
+ describe: 'glob patterns for files which contains specs',
23
+ },
24
+ modulesTypeScriptTypes: {
25
+ type: 'boolean',
26
+ describe: 'generate turbo module definition files in TypeScript',
27
+ default: false,
28
+ },
29
+ modulesCxx: {
30
+ type: 'boolean',
31
+ describe: 'generate C++ JSI turbo module spec files',
32
+ default: false,
33
+ },
34
+ modulesWindows: {
35
+ type: 'boolean',
36
+ describe: 'generate turbo module spec files for REACT_MODULE',
37
+ default: false,
38
+ },
39
+ methodOnly: {
40
+ type: 'boolean',
41
+ describe: 'generate only method metadata in C++ turbo module spec',
42
+ default: false,
43
+ },
44
+ outputDirectory: {
45
+ type: 'string',
46
+ describe: 'output directory',
47
+ default: 'codegen',
48
+ },
49
+ test: {
50
+ type: 'boolean',
51
+ describe: 'Verify that the generated output is unchanged',
52
+ default: false,
53
+ },
54
+ namespace: {
55
+ type: 'string',
56
+ describe: 'C++/C# Namespace to put generated native modules in',
57
+ default: 'MyNamespace',
58
+ },
59
+ libraryName: {
60
+ type: 'string',
61
+ required: true,
62
+ describe: 'Used for part of the path generated within the codegen dir',
63
+ },
64
+ }).argv;
65
+ if ((argv.file && argv.files) || (!argv.file && !argv.files)) {
66
+ console.error('You must specify either --file or --files.');
67
+ process.exit(1);
68
+ }
69
+ const changesNecessary = (0, index_1.runCodeGen)(argv);
70
+ if (argv.test && changesNecessary) {
71
+ console.error('There is a change in the output of codegen. Rerun "react-native codegen-windows" to regenerate.');
72
+ process.exit(2);
73
+ }
74
+ //# sourceMappingURL=Cli.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Cli.js","sourceRoot":"","sources":["../src/Cli.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;;;AAEH,kDAA0B;AAC1B,mCAAmC;AAEnC,MAAM,IAAI,GAAG,eAAK,CAAC,OAAO,CAAC;IACzB,IAAI,EAAE;QACJ,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,0BAA0B;KACrC;IACD,KAAK,EAAE;QACL,IAAI,EAAE,QAAQ;QACd,KAAK,EAAE,IAAI;QACX,QAAQ,EAAE,8CAA8C;KACzD;IACD,sBAAsB,EAAE;QACtB,IAAI,EAAE,SAAS;QACf,QAAQ,EAAE,sDAAsD;QAChE,OAAO,EAAE,KAAK;KACf;IACD,UAAU,EAAE;QACV,IAAI,EAAE,SAAS;QACf,QAAQ,EAAE,0CAA0C;QACpD,OAAO,EAAE,KAAK;KACf;IACD,cAAc,EAAE;QACd,IAAI,EAAE,SAAS;QACf,QAAQ,EAAE,mDAAmD;QAC7D,OAAO,EAAE,KAAK;KACf;IACD,UAAU,EAAE;QACV,IAAI,EAAE,SAAS;QACf,QAAQ,EAAE,wDAAwD;QAClE,OAAO,EAAE,KAAK;KACf;IACD,eAAe,EAAE;QACf,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,kBAAkB;QAC5B,OAAO,EAAE,SAAS;KACnB;IACD,IAAI,EAAE;QACJ,IAAI,EAAE,SAAS;QACf,QAAQ,EAAE,+CAA+C;QACzD,OAAO,EAAE,KAAK;KACf;IACD,SAAS,EAAE;QACT,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,qDAAqD;QAC/D,OAAO,EAAE,aAAa;KACvB;IACD,WAAW,EAAE;QACX,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,QAAQ,EAAE,4DAA4D;KACvE;CACF,CAAC,CAAC,IAAI,CAAC;AAER,IAAI,CAAC,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE;IAC5D,OAAO,CAAC,KAAK,CAAC,4CAA4C,CAAC,CAAC;IAC5D,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;CACjB;AAED,MAAM,gBAAgB,GAAG,IAAA,kBAAU,EAAC,IAAI,CAAC,CAAC;AAE1C,IAAI,IAAI,CAAC,IAAI,IAAI,gBAAgB,EAAE;IACjC,OAAO,CAAC,KAAK,CACX,kGAAkG,CACnG,CAAC;IACF,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;CACjB","sourcesContent":["/**\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * @format\n */\n\nimport yargs from 'yargs';\nimport {runCodeGen} from './index';\n\nconst argv = yargs.options({\n file: {\n type: 'string',\n describe: 'file which contains spec',\n },\n files: {\n type: 'string',\n array: true,\n describe: 'glob patterns for files which contains specs',\n },\n modulesTypeScriptTypes: {\n type: 'boolean',\n describe: 'generate turbo module definition files in TypeScript',\n default: false,\n },\n modulesCxx: {\n type: 'boolean',\n describe: 'generate C++ JSI turbo module spec files',\n default: false,\n },\n modulesWindows: {\n type: 'boolean',\n describe: 'generate turbo module spec files for REACT_MODULE',\n default: false,\n },\n methodOnly: {\n type: 'boolean',\n describe: 'generate only method metadata in C++ turbo module spec',\n default: false,\n },\n outputDirectory: {\n type: 'string',\n describe: 'output directory',\n default: 'codegen',\n },\n test: {\n type: 'boolean',\n describe: 'Verify that the generated output is unchanged',\n default: false,\n },\n namespace: {\n type: 'string',\n describe: 'C++/C# Namespace to put generated native modules in',\n default: 'MyNamespace',\n },\n libraryName: {\n type: 'string',\n required: true,\n describe: 'Used for part of the path generated within the codegen dir',\n },\n}).argv;\n\nif ((argv.file && argv.files) || (!argv.file && !argv.files)) {\n console.error('You must specify either --file or --files.');\n process.exit(1);\n}\n\nconst changesNecessary = runCodeGen(argv);\n\nif (argv.test && changesNecessary) {\n console.error(\n 'There is a change in the output of codegen. Rerun \"react-native codegen-windows\" to regenerate.',\n );\n process.exit(2);\n}\n"]}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ * @format
5
+ */
6
+ import type { NativeModuleObjectTypeAnnotation } from '@react-native/codegen/lib/CodegenSchema';
7
+ import { AliasMap } from './AliasManaging';
8
+ export declare function createAliasMap(nativeModuleAliases: {
9
+ [name: string]: NativeModuleObjectTypeAnnotation;
10
+ }): AliasMap;
11
+ export declare function generateAliases(aliases: AliasMap): string;