@ogygia/content

AllMajorMinorPatch Hide pre-releases
0.14.0 minor

@ogygia/content

Minor Changes

  • #1677 2a4998f Thanks @PuruVJ! - The deprecated ContentEntry type is removed: use ContentRef (a ref, without a body) or Entry (what get() returns, with its body).
  • #528 9201d45 Thanks @PuruVJ! - - @ogygia/content: breaking: snippet_macros and its SnippetMacro type are no longer exported from @ogygia/content/markdown; only the removed Observatory used them, and nothing replaces them.
  • #1842 b6b930e Thanks @PuruVJ! - An entry's body (and a format's and a source's) is typed as the AwaitableRegion it is, so await entry.body type-checks without a cast.
  • #600 123cc08 Thanks @PuruVJ! - breaking: frontmatter tags: [svelte] is now a one-item list (['svelte']), as YAML reads a flow sequence; it used to be the string '[svelte]'. A value that should stay a bracketed string (title: [create your own]) needs quotes: title: '[create your own]'. A value that only starts with brackets ([docs](/docs)) stays text.
  • #601 a7700e8 Thanks @PuruVJ! - breaking: import.meta.og.md() with a component tag in its prose (<Foo />, <ui.Button />) is now the build error content_md_dynamic; it used to render the tag as an inert unknown element. Use a component for the live part, or put the tag in inline code or a fence to show it as text.
  • #1842 b6b930e Thanks @PuruVJ! - The remark and rehype markdown options are typed: each entry is a plugin, a [plugin, ...options] tuple, a unified preset ({ plugins, settings }) or a staged { enforce, plugin }, where they were any before.

Patch Changes

  • #533 49ff074 Thanks @PuruVJ! - - @ogygia/compiler: new package, ogygia's compiler and its Vite plugin: @ogygia/compiler (the compiler), @ogygia/compiler/vite (ogygia(), definePlugin) and @ogygia/compiler/ids. It uses core only through @ogygia/core/contract; core never depends on it. - @ogygia/core: breaking: the @ogygia/core/vite, @ogygia/core/internal/compiler and @ogygia/core/internal/compiler-ids import paths are gone. Import from ogygia/vite (or @ogygia/compiler/vite), @ogygia/compiler and @ogygia/compiler/ids instead; the names are the same. - @ogygia/core: the types of the ogygia:* virtual modules and the build's switches are named in core (@ogygia/core/contract), so core's own types no longer reach into the compiler. - ogygia: ogygia/vite, ogygia/internal/compiler and ogygia/internal/compiler-ids re-export @ogygia/compiler; apps change nothing. - @ogygia/barrels, @ogygia/cli, @ogygia/content, @ogygia/devtools, @ogygia/federation, @ogygia/flags, @ogygia/postrender, @ogygia/router: they take definePlugin and the compiler from @ogygia/compiler, a new peer dependency (ogygia brings it).
  • #1225 6e91a78 Thanks @PuruVJ! - Backlinks follow a collection replaced by a dev reload: the index is kept only while it was built from the same collections at their current versions. A replacement with the same size and version could serve the old collection's backlinks.
  • #655 23c0797 Thanks @PuruVJ! - BlogList and BlogPost show a post's date as the day it names; a server west of UTC no longer shows the day before.
  • #654 8ebdb75 Thanks @PuruVJ! - BlogList with group={false} lists the posts in the order given, as documented, instead of sorting them by date.
  • #1466 e451135 Thanks @PuruVJ! - content({ markdown }) now says content_config_read_first when the svelte config was loaded before it and so read no markdown settings, instead of leaving every markdown file uncompiled with no message.
  • #646 1fdb732 Thanks @PuruVJ! - Doc's keepReading prop now sets the "Keep reading" cards, as its docs say; before, the cards always showed the trail's suggested pages.
  • #651 f93094a Thanks @PuruVJ! - Frame no longer asks the site for its nav tree when its sidebar is replaced or removed.
  • #702 f5fecc9 Thanks @PuruVJ! - @ogygia/content: a frontmatter key named __proto__ is kept as a plain key of the parsed object, as JSON.parse does, and never changes the object's prototype.
  • #1891 950a623 Thanks @PuruVJ! - A kept search and sidebar follow a new base after a navigation: the search link and palette go to the new base's search page, and the sidebar saves its scroll under the new base.
  • #1379 ccf170e Thanks @PuruVJ! - A content page's module script is found as Svelte reads its tag: one with a > inside an attribute value is still the module (no second module script is added), and an instance script whose value only says module is not taken for it.
  • #1154 2779907 Thanks @PuruVJ! - The docs shell's mobile bar is kept across client navigations, and a link picked in its sheet closes the sheet (it stayed open over the new page).
  • #441 352a522 Thanks @PuruVJ! - A code fence's language, permalink id and file name are escaped into their HTML attributes: an info string can no longer put markup into the page.
  • #556 db8271e Thanks @PuruVJ! - parseFrontmatter reports a frontmatter block with an empty key or a tab indent as content_frontmatter_invalid printed once (one [ogygia], one link), with the parser's words as the reason, instead of nesting a second prefix and link inside it.
  • #622 a9bf48a Thanks @PuruVJ! - A frontmatter list item with a [ or { inside it (title: [see [a, b]]) is now the content_frontmatter_invalid error, as YAML reads it, instead of a list split in the wrong place (['see [a', 'b']).
  • #555 ef3bd78 Thanks @PuruVJ! - A live.list stream no longer sends a stale first list and then misses an edit that landed while that list was being read.
  • #1398 694ea84 Thanks @PuruVJ! - Text taken from markup keeps the words the browser shows: the site search index no longer drops prose between a < and a later > (a < b and c > d), indexes no script or style text, and keeps inline code words; the MCP profile tool quotes an HTML error page by its words, not its CSS or script.
  • #548 5900557 Thanks @PuruVJ! - An outline read before its collection has loaded is woven once, not again on the next read.
  • #528 9201d45 Thanks @PuruVJ! - - @ogygia/core, ogygia: breaking: the internal internal/compiler-browser and internal/compiler-browser-full import paths are gone. The compiler runs in Node only; use @ogygia/core/internal/compiler there. - @ogygia/cli: breaking: the ogygia mcp server no longer has the ogygia_observatory tool; the Observatory it linked to is gone. - @ogygia/content: its macros and markdown pipeline read the compiler through @ogygia/core/internal/compiler and Node's own fs, path and crypto.
  • #865 00720a1 Thanks @PuruVJ! - A search hit's excerpt marks the query's terms in one pass, so a term never lands inside another term's <mark> or an HTML entity and breaks the excerpt's markup.
  • #599 bd66220 Thanks @PuruVJ! - site(): a context function that throws is now reported as content_site_context_failed (with the thrown error) instead of being swallowed. The request still reads the public pages only, as before.
  • #441 352a522 Thanks @PuruVJ! - A tab label, tab group name or ::: container title holding { or } now stays text, instead of being compiled by Svelte as an expression.
  • #1149 9829521 Thanks @PuruVJ! - @ogygia/content: a ::: code-group fence whose info starts with the fence character (~~~ ~x [t]) no longer swallows the tab wrappers after it, and a line whose info holds a backtick is no fence inside ::: tabs / ::: code-group`, as in CommonMark.

Updated dependencies: @ogygia/[email protected], @ogygia/[email protected], @ogygia/[email protected]

0.13.0 minor

@ogygia/content

Minor Changes

  • #177 d9e8e2f Thanks @PuruVJ! - The headless on-device search handle is a class: new SearchClient({ base }) replaces search({ base }) (same options, same ready, query() and destroy()).

Patch Changes

  • #370 9272db9 Thanks @PuruVJ! - The code-block copy button no longer leaves a refused clipboard as an unhandled rejection, and a second copy within the tick keeps the tick for its full time (#365).
  • #318 085cb73 Thanks @PuruVJ! - Content's dev reload lets go of a change it was still waiting on when its dev server closes or restarts.
  • #257 c0b92c2 Thanks @PuruVJ! - An edit in dev no longer leaves another live connection open: a collection its module's next run replaces closes its connection, clears its retry and leaves the graph (#247).
  • #257 c0b92c2 Thanks @PuruVJ! - A live list or live get streaming a collection that a dev edit replaced now ends, instead of waiting forever for a change that cannot come (#247).
  • #220 8707255 Thanks @PuruVJ! - A dimension coordinate whose outline failed to build once builds it again on its next page (#192).
  • #220 8707255 Thanks @PuruVJ! - One bad live update no longer stops live updates: the entry keeps its last good version, and a dropped live connection is opened again (after a doubling wait) and the whole source read again (#190).
  • #220 8707255 Thanks @PuruVJ! - A change made while a collection's first read runs, or between a live list's first value and its next pull, is no longer missed (#191).
  • #371 0c1e449 Thanks @PuruVJ! - A dropped live connection is opened again under a named policy whose waits are spread (cut by up to a fifth), so every instance a source dropped at once no longer reconnects at the same moment.
  • #257 c0b92c2 Thanks @PuruVJ! - A markdown highlighter or mdsvex start that fails once (a grammar or plugin that failed to load) no longer breaks markdown until a restart: the next render starts it again (#248).
  • #220 8707255 Thanks @PuruVJ! - The site's outline (nav, pages, addresses) and its search index follow a live source's changes; a change the outline cannot be woven from keeps the last good outline and says why, and a failed search build is not kept (#193).
  • #220 8707255 Thanks @PuruVJ! - Every site search query is answered or rejected: a failed query, a failed index load, a worker crash or destroy() no longer leaves one waiting (#207).
  • #305 e605070 Thanks @PuruVJ! - The search worker downloads its index again for the next query after a failed download, instead of failing every query with the first error.
  • #318 085cb73 Thanks @PuruVJ! - The mobile bar's sheet lets go of its pinned height after a view switch with no glide (both views the same height), and on unmount.
  • #370 9272db9 Thanks @PuruVJ! - A Shiki theme object with no name now highlights (it is named from its contents), two such themes no longer share a highlighter or a fence-cache key, a theme object edited in place is a new fence-cache key, and snippets or alternating highlight() configs reuse one highlighter per set of themes and languages instead of making a new one each time (#366).
  • #318 085cb73 Thanks @PuruVJ! - The sidebar stops saving its panel's scroll position when it unmounts.
  • #257 c0b92c2 Thanks @PuruVJ! - A folder sidecar (+meta.json, index.md) that fails to load once no longer breaks the collection and its groups until a restart: the next read loads it again (#246).
  • #220 8707255 Thanks @PuruVJ! - A collection whose first load fails (the source down, its init or a schema check failing) no longer keeps the failure: the next read loads it again (#189).
  • #328 cc047cc Thanks @PuruVJ! - Two git loaders on one repo with another branch or folder each get their own checkout, instead of the second one finding the first one's files (or none) (#288).
  • #328 cc047cc Thanks @PuruVJ! - A markdown file moved to another folder with the same content is compiled again, instead of the markup cache handing it the old path's CSS key (#292).
  • #175 a99a49a Thanks @PuruVJ! - Every ogygia error and warning has a code and a page at ogygiajs.dev/e/<code>: dev prints the wording and the link, a production build prints the link alone ([ogygia] https://ogygiajs.dev/e/<code>?<args>), so the wording stays out of the client and server bundles.
  • #327 79aa5b3 Thanks @PuruVJ! - A live edit that lands while the outline is still reading a collection (its entries waiting on a relation) is woven in by the next read, instead of the outline from before it staying until the next edit (#326).
  • #398 0d76899 Thanks @PuruVJ! - Removed inline-marker text (---removed---) in a code fence now renders as escaped text, never as live HTML.
  • #305 e605070 Thanks @PuruVJ! - The search palette's download is asked for again after it fails, and a click while it cannot load follows the trigger's /search link (#272).
  • #305 e605070 Thanks @PuruVJ! - Ctrl/Cmd+K pressed again while the search palette loads takes the open back, so it stays closed (#279).
  • #321 17e009a Thanks @PuruVJ! - The search palette shows a failed query's error (and prints content_search_query_failed) instead of keeping the previous term's results up and leaving the rejection unhandled (#273).
  • #184 1767110 Thanks @PuruVJ! - Packages declare sideEffects (only their .css files run on import), so bundlers drop the modules an app never uses.

Updated dependencies: @ogygia/[email protected], @ogygia/[email protected]

0.12.0 minor

@ogygia/content

Updated dependencies: @ogygia/[email protected]

0.11.0 minor

@ogygia/content

Updated dependencies: @ogygia/[email protected]

0.0.0 minor

@ogygia/content