@ogygia/content
0.14.0 minor
@ogygia/content
Minor Changes
- #1677
2a4998fThanks @PuruVJ! - The deprecatedContentEntrytype is removed: useContentRef(a ref, without a body) orEntry(whatget()returns, with its body). - #528
9201d45Thanks @PuruVJ! - -@ogygia/content: breaking:snippet_macrosand itsSnippetMacrotype are no longer exported from@ogygia/content/markdown; only the removed Observatory used them, and nothing replaces them. - #1842
b6b930eThanks @PuruVJ! - An entry'sbody(and a format's and a source's) is typed as theAwaitableRegionit is, soawait entry.bodytype-checks without a cast. - #600
123cc08Thanks @PuruVJ! - breaking: frontmattertags: [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
a7700e8Thanks @PuruVJ! - breaking:import.meta.og.md()with a component tag in its prose (<Foo />,<ui.Button />) is now the build errorcontent_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
b6b930eThanks @PuruVJ! - Theremarkandrehypemarkdown options are typed: each entry is a plugin, a[plugin, ...options]tuple, a unified preset ({ plugins, settings }) or a staged{ enforce, plugin }, where they wereanybefore.
Patch Changes
- #533
49ff074Thanks @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/compilerand@ogygia/core/internal/compiler-idsimport paths are gone. Import fromogygia/vite(or@ogygia/compiler/vite),@ogygia/compilerand@ogygia/compiler/idsinstead; the names are the same. -@ogygia/core: the types of theogygia:*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/compilerandogygia/internal/compiler-idsre-export@ogygia/compiler; apps change nothing. -@ogygia/barrels,@ogygia/cli,@ogygia/content,@ogygia/devtools,@ogygia/federation,@ogygia/flags,@ogygia/postrender,@ogygia/router: they takedefinePluginand the compiler from@ogygia/compiler, a new peer dependency (ogygiabrings it). - #1225
6e91a78Thanks @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
23c0797Thanks @PuruVJ! -BlogListandBlogPostshow a post's date as the day it names; a server west of UTC no longer shows the day before. - #654
8ebdb75Thanks @PuruVJ! -BlogListwithgroup={false}lists the posts in the order given, as documented, instead of sorting them by date. - #1466
e451135Thanks @PuruVJ! -content({ markdown })now sayscontent_config_read_firstwhen the svelte config was loaded before it and so read no markdown settings, instead of leaving every markdown file uncompiled with no message. - #646
1fdb732Thanks @PuruVJ! -Doc'skeepReadingprop now sets the "Keep reading" cards, as its docs say; before, the cards always showed the trail's suggested pages. - #651
f93094aThanks @PuruVJ! -Frameno longer asks the site for its nav tree when itssidebaris replaced or removed. - #702
f5fecc9Thanks @PuruVJ! -@ogygia/content: a frontmatter key named__proto__is kept as a plain key of the parsed object, asJSON.parsedoes, and never changes the object's prototype. - #1891
950a623Thanks @PuruVJ! - A kept search and sidebar follow a newbaseafter 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
ccf170eThanks @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 saysmoduleis not taken for it. - #1154
2779907Thanks @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
352a522Thanks @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
db8271eThanks @PuruVJ! -parseFrontmatterreports a frontmatter block with an empty key or a tab indent ascontent_frontmatter_invalidprinted once (one[ogygia], one link), with the parser's words as the reason, instead of nesting a second prefix and link inside it. - #622
a9bf48aThanks @PuruVJ! - A frontmatter list item with a[or{inside it (title: [see [a, b]]) is now thecontent_frontmatter_invaliderror, as YAML reads it, instead of a list split in the wrong place (['see [a', 'b']). - #555
ef3bd78Thanks @PuruVJ! - Alive.liststream no longer sends a stale first list and then misses an edit that landed while that list was being read. - #1398
694ea84Thanks @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
5900557Thanks @PuruVJ! - An outline read before its collection has loaded is woven once, not again on the next read. - #528
9201d45Thanks @PuruVJ! - -@ogygia/core,ogygia: breaking: the internalinternal/compiler-browserandinternal/compiler-browser-fullimport paths are gone. The compiler runs in Node only; use@ogygia/core/internal/compilerthere. -@ogygia/cli: breaking: theogygia mcpserver no longer has theogygia_observatorytool; the Observatory it linked to is gone. -@ogygia/content: its macros and markdown pipeline read the compiler through@ogygia/core/internal/compilerand Node's ownfs,pathandcrypto. - #865
00720a1Thanks @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
bd66220Thanks @PuruVJ! -site(): acontextfunction that throws is now reported ascontent_site_context_failed(with the thrown error) instead of being swallowed. The request still reads the public pages only, as before. - #441
352a522Thanks @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
9829521Thanks @PuruVJ! -@ogygia/content: a::: code-groupfence whose info starts with the fence character (~~~ ~x [t]) no longer swallows the tab wrappers after it, and aline 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
d9e8e2fThanks @PuruVJ! - The headless on-device search handle is a class:new SearchClient({ base })replacessearch({ base })(same options, sameready,query()anddestroy()).
Patch Changes
- #370
9272db9Thanks @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
085cb73Thanks @PuruVJ! - Content's dev reload lets go of a change it was still waiting on when its dev server closes or restarts. - #257
c0b92c2Thanks @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
c0b92c2Thanks @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
8707255Thanks @PuruVJ! - A dimension coordinate whose outline failed to build once builds it again on its next page (#192). - #220
8707255Thanks @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
8707255Thanks @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
0c1e449Thanks @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
c0b92c2Thanks @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
8707255Thanks @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
8707255Thanks @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
e605070Thanks @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
085cb73Thanks @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
9272db9Thanks @PuruVJ! - A Shiki theme object with nonamenow 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 alternatinghighlight()configs reuse one highlighter per set of themes and languages instead of making a new one each time (#366). - #318
085cb73Thanks @PuruVJ! - The sidebar stops saving its panel's scroll position when it unmounts. - #257
c0b92c2Thanks @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
8707255Thanks @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
cc047ccThanks @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
cc047ccThanks @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
a99a49aThanks @PuruVJ! - Every ogygia error and warning has a code and a page atogygiajs.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
79aa5b3Thanks @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
0d76899Thanks @PuruVJ! - Removed inline-marker text (---removed---) in a code fence now renders as escaped text, never as live HTML. - #305
e605070Thanks @PuruVJ! - The search palette's download is asked for again after it fails, and a click while it cannot load follows the trigger's/searchlink (#272). - #305
e605070Thanks @PuruVJ! - Ctrl/Cmd+K pressed again while the search palette loads takes the open back, so it stays closed (#279). - #321
17e009aThanks @PuruVJ! - The search palette shows a failed query's error (and printscontent_search_query_failed) instead of keeping the previous term's results up and leaving the rejection unhandled (#273). - #184
1767110Thanks @PuruVJ! - Packages declaresideEffects(only their.cssfiles 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]