@live-codes/browser-compilers 0.15.1 → 0.17.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/dist/@testing-library/dom.js +44 -41
- package/dist/@testing-library/jest-dom.js +47 -86
- package/dist/@testing-library/react-pure.js +75 -0
- package/dist/@testing-library/react.js +48 -85
- package/dist/@testing-library/user-event.js +78 -0
- package/dist/babel-plugin-react-compiler/babel-plugin-react-compiler.js +11 -0
- package/dist/react-native-web/react-native-web.js +14 -14
- package/package.json +7 -5
- package/scripts/vendors.js +25 -2
- package/vendor-licenses.md +2 -0
- package/vendor_modules/imports/@testing-library/react-pure.js +1 -0
- package/vendor_modules/imports/@testing-library/user-event.js +4 -0
- package/vendor_modules/imports/babel-plugin-react-compiler.js +2 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@live-codes/browser-compilers",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.17.0",
|
|
4
4
|
"description": "Compilers that run in the browser, for use in livecodes.io",
|
|
5
5
|
"author": "Hatem Hosny",
|
|
6
6
|
"license": "MIT",
|
|
@@ -34,9 +34,10 @@
|
|
|
34
34
|
"@tailwindcss/forms": "0.5.3",
|
|
35
35
|
"@tailwindcss/line-clamp": "0.4.4",
|
|
36
36
|
"@tailwindcss/typography": "0.5.9",
|
|
37
|
-
"@testing-library/dom": "
|
|
38
|
-
"@testing-library/jest-dom": "
|
|
39
|
-
"@testing-library/react": "
|
|
37
|
+
"@testing-library/dom": "10.4.0",
|
|
38
|
+
"@testing-library/jest-dom": "6.6.3",
|
|
39
|
+
"@testing-library/react": "16.1.0",
|
|
40
|
+
"@testing-library/user-event": "14.5.2",
|
|
40
41
|
"@tokencss/core": "0.1.0",
|
|
41
42
|
"@tokencss/postcss": "0.0.5",
|
|
42
43
|
"@typescript/ata": "0.9.4",
|
|
@@ -58,6 +59,7 @@
|
|
|
58
59
|
"@webassemblyjs/wast-refmt": "1.12.1",
|
|
59
60
|
"assemblyscript": "0.27.29",
|
|
60
61
|
"autoprefixer": "10.4.19",
|
|
62
|
+
"babel-plugin-react-compiler": "19.0.0-beta-df7b47d-20241124",
|
|
61
63
|
"babel-preset-solid": "1.8.19",
|
|
62
64
|
"cssnano-preset-default": "7.0.4",
|
|
63
65
|
"dts-bundle": "0.1.1",
|
|
@@ -76,7 +78,7 @@
|
|
|
76
78
|
"pug": "3.0.3",
|
|
77
79
|
"react": "18.2.0",
|
|
78
80
|
"react-dom": "18.2.0",
|
|
79
|
-
"react-native-web": "0.19.
|
|
81
|
+
"react-native-web": "0.19.13",
|
|
80
82
|
"remark-gfm": "4.0.0",
|
|
81
83
|
"sass": "1.77.6",
|
|
82
84
|
"sucrase": "3.35.0",
|
package/scripts/vendors.js
CHANGED
|
@@ -294,7 +294,7 @@ fs.copyFileSync(
|
|
|
294
294
|
);
|
|
295
295
|
|
|
296
296
|
// @testing-library
|
|
297
|
-
['dom.js', 'jest-dom.js', 'react.js'].forEach(
|
|
297
|
+
['dom.js', 'jest-dom.js', 'react.js', 'react-pure.js', 'user-event.js'].forEach(
|
|
298
298
|
// entryPoints did not work properly!
|
|
299
299
|
(mod) => {
|
|
300
300
|
esbuild
|
|
@@ -303,7 +303,10 @@ fs.copyFileSync(
|
|
|
303
303
|
entryPoints: ['vendor_modules/imports/@testing-library/' + mod],
|
|
304
304
|
outdir: 'dist/@testing-library/',
|
|
305
305
|
format: 'esm',
|
|
306
|
-
|
|
306
|
+
define: {
|
|
307
|
+
'process.env.NODE_ENV': '"development"',
|
|
308
|
+
},
|
|
309
|
+
external: ['react', 'react-dom'],
|
|
307
310
|
})
|
|
308
311
|
.then(() => {
|
|
309
312
|
if (mod !== 'jest-dom.js') return;
|
|
@@ -431,6 +434,26 @@ esbuild.build({
|
|
|
431
434
|
],
|
|
432
435
|
});
|
|
433
436
|
|
|
437
|
+
// react compiler
|
|
438
|
+
patch('node_modules/babel-plugin-react-compiler/dist/index.js', {
|
|
439
|
+
'require.resolve': 'void',
|
|
440
|
+
}).then(() => {
|
|
441
|
+
esbuild.build({
|
|
442
|
+
...baseOptions,
|
|
443
|
+
entryPoints: ['vendor_modules/imports/babel-plugin-react-compiler.js'],
|
|
444
|
+
outfile: 'dist/babel-plugin-react-compiler/babel-plugin-react-compiler.js',
|
|
445
|
+
globalName: 'reactCompiler',
|
|
446
|
+
define: { global: 'window', 'process.env': '{}' },
|
|
447
|
+
plugins: [
|
|
448
|
+
NodeModulesPolyfills(),
|
|
449
|
+
GlobalsPolyfills({
|
|
450
|
+
process: true,
|
|
451
|
+
buffer: true,
|
|
452
|
+
}),
|
|
453
|
+
],
|
|
454
|
+
});
|
|
455
|
+
});
|
|
456
|
+
|
|
434
457
|
// tailwindcss-plugins
|
|
435
458
|
esbuild.build({
|
|
436
459
|
...baseOptions,
|
package/vendor-licenses.md
CHANGED
|
@@ -8,6 +8,8 @@ AssemblyScript: [Apache License 2.0](https://github.com/AssemblyScript/assemblys
|
|
|
8
8
|
|
|
9
9
|
Autoprefixer: [MIT License](https://github.com/postcss/autoprefixer/blob/61f71e9a8613b0c90357472d58fdcce26324ef4f/LICENSE)
|
|
10
10
|
|
|
11
|
+
babel-plugin-react-compiler: [MIT License](https://github.com/facebook/react/blob/7283a213dbbc31029e65005276f12202558558fc/LICENSE)
|
|
12
|
+
|
|
11
13
|
BBob: [MIT License](https://github.com/JiLiZART/BBob/blob/17edb9e3e6572e72ab9cb042d86e2215c60afa86/LICENSE)
|
|
12
14
|
|
|
13
15
|
Civet: [MIT License](https://github.com/DanielXMoore/Civet/blob/9b28e3a351d130ce031c7b28b50bcb6d2a499315/LICENSE)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '@testing-library/react/pure';
|