Changelog

@ogygia/compiler

Every release of @ogygia/compiler, newest first.

Latest
0.17.1
Versions
9
  1. 0.17.1 patch

    Dependency updates only @ogygia/compiler

  2. 0.16.5 patch

    Dependency updates only @ogygia/compiler

  3. 0.16.4 patch

    Dependency updates only @ogygia/compiler

  4. 0.16.3 patch

    Dependency updates only @ogygia/compiler

  5. 0.16.2 patch

    Dependency updates only @ogygia/compiler

  6. 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 nameless export {} from, and import() of a literal string in .svelte, .js, .ts, .jsx and .tsx files and their .mjs, .cjs, .mts and .cts forms; imports in comments and whole import type/export type statements left out, while an import whose names are each type is followed, since verbatimModuleSyntax keeps it); a build made with OGYGIA_RULES=1 stops with island_graph_late on 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: there page, navigating and $app/navigation are Kit's own, while updated reads false and updated.check() resolves false.
    • On SvelteKit 3, a region on a csr = false page that imports $app/env/public now hydrates and reads its dynamic public variables (static: false), in a build and in vite dev, in vite dev also 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 (a defer hole, a remote call's region) or one a prefetch loads ahead of its page (a hover preload, on by default in Kit's app.html, or the router's) reads an empty env and warns kit_env_missing instead of throwing; carrying the env there is #2219. A federated peer's region on the host's page reads an empty env and warns kit_env_missing, never the host app's values, unless the peer has the host's package name, paths.base and app dir and either pins the same version.name or 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 whose version.name ogygia cannot read (no sveltekit() plugin in its Vite config) warns kit_env_version_unread.

    Dependencies: @ogygia/core@0.16.1, @ogygia/machine@0.16.1

  7. 0.15.1 patch

    Dependency updates only @ogygia/compiler

  8. 0.14.2 patch

    Patch Changes

    • fix(compiler): a content page's own styles compile with the app's Svelte options, so a custom cssHash scopes them like its markup
  9. 0.14.1 patch

    Patch Changes

    • In dev, a route option file (such as a +page.ts with csr) 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.data is 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 (or rootDir) gets server region and router page CSS whose class names match the markup instead of rules that style nothing.
    • The virtual_wrong_realm build error now names the files that imported the module, nearest first, back to the entry ( through src/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