Changelog
Release notes for ktor-svelte 1.4.0 and every version before it. Each release is also on GitHub.
1.4.0
Features
- example: a welcome email from a Svelte component in the showcase (e85e6d4)
- example: a welcome email from a Svelte component, rendered on registration and shown to admins (ba73b64)
- example: admin task rows open their task (cff5b08)
- example: breadcrumbs on the page of every task (d1ef420)
- example: the admin area has a sidebar (4b867a8)
- example: the showcase focuses the heading of each new page (dc22738)
- example: the table of every task asks only for the fields it shows (3b29695)
- example: the task list can add the last comment of each task (3123b98)
- example: the task page arrives with its data (1dc2aeb)
- example: the task page uses a generated load (28f3a55)
- example: the task page's load is declared next to its routes (040fb24)
- example: two frontends in a real browser, and the start page of a prefixed frontend (a8808e1)
- example: two frontends in one app, with browser tests (212cbf3)
- gradle-plugin: emails from Svelte components (c628f96)
- gradle-plugin: emails in every language of the app (d4bef0f)
- gradle-plugin: generated files link to the docs page that explains them (e1ecabc)
- gradle-plugin: link each generated file to the docs page that explains it (830bfeb)
- gradle-plugin: render each email in every language and pick one with Emails.forLocale or call.emails (0b6c945)
- gradle-plugin: render the Svelte components in src/emails before Kotlin compiles (fdf1031)
- gradle-plugin: svelteVerifyNaming checks pages, API routes, DTOs and message keys against the naming rules you set (fb99a63)
- gradle-plugin: svelteVerifyNaming checks the project's naming rules (a17e4e2)
- gradle-plugin: turn rendered email components into inlined HTML, text and a typed Kotlin function (7d50cc0)
- one Vite per frontend in development (2158255)
- plugin: a Breadcrumbs component from the pages' titles, with names for records (e687754)
- plugin: a collapsible sidebar that remembers its state and is a drawer on small screens (746178a)
- plugin: a Sidebar that collapses to icons, remembers it and is a drawer on small screens (cc81291)
- plugin: breadcrumb component from nav metadata, with names for records (27bab47)
- plugin: build and package several frontends (552b300)
- plugin: build times summary (34c779b)
- plugin: download a pinned Node with svelte.nodeVersion for npm and pnpm teams (28e59e3)
- plugin: empty states for nothing yet and for no results (6a89cab)
- plugin: focus the page heading after a navigation (846b8f0)
- plugin: FocusHeading moves the focus to the new page's heading after a navigation (bf00f40)
- plugin: FrontendRoutes.Patterns names every page by its pattern (f1215ee)
- plugin: install, build and package more than one frontend (c5f397e)
- plugin: keyboard navigation and opening rows in the data table (4524921)
- plugin: network check in svelteDoctor (84ceadf)
- plugin: one Vite per frontend in svelteDevAll (6cbde6b)
- plugin: pages-to-routes diagram (4914ead)
- plugin: pinned Node download (6eb4417)
- plugin: print how long install, frontend build, bundling and Kotlin compile took (e26f319)
- plugin: README section with commands, addresses and environment variables (627dad1)
- plugin: skeleton rows while the data table loads (e6c0cf2)
- plugin: svelteDoctor checks that the package registry is reachable and which proxy and certificates apply (bd9db4d)
- plugin: svelteReadme writes the app's commands, addresses and environment variables into the README (9c63b88)
- plugin: svelteRoutesDiagram draws which page calls which API route (b520b8b)
- plugin: svelteUpgrade bumps the version, regenerates and prints the upgrade notes (615d0f4)
- plugin: svelteUpgrade changes the version, regenerates and prints the upgrade notes (f8dff03)
- plugin: tell the app where each frontend lives (21ded9a)
- plugin: the rows of the data table open with a click or Enter and are reached with the arrow keys (ec1a4b7)
- plugin: virtual scrolling for long data tables (82828ab)
- server: a small mailer API whose emails the dev panel catches in development (9896805)
- server: catch outgoing email in the dev panel (8bdf187)
- server: clear site data from the dev panel (f17e411)
- server: config and environment view in the dev panel (3a88fd6)
- server: each frontend proxies to its own Vite in development (013faf1)
- server: generated page loads from pageLoads in Kotlin (f80e2d6)
- server: included relations, typed on the client (86de49c)
- server: included relations, typed so a relation exists only when asked for (75b618a)
- server: inline the answers of a page's loads into its HTML (e509148)
- server: latency and errors per route (982a94c)
- server: latency histograms and error counts per API route and page in svelteMetrics (3045092)
- server: link the generated page loads, .env.example and API attributes to their docs (aed11a4)
- server: measure the size and the largest fields of each API answer in the dev panel (5c40be3)
- server: memory and threads in the dev panel (69e1dbd)
- server: migration state in the dev panel (0272029)
- server: pageLoad takes the page pattern and the route objects instead of strings (9253eea)
- server: pageLoads generates a page's load from the API calls it needs (1894412)
- server: payload sizes in the dev panel (fc77536)
- server: serve more than one frontend, each under its own path prefix (76cae9a)
- server: serve several frontends by path prefix (f9d9120)
- server: slowest routes of the session in the dev panel (4d0fb1d)
- server: sparse fields with a narrowing return type (c454085)
- server: sparse fields, with a return type that narrows to the asked fields (9ef1cb6)
- server: the typed client in every frontend (5b605b6)
- server: typed pageLoad, and land the sidebar, focus heading, page loads and inline data on main (b81433f)
- server: warm-up before ready (48d29ad)
- server: warmUp calls a few of the app's own routes before the health endpoint reports it up (e39b3b1)
- the typed client in every frontend (8556d8e)
Bug Fixes
- ci: the release PR checks pass again after sparse fields and Svelte emails (0de618b)
- repo: name the API route on the first page without linking it, s… (782b0a7)
- server: dev panel call sites behind a deep stack, and steadier dev panel tests (0e3d657)
- server: send the exact prefix of a frontend to its start page with a slash, so its relative asset paths load (7311d26)
- server: the dev panel finds the call site of a request behind a deep client stack (4e1ded2)
- server: the dev panel finds the call site of a request behind de… (0206a4c)
- server: the dev panel finds the call site of a request behind deeper client stacks (34be1a4)
1.3.0
Features
- example: the admin task table has a column chooser (d6a7379)
- example: the admin task table marks chosen tasks as done (5128b09)
- example: the admin task table sorts by title (802263a)
- example: the settings name field takes its autocomplete from the bounds (00d183c)
- example: the showcase can be installed and shows an offline page without a connection (dec2192)
- example: the showcase shows when it is saving and asks before closing then (9e53983)
- plugin: column chooser for the data table (3ed19e1)
- plugin: data table headers sort through the route or in the browser (39c53e4)
- plugin: ErrorSummary lists every error of a form with a link to its field (fa6376f)
- plugin: Field marks a changed value beside its label (d6d0288)
- plugin: installable app settings with a web manifest, icons in every size and a service worker (f76871d)
- plugin: installable app with a web manifest, icons, a service worker and an offline page (42ee1ee)
- plugin: masked inputs for phone numbers, IBANs, dates and money (d2f92b5)
- plugin: MaskedInput formats phone numbers, IBANs, dates and money while typing and binds the clean value (30207bd)
- plugin: money and number inputs that format for the locale and never lose precision (0e09fea)
- plugin: NumberInput for decimals and numbers, formatted for the locale and never rounded (8f224e5)
- plugin: password strength meter driven by the server's password rule (695467c)
- plugin: PasswordStrength shows a meter and the rule list for a password (ebcda22)
- plugin: row selection and bulk actions in the data table (a15eaae)
- plugin: rows of the data table can be chosen, across pages, and actions run for each (644963b)
- plugin: sort the data table by a click on the header (fc25755)
- plugin: svelteSync writes the app icons and svelteVerifySync compares them by their pixels (3768280)
- plugin: the data table lets people hide and reorder columns and remembers it (696c3a5)
- plugin: the service worker lives in its own folder and reads the build files from $app/manifest, as SvelteKit 3 expects (4ce4c27)
- server: a failed submit moves focus to the first invalid field (e19a077)
- server: a page carries its total only when the client asks for it (6047b73)
- server: a time limit per route, used by the server and the generated call (c1d370f)
- server: autocomplete hints and input types from field names (8c62d16)
- server: changed-field markers and a list of changes in the form state (44d727a)
- server: created and updated stamps (119d162)
- server: focus the first error after a failed submit, and an error summary (fc74ced)
- server: formWizard checks one step at a time, keeps the progress and submits once (76b55e3)
- server: header parameters a route describes become a typed headers argument of the generated function (4199e11)
- server: multi-step forms that check each step and submit once (0954980)
- server: owner checks that answer 404, 401 or 403 for records that are not the caller's (a5eb33e)
- server: pending writes indicator and a guard before closing the tab (3c62556)
- server: read-only fields are readonly in TypeScript and left out of request bodies (05d7e16)
- server: read-only fields, readonly in TypeScript and left out of request bodies (5256bd0)
- server: ready-made rules for email, web address, phone, slug and strong password on both sides (e6ce285)
- server: requireOwner answers 404, 401 or 403 when a record is not the caller's (728fbe7)
- server: route.timeout cancels a slow handler and becomes the generated call's timeout (1c2a1b9)
- server: rule presets for email, web address, phone, slug and strong password (9bb8fa8)
- server: send only what changed from a form, as a patch (4ddbe4f)
- server: Stamps, a shared type for created and updated at and by whom (89d22d9)
- server: submitChanges sends only the changed fields as a patch (9e65730)
- server: text fields named like an email, a password or an address get autocomplete and an input type (e270136)
- server: the client knows the parts of the strong password rule and how many a password meets (3be3c9f)
- server: the form state knows which fields changed and how (bd3b251)
- server: the generated client counts writes in flight, with a reactive flag and a guard before the tab is closed (2f2c073)
- server: the service worker and the app manifest stay public when the rest of the app needs a sign-in (fb16f28)
- server: totals for paged lists, counted only when asked (aea60f5)
- server: typed request headers in the generated client (257e934)
- test: browser tests block service workers unless a test class allows them (e76fc56)
Bug Fixes
1.2.0
Features
- example: ask before the showcase keeps its optional cookie (3bf5af8)
- example: check while typing whether an email is taken in the showcase (249851f)
- example: clear a task's due date with a patch in the showcase (456cd92)
- example: collect page timings in the showcase (e756bec)
- example: count tasks and comments with plural messages in the showcase (c04d0b0)
- example: draw the board's status counts as a chart (92eea18)
- example: keep the board's mine filter in a typed cookie (76e156e)
- example: link previews for the showcase's public pages (f677d89)
- example: list all tasks on the showcase's admin page with the generated table (aa986f6)
- example: mark the showcase's passwords as sensitive and check they stay out of the dev tools (f4d75ad)
- example: notice in the showcase when someone else changed a task (049a907)
- example: preferences kept per person, with a compact board (7dee6c2)
- example: report browser errors in the showcase (b4a8929)
- example: serve Inter from the showcase itself (687b714)
- example: sessions that end, with a warning and a way to stay signed in (871ac9a)
- example: show comment times in the showcase as time ago (906dbdb)
- example: show the navigation bar in the showcase (7c99f39)
- example: turn idempotency on in the showcase (cd9eb1c)
- gradle-plugin: add dev, sync, doctor and gen as short task names (438dad7)
- gradle-plugin: add isActive and ariaCurrent to the typed routes (61e34b1)
- gradle-plugin: generate a confirm helper that asks before a call (d108198)
- gradle-plugin: generate a modal helper for dialogs (ca0b305)
- gradle-plugin: generate a project guide for coding assistants with svelteSync (935907a)
- gradle-plugin: let svelteGitHooks keep generated files out of merge conflicts (f0a2136)
- gradle-plugin: name the app's own frames first in dev stack traces and dim library frames (2d2d6c3)
- gradle-plugin: note in development which messages have the default language's text (dde531c)
- gradle-plugin: print one summary line after each restart in svelteDevAll (5d35d5d)
- gradle-plugin: remember the processes svelteDevAll starts and find who holds a port (df59c41)
- gradle-plugin: show toasts from the server through the toasts library (96f9a4e)
- gradle-plugin: stop leftovers of an earlier svelteDevAll and name a foreign program on its ports (f34cfee)
- gradle-plugin: tell the app's own stack frames from library frames by their source file (a46eb72)
- gradle-plugin: wire server navigation to goto in the generated client hook (2f9337b)
- gradle-plugin: work out what caused a restart and whether the client changed (5ca4773)
- plugin: a menu, page titles and breadcrumbs from what each page says about itself (e026d45)
- plugin: charts preset with LayerChart, the DaisyUI colors and typed series (0c7ab86)
- plugin: components library with a generated Field (5b6c9b8)
- plugin: errors that SvelteKit catches are reported too (436cbd3)
- plugin: fail the build when a secret is in the frontend build (9ac287c)
- plugin: generated DataTable for routes that return a page (81adfec)
- plugin: generated DateInput, DateTimeInput and EnumSelect (d0ffc9d)
- plugin: generated error page that shows what a failed call answered (16794bf)
- plugin: generated FileDrop for upload routes (204399e)
- plugin: generated NavigationProgress bar (888457e)
- plugin: generated ThemeToggle and LocaleSwitch (b449158)
- plugin: numbers, money and dates formatted the same in Kotlin and TypeScript (b8df967)
- plugin: pages say their description and preview image, and prerendered pages get the sharing tags (0cee49b)
- plugin: plurals in messages, picked for the language on both sides (6ade4a2)
- plugin: self-hosted fonts from Fontsource, wired into the stylesheet and preloaded (33d9bbb)
- plugin: svelteAdd --crud writes list, detail and form pages for a class of the client (d66c05e)
- plugin: svelteAdd creates a page with a typed load, and a route stub when asked (4e33750)
- plugin: svelteApiChanges lists what changed in the API for callers since another revision (537a02e)
- plugin: svelteDeploy writes the Railway configuration from the project's settings (52b6a47)
- plugin: svelteSmokeTest starts the packaged app and requests its pages and API routes (2013135)
- plugin: the error page translates Forbidden and Unauthorized (8e95bf4)
- plugin: timeAgo and a TimeAgo component that keeps itself current (b5bc33b)
- repo: mark generated files with a merge driver in their git attributes (f801400)
- server: a declared login page, where a 401 and the server's redirect send the visitor with the way back (0b278e3)
- server: a typed missing block and a list that takes a query class (3056861)
- server: add @Sensitive and learn sensitive field names from received and sent classes (69e2d36)
- server: add @Sensitive to keep field values out of the dev tools (dc126ee)
- server: add @Trim, @Lowercase and @EmptyAsNull for request bodies (df1c31a)
- server: add a searchable route map to the dev panel (99d9c89)
- server: add a status section to the dev panel (f4d965a)
- server: add call.navigateTo to send the browser to a page after a call (dc33cbc)
- server: add call.toast to show a toast in the browser from a route (8b0a91a)
- server: add internalAccess for the status endpoint and the API docs (58048a7)
- server: add startupStep to time parts of the app's startup (e044eba)
- server: answer the generated client from recorded fixtures in tests (8795f34)
- server: browsers can report uncaught errors to the app's log, limited in size and number (4145571)
- server: call.user and call.requireUser give the declared user in any route (e4b1da3)
- server: change public config values for one browser from the dev panel (ce8dfa5)
- server: check the open page with axe from the dev panel (d8a3520)
- server: check upload rules in the generated client before sending (a0191df)
- server: cookie categories and a consent store both sides follow (823b523)
- server: count the SQL statements Exposed runs for each request (c4f50a3)
- server: decide who may call internal endpoints by token, network range or a check of the app (c076ed9)
- server: decimals and durations with their own TypeScript types and helpers (ec68c69)
- server: declare upload rules on a route and enforce them in receiveUploads (bf02f03)
- server: declare upload rules once and check them on both sides (09289fd)
- server: declared environment variables with one table of what is missing (e742d08)
- server: edit DaisyUI theme colors live in the dev panel and copy them for Gradle (c449335)
- server: Exposed helpers to page a query and map a row to a DTO (53405f5)
- server: field checks the form state asks the server for while typing (30b342a)
- server: flag the same GET made twice in the dev panel, with both call sites (f6e50e8)
- server: follow the server's navigation in the generated client through apiConfig.onNavigate (9637b9c)
- server: generate a form state helper with draft, dirty, reset and submit (71c4c92)
- server: hand toasts from the server to apiConfig.onToast in the generated client (7156cbe)
- server: idempotency keys so a write can be sent twice and done once (b145f1e)
- server: let the field action keep a hint in aria-describedby (281cf74)
- server: list and clear this browser's cookies and session in the dev panel (6a20392)
- server: list pages and API routes with their files for the dev panel (e5d01e4)
- server: list untranslated texts in the dev panel and outline them on request (f59f5ae)
- server: log what the startup time was spent on in development (ab4fa71)
- server: mask sensitive fields in copied curl commands, fixtures, browser logs and logged queries (b04a7c8)
- server: open route files through a dev endpoint that only this machine may call (62591e6)
- server: open the Kotlin route of a call from the dev panel (c9ca4ee)
- server: page guards declared once, for the pages and the API below the same name (1716357)
- server: Patch for partial updates that tell not sent from set to null (e61a211)
- server: permissions declared as an enum, checked on routes and shared with the frontend as can() (8693fc5)
- server: put versions, health, status and settings together for the dev panel (9620ed1)
- server: read the query string into a class and type it in the generated client (903dc18)
- server: replay an API call or copy it as curl from the dev panel (ce4e204)
- server: resource routes DSL with the conventional paths, names and types (214c622)
- server: save the calls of a page as fixtures for frontend tests (a25a94f)
- server: save the calls of a page as fixtures from the dev panel (cd57a16)
- server: share Kotlin constants with TypeScript through constants(...) (8a6280a)
- server: show SQL count, time and repeated statements in the dev panel (ed639eb)
- server: show the Kotlin exception of a failed API call in the browser overlay (362d9ab)
- server: show the SQL statements of each request in the dev panel (3178be0)
- server: the current user endpoint says when the session ends, and the store warns before and can extend it (8e17796)
- server: typed cookies declared once and shared with the generated client (8ed3a8e)
- server: typed current user declared once, with a generated store that follows sign-in and sign-out (e5458dd)
- server: typed error codes shared with the generated client (44bf6dd)
- server: upload forms with named fields and a typed generated body (cfceddb)
- server: user preferences declared once, kept by the app and synced through a generated store (eda5b69)
- server: value classes become their own TypeScript types (7824697)
- server: version conflicts answered with the current record (84c5783)
- server: web vitals from a sample of browsers, added to the metrics per page (c5fc484)
Bug Fixes
- gradle-plugin: process resources before svelteDevAll starts the app and restart when they change (b42d3d4)
- gradle-plugin: run the app from a copy of its class folders under svelteDevAll (020ee74)
- gradle-plugin: stop a Kotlin change from being applied twice under svelteDevAll (121a2fe)
- gradle-plugin: stop a saved Svelte page from reloading the Ktor application (d857a17)
- gradle-plugin: write generated sources only when their content changed (170ba4f)
- plugin: read the format data into plain maps that tasks can share (9016859)
- plugin: type the series helper so it passes a strict check (14e8695)
- repo: include the cookie source writer in the docs playground (25cc87d)
- repo: stop the first page of a new project from breaking its build (11a7197)
- server: a value is remembered as synced only once the server has it, and a pick made while loading wins (063c8b5)
- server: keep the generator free of JVM-only code so the docs playground builds (1ed1041)
- server: split the constants reader from the source writer so the docs playground builds (2e7af70)
- server: the error reporter type-checks under strict settings (71f5d61)
- server: the signed-in user check applies the page's permission, so it works below the root layout (1327920)
1.1.0
Features
- gradle-plugin: add svelteVerifyRoutes to find links that should be typed routes (d96dc52)
- gradle-plugin: generate typed frontend routes for TypeScript and Kotlin (9bd68c8)
- gradle-plugin: make svelteDoctor catch installs that lost their files (0529317)
- gradle-plugin: suggest typed routes in svelteConfig and the configurator (0f13c53)
- gradle-plugin: write a .gitattributes into the generated frontend folder (626370e)
- server: write a .gitattributes next to the generated TypeScript (ef371a4)
- write a .gitattributes next to generated frontend files (4f44c24)
Bug Fixes
1.0.0
⚠ BREAKING CHANGES
- server: DevMode and PackageManager constants are now written like DevMode.Never and PackageManager.Bun. The deprecated SvelteSecurityHeaders alias is removed. Configuration classes, Validator, DaisyCustomTheme and the library spec classes of the Gradle plugin no longer have public constructors, and ToolVersionSource is internal. See the upgrade guide for 1.0.
Features
- example: add a showcase app with sessions, roles, a database, uploads, search and two languages (a106693)
Bug Fixes
- gradle-plugin: let svelteInit finish when i18n is configured before any message file exists (5655d40)
- gradle-plugin: let svelteSync and a build run in one command (0c1bcac)
- gradle-plugin: let svelteSync and a build run in one command on a fresh checkout (a35395d)
- gradle-plugin: make call.messages and call.theme work under svelteDevAll, svelteGenerateTs and svelteConfig (decb09f)
- server: cap compressed request bodies at the body limit and answer malformed requests with 400 (5256c24)
- server: keep what was typed into a use:field input before the page became interactive (778bcb8)
- server: pentest findings - compressed request bodies, malformed requests, setup script (fd54313)
- server: serve pages in development to clients that offer an HTTP/2 upgrade (0500663)
- server: stop compressing precompressed pages and assets a second time (3731963)
- server: type a nullable object property as its class or null instead of a duplicate type (be4bc72)
Code Refactoring
- server: use one casing for enum constants and close accidental public API before 1.0 (1925648)
0.12.0
Features
- brand ktor-svelte with Kotlin and SvelteKit colors (f4b0a6d)
- gradle-plugin: add frontend debugging and one-click dev and debug run configurations (cae6d22)
- gradle-plugin: clickable file links in the svelteDevAll console (5063c48)
- gradle-plugin: make compiler errors and browser stack traces clickable in the dev console (5730eb8)
- gradle-plugin: run configurations for frontend debugging and one-click dev and debug (aa84844)
- gradle-plugin: set up IntelliJ automatically for new projects (3cbd8ff)
0.11.0
⚠ BREAKING CHANGES
- gradle-plugin: imports of generated AppTheme, LucideIcon, Messages, theme and messages change from ktorsvelte to io.github.nijasc.ktorsvelte. Set libraries { generatedPackage = "ktorsvelte" } to keep the old package.
Features
- example: import generated Kotlin from io.github.nijasc.ktorsvelte (39f9364)
- example: preload page data on link hover (f9df17b)
- example: ship only the icons the notes app uses (e674c99)
- example: show an optimized image on the about page (1ec4b19)
- example: show API errors as toasts in the notes app (11c3716)
- example: use the shadcn themes in the notes app (1ed64ee)
- gradle-plugin: add shadcn light and dark DaisyUI themes (a41bf0b)
- gradle-plugin: add shadcn light and dark themes (9a39e3d)
- gradle-plugin: add svelteConfig to review and score the configuration (ce7e58e)
- gradle-plugin: add svelteConfig to review, score and improve the configuration (afb66cf)
- gradle-plugin: build only the Lucide icons the app uses (2f0b28c)
- gradle-plugin: download a pinned Bun with svelte.bunVersion (8988c58)
- gradle-plugin: generate Kotlin in io.github.nijasc.ktorsvelte instead of ktorsvelte (fa681b7)
- gradle-plugin: hide Vite's copies of browser console messages in svelteDevAll (0aa93ad)
- gradle-plugin: optimize images with an images() frontend library (856ee37)
- gradle-plugin: optimize images with images() (e4b2d3a)
- gradle-plugin: preload page data on link hover in new projects (e07bd39)
- gradle-plugin: regenerate i18n messages while svelteDev runs (5d0e26d)
- gradle-plugin: report Kotlin compile errors from svelteDevAll to the app (8e147b0)
- gradle-plugin: show and score the newer settings in svelteConfig (f8d5040)
- gradle-plugin: show app, Vite and Kotlin output of svelteDevAll in one clean format (fa6eb54)
- gradle-plugin: show failed API calls as toasts with toasts() (686b0f1)
- gradle-plugin: unified, readable output for svelteDevAll (fdbb518)
- repo: publish a version catalog (b7ab3da)
- repo: publish a version catalog with matching Kotlin, Ktor and ktor-svelte versions (83b70c5)
- repo: start new projects with the shadcn themes (714b39b)
- server: add a development panel with API calls, timings and validation errors (7f36e22)
- server: add a development panel with recent API calls, timings and validation errors (7f85ec5)
- server: forward browser console output to the app log in development (f0f8d16)
- server: prefetch API data on hover through the generated client (9f32a1f)
- server: prefetch API data on link hover (671eb30)
- server: report failed API calls to apiConfig.onError in the generated client (c20daa6)
- server: report the effective Svelte settings when asked by the build (9be2011)
- server: serve a generated sitemap.xml and robots.txt (dfd4b3a)
- server: serve a generated sitemap.xml and robots.txt for the prerendered pages (9d8fc55)
- server: serve a ktor-svelte favicon until the app has its own (643acf1)
- server: show Kotlin compile errors in the browser during development (59cebd8)
- show failed API calls as toasts with toasts() (3dd2c3a)
- show Kotlin compile errors in the browser overlay (ef9a2df)
Bug Fixes
- make the 0.11.0 release checks pass (dc9bb79)
- repo: check settings snippets and version catalog aliases in the docs (d896318)
- repo: make the docs snippet check understand the version catalog (2c08590)
- repo: sync frontend libraries after the setup script writes its pages (89975b6)
- server: answer 413 for an oversized chunked JSON body instead of 400 (d73adbb)
- server: ignore lifecycle events of an application Ktor has reloaded (9619339)
- server: recognise local clients by IP and stop reverse DNS lookups (53e1554)
- server: recognise local clients by IP and stop reverse DNS lookups for rate limits (4b4e9ab)
- server: stop handling lifecycle events of an application Ktor has reloaded (c93b5d5)
0.10.1
0.10.0
Features
- example: add a typed activity feed built from a sealed class (3204c98)
- example: describe the attachments route (922e3a1)
- gradle-plugin: open the browser when svelteDevAll is ready (97b4232)
- gradle-plugin: suggest the closest setting for a misspelled Groovy DSL property (0b64cd2)
- gradle-plugin: suggest the closest setting name in the Groovy DSL (16632b5)
- gradle-plugin: svelteDevAll opens the browser (bb07178)
- server: build fingerprint header and onNewBuild (d7f1397)
- server: exhaustive match for sealed class unions (0629719)
- server: generate types and an exhaustive match() for sealed class unions (440676c)
- server: inline publicConfig into pages (aa212a7)
- server: inline publicConfig into served pages and read it synchronously in the client (06c5ca8)
- server: JSDoc from route descriptions (5b3c205)
- server: latest() cancels superseded requests (0ad41d9)
- server: log the active security and dev settings at startup in development (6dfcd1c)
- server: read the inlined publicConfig synchronously in the generated client (109795f)
- server: reload publicConfig in development (b947d5c)
- server: reload publicConfig on every request in development (748f071)
- server: request timeouts in the generated client (35811f6)
- server: route table in development (bce3b17)
- server: serve a route table of Ktor routes and pages in development (ef87721)
- server: settings summary at startup in development (610ee4a)
- server: turn route summaries and descriptions into JSDoc in the generated client (37cc6fe)
- server: warn at startup when a Ktor route hides a frontend page (bbf9061)
- server: warn when a Ktor route hides a page (e99a973)
Bug Fixes
0.9.0
Features
- CSP script hashes computed at build time (578d245)
- gradle-plugin: store the inline script hashes of each page in the manifest (e4964d7)
- link error messages to the docs site (5c8214a)
- request IDs from the client to the server logs (63bb042)
- server: add sliding window and token bucket rate limits (84f8047)
- server: answer Range requests for files in the build (03c52d3)
- server: configurable rate limit keys (8e97973)
- server: count origin, body limit and rate limit refusals (3e157dd)
- server: count security refusals (b7fe2df)
- server: give every request an ID, echo it back and log it with unhandled errors (3a0da8d)
- server: JSON nesting and string limits (c60e96c)
- server: let apps choose the rate limit key, globally or per named limit (34b9db6)
- server: log slow API calls with their route in development (39878a6)
- server: log slow API calls with their route source in development (03fef51)
- server: log the ktor-svelte version and the frontend build fingerprint at startup (69eec03)
- server: log version and build fingerprint at startup (240802e)
- server: prepare ETag, Cache-Control and content type once per file (111b1f5)
- server: prepare static response headers once per file (97a02d9)
- server: Range requests for build files (2142f60)
- server: refuse API JSON that is nested too deep or has overly long strings (fc8ab83)
- server: send a request ID from the generated client and expose it on ApiError (c743904)
- server: sliding window and token bucket rate limits (363221c)
- server: use script hashes from the manifest instead of reading pages (55762e8)
Bug Fixes
- repo: CI change detection failed with permission denied (df3be0e)
- repo: make the CI change detection script runnable (dbdfb98)
- server: 405 with Allow for wrong methods on frontend paths (37e5a6b)
- server: answer 405 with Allow for wrong methods on frontend paths (a3ace6a)
- server: leave the allowedOrigins hint out of 403 responses in production (1ca3257)
- server: never serve the SPA fallback for missing .well-known paths (2b6748b)
- server: no allowedOrigins hint in production 403s (20bb802)
- server: no SPA fallback for missing .well-known paths (2b584f7)
0.8.0
Features
0.7.0
Features
- example: accept note attachments as multipart uploads (d161eaa)
- example: page through notes with Page and a cursor (80df517)
- example: show title errors with the field action on both note forms (1f69c57)
- gradle-plugin: add svelteLiveTemplates with IntelliJ live templates for routes, DTOs and client calls (f344365)
- gradle-plugin: bundle .zst variants as zstd encodings (32bbf14)
- gradle-plugin: deepClean also deletes .gradle and .kotlin (b638076)
- gradle-plugin: deepClean also deletes the project's .gradle and .kotlin directories (affceae)
- gradle-plugin: editorconfig for new frontends (3f6c0f5)
- gradle-plugin: gzip text files the frontend build left uncompressed (0f2a129)
- gradle-plugin: hide frontend install and build output unless it fails or svelte.verbose is set (9a8e1d3)
- gradle-plugin: IntelliJ live templates (711f028)
- gradle-plugin: link build error messages to their README section (09064e8)
- gradle-plugin: pass extra arguments to scripts with svelteRun --args (d6f177b)
- gradle-plugin: precompress files the adapter left uncompressed (a0d9f9d)
- gradle-plugin: print the app, API docs and Vite URLs when svelteDevAll is ready (3cffe39)
- gradle-plugin: quiet frontend output unless it fails (5a71731)
- gradle-plugin: svelteInit writes an .editorconfig for the frontend (838a4bb)
- gradle-plugin: svelteRun --args (60a847a)
- link error messages to the docs page that explains them (87c1ea8)
- link error messages to the README (ed2dbd5)
- print the URLs when svelteDevAll is ready (b1f1173)
- serve zstd variants (a64ae14)
- server: add an optional health endpoint for load balancers (96c4560)
- server: add Page and a typed pages() iterator to the generated client (421c2d2)
- server: apiWith(event) for SvelteKit load functions (91aece6)
- server: compute the CSP of every page once at startup (b297cf7)
- server: declare errors from StatusPages with errorResponse so the generated ApiErrors include them (55e6eb2)
- server: export each generated endpoint on its own so bundlers can drop unused ones (101d524)
- server: file uploads with progress in the generated client (e8672f4)
- server: generate a field action that applies bounds and shows validation errors next to inputs (255ad42)
- server: generate apiWith(event) so load functions use SvelteKit's fetch (e56c65a)
- server: let the generated client share identical GET requests in flight (83a706e)
- server: link runtime error messages to their README section (a5e75d5)
- server: log where the API docs are served in development (923bf7c)
- server: one export per generated endpoint (ccefd4f)
- server: opt-in dedupe of in-flight GET requests (dc51d09)
- server: optional health endpoint (69b8da5)
- server: Page and typed pages() iterator (ad16f75)
- server: precompute page CSPs at startup (b463f70)
- server: rate limit API writes by default (73f55dc)
- server: rate limit writes to API paths per client by default, with named limits for login routes (31f1263)
- server: routes.json maps services to Kotlin routes (b9f90b7)
- server: serve zstd variants to browsers that accept them (52fc16c)
- server: stream directory builds through a file channel (42e98bc)
- server: stream files from a build directory through a file channel (dd18009)
- server: type multipart bodies as FormData and report upload progress (5ebd5cb)
- server: typed errors from StatusPages via errorResponse (b834466)
- server: use:field action for validation errors (e55db41)
- server: write build/ktor-svelte/routes.json that maps each generated service to its Kotlin route (26bf718)
Bug Fixes
- gradle-plugin: add the missing editorconfig template file (fcc4d2e)
- gradle-plugin: deepClean deletes what it can of .gradle and .kotlin and warns about locked files (f706c3f)
- gradle-plugin: deepClean on Windows (06c66a6)
- server: ktlint violations in RouteSources.kt (e96cf2f)
- server: satisfy ktlint in the route source reader (b905b34)
0.6.2
0.6.1
Bug Fixes
- gradle-plugin: reject outputDir values that point outside the frontend on Windows or at the frontend itself (8e4b844)
- server: check cross-site API requests for every method that is not safe (0cfb736)
- server: enforce schema bounds and Validated rules inside nested objects, maps, sealed types and received lists (3f9c439)
- server: escape line breaks and backslashes in generated TypeScript strings (78bf431)
- server: escape route paths in generated service URLs (4b8cb69)
- server: hash build files as a stream instead of reading each one into memory (4d3b074)
- server: keep generated TypeScript identifiers off reserved words and module names (5cfa55e)
- server: percent-encode the Location of trailing-slash redirects (6db27d7)
- server: stop re-hashing every build file on each request in development (c951ac5)
- server: stop re-hashing the whole build on every request in development (10f2aee)
- server: treat proxied requests as remote for local-only endpoints (77f378a)
- server: treat requests that came through a proxy as remote for the status endpoint and dev proxy (b3e5ec3)
- server: validate nested objects, maps, sealed types and received lists (352fa65)
0.6.0
Features
- example: validate the new-note form instantly with the generated validate() (4f0e6a1)
- gradle-plugin: fail check when generated TypeScript is out of date (7914233)
- server: generate branded date types with safe parse helpers (489c4f8)
- server: generate client-side validate() and required bounds from schema constraints (adcbb65)
- server: reject cross-site API writes and oversized request bodies by default (0ef5553)
- server: send security headers and a strict build-derived CSP by default (aab69c3)
- server: verify generated TypeScript without writing it (64386ea)
0.5.0
Features
- gradle-plugin: let a debugger attach to the app started by svelteDevAll (89145f8)
- server: enforce JsonSchema bounds on received DTOs and generate them for forms (68844e2)
- server: generate empty() factories for TypeScript object types (d6a5803)
Bug Fixes
- gradle-plugin: stop frontend tasks of one project from running at once (b08e903)
0.4.0
Features
- gradle-plugin: add deepClean task that also removes frontend ca… (ff09bd1)
- gradle-plugin: add deepClean task that also removes frontend caches (01d736c)
- gradle-plugin: svelteDoctor checks adapter output, bundled mani… (9ff4bbe)
- gradle-plugin: svelteDoctor checks adapter output, bundled manifest and Node (b183f8a)
- server: add local-only status endpoint (193b4b4)
- server: add paramRoutes to serve the fallback for SvelteKit par… (0b5f298)
- server: add paramRoutes to serve the fallback for SvelteKit param routes (a28fd55)
- server: forward POST, PUT, PATCH and DELETE through the dev proxy (7dd6a14)
- server: generate async generator helpers for event stream routes (b5ccb07)
- server: generate TypeScript enums as const objects (7e99038)
0.3.1
0.3.0
Features
0.2.0
Features
- add frontend libraries, a project installer and README badges (e71092e)
- example: use all frontend libraries in the notes app (bdc25c3)
- gradle-plugin: configure Tailwind, DaisyUI, Lucide and i18n from Gradle (9d74b1d)
- repo: add a one-command installer that creates a new project (f4ed7f1)
- server: add svelteLocale, svelteTheme and locale prefix redirects (9d74b1d)
Bug Fixes
0.1.0
Features
- example: add basic app with an end-to-end JAR test (f288e9f)
- example: add notes app with generated client, CRUD and transport (bf86c94)
- gradle-plugin: add frontend utility tasks and IntelliJ run configurations (0d06077)
- gradle-plugin: add svelteDevAll to run everything with one command (72aba11)
- gradle-plugin: add svelteInit and svelteDoctor (4be8402)
- gradle-plugin: build the frontend and package it into the JAR (caf5449)
- gradle-plugin: set up a short #api import for the generated client (d642214)
- server: add API docs, security headers, runtime config and protected routes (4b88d97)
- server: add typed API errors and form validation (9fe0b1e)
- server: configure JSON, XML and compression inside install(Svelte) (03b1705)
- server: define validation rules on request classes with Validated (38f2029)
- server: generate TypeScript types and services from Ktor routes (03b1705)
- server: proxy frontend requests to Vite in development mode (27621b3)
- server: serve SvelteKit builds through a Ktor plugin (0e65aed)
- validate on request classes, add #api import, fix release blockers (dbf8dcf)
Bug Fixes
- gradle-plugin: keep hidden files and source maps out of the JAR (e804d8e)
- server: exit cleanly after generating TypeScript with svelteGenerateTs (594c63b)
- server: restrict the dev proxy to this machine and protect private pages (625f004)
Build System
- repo: make the first release 0.1.0 (c5d1b52)