Changelog
All notable changes to this project are documented here. The crates and the npm package are released together and share version numbers. The format follows Keep a Changelog 1.1.0, and the guide holds each change's detail. The notes of 0.1.0 to 0.11.0 as first written, with more detail, are in CHANGELOG.md at v0.11.0. From 0.16.0, each version opens with a line saying whether it changes the HTML pages render, and for which constructs, so a project knows whether to record its fixtures again.
Unreleased
Added
- A
<!-- ferrovue-ignore FV0427 -->comment between two elements marks the line break between them as a meant space, which FV0427 then does not warn of; aferrovue-ignorecomment that silences nothing warns (FV0430). Whitespace.
Changed
- The compiler refuses a component, store, locale file, routes file or pages folder that leads out of the project's root through a symbolic link or a
../path (FV1125), as its text would ship in the binary. The newsharedDirectorieskey lists the directories outside the root, such as a monorepo's shared locale files, that may still be read. Files outside the project.
Fixed
- Generated Rust compiles for expressions 0.16 wrote code rustc rejected: under
?:,.at()of an array literal that builds a string and??falling back to a function with a loop; a fallthrough attribute's template literal holding a call that may be refused, such as.repeat(); and an attribute bound toString()of a.split(). - A
useHeadobject holding its ownconstructorkey, such as theinnerHTMLof a JSON-LD script, keeps its__proto__,constructorandprototypekeys and those of the objects inside it, as unhead leaves such an object whole; 0.16 dropped them. Head.
0.16.0 - 2026-11-08
Rendered output: unchanged, except where a project sets the new preserveWhitespace classes, in an island's wrapper, whose data-props is in single quotes, and for a bound or fallthrough disablepictureinpicture or disableremoteplayback.
Added
- With
"whitespace": "trim-edges", the compiler warns where the page may still show what a formatter did not mean: a gap beside a class of the newinlineBlockClasses(FV0427) and an unlisted Tailwindwhitespace-pre*class (FV0428). Whitespace. "preserveWhitespace": { "classes": [...] }names the classes a stylesheet gives a preservingwhite-space, which"trim-edges"leaves as Vue spaces them, andtrimEdges({ classes })does the same for the client. Whitespace.- The Vite plugin adds
trimEdgesto plugin-vue itself whenferrovue.config.jsonsets"whitespace": "trim-edges", sovite.config.tsand a Vitest config with the plugin need nonodeTransforms. Whitespace. ferrovue diff --against <ref>renders the conformance fixtures in the working tree and at a git ref, and prints the fixtures whose visible text changed, exiting 1 when one did. Seeing what a change renders.ferrovue::page::Chunksreads each chunk'scssfrom Vite's manifest, andStylesheetswrites the<link rel="stylesheet">s of an entry, its lazily loaded islands included, and of the islands a page renders;Chunks::script_for_entrygives the entry's script. Linking the stylesheets."strict"and"sensitive"underroutermatch paths ascreateRouter's options do, throughRouter::with_strictandRouter::with_sensitiveon the server andlinkRouteson the client. Matching paths exactly.
Changed
Document::with_entryandwith_islandslink the stylesheets the entry and the islands need, before theirmodulepreloads. Upgrading to 0.16.- The npm package compiles with
@vue/compiler-sfc3.5.45 and thevuepeer range moves to~3.5.45, so a bound or fallthroughdisablepictureinpictureordisableremoteplaybackis written as a boolean attribute. Upgrading to 0.16. - An island's
data-propsis written in single quotes, escaping only&and', so the props take 7 to 28% fewer bytes;mountIslandsreads it unchanged. Islands. - A struct, or a list of structs, passed to a child is handed over with its strings borrowed from the parent's props through a hidden
borrowed(), copying no text; so is aRecord, alone or in a struct, and a struct holding aTrustedHtml, adateTypeor an application's enum clones only that field. A component's module. - A list of strings a render holds, such as a
computedthat filters or splits the props, keeps the strings it takes from the props, literals and setup bindings borrowed, also through an arrow function's object parameter,?.,??and aconstin thecomputed, copying no text; so does the string.find()or.at()picks. The locals of a render. - A render writes the text next to a
v-ifor?:inside each branch, and branches that only write text as one write of the text their test picks; the bench renders run up to 5% fewer instructions. How a render writes text. - Text the compiler proves needs no escaping is written without
escape_into: a?:or a constant lookup whose values are plain string literals,String(n)with no string built, and the digits of.toFixed()and its kin. Everything a template interpolates is escaped. - A generated module has no blank line before a closing brace and no two blank lines in a row, writes a struct or struct literal with no fields as
{}, and puts the reserve's terms and the items of a long list one a line, so a template edit changes the lines it touches. A component's module. escape_intoescapes in one pass, copying the runs between the characters it replaces eight bytes at a time; the bench renders run up to 9% fewer instructions. Everything a template interpolates is escaped.- Generated code is version 9, which writes a list's
.join()into the page item by item, and a<RouterLink>in place, with helpers the 0.15 crate lacks, so renders that join run up to 25% fewer instructions; the 0.16 crate builds versions 6 to 8 too. Upgrading to 0.16. - Generated code writes
std::borrow::CowasCow, and a field's#[serde(rename)]only where its JSON key differs from its name, which makes the generated Rust about 3% smaller. A component's module. Head::renderborrows the tags, props and keys it builds from the pushed values, copying none of them, so the bench head renders in 59% fewer instructions. The page head.- A
<RouterLink>with a stringto, or atoof{ name, params, query, hash }or{ path, query, hash }, is resolved and written straight into the page, allocating nothing beyond a query it builds; thesmallbench render runs 55% fewer instructions. How links are written. Js<f64>'sDisplaylays out the digits on the stack, soJs(x).to_string()allocates once and the conformance components that write numbers into text allocate up to 26% less often. Numbers.- A render writes a template literal or string
+it only escapes, aJSON.stringifyof a list, and a template literal passed as a fallthrough attribute, into the page as they are formatted, with no string built for them, and tests an attribute's.join()for being empty from its items; the conformance components that format text allocate 6 to 40% less often. How a render writes text. Head::renderkeeps each class of aclassand each property of astyleonce in time linear in their number, merges ofhtmlAttrsandbodyAttrsincluded; aclassof 16,000 names takes 3 ms, down from 305 ms. What a component may pass.- A
:stylestring merged with other styles has its comments stripped in one pass, copying nothing at each/*; 48 KB of unclosed/*takes 0.09 ms, down from 543 ms. CSS. s[i],.at(),.charAt(),.charCodeAt()and.codePointAt()of a prop read on from where the same place in the template last read, so av-forover every index of a 16,000-character prop takes 0.2 ms, down from 411 ms. Reading every index.HtmlStreampolls a hole's future again only once that future wakes, so a page of 1,000 holes ready one after another streams in 0.19 ms of polling, down from 23 ms. Streaming.
Fixed
t()with a fractionalcountornbetween -2 and 2 on a message of three cases refuses the render with FV1414, as vue-i18n throws there; 0.15 wrote nothing, or panicked in a debug build. Translating with vue-i18n.
Security
linkRoutesandlinkRouterrefuse to handnavigatea link to another host, such as a relative link on a page whose path starts with//. A page from the fallback.hydrateStateandmountPageread the state and the page record only from a<script>with theirid, so an element of user HTML given thatidcannot stand in for them. The state script and the page record.Router::atparses a query string in time linear in its length; a query of thousands of distinct keys took time quadratic in their number, about 300 ms for a 75 KB URL. A router per application, a route per request.ferrovue.config.jsonis refused when a helper'srustis not a path (FV1121),dateTypeortrustedHtmlis not a Rust type (FV1122), or a string holds a control character (FV1123), each of which reached the generated Rust as code. Error codes.ferrovueleaves a file inoutthat does not open with// @generated by ferrovuealone, and fails with FV1124, where it wrote over it. Error codes.ferrovue::html::IslandKeywrites a per-page key on every island rendered in its scope and in a script, andmountIslandsthen mounts only the islands carrying it, so an island copied into user HTML mounts nothing. Islands only the server wrote.
0.15.2 - 2026-11-07
Fixed
"whitespace": "trim-edges"andtrimEdgeskeep Vue's one space at a line-break edge of an inline element such as<span>, and space inline elements at a template's root and across a comment; 0.15.1 trimmed those edges and left those line breaks without a space. See thegenerated_codeguide.
0.15.1 - 2026-11-07
Fixed
"whitespace": "trim-edges"andtrimEdgestrim edge whitespace only when it holds a line break, and render a line break between two inline elements or components as a space, as a formatter reads both; 0.15.0 rendered<span> by </span>as<span>by</span>, and<span>by</span>and<a>on two lines without a space. Whitespace.
0.15.0 - 2026-11-06
Added
"whitespace": "trim-edges"trims the whitespace where a template's text meets its element's tags, andtrimEdgesfrom the newferrovue/whitespacecompiles the client the same way; the Vite plugin fails a build where the two differ. Whitespace.
Fixed
<component :is>of adefineModeltyped as one string literal, asdefineModel<"b">(), renders that element; 0.14.1 refused it with FV0418.<component :is>.- A
"key" in objecttest in a component with a root<textarea>or<input v-model>is refused with FV0631, as elsewhere; 0.14.1 rendered its alternate, or refused it with FV0424 when a parent passed that key. FV0631. - A quantifier bound above 2147483647 in a regular expression (
/a{2,99999999999999999999999}/) counts as 2147483647, as V8 counts it; 0.14.1 matched the quantifier as literal text. Regular expressions. - A
playsinlineattribute given throughv-bindor fallthrough is written as a boolean attribute, as Vue 3.5.44 writes it; 0.14.1 wroteplaysinline="true". Attribute values.
Security
- The
actix-webfeature requires actix-web 4.18.2, which fixes request smuggling and unbounded decompression in actix-http and actix-web. actix-web.
0.14.1 - 2026-10-31
Changed
- A class name joined with
+in:class, and a join in a branch of?:, are written part by part, with noStringbuilt for them. Escaping.
Fixed
- A constant,
enumor function a.tsfile exports by name (export { A, B as C }), asexport default A, or from another file (export { A } from,export * from) is read as one exported on its declaration; 0.14.0 refused it with FV0601. Constants. linkRoutessets$routerto the routeruseRouter()gives, as vue-router'sinstalldoes; 0.14.0 left$routerunset. Links when the application navigates on its own.
0.14.0 - 2026-10-31
Added
The guide's
upgrading_to_0_13page: bump both halves, generate again for version 7, andscript.fson TypeScript 7.upgrading_to_0_13.linkRoutesfromferrovue/link-routes:<RouterLink>anduseRoute()for an application that navigates on its own, with no router. It resolves links as vue-router does, in less than half the bytes oflinkRouter: Links when the application navigates on its own.An
<option>with novalueunder a<select>withv-modelof a string, and av-modelthat may be absent on a<select>or a radio button. Each is compared as Vue's server compares it:v-modelon form controls.commentsinferrovue.config.json, and{ comments }forattachSsrRender, keep a template's HTML comments as plugin-vue'scompilerOptions.commentsdoes. The Vite plugin follows plugin-vue's choice: HTML comments.
Changed
v-modelon an<input>whosetypeis bound is refused with FV0426, located at the:type; 0.13.0 refused it with FV0006, located at no element. FV0426.- A value joined with
+or a template literal in an attribute or text is written part by part, with noStringbuilt for it. Escaping. - Generated renderers leave out tests that cannot fail, and compare and add indices and lengths as integers; what they write is the same. The locals of a render.
- A
refseeded with a number or a boolean is that value in generated code, and a test of it leaves only the branch the server renders. The locals of a render. - Generated code is version 8, which writes each
<RouterLink>with one call the 0.13 crate lacks; the 0.14 crate builds versions 6 and 7 too. Generate every component again:upgrading_to_0_14.
Deprecated
linkRouterfromferrovue/link-router, which builds a whole vue-router; it still works, and is removed in a later minor release. UselinkRoutes:upgrading_to_0_14.
Fixed
- A template's HTML comments render as
commentsorisProductioninferrovue.config.jsonsay, left out by default as Vue's production build leaves them out. 0.13.0 kept or left them out byNODE_ENV: HTML comments. - A child's
booleanprop written bare (<Button disabled />), as""or as its kebab-case name istrue, as Vue casts it; 0.13.0 refused it with FV0511. Boolean props given as attributes. - A field read by a key of a union that a
?:narrows to some of its members compiles; 0.13.0 stopped with aTypeError. Types. $slotsread in<script setup>, where Vue defines no such name, is refused with FV0601; 0.13.0 read it as the template's$slots. FV0601.- A member of a
refother than.valueread in<script setup>, which Vue reads from the ref object, is refused with FV0638. 0.13.0 read it from the ref's value, sor.lengthrendered a length where Vue renders nothing: FV0638. - An empty
TrustedHtmlorInlineHtmlprop is falsy inv-if,v-show,!and?:, as in Vue; 0.13.0 took an empty one as true.v-htmlandTrustedHtml. - The location
//matches the route/, as vue-router matches it; 0.13.0 matched it to a catch-all or to no route.routing. - A
<RouterLink>'s class keeps the spaces in its active class names, puts index names first and writes an own class equal to them once, as vue-router does. 0.13.0 trimmed each name, soactive-class=" on "renderedon herewhere Vue renderson here:routing. - An initial value in
<script setup>that changes state when setup runs, asconst x = (n.value = 5)orconst stop = watchEffect(…), is refused with FV0102 to FV0105. 0.13.0 compiled it and rendered the state unchanged, so{{ n }}rendered 0 where Vue renders 5: FV0105.
0.13.0 - 2026-10-29
Added
defineProps<P>()readsPimported from a.tsfile by a relative path, an interface that extends one, or an intersection of them.ferrovue/vitegives@vitejs/plugin-vuethe file system to read them: Props from a.tsfile.- Lookup tables read by a constant number of the component and by keys built from a union by
.toUpperCase(),.toLowerCase()or a template literal. 0.12.0 refused them with FV0222: Lookup tables. <component :is>of adefineModeltyped as a union, read by its local or by its prop, and of a prop of a type imported from a.tsfile. 0.12.0 refused them with FV0418:generated_code.- A
<textarea>, and an<input v-model>of a literaltype, at a component's root where no parent passes itvalueortype. 0.12.0 refused them with FV0424: Fallthrough attributes. - Prop types written in place: object types, mapped types and
Records over a union of names, and indexed types (Card["size"]). 0.12.0 refused them with FV0310, FV0313 and FV0316: Types. - Tuple prop types (
[label: string, n: number]), as tuple structs serde writes as arrays, read by index,.lengthand array patterns. 0.12.0 refused them with FV0316: Tuples. - Loaders awaited together by
Promise.all, and loader parameters typed as an interface, written into the key with sorted keys. Generated code is version 7, which the 0.12 crate refuses; the 0.13 crate builds version 6 too:loaders. ferrovue::page::Documentwrites the page shell around a render, andferrovue::html::splicewrites components into trustedv-html. The guide adds a relative-time recipe: The page shell.- Regular expression literals of a subset in
.replace(),.replaceAll(),.split()and.test(), matched as JavaScript matches them, run byferrovue::strings::JsRegex. Groups, alternation and other flags stay refused with FV0710: Regular expressions. ||after an optional string, number, boolean or union read by its name or a field gives the right side where it is absent or falsy. 0.12.0 refused it with FV0617: Optional props and defaults.
Fixed
- FV0228 checks a table typed through a
typealias of aRecordof a union (const T: Table = { … }). 0.12.0 refused a value outside the union only where a child's prop read it: Lookup tables. - FV0419 points at a static
isattribute that names no HTML element, and FV0506 at an element that renders a component byis="vue:…". 0.12.0 gave both no line:error_codes. - Folded
?:tests andx + ""of a union compare as strings, and integer literals sit besideFloats. 0.12.0 refused them with FV0637, FV0611 and FV0511: FV0611. - Every value that reaches a child's union prop as an enum does so through a
matchover its variants. 0.12.0's code matched some by their string with a_arm: Unions of string literals. - A
refof a union whose starting value folds to a constant (ref<Tone | "">(K === "x" ? "loud" : "")) reaches a child's union prop as the variant of its member, and""asEmpty. 0.12.0 refused the member with FV0515, or FV0635 in an object literal: Unions of string literals. out.reservecounts an optional struct, a list or aRecordwhose text all has a known length without binding it. 0.12.0's generated code failedunused_variablesunder-D warningsthere:generated_code.
0.12.0 - 2026-10-25
Added
unionsinferrovue.config.jsonmaps a union'stypealias to an application's own Rust enum. The enum implements the new traitferrovue::props::Union: Unions mapped to existing enums.
Changed
- Breaking: every item is named at the module that defines it (
ferrovue::html::Html), and generated code is version 6. Paths, npm entries and steps:upgrading_to_0_12. - Breaking: a list of a union of string literals (
tones: Tone[]) is aVecof its enum. 0.11.0 held strings, and passed one outside the union to a child as its last member:upgrading_to_0_12.
Fixed
- A lookup table, a
?:, a??and arefof a union give its enum through amatchover every variant, where 0.11.0's last arm took any other string: Lookup tables. - A
computed, aref, a constant or a function holds the type of its annotation. 0.11.0 refusedref<Tone | "">(props.tone) === ""with FV0637: Unions of string literals. - A value of a wider union reaches a child's prop of a narrower union once narrowed as TypeScript narrows it, which 0.11.0 refused with FV0515: Unions of string literals.
- The README and the guide name the release they ship with in
$schemaand theferrovuedependency, where the schema was 0.8.0's: Quick start. - FV0623's detail says a
?:whose branches differ in type compiles where it is only written out: FV0623. - An
enummember set to a constant of its component or to an earlier member is evaluated as TypeScript does. 0.11.0 refused it with FV0315, and read a member named like a constant as that constant: Constants. - The template reads a prop destructured under a new name, and
route["path"]reads the route. 0.11.0 refused them with FV0601, FV0418 and FV0612: Optional props and defaults. - FV0512 names the imported type at its import, FV0614 names the type of the side that is not a boolean, and FV0506 points at a
<component :is>'s element:error_codes. - A string chosen by
||and handed to a child's union prop is bound to a local before itsmatch. 0.11.0's generated code failedclippy::blocks_in_conditionsthere: Unions of string literals.
0.11.0 - 2026-10-25
Added
- Loops and
lets assigned again in a function's or acomputed's body:for…of, countingforloops,break,continueand+=,++and the others: Loops and assignments. - Constants worked out when compiling (
const HOUR = 60 * MINUTE, template literals), constantMaps,Object.hasOwn()andObject.keys()of an object constant: Constants. - A function's or a
computed's body may declare arrow functions of its own: Functions. - A string known to hold ASCII alone may be cut into characters and joined again, and
s[i]reads a string's code unit: Halves of surrogate pairs. - Object literals where their type is known, each built as its interface's Rust struct, with FV0634, FV0635 and FV0636 for the rest: Object literals.
- A union of string literals or a string
enumis a Rust enum the compiler generates, parsed withFromStrinto it or aferrovue::ParseUnionError: Unions of string literals. Dates inside lists, dictionaries and interfaces of the props and of a loader's result, revived in the browser from adata-datesplan: Dates inside lists and objects.- Every component has a
try_renderthat returns aRefusedfor props it cannot write as Vue does, so a server can answer400: Refused at render time. - An element with no content given a custom directive listed in
clientDirectivescompiles, and FV0425 refuses one whose merged attributes may hold its content: FV0425. - The guide page
upgrading_to_0_11. - A documentation site at https://kinsmir.github.io/ferrovue/ with the guide and the changelog, linked from the README.
Changed
- Breaking: generated code is version 5, which the 0.10 crate refuses; the 0.11 crate builds versions 2 to 5: The version check.
- Breaking: the generated
Propsand shared structs hold an enum for each union of string literals, where they held aCow<'a, str>:upgrading_to_0_11. - Breaking: a comparison or a child's prop outside a union is refused as TypeScript refuses it (FV0637, FV0515), and so is a union with no enum to be (FV0323 to FV0325):
upgrading_to_0_11. - Breaking: the npm package needs Node 22.23.4 or newer on 22, 24.22.1 on 24, or 26.12.1, where it needed 22.18: Node.js.
renderand itsHtmlandPagemethods panic with the refusal's message (error[FV1803]: …) where they panicked with one of their own: Refused at render time.- FV1806 refuses a
Dateonly in Pinia state,provide,inject, a typedrefand adefineModel, andreviveDatestakes an island'sdata-dates: Dates inside lists and objects. - A refusal inside a
computed, a setup expression or a function carries its own code and place, where it was FV0613 or FV0601, and loops have FV1909 to FV1912:upgrading_to_0_11. - An object literal in the template is refused with FV0634 where it was FV0625: FV0634.
- The messages of FV0316, FV0513, FV0614, FV0814, FV1901 and FV1902 say what to write: Error codes.
- Generated code names its locals after the JavaScript names they hold (
fv_sum), so an edit to one component keeps the names in the others: The locals of a render. - The npm package depends on postcss 8.5.31 and @intlify/message-compiler 11.4.16.
Fixed
Math.max()andMath.min()of integers keep a-0, so1 / Math.max(n * 0, -1)is-Infinity: How numbers are computed.- Integer arithmetic beyond ±2⁶³ is written as JavaScript writes it, and refused at render time with FV0724 where the template needs an integer: How numbers are written.
- A child's prop named like a listener (
on1,onSale) is left out when falsy where Vue joins props withmergeProps, with FV0516 and FV0517 for what cannot be: Types. - A value outside a closed union reads the union's last member in every lookup table and
<component :is>:upgrading_to_0_11. - A test that narrows a value holds through a chain of
&&or||, which was FV0609, and a root's:class="a && b"leaves out the attribute whereaisundefined. - Names holding
$are written as Rust identifiers, and a prop starting with$is refused with FV0328: Names. - A prop or field with no type (FV0326) and
definePropsof an imported type (FV0327) are refused at their place, where the compile stopped with an error of its own. <template lang="pug">is refused with FV0008 and<template src>with FV0009, where the template was written as HTML or rendered as nothing.- A
<textarea>or an<input v-model>at a component's root is refused with FV0424, which says to wrap it, where it gave several errors with no line: FV0424. - A component may render itself by its kebab-case or camelCase name, which was FV0513.
- Generated Rust builds for
list ?? [...],[].lengthand a union field read from an object literal, and a copied list of numbers passes clippy. - An array literal of object literals typed as a list of other values is refused with FV0634, where the compiler overflowed its stack.
- A refusal of an attribute bound alone and in a
v-bindobject points at the later binding.
0.10.0 - 2026-10-22
Added
- Loaders: a component may
awaita loader declared withdefineLoaderat the top of its setup. The Rust app implements the generatedLoaderstrait and renders withferrovue::load; see Loaders - The client hydrates loaders' results from the page's
<script data-fv-loads>.readPagereturns them asloads, andprovideLoads,clearLoadsandloadKeyare new; see Loaders - Functions declared in
<script setup>or exported from a.tsfile, called from the template and fromcomputeds, with nohelpersentry; see Script logic - Statements in a
computed's body and a list method's callback:const,if, earlyreturnandswitch; see Script logic - Lookup tables: an object constant read by a key typed as a union of literals or an
enum(PAD[size]), compiled to amatch; see Props ?:whose branches differ in type where the value is only written out: in{{ }}, a string-valued attribute and a template literal; see Upgrading to 0.10Object.entries(r)outside av-for, read by the list methods, and.flat()and.flatMap().Object.values(r)of a record of lists compiles; see Strings- Imports of constants and types through the tsconfig's
pathsand Vite'sresolve.alias.generateandwritetake{ aliases }; see Props - FV0110 refuses a name imported from a module no relative path or alias leads to. The message names the specifier and where it was looked for; see FV0110
- A run reports every refusal it finds and ends with a line that counts them.
generatethrows the newGenErrors, which holds them all; see Errors and limits - A
= help:line gives the way around a refusal where it is short.GenErrorand each diagnostic of--format jsonhave the newhelp; see Errors and limits - Every code in the error index has a detail: what is refused, why, and the ways around it.
- The guide page Upgrading to 0.10.
- The guide pages Porting, for moving a Vue 3 server-rendered app to ferrovue, and Support, the support policy.
Changed
- Breaking: generated code is version 4, which the 0.9 crate refuses. Generate every component again; see Upgrading to 0.10
- Breaking: some refusals have new codes for the same source: FV0110 for unresolved imports, and a constant's own code at the constant for FV0613; see Upgrading to 0.10
- Messages name syntax in words and say what to do. FV0601 says where the function a template calls comes from; see Upgrading to 0.10
- FV0221, FV0803, FV0806, FV0815 and FV1509 are retired.
- The deprecation warnings FV1117 and FV1118 say a deprecated key or option is removed in a later minor release; see Support
- The guide says where a
<script>element in a template is allowed: in a component that renders on the server only; see Errors and limits
Fixed
?:between two objects read from props builds, and a computed list chosen by?:is collected once.- An object constant written with
__proto__:is refused with FV0206. - A child's optional or nullable prop accepts a value of the same optional or nullable type, which FV0511 refused.
0.9.0 - 2026-10-20
Added
Dateprops, required, optional or nullable, read with.getTime(),.toISOString()and the.getUTC…()methods. Their Rust type isferrovue::JsDate, or thedateTypekey's: Date props.reviveDates(component, props), fromferrovueandferrovue/client, turns an island's ISO strings back into dates, asmountIslandsandmountPagedo: In the island's props.- The
chronofeature, off by default, takeschrono::DateTime<chrono::Utc>as thedateTypeand converts it to and fromJsDate: chrono. - FV1806 refuses a
Dateinside a list, a dictionary, an object prop, Pinia state,inject,refordefineModel, which would reach the client as a string: FV1806. .toUTCString(),.toJSON()andJSON.stringify()of a date,Date.UTC(), and<,<=,>,>=and||between dates: Dates in a template.- FV1809 refuses
===,!==,==and!=with aDate, and says to compare.getTime(): FV1809. .toPrecision()and.toExponential()of a number, with their twinsjs_to_precisionandjs_to_exponential: How numbers are computed.Number.isNaN(),Number.isFinite(),Number.isInteger(),Number.isSafeInteger(), and the globalisNaN()andisFinite()of a number: How numbers are computed.Math.sqrt(),Math.sign()with its twinjs_sign, the constants ofMathandNumber, and**andMath.pow()of known integers: How numbers are computed.- List items by index (
list[i],list.at(i),list?.[i]) and optional chains that go on past?.(user?.profile.bio): Optional chains and list items. .indexOf(),.lastIndexOf(),.findLast(),.findLastIndex()and.concat()of a list: Slicing lists..reduce(),.reduceRight(),.toReversed(),.toSorted(), spread in array literals andMath.max(...xs): Building lists.encodeURIComponent()andencodeURI(), with their twinsjs_encode_uri_componentandjs_encode_uri: URIs.String(), template literals and.concat()of a value that may be absent, written asundefinedornull, and of a list: Strings from values.- Positions and limits in
.includes(),.indexOf(),.split()and their kin,.substr(),.charCodeAt()and.codePointAt(): Counting in UTF-16 code units. typeof, worked out from each value's type, which narrows an optional value inv-if,&&and?:: typeof.- The guide pages
upgrading_to_0_8andupgrading_to_0_9.
Changed
- Generated code is version 3, which the 0.8 crate rejects. The 0.9 crate still builds modules of version 2: Generate every component again.
in,instanceof,**, the bitwise operators, engine-roundedMathfunctions and parts of globals the server does not translate get their own codes, and FV1234 is retired: Error codes your CI matches..toFixed()takes a fractional literal, truncated as JavaScript truncates it, andundefined, which is.toFixed(0):.toFixed().- The README is a landing page, and its reference sections moved into the crate guide.
Fixed
Boolean(user)of an optional object, list orDatewrote a closure rustc warns on, and is nowis_some(): Fixes that change generated code..includes(v)of a computed list or a list of fractions, with av-foritem namedv, wastruefor every list that was not empty: Fixes that change generated code.- FV0604 of a field of an optional value says that the value may be absent, and to narrow it with
v-ifor read it with?.: FV0604. - Breaking: a template literal that joins two halves of a surrogate pair across a string that may be empty is refused with FV0706: Halves of surrogate pairs.
0.8.0 - 2026-10-18
Added
- Dates in templates:
new Date(s)of an ISO string,new Date(ms),.toISOString()and the UTC getters, which read the same on the server and in every browser: Dates and prices - Refusals FV1801 to FV1805 for the current time, local time zones and locale formatting, each pointing to the guide: Error codes
- The guide page
dates_and_prices, with prices and formatted dates written in Rust or vue-i18n: Dates and prices
Changed
- Breaking: generated code is version 2, so modules generated by 0.7 must be generated again. Upgrading to 0.8
- Breaking:
RouteDef,i18n::Locale,Message,Args,HeadHtmlandLinkare#[non_exhaustive], built with constructors: Upgrading to 0.8 - Breaking: the runtime functions only generated code calls (
js_trim,class_intoand more) are#[doc(hidden)]: Upgrading to 0.8 Slot::new,Part::new,Page::slotand four more constructors and getters are#[must_use]. Upgrading to 0.8- A number compared with itself (
x === x) compiles to!x.is_nan(), which Clippy accepts. - A call of a setup binding the server cannot evaluate is refused as FV0613 with the reason, where it was FV0601: Error codes
- The npm package compiles with
@vue/compiler-sfc3.5.44, and the peer ranges move tovue~3.5.44,vue-router~5.4.0andpinia~4.1.0: Upgrading to 0.8 ferrovueandferrovue-routerrequireserde_json1.0.154, and theactix-webfeature actix-web 4.17.0.
Removed
- Breaking:
ferrovue::ammonia. ASanitised::withpolicy takesammonia4 as a dependency of your own crate: Upgrading to 0.8
Fixed
- FV0613 gives one location, where the template reads the binding.
- A
computedthat throws in JavaScript no longer panics when the render does not read it (#112). Errors and limits
Security
- The
ammoniafeature requires ammonia 4.2.4, which fixes CSSurl()and SVG animation XSS in aSanitised::withpolicy that allowsstyleor SVG: Escaping
0.7.2 - 2026-10-11
Added
ferrovue::Chunksreads Vite's manifest and writes the<link rel="modulepreload">tags of the chunks a page's islands need (#96): Preloading the islands.- A client build with a manifest writes
.vite/ferrovue-islands.jsonbeside it, naming the chunk that holds each island, whichChunksreads: Preloading the islands. PageRecord::island_names()names the components a page's record holds so far, andPart::name()a part's:PageRecord.
Changed
- The npm package depends on
postcss^8.5.29.
0.7.1 - 2026-10-09
Fixed
conformanceSuite's client-render check andrenderRecordedPageread a recorded<select>'s selection from itsselectedattributes, as the HTML parser does (#91): Testing a page.
0.7.0 - 2026-10-09
Added
ferrovue/volar, a plugin for Vue's language tools, underlines what ferrovue refuses as a component is edited, with the error's code linked to its documentation: Diagnostics in your editor.- Generated code checks its version:
mod.rsopens withferrovue::__compat!(1), which stops a build against another release's crate with one message: The version check. - The generated-code guide states which files, modules and items of generated code are stable: What is stable.
v-bind()in<style>, scoped or global, with theisProductionkey naming its variables as plugin-vue does. A value that is not a string or a number is FV1006:v-bind()in<style>.- CSS modules (
<style module>,$style.x,useCssModule()), whencssModulesinferrovue.config.jsonmirrors Vite'scss.modules: CSS modules. attachSsrRenderand the client-render checks offerrovue/testinggive a component thev-bind()variables in<style>that plugin-vue and a mounted Vue give it: Testing a page.- Navigating between pages (#74):
readPage,renderPageandhydrateStateshow a fetched page from its record with no reload: Navigating between pages. Booleanis taken as the function of.filter(),.map(),.some(),.every(),.find()and.findIndex(), andBoolean(x)as a call: Slicing lists.- The Vite plugin takes
config, the configuration file relative toroot, asferrovue --configdoes:ferrovue({ config: "config/ferrovue.json" }). - A JSON Schema of
ferrovue.config.json, shipped asferrovue/schema.json, whichferrovue initnames in$schemafor editors: Configure. - A deprecated configuration key warns with FV1117 and a deprecated command-line option with FV1118, each naming its replacement: Deprecations.
- The types the npm package's API names are exported where it names them (
ErrorCodeandSourceLocationfromferrovue/compiler), with the tableERRORSanddocsUrl(code). - The
.tgzand.cratefiles of a GitHub release carry build provenance, whichgh attestation verify ferrovue-X.Y.Z.tgz --repo Kinsmir/ferrovuechecks.
Changed
- Breaking:
Attr,HeadValue,Query,i18n::Partandi18n::Valueare#[non_exhaustive], and the runtime's pure public functions are#[must_use]. - The minimum supported Rust version is 1.89, down from 1.99: Rust.
ferrovue.config.jsonis checked as it is read: a file holding no object (FV1113), an unknown key (FV1114) and a value of the wrong type (FV1115, FV1107, FV1110) are refused.ferrovueremoves fromoutonly the.rsfiles that open with its// @generated by ferrovueheader, and--checkreports any other file there: The output directory.ferrovue --watchand the Vite plugin's dev server regenerate only on a change to a file a run reads: the configuration, components, stores, messages, pages, routes and.tstype files.ferrovuerefuses--checkwith--watch,initwith--check,--watch,--diffor--format json, an option missing its value, and a value given to an option that takes none.- A type in a
.tsfile or a component is translated, and written totypes.rs, only when the server render reaches it (#77). Two files declaring a reached name are FV0319: Shared types. - The
securityguide page is a threat model: the trust boundaries, and the guarantee at each place data is written: Security. fixtureApp'spinia,vueRouterandvueI18noptions andconformanceSuite'srecordacceptundefined, for a project type-checked withexactOptionalPropertyTypes.- Fewer allocations when merging attributes, writing fractions, rendering the head and writing an island's props. The output is unchanged.
Removed
- The undocumented
affectsexport offerrovue/vite.
Fixed
- A component whose
rendertakes more than seven arguments generates code that passescargo clippy -- -D warnings. - A missing components, stores or messages directory is FV1116, and a missing or invalid routes file FV1246 or FV1247, each naming the path. A store or type file that does not parse is FV0001.
ferrovue --watchand the Vite plugin's dev server show an error that is not a refusal and regenerate once it is put right, and a watch that cannot start says so.mountIslandsreports an island that throws as it mounts throughonErrorand hydrates the islands after it.- A
Page's record holdsnullfor props serde_json refuses, and a debug build panics with serde's error: At run time. - A vue-i18n plural choice with a count of
NaNover three cases picks whatMath.mindoes. - On Windows, paths in generated code, diagnostics,
init's output, the conformance suite's diffs and the watch filters are written with/. - Listeners on a component compile beside a
v-bindof the child's ownProps, where they were FV0503 (#75), and a prop named like a listener (onSale) takes the value bound to it. - An empty array literal takes its element type from the list beside it (#76), and an
asorsatisfiesthat states another type than the value's is FV0628:FV0628.
Security
- A
useHeadvalue holding<fv-hole>could move a streaming hole. The marker is<fv-hole"</script</style</noscript>, which no value ferrovue or unhead writes can hold: Holes.
0.6.0 - 2026-10-06
Added
- A conformance suite for applications (#45):
conformanceSuitefromferrovue/testingandferrovue::conformance!hold each component's fixtures to Vue's render: Testing. - Islands that hydrate later:
island(&props).hydrate(Hydrate::Visible),Idle,Interactionor a media query, with the island's chunk loaded when it fires: Hydrating later. provideandinject, resolved through the component tree at build time, under a string key or anInjectionKey<T>: Provide and inject.<component :is>over a closed set of choices (imported components, element names, a union prop, an object of them), compiled to amatch:<component :is>.- The page head:
useHead,useServerHead,useSeoMetaanduseServerSeoMetafrom@unhead/vue3, collected byferrovue::Head, which renders what unhead's server renders: Head. ferrovue::Sanitised, with the crate's newammoniafeature: HTML cleaned by ammonia, forv-htmlprops:Sanitised.ferrovue::BasicHtml, aTrustedHtmlwith no dependency that escapes its input and keeps a few formatting tags:BasicHtml.InlineHtmlfromferrovue/typesandferrovue::InlineHtml, trusted HTML of inline tags only, whichv-htmlmay write inside a<p>: Wherev-htmlmay go.- Routes from a folder of pages, as vue-router's file-based routing builds them:
"routes": { "pages": "client/pages" }: File-based routes. - The router matches optional parameters (
:id?) and routes that only group others, as vue-router does: Configuring the routes.
Changed
- Breaking:
ferrovue::RouteDefhas aviewfield, which aRouteDefwritten by hand sets.Route::link_namedtakes a missing required parameter from the current location: The generated route table. - Breaking: a component's slot closures take
Provideslast when it takesProvides, and a component that provides, injects or callsuseHeadhas noisland(): Slots. - Breaking: a
provide(…)not imported fromvueis refused (FV0105), where it was ignored. - Breaking:
v-show, andv-modelon a<select>, in the content of a<RouterLink>or of a Rust twin's slot are refused (FV0423), since Vue renders that content from virtual nodes. - Breaking:
v-htmlwhere the browser's parser rebuilds the HTML is refused (FV1512), and HTML in a<p>that is notInlineHtml(FV1513): Wherev-htmlmay go. - The published crates leave out the test data they do not need: the
ferrovuecrate goes from 1134 files (2.0 MiB) to 64 (620 KiB).
Fixed
fixtureApptakes the application's ownpinia,vueRouterandvueI18nmodules, so a fixture with$storesfinds its Pinia (#47): Fixtures in your own vitest tests.- A fixture's slot content given as
""hydrates. - Content Vue renders from virtual nodes (in a
<RouterLink>, a twin's slot,<component :is>) writes attribute names and classes as Vue's server does.<ClientOnly #fallback>there is FV1511. - In content Vue renders from virtual nodes, a static
classwritten before:classwith other attributes between the two is refused (FV1013). - A component whose file is named after a Rust keyword (
Type.vue) compiles, and a file name that is not a Rust name or clashes with another module is refused (FV0007). - A
.vuefile that is empty or holds only a<style>is refused (FV0002) at line 1, column 1, named by its path relative to the project. - A setup or provided string built from another temporary (
props.label.toLowerCase().padStart(6, "0")) compiles. - An integer setup value computed through JavaScript's arithmetic (
props.n * -1) keeps-0. - Strings holding bidirectional controls (U+202A to U+202E, U+2066 to U+2069) compile.
- A string
:classwith whitespace around it, given to a component loaded withdefineAsyncComponent, is written twice, as Vue's async wrapper writes it. - A fallthrough attribute holding a
??whose fallback ends in another??compiles. - A component that reads Pinia stores compiles when no store's state holds a string.
- The messages a vue-i18n message links to (
@:key) are looked up from the locale wheret()found that message, as vue-i18n does. .map()over strings whose arrow returns the item on one branch and a new string on the other compiles.- A
v-forinside another, over a list filtered or mapped with a value av-ifaround it narrows, compiles.
0.5.0 - 2026-10-05
Added
- Every compiler error has a stable
FVcode, which the CLI and the Vite plugin's overlay print with a link to its entry:error_codes. ferrovue --format jsonwrites diagnostics as JSON, and the quick start gives a VS Code problem matcher: Editor and CI diagnostics.- Whole-page hydration beside islands:
ferrovue::Pagerecords what a layout's slots hold, andmountPagehydrates the page from that record (#33): Hydrating a page. hydrateRecordedPageinferrovue/testinghydrates a recorded page and throws on any mismatch: Testing a page.T | nullin props, shared types and Pinia state is anOption<T>written asnull, and templates test and read it as Vue does: Nullable props.props.xin the template whenpropsis bound todefineProps()orwithDefaults(…).- Components with no
<script>, or an empty<script setup>, compile as components without props. - Refs that start empty are typed by their type argument:
ref<Row[]>([]),ref<Row>(). - Generic components:
<script setup generic="T extends Item">renders each type parameter as its constraint: Types. - Constants imported from
.tsfiles and TypeScriptenums are evaluated at compile time, and an enum may be a prop type: Constants. useSlots():slots.headertests a slot's presence as$slots.headerdoes."builders": falseinferrovue.config.jsonleaves out the generatednew()and setters (#35): Building props.linkRouter(routes, { navigate })fromferrovue/link-router, for an application whose own navigation leaves the page (#34): Links when the application navigates on its own.<ClientOnly>: the server writes its#fallbackslot, and the browser swaps in the default slot once mounted: Client-only content.- Rust twins: a component listed under
twinsinferrovue.config.jsonis rendered by a Rust function of the project's: Rust twins. defineAsyncComponent(() => import("./X.vue"))renders as the component it loads.
Changed
- The
vuepeer is~3.5.43, and the optional peers are held to a minor:vue-router~5.3.1,pinia~4.0.3,vue-i18n~11.4.13: Vue and its integrations. - Every refusal names a line and column in the
.vuefile,new Date(…)and<component :is>among those that had none. - A component written with the Options API is refused with a message that asks for
<script setup lang="ts">or no script at all.
Fixed
undefined ?? xgivesx, and a value known to beundefinedis falsy, as in JavaScript..includes()of a list of numbers takes an integer or aFloat, and compares-0equal to0.
0.4.0 - 2026-10-05
Changed
- Breaking: the package root
ferrovueis the browser API (mountIslands,hydrateState), and the compiler's API (generate,write, the configuration types) isferrovue/compiler. - The runtime is four crates released at one version,
ferrovue-core,ferrovue-router,ferrovue-i18nandferrovue, which re-exports the others: One version line. ferrovuehas the default featuresrouterandi18n; withdefault-features = falsean application builds neither crate.
Fixed
- A prop named after a Rust keyword compiles, as
r#type, orself_,Self_,super_andcrate_for the four with no raw form (#19): Names. ferrovue/testingloads in a project that installs onlyvue, and imports each optional peer when a fixture needs it (#22).- Generated code passes
cargo clippy -- -D warnings: aPropswith no required field derivesDefault, and string constants are folded into the render (#21). - Generated Rust that did not compile: a child's attribute holding a string built in a
?:or&&branch, and an arrow function's string item in a?:branch.
0.3.0 - 2026-10-05
Added
ferrovue initwrites a starterferrovue.config.jsonandcomponents/Hello.vue: 2. Configure.- CLI options
--config(-c),--check --diff(-d),--version(-v) and--help(-h), and a missing or invalidferrovue.config.jsonis reported without a stack trace. VERSION, exported fromferrovue.typeof route.query.q === "string"narrows a query value to a single string:typeof.Htmlis an axumIntoResponseand an actix-webResponder, andferrovue::HtmlStreamstreams a page with holes, each behind a feature:web_frameworks.into_html(props)andinto_island(props)take the props by value, so a handler returns the page it builds: A component.Debugfor every public type in the crate;Linkalso derivesClone,PartialEqandEq.ferrovue/islands, written by the Vite plugin, loads each island's component lazily, andmountIslandstakes loaders beside components: Islands.- Fallthrough attributes reach a child's root as in Vue,
inheritAttrs: falseand$attrsincluded: Fallthrough attributes. - Dioxus 0.7: with the
dioxusfeature, an island goes straight intorsx!:dioxus.
Changed
- Breaking: an attribute bound to a value that may be an array or an object, a
route.queryvalue included, is refused, as Vue's client rewrites it on hydration:typeof. ferrovue::JsderivesClone,CopyandDebug.
Fixed
- A
Floatthat isNaNor infinite reaches the client as itself indata-propsand the state script: Keeping islands exact. - A root's
:classof an absent optional string writes noclass="", and a root's:stylestring is written as Vue'smergePropsnormalises it. - A string built by a runtime routine compiles as the left side of
||:text.slice(1).toLowerCase() || "-". - Slot content that writes nothing visible shows the slot's fallback exactly when Vue's does: What generated parents do.
0.2.0 - 2026-10-04
Added
<style scoped>:data-v-ids as Vue's server renderer writes them, computed as@vitejs/plugin-vuecomputes them: The id, and matching the client build.fixtureAppinferrovue/testingtakesclient: true, andattachSsrRendercompiles a<style scoped>component with its__scopeId.- Fractional numbers: a
Floatprop is anf64, and/,%,Mathand.toFixed()work as in JavaScript, written byferrovue::push_number: How numbers are computed. ferrovue::class_object, for aclassobject with computed names.- Errors point into the
.vuefile, with the line quoted and a caret under the construct. mountIslandsinferrovue/clienthydrates every island on the page, sharing one Pinia and one router: Islands.ferrovue --watch, and a Vite plugin (ferrovue/vite) that regenerates on change and shows a refusal in the error overlay: 4. Generate.- Generated props and types have
new(required…)and a setter per optional field: Building props. - The crate's documentation stands on its own on docs.rs, with a quick start and the guide
ferrovue::guide, whose examples run as doctests:guide. route.queryandroute.fullPath, parsed as vue-router parses them:useRoute()and$route.- vue-i18n:
$tanduseI18n(), with messages compiled by vue-i18n's own message compiler: What is supported. - Nested routes, with the active and exact-active classes
useLinkgives them. The generatedroute_table::ROUTESis a tree ofRouteDefs: Configuring the routes. <Teleport>, its content collected byferrovue::Teleportsfor the page to place:teleports.- Pinia setup stores: Configuring.
- Narrowing as TypeScript narrows:
x !== undefined,!xandx === undefined, in?:,&&and||as well asv-if. - String methods counted in UTF-16 code units,
.slice(),.indexOf(),.split(),.replace()and.padStart()among them: Counting in UTF-16 code units. <,>,<=and>=between strings, by UTF-16 code unit: Ordering.- Array methods with arrow functions:
.filter(),.map(),.some(),.every(),.find(),.findIndex()and.slice(), chained and nested. Record<string, T>props asferrovue::Record, which keeps JavaScript's order of keys: Dictionaries.Number(),parseInt(),parseFloat()andJSON.stringify(): Numbers from strings, and strings from values.
Changed
ferrovuewrites only the files whose text changed and removes those no component produces.write()returns what it changed.- The CLI prints a refused construct as an error message, without a stack trace.
- Generated code passes
cargo clippy -- -D warningswithdead_codeallowed, and binds no value nothing reads. - Numbers and short strings render faster, and a generated
renderreserves room for what it writes.
Fixed
- A child component given no props (
<Child />) renders, where it was refused. - Generated Rust that did not compile: an integer literal beyond 2⁵³, and
?:,||and??choosing between strings the component holds and builds. - A class object lists repeated names and array-index names as a JavaScript object does, and keeps the spaces inside a computed name.
- Integers beyond ±2⁵³ are written, added and compared as JavaScript does, so such a prop no longer causes a hydration mismatch.
-0is kept by integer arithmetic and byMath.roundfrom-0.5up to zero, and a number halfway between two shortest spellings is written with the even digit.- An empty route parameter fails a debug build's render, as vue-router fails it.
- vue-i18n: a fractional
countornchooses the plural case as vue-i18n does (1.5is plural).
0.1.0 - 2026-10-04
Added
- First standalone release of the compiler (
ferrovueon npm, with theferrovuecommand) and the runtime (ferrovueon crates.io). - Script setup:
withDefaults, destructured props,defineModel, lifecycle hooks,watch, template refs, shared types imported from.tsfiles, and a plain<script>block. - Templates: template literals, optional chaining, string and list methods,
Math,v-forover ranges,classobjects,:style,v-show,:hidden, scoped slots and<Suspense>. - vue-router (named routes,
RouterLink,useRoute()) and Pinia getters, withRouterandRoutein the crate.
Fixed
.lengthof a string counts UTF-16 code units (ferrovue::js_length), where it counted bytes.- Slot content made only of comments is dropped when the slot has no fallback, as Vue drops it.