-
Notifications
You must be signed in to change notification settings - Fork 285
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
Service worker fixes, JupyterLab 3.5.1 #899
Conversation
a4bbda8
to
acafc51
Compare
Headsup that this will go in conflict with #898 |
Not worried too much about that given the breaking changes in 3.6 anyway.
We may have to keep 3.5 running for a while
…On Thu, Dec 8, 2022, 09:23 martinRenou ***@***.***> wrote:
Headsup that this will go in conflict with #898
<#898>
—
Reply to this email directly, view it on GitHub
<#899 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAALCRD6AFVLBFY6YK67NXLWMH4NXANCNFSM6AAAAAASYIN6KQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
couple of questions: How can a site deployer disable the service worker? should we expect to be able to set a new option in the
So this is the content hash of the |
added some docs here: ada7479
I believe it's the hash of the output, which isn't precisely deterministic (or rather, has many independent variables of which the source of |
packages/server/src/sw.ts
Outdated
@@ -0,0 +1,154 @@ | |||
// eslint-disable-next-line @typescript-eslint/triple-slash-reference |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we could rename this file from sw.ts
to serviceworker.ts
so it's more explicit?
And the existing serviceworker.ts
to serviceworkerwrapper.ts
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
perhaps serviceworker.ts
and servicemanager.ts
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
or service-registration.ts
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
3a39e7f went with ServiceManager
, etc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. Although ServiceManager
can probably be a bit confusing since there is already a ServiceManager
in JupyterLab?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ServiceWorkerManager
would be fine I guess?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Excellent point, updated in 0bf86c2.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
@jtpio With this upgrade, we should include your fix: jupyterlab/jupyterlab#12849. |
@qqdaiyu55 I think jupyterlab/jupyterlab#12849 was not backported to 3.5 so it's not available in JupyterLite. We should however be able to pick it up when updating to the JupyterLab 4 packages in #826. |
@jtpio Thanks for reply. I'm implementing a custom drive and try to get it work for jupyterlite, and see the same issue reported here: jupyterlab/jupyterlab#12755. From my understanding, for any custom drive extension (e.g. jupyterlab-github), I should see the same renaming error when I opened a new document in root directory (e.g. |
References
pyodide
version changeCode changes
pyodide
topyodide-kernel/package.json#/devDependencies
import type
d in.ts
@types/emscripten
(such as it is)ERRNO_CODES
pyodide._module
lerna 6
typedoc 0.23
typescript 4.9
prettier 2.8
BroadcastChannel
out of server, put in contentsServiceWorker
andBroadcastChannel
services.js
intoserver/sw.ts
SKIP_ESLINT
env varplotly
until compatible with ipywidgets 8User-facing changes
ServiceWorker
services.js
with cache-bustingBackwards-incompatible changes
services.js
is no longer predictable (hash-based)