Path handling improvements and nested worker support - #16
Path handling improvements and nested worker support#16Silic0nS0ldier wants to merge 29 commits into
Conversation
googlebot
commented
Jun 15, 2021
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please visit https://cla.developers.google.com/ to sign. Once you've signed (or fixed any issues), please reply here with What to do if you already signed the CLAIndividual signers
Corporate signers
ℹ️ Googlers: Go here for more info. |
developit
commented
Jun 30, 2021
This is really good. No need to split things up, both pieces are improvements I'm happy to merge. |
Alright I fixed the note: the windows node 16 build never finishes. I'm thinking we'll have to turn that variant off, something seems broken in CI. |
Silic0nS0ldier
commented
Jul 1, 2021
@googlebot I signed it! |
googlebot
commented
Jul 1, 2021
We found a Contributor License Agreement for you (the sender of this pull request), but were unable to find agreements for all the commit author(s) or Co-authors. If you authored these, maybe you used a different email address in the git commits than was used to sign the CLA (login here to double check)? If these were authored by someone else, then they will need to sign a CLA as well, and confirm that they're okay with these being contributed to Google. ℹ️ Googlers: Go here for more info. |
Silic0nS0ldier
commented
Jul 1, 2021
@googlebot I fixed it. |
googlebot
commented
Jul 1, 2021
CLAs look good, thanks! ℹ️ Googlers: Go here for more info. |
Silic0nS0ldier
commented
Jul 5, 2021
Had a look into supporting Inline scripts aren't a problem for a module worker since the code is loaded via dynamic import, which handles the lack of a file path file. Fun fact, Had a thought, while web workers support patterns like Ideally |
Silic0nS0ldier
commented
Jul 5, 2021
|
Silic0nS0ldier
commented
Jul 7, 2021
Re NodeJS 16 on Windows, I think the timeout is due to a change in how NPM v7 (which comes with NodeJS 16) which when combined with a particular characteristic of this repo causes Windows to execute Assuming I'm right, relocating the source should do the trick. |
Silic0nS0ldier
commented
Jul 7, 2021
Looks like I was right. NodeJS 16 on Windows just worked fine in the CI on my side. 🎊 |
AwesomeStickz
commented
Mar 10, 2022
Hi, just wanted to know, is there any reason why this is still not merged yet? @developit |
Silic0nS0ldier
commented
Sep 22, 2022
Hi @developit, I figure its about time I ping you. For those following along, I've created a release on my fork to permit easier usage in the meantime. https://github.com/Silic0nS0ldier/web-worker/releases/tag/v1.3.0-alpha.0 |
schwers
commented
Oct 27, 2022
Hey there, came across this issue as well in a project our org is working on. Would it be possible to merge this in? Is there any support I could provide to help do so? |
schwers
commented
Nov 10, 2022
@developit sorry to ping, would you be open reconsidering this patch? |
This PR brings the following;
.editorconfigTODO
npm ciissuestgzartefact and didn't notice the other PRs)require('worker_threads).isMainThreadto avoid conflicts (e.g. AVA v4 uses worker threads)threads.workerDatabeingundefined(to address more potentialworker_threadsusage conflicts)