Skip to content

feat: Support self.close inside node workers#21

Merged
developit merged 3 commits into
developit:masterfrom
phated:add-worker-close
Nov 5, 2021
Merged

feat: Support self.close inside node workers#21
developit merged 3 commits into
developit:masterfrom
phated:add-worker-close

Conversation

@phated

@phated phated commented Sep 29, 2021

Copy link
Copy Markdown
Contributor

This adds the self.close() function that is available in a Worker's global scope, as per https://developer.mozilla.org/en-US/docs/Web/API/DedicatedWorkerGlobalScope/close

@guybedford guybedford left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we also include the related documentation change here as well? I see there's no real docs change to make here... NVM!

Seems good to me!

Comment thread test/index.test.js Outdated
Co-authored-by: Guy Bedford <guybedford@gmail.com>
Comment thread test/index.test.js Outdated
@phated

phated commented Sep 30, 2021

Copy link
Copy Markdown
Contributor Author

Thanks for the reviews @guybedford and @addaleax! Anything else I need to do to get this released?

@phated

phated commented Oct 7, 2021

Copy link
Copy Markdown
Contributor Author

@developit Anything else you need here?

@phated

phated commented Nov 4, 2021

Copy link
Copy Markdown
Contributor Author

@guybedford I noticed that you have publish permissions on npm. Can we get this merged and released?

@guybedford

Copy link
Copy Markdown
Collaborator

@phated it is up to @developit to manage the releases here, it would be out of the usual process for me to do that.

@developit
developit merged commit 8280763 into developit:master Nov 5, 2021
@developit

Copy link
Copy Markdown
Owner

Apologies for the delay! This is now published as web-worker@1.2.0.

@phated

phated commented Nov 5, 2021

Copy link
Copy Markdown
Contributor Author

Thanks!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants