Worker sync utility (#1511)

* patched an issue with wasmoon randomly asking to resolve proxy references
  * simplified pyodide and micropython dance by grouping their common utilities together
  * created an integration test around a worker to main thread input between MicroPython and Lua
  * commented some weird bugs / funny behaviors around both MicroPython and Pyodide
  * other minor clean ups
This commit is contained in:
Andrea Giammarchi
2023-06-08 11:10:47 +02:00
committed by GitHub
parent 0cdbfbeb30
commit af72e232c3
26 changed files with 277 additions and 81 deletions

View File

@@ -9,7 +9,9 @@
"version": "0.0.0",
"license": "ISC",
"dependencies": {
"basic-devtools": "^0.1.6"
"@ungap/with-resolvers": "^0.1.0",
"basic-devtools": "^0.1.6",
"coincident": "^0.2.3"
},
"devDependencies": {
"@node-loader/import-maps": "^1.1.0",
@@ -19,8 +21,8 @@
"c8": "^7.14.0",
"eslint": "^8.42.0",
"linkedom": "^0.14.26",
"rollup": "^3.23.1",
"static-handler": "^0.4.0",
"rollup": "^3.24.0",
"static-handler": "^0.4.1",
"typescript": "^5.1.3"
}
},
@@ -335,6 +337,16 @@
"integrity": "sha512-60BCwRFOZCQhDncwQdxxeOEEkbc5dIMccYLwbxsS4TUNeVECQ/pBJ0j09mrHOl/JJvpRPGwO9SvE4nR2Nb/a4Q==",
"dev": true
},
"node_modules/@ungap/structured-clone": {
"version": "1.2.0",
"resolved": "https://registry.npmjs.org/@ungap/structured-clone/-/structured-clone-1.2.0.tgz",
"integrity": "sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ=="
},
"node_modules/@ungap/with-resolvers": {
"version": "0.1.0",
"resolved": "https://registry.npmjs.org/@ungap/with-resolvers/-/with-resolvers-0.1.0.tgz",
"integrity": "sha512-g7f0IkJdPW2xhY7H4iE72DAsIyfuwEFc6JWc2tYFwKDMWWAF699vGjrM348cwQuOXgHpe1gWFe+Eiyjx/ewvvw=="
},
"node_modules/acorn": {
"version": "8.8.2",
"resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.2.tgz",
@@ -521,6 +533,14 @@
"wrap-ansi": "^7.0.0"
}
},
"node_modules/coincident": {
"version": "0.2.3",
"resolved": "https://registry.npmjs.org/coincident/-/coincident-0.2.3.tgz",
"integrity": "sha512-zCHSEa8x6HcXTaPQLH89//mu7UQn/Iie2xcSOhTMPu546lboT7Js2vr1HIlZHISe82++0y7JSnX/7gIWy0bcrw==",
"dependencies": {
"@ungap/structured-clone": "^1.2.0"
}
},
"node_modules/color-convert": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
@@ -1647,9 +1667,9 @@
}
},
"node_modules/rollup": {
"version": "3.23.1",
"resolved": "https://registry.npmjs.org/rollup/-/rollup-3.23.1.tgz",
"integrity": "sha512-ybRdFVHOoljGEFILHLd2g/qateqUdjE6YS41WXq4p3C/WwD3xtWxV4FYWETA1u9TeXQc5K8L8zHE5d/scOvrOQ==",
"version": "3.24.0",
"resolved": "https://registry.npmjs.org/rollup/-/rollup-3.24.0.tgz",
"integrity": "sha512-OgraHOIg2YpHQTjl0/ymWfFNBEyPucB7lmhXrQUh38qNOegxLapSPFs9sNr0qKR75awW41D93XafoR2QfhBdUQ==",
"dev": true,
"bin": {
"rollup": "dist/bin/rollup"
@@ -1776,9 +1796,9 @@
}
},
"node_modules/static-handler": {
"version": "0.4.0",
"resolved": "https://registry.npmjs.org/static-handler/-/static-handler-0.4.0.tgz",
"integrity": "sha512-ixtyrMNaN6Z0jW4RDJWL9BJT2kZ4wX05+D1XNGOOXxeUqrpk4MhZtMXdqQGxitRSrDCO6/Esjdq28rrvzDeYEw==",
"version": "0.4.1",
"resolved": "https://registry.npmjs.org/static-handler/-/static-handler-0.4.1.tgz",
"integrity": "sha512-atl+UofbqCECS4Ag1ZZIjC606I1I40CuDsdq4YQ5Vq3vTsUbvqVaNG4evFsKktlnPcEm217vBUSEFKyi9lsJ8Q==",
"dev": true,
"dependencies": {
"mime-types": "^2.1.34"
@@ -2275,6 +2295,16 @@
"integrity": "sha512-60BCwRFOZCQhDncwQdxxeOEEkbc5dIMccYLwbxsS4TUNeVECQ/pBJ0j09mrHOl/JJvpRPGwO9SvE4nR2Nb/a4Q==",
"dev": true
},
"@ungap/structured-clone": {
"version": "1.2.0",
"resolved": "https://registry.npmjs.org/@ungap/structured-clone/-/structured-clone-1.2.0.tgz",
"integrity": "sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ=="
},
"@ungap/with-resolvers": {
"version": "0.1.0",
"resolved": "https://registry.npmjs.org/@ungap/with-resolvers/-/with-resolvers-0.1.0.tgz",
"integrity": "sha512-g7f0IkJdPW2xhY7H4iE72DAsIyfuwEFc6JWc2tYFwKDMWWAF699vGjrM348cwQuOXgHpe1gWFe+Eiyjx/ewvvw=="
},
"acorn": {
"version": "8.8.2",
"resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.2.tgz",
@@ -2416,6 +2446,14 @@
"wrap-ansi": "^7.0.0"
}
},
"coincident": {
"version": "0.2.3",
"resolved": "https://registry.npmjs.org/coincident/-/coincident-0.2.3.tgz",
"integrity": "sha512-zCHSEa8x6HcXTaPQLH89//mu7UQn/Iie2xcSOhTMPu546lboT7Js2vr1HIlZHISe82++0y7JSnX/7gIWy0bcrw==",
"requires": {
"@ungap/structured-clone": "^1.2.0"
}
},
"color-convert": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",
@@ -3243,9 +3281,9 @@
}
},
"rollup": {
"version": "3.23.1",
"resolved": "https://registry.npmjs.org/rollup/-/rollup-3.23.1.tgz",
"integrity": "sha512-ybRdFVHOoljGEFILHLd2g/qateqUdjE6YS41WXq4p3C/WwD3xtWxV4FYWETA1u9TeXQc5K8L8zHE5d/scOvrOQ==",
"version": "3.24.0",
"resolved": "https://registry.npmjs.org/rollup/-/rollup-3.24.0.tgz",
"integrity": "sha512-OgraHOIg2YpHQTjl0/ymWfFNBEyPucB7lmhXrQUh38qNOegxLapSPFs9sNr0qKR75awW41D93XafoR2QfhBdUQ==",
"dev": true,
"requires": {
"fsevents": "~2.3.2"
@@ -3325,9 +3363,9 @@
}
},
"static-handler": {
"version": "0.4.0",
"resolved": "https://registry.npmjs.org/static-handler/-/static-handler-0.4.0.tgz",
"integrity": "sha512-ixtyrMNaN6Z0jW4RDJWL9BJT2kZ4wX05+D1XNGOOXxeUqrpk4MhZtMXdqQGxitRSrDCO6/Esjdq28rrvzDeYEw==",
"version": "0.4.1",
"resolved": "https://registry.npmjs.org/static-handler/-/static-handler-0.4.1.tgz",
"integrity": "sha512-atl+UofbqCECS4Ag1ZZIjC606I1I40CuDsdq4YQ5Vq3vTsUbvqVaNG4evFsKktlnPcEm217vBUSEFKyi9lsJ8Q==",
"dev": true,
"requires": {
"mime-types": "^2.1.34"