Skip to content
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

refactor(js-runtime): use types from WebWorker API #240

Merged
merged 5 commits into from Nov 6, 2022

Conversation

QuiiBz
Copy link
Member

@QuiiBz QuiiBz commented Nov 6, 2022

About

Use types from WebWorker API instead of relying on custom ones. This makes sure the interfaces are correct (but the implementation itself can still have bugs). I've added some new methods to comply with the types that aren't implemented in this PR and throw an error instead - it should be done in another PR.

process.argv shim has been moved to js-runtime directly, instead of being only in the astro integration before.

Also, all js-runtime code is now wrapped inside IIFE, to prevent leaking objects to the global scope.

@QuiiBz QuiiBz marked this pull request as ready for review November 6, 2022 13:23
@QuiiBz QuiiBz merged commit 8727bc6 into main Nov 6, 2022
@QuiiBz QuiiBz deleted the refactor/runtime-proper-types branch November 6, 2022 13:28
@QuiiBz QuiiBz mentioned this pull request Nov 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant