Changelog
@ogygia/compiler
Every release of @ogygia/compiler, newest first.
- Latest
- 0.17.1
- Versions
- 9
0.17.1 patch
Dependency updates only @ogygia/compiler
0.16.5 patch
Dependency updates only @ogygia/compiler
0.16.4 patch
Dependency updates only @ogygia/compiler
0.16.3 patch
Dependency updates only @ogygia/compiler
0.16.2 patch
Dependency updates only @ogygia/compiler
0.16.1 patch
Patch Changes
- One ogygia plugin serving two open dev servers at once (a restart that opens the new server before the old one closes, or two servers made with one plugin list) now updates both: an edit to a route's options, a style or an island's imports, and a deleted island's page reload, reach every open server, not only the first to hear it; closing one server leaves the other serving, and a second ogygia() on the same root never touches the first one's servers.
- A client build no longer names its client chunks by bundler order: before any module loads, it follows each island's imports through package imports, so a package module both a page and an island import always reads the
$app/*shims an island needs. Two builds of the same source write the same client files for every import the build can read up front (static imports other than a namelessexport {} from, andimport()of a literal string in.svelte,.js,.ts,.jsxand.tsxfiles and their.mjs,.cjs,.mtsand.ctsforms; imports in comments and wholeimport type/export typestatements left out, while an import whose names are eachtypeis followed, sinceverbatimModuleSyntaxkeeps it); a build made withOGYGIA_RULES=1stops withisland_graph_lateon a module that reads$app/*and is reached only another way. On a csr=true page such a shared module now always goes through the shim: therepage,navigatingand$app/navigationare Kit's own, whileupdatedreadsfalseandupdated.check()resolvesfalse. - 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.
Dependencies: @ogygia/core@0.16.1, @ogygia/machine@0.16.1
0.15.1 patch
Dependency updates only @ogygia/compiler
0.14.1 patch
Patch Changes
- In dev, a route option file (such as a
+page.tswithcsr) saved by an editor that empties the file before writing it is now read again once the write lands. Before, the dev server could keep the empty read, and a page kept the wrong csr until the next save or a restart. - Server HTML now carries a small
<!--@html-->marker at the start of each non-empty{@html}that sits beside other children in an element, so the runtime can tell its content from the template's own elements. - A server region whose tree reads
page.datais now always marked as reading it. Before, the answer could follow the folder the app was built in: when the bundle listed a component's style module after the component, the region was marked as reading nothing and rendered without the page's data. - 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.
- Region stylesheets are now compiled with the app's own Svelte compiler options (as vite-plugin-svelte resolved them), so an app with a custom
cssHash(orrootDir) gets server region and router page CSS whose class names match the markup instead of rules that style nothing. - The
virtual_wrong_realmbuild error now names the files that imported the module, nearest first, back to the entry (throughsrc/lib/panel.ts←src/routes/+page.svelte), so the import that broke the build no longer takes a bisect to find.
Dependencies: @ogygia/core@0.14.1