Releases: fulldotdev/sitex
Release list
@fulldotdev/sitex@0.4.0
Minor Changes
-
#7
ecb3779Thanks @silveltman! - Rebuild Sitex around MDX-only pages and a framework-owned document head.Breaking changes:
- Pages are MDX files only. TSX files in
src/pagesfail the build with a migration error; move page markup into layouts and blocks. Dynamic[param]routes and thepathsexport are removed. - The
siteconfig is required:sitex({ site: { name, url } }). Optional fields:description,titleTemplate,locale,image,favicon,twitter,organization. - Frontmatter follows a validated schema:
layout,title, anddescriptionare required.type(webpage|article|faq) drives JSON-LD structured data;image,canonical, andindexare optional overrides. Articles requirepublishedAt; FAQ pages requirequestions. - Apps do not provide
index.html. Layouts render the full document (<html>/<head>/<body>) and Sitex parses the rendered page to add missing head defaults (charset, viewport, canonical, og:url, robots, favicon, generator) and hoist JSON-LD into the head. src/styles/global.cssis required and automatically imported as the global stylesheet entry. Tailwind is not bundled by Sitex; apps that use Tailwind installtailwindcssand@tailwindcss/vitethemselves.MarkdownLayoutPropsis renamed toLayoutPropsand now includes the page schema fields.PageContext,StaticPath, andStaticPathsare removed.sitex:pageshas a stable, statically declaredPagetype; generated.sitex/pages.d.tsfiles are no longer written (legacy ones are cleaned up automatically).- The
src/pages/examples/**exemption is removed; everything undersrc/pagesis a page. - The main entry no longer exports UI components (
Layout,Section,Typography,Price, and friends). They moved to the Sitex shadcn registry; install them withshadcn addfromhttps://sitex.full.dev/r/{name}.json.@fulldotdev/sitexnow exports types only, plus the/pluginand/islandentries. - Globals moved to
src/globals/index.yamlas the root locale file. The root locale name comes from the newsite.localeoption (default"en"); additional files likenl.yamldefine locale variants served under/nlroute prefixes and are exposed through thelocalesexport ofsitex:globals. A single named file likeen.yamlstill works as the root locale. - Static HTML is rendered in-process during
vp buildthrough a dedicated SSR build environment; Sitex no longer boots a second Vite server after the client build.
New:
- Link prefetching is on by default: speculation rules let supporting browsers prerender on hover, with a small hover-prefetch fallback module for others. Opt out with
prefetch: falseordata-no-prefetch. vp buildwritessitemap.xml(respectsindex: falseandcanonicaloverrides,lastmodfromupdatedAt/publishedAt) and a defaultrobots.txtwhen the app ships none.- Path-alias imports (like
@/components/alert) now resolve inside MDX pages on newer Vite resolvers. - Frontmatter validation errors are targeted per field, and MDX pages are typechecked against their layout props via
.sitex/typecheck.
- Pages are MDX files only. TSX files in
@fulldotdev/sitex@0.3.0
Minor Changes
-
Add MDX pages with layout-based rendering, page data from MDX frontmatter, and configurable MDX components.
Add server-rendered TSX pages through
export const render = "server", while keeping static routes as the default build output.Improve island rendering with
client:load,client:only,client:visible,client:idle, andclient:media.Refresh the documentation for the 0.3 page model, deployment behavior, component rendering, and project structure.
v0.2.1
Patch Changes
8a6ef88Thanks @silveltman! - Add fallbacksitex:contenttypes so projects can typecheck before generated content types exist.
v0.2.0
Minor Changes
-
00eab4dThanks @silveltman! - Add a typed route content API throughsitex:content, including generated content types,getPages, andgetPage.Update SiteX for Vite 8, switch package bundling to Rolldown, externalize peer dependency subpaths correctly, and build CSS entry points through Vite's Rolldown input configuration.
Refresh the documentation site with a Content API page, content-driven docs navigation, hydrated code-block copy buttons, and updated installation guidance.
v0.1.3
Patch Changes
-
Discover route CSS through Vite's module graph instead of scanning source files with a regex, and inject the discovered production CSS into generated static HTML.
-
Simplify the docs layout shell and theme handling.
v0.1.2
Patch Changes
- #4
a243305Thanks @silveltman! - Remove pnpm build-script approval flags from the primary install command and document that build-script approvals belong in project package manager configuration.
v0.1.1
Patch Changes
- #1
729204eThanks @silveltman! - Publish compiled package entrypoints for the Vite plugin and island runtime so consumers no longer load TypeScript files from node_modules.
v0.1.0
Initial public release of @fulldotdev/sitex.