Updating polyscript to its latest #2128
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is currently published as
0.5.0-rc4
on npm:https://cdn.jsdelivr.net/npm/@pyscript/core@next/dist/core.js
https://cdn.jsdelivr.net/npm/@pyscript/core@next/dist/core.css
Documentation
pyscript/docs#134
Summary
The latest coincident is being tested to provide the following features:
serviceWorker
orservice_worker
url is passed as options / config, it eventually does fallback to sync XHR based exchanges that makes it still possible to usewindow
ordocument
from workers, even if headers required to enabled native SharedArrayBuffer are nowhere in the project, thanks to sabayon helperThe current
polyscript@next
also has been improved to both use latest coincident and simplify the bootstrap logic, providing better ways to also understand whenwindow
ordocument
cannot be used, printing better / more meaningful errors too.The concept here is that as long as you don't try to use
window
ordocument
, you don't need to care about SharedArrayBuffer so that general DX should hopefully be better now.Literally nothing that was working before should break now, quite the opposite, it should be eventually slightly faster with more fine-tuned memory leaks prevention thanks to underlying libraries updates and the communication channel between multiple workers have been improved too.