-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Path handling improvements and nested worker support #16
base: main
Are you sure you want to change the base?
Conversation
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. |
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. |
@googlebot I signed it! |
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. |
@googlebot I fixed it. |
CLAs look good, thanks! ℹ️ Googlers: Go here for more info. |
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 |
|
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. |
Looks like I was right. NodeJS 16 on Windows just worked fine in the CI on my side. 🎊 |
Hi, just wanted to know, is there any reason why this is still not merged yet? @developit |
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 |
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? |
@developit sorry to ping, would you be open reconsidering this patch? |
This PR brings the following;
.editorconfig
TODO
npm ci
issuestgz
artefact and didn't notice the other PRs)require('worker_threads).isMainThread
to avoid conflicts (e.g. AVA v4 uses worker threads)threads.workerData
beingundefined
(to address more potentialworker_threads
usage conflicts)