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