Changelog
@ogygia/core
Every release of @ogygia/core, newest first.
- Latest
- 0.17.1
- Versions
- 19
0.17.1 patch
Patch Changes
- A transportable class in the page seed or a provided context whose module fails to load is now tried again by the page (on its backoff, waiting for the network while offline) and, once given up, said once by each page that reads it while every region wakes with that value missing, instead of the value being quietly lost for the whole page.
transportable_class_missingnow says, for any decode that meets a class whose module did not load, that the module did not load and its value was not read (and for a page's give-up, whether the download got no response, got an answer, or failed in a way its loader cannot tell), instead of asking to import the class as a value.
Dependencies: @ogygia/machine@0.17.1
0.16.5 patch
Patch Changes
- A region whose transportable class module fails to download while the browser is online now tries again after 0.5 s and 1 s, as its island code does, instead of staying asleep until a reload; a class module the server answered for (a 404) still gives up at once, and once its tries run out the region says
transportable_class_missingonce, as before, with the failed download as its cause.
Dependencies: @ogygia/machine@0.16.5
0.16.4 patch
Patch Changes
- A region whose island code fails to download while the browser is online (for example just after Wi-Fi comes back and
onlinefires) now tries again after 0.5 s and 1 s, as a hole's fetch does, instead of staying asleep until a reload; once its tries run out it saysisland_load_failedas before.
Dependencies: @ogygia/machine@0.16.4
0.16.3 patch
Dependency updates only @ogygia/core
0.16.2 patch
Dependency updates only @ogygia/core
0.16.1 patch
Patch Changes
- On SvelteKit 3, a region on a
csr = falsepage that imports$app/env/publicnow hydrates and reads its dynamic public variables (static: false), in a build and invite dev, invite devalso when every variable is static (#2177), on streamed pages and on server-router pages, where it threw on import before. An island the server renders later (adeferhole, a remote call's region) or one a prefetch loads ahead of its page (a hover preload, on by default in Kit'sapp.html, or the router's) reads an empty env and warnskit_env_missinginstead of throwing; carrying the env there is #2219. A federated peer's region on the host's page reads an empty env and warnskit_env_missing, never the host app's values, unless the peer has the host's package name,paths.baseand app dir and either pins the sameversion.nameor is built in the same process (#2221). Apps are told apart only by those values, never by their source; the identity each page carries is a short digest of them, so a guess at the package name can be checked against it; an app whoseversion.nameogygia cannot read (nosveltekit()plugin in its Vite config) warnskit_env_version_unread. - The SPA router no longer keeps the last page's marked side channel in the head (a server-router page's page seed or Kit env) when the next page carries one with the same text, so the next page's islands read their own page's channel.
Dependencies: @ogygia/machine@0.16.1
0.15.1 patch
Dependency updates only @ogygia/core
0.14.1 patch
Patch Changes
- In dev, a new element the router or a region update copies in that loses its closed declarative shadow root (
<template shadowrootmode="closed">) now warns withclosed_shadow_root_lostand the ways around it, instead of losing the root without a word. - A client navigation now puts the next page's own inline
<style>or inline<script>in the head when it differs from the last page's only after its first 48 characters; before, the last page's node was kept, so the page could show with the wrong styles. - A hole given a snippet prop and rebuilt in the browser (after Kit gives up hydrating) keeps the address the server gave it, instead of warning
hole_without_addressand never loading. Both legs now freeze a snippet to the same HTML: Svelte's server HTML without its hydration markers, which also makes a frozen snippet a little smaller in the page. - A template element beside an
{@html}that a third-party script edits before the island wakes is now put back from the server markup, instead of the island throwing its hydration away; server HTML now carries a small<!--@html-->marker at the start of such{@html}content. - A remote query made outside any island (a click handler, a module's top level) right after the island that used the same query left the page now gets fresh data, not an empty answer.
- When a third party puts an element into a sleeping island, the click that wakes it now still counts: the wake keeps every element after the inserted one (custom elements are no longer connected twice), and the replayed click, typed values and focus go to the element itself instead of to whatever now sits at its old position.
0.13.1 patch
Patch Changes
- A shared chunk that fails to download on a large page (one whose resource timing buffer is already full) is asked for again once and then said once with
chunk_reload_needed, instead of being retried on every wake without the message. - An island clicked before it wakes no longer waits for the click-replay code to download: that small chunk is fetched as background work once an island is armed (after the page's critical resources), instead of at the click.
- Back and Forward land exactly where the page was left when a region above that position gets its height after the page is swapped in: the scroll is held there while the page lays out, until the visitor scrolls or interacts.
- A router navigation between pages at different URL depths asks for the next page's stylesheets (and every other head URL) at the next page's address, not resolved against the page being left.
0.11.5 patch
Patch Changes
- An app with no deferred, live or lake region no longer ships the region element's fetch, apply and morph code.
- An island page no longer downloads runtime code for features its app does not use.
- A
+page.mdroute counts as a page like+page.svelte, so a csr=false markdown page no longer makes every island page ship extra Svelte and runtime code. - An app whose islands never read their page no longer ships the page seed runtime or the MPA navigation handle.