Flint Dart Changelog
A version-by-version history of features, fixes, and behavior changes across the Flint ecosystem.
v1.5.8
Latest2026-11-16
Fixed & Improved
- SSR Hydration Single Root & DOM De-duplication:
- Fixed an issue where enabling Server-Side Rendering (
serverRenderFlintPages: true) with scoped styles emitted multiple top-level nodes into<main id="app">, causing browser hydration (FlintRoot._paint()) to replace only the first child (<style>) and leave the server-rendered DOM untouched, resulting in duplicated page content on screen. - Wrapped server-rendered scoped styles and component markup in a transparent
<div id="flint-ssr-root" style="display: contents;">container insideFlintServerRenderer.render(...)so the host element always contains exactly one top-level child element. - Updated
FlintRoot.paint()inbrowserrenderer.dartto automatically clean up and remove all sibling nodes from the host container during hydration.
v1.5.7
2026-11-11
Added & Improved
- Cross-Platform Production Compilation & Push (
flint build --linux --push): - Added support for compiling Linux AOT production binaries directly from developer machines (Windows, macOS, Linux) without compiling on memory-constrained VPS instances.
- Added
--pushflag to commit and push the isolated production build directly to thebuildbranch on git remote (or custom branch via--push-branch). - Added
--skip-weband--rebuild-webflags to control client-side bundle compilation. - Automatic
debian:bookworm-slimminimal Dockerfile generation for high-performance containerized deployments. - Generates cross-platform
start.shentrypoint scripts and sets proper execution permissions. - Cleans temporary and local
.gitignorerules insidebuild/before staging withgit add -A --force ., ensuring compiled assets (public/assets/js/flint-ui/,public/assets/css/flint-ui/, etc.) are never skipped. - Page-by-Page Web UI Compilation by Default:
- Defaulted
WebUIBuildercompilation tocompilePageBundles(), splitting web UI code into lazy-loaded, route-level bundles (manifest.jsonandpages/*.dart.js). - Added smart bundle caching: reuses existing pre-built page bundles when source files are unmodified, drastically cutting down rebuild times.
- Guaranteed automatic
manifest.jsongeneration for single-bundle applications via_writeSingleBundleManifest(), preventing runtime manifest 404s. - Automatic Swagger UI Asset Bundling & Resolution:
- Automatically copies Swagger UI assets and
swagger.jsonspecs intobuild/public/swagger-uiandbuild/docs. - Added
public/swagger-uitoFlint.resolveSwaggerUiDir()candidates and setENV FLINTSWAGGERUIDIR=/app/public/swagger-uiin generated Dockerfiles. - Optimized Asset Precompression & Caching:
- Cached Gzip availability and optimized Brotli detection to accelerate static asset precompression during builds.
v1.5.6
2026-11-06
Fixed & Improved
- MySQL 8+
cachingsha2passwordSupport (allowPublicKeyRetrieval): - Added
allowPublicKeyRetrieval: trueby default toMySqlConnectionWrapper.connect(...)andMySQLConnection.createConnection(...). - Fixes
MySQLClientException: Auth plugin cachingsha2password requires TLS, a pinned serverPublicKey, or allowPublicKeyRetrieval: truewhen connecting to MySQL 8+ instances over standard TCP without TLS. - Exposed
allowPublicKeyRetrievalacrossDB.connectNamed(...),DB.connect(...), andDB.autoConnect(...)with configurable.envflagDBALLOWPUBLICKEYRETRIEVAL.
v1.5.5
2026-11-06
Added & Improved
- Multi-Database Connection Pooling & Tenant Registry (
DB.connectNamed(...)): - Added
DB.connectNamed(name, ...)andDB.connection(name)to register, cache, and pool active database connections by name or tenant identifier. - Automatically reuses established connections across requests without destroying or recreating TCP sockets and TLS handshakes on every HTTP cycle.
- Added
DB.closeNamed(name)andDB.closeAll()for clean connection lifecycle management and graceful shutdowns. - Asynchronous Zone Database Scoping (
DB.scope(...)): - Added
DB.scope(connection, () => action())powered by DartZoneexecution context (#flintactivedb). - Seamlessly routes all static database helpers (
DB.query,DB.execute,DB.instance,DB.driver,DB.tableExists,DB.columnExists,DB.transaction),QueryBuilder, and FlintModeloperations to the scoped database connection without mutating global state. - Enables multiple concurrent requests targeting different tenant databases to execute in parallel without sequential queue bottlenecks or connection stomping.
- Passive Database Auto-Connect Resilience (
autoConnectDb: false): - When
autoConnectDb: falseis configured onFlint(), requests using a scoped connection (DB.scope) execute seamlessly without throwing eagerDatabase is not connectedexceptions. - First-Class Context Database Property (
ctx.db): - Added
ctx.dbgetter toContext, allowing middleware, controllers, and services to directly access the request's scoped database wrapper (with fallback to default active connection), alongsidectx.aiandctx.cache. - Database Wrapper Driver & ID Helpers:
- Added
driverandgetLastInsertId(...)toDBWrapper,MySqlConnectionWrapper, andPgConnectionWrapper. - Direct Mail Instance Connection (
Mail().connect(...)): - Added
mail.connect(...)to bind an individualMailinstance directly to a specified SMTP provider, host, port, credentials, and sender address on demand before sending. - Bypasses global static
Mail.setup(...)and strictly disables automatic fallback/reconfiguration from.env(_retryAfterReconfigure()), guaranteeing that multi-tenant and multi-mailbox applications never send emails from the fallback environment credentials when an explicit account is specified. - Custom SMTP TLS & Certificate Verification Resilience:
- Added
allowInsecure: trueandignoreBadCertificate: truesupport toSmtpFactory.createandMail.connect(...), preventing custom mail servers (e.g. self-signed or private SMTP domains) from failing SSL/TLS handshakes. - Interactive Terminal Clipboard Integration (Copy & Paste):
- Added dedicated Paste button to
Terminaltoolbar with clipboard read and secure prompt fallback. - Added
paste([String? text])andpasteFromClipboard()toTerminalandTerminalController. - Added custom key event handling (
attachCustomKeyEventHandler) supportingCtrl+C/Cmd+C/Ctrl+Shift+Ccopying when text is selected (preventing destructive SIGINT\x03), andCtrl+V/Cmd+V/Ctrl+Shift+Vpasting. - Added DOM
pasteandcopyevent listeners on the terminal viewport.
v1.5.4
2026-11-04
Added & Improved
- Built-in 6,000+ HugeIcons in
Icons(package:flint_dart/ui.dart): - Upgraded
Iconsinpackage:flint_dart/ui.dartto include all 6,046+ HugeIcons stroke-rounded icons as tree-shakeableconst IconDatadefinitions, plus all standard Flint UI icon aliases (Icons.moreVertical,Icons.stop,Icons.play,Icons.refresh,Icons.pause,Icons.power,Icons.externalLink, etc.).
v1.5.3
2026-10-28
Added & Improved
- Native Multi-Flavor Application Support:
- Added enterprise-grade native multi-flavor architecture across Flint Dart (
Flint(flavor: ...),Flint(args: args), andFlintEnv.flavor). - Added automatic environment resolution for
.env.<flavor>with seamless fallback to base.env. - Added CLI flag support:
--flavor=<name>forwarded seamlessly throughflint run,hot_reload, and server commands. - Added
FlavoredPageRegistryand multi-flavor Web UI bundling with flavor-aware manifest resolution and favicon auto-detection. - Resilient Migrations & Safe Column Handling:
- Added protection against accidental column dropping during migrations unless explicitly enabled via
FLINTMIGRATIONDROP_COLUMNS=true. - Environment Parser Enhancements:
- Fixed
.envparsing when values contain quotes with internal#hash symbols.
v1.5.2
2026-10-27
Fixed & Improved
- Button Hover Ergonomics & Developer Style Precedence:
- Completely eliminated unwanted automatic blue hover styles injected onto
Button,IconButton, andLinkat the framework level. - Previously,
buttonComponentStyleinjected a defaulthover: buttonHoverStyle(variant, tone)(#004eeb !important), causing buttons with custom backgrounds (e.g. green, black, white, or brand themes) to flash or switch to bright blue on hover and blocking external CSS:hoverrules. - The framework no longer applies any default
:hoverpseudo-class styles unless explicitly specified by the developer. - Enhanced
DartStyle.mergeto recursively merge state styles (hover,focus,focusVisible,active,disabled, etc.), ensuring developer-specified hover styles (dartStyle: DartStyle(hover: DartStyle(...))) merge cleanly and work directly with their custom styling.
v1.5.1+2
2026-10-27
Added
- Default Generic Typed Props on
StatefulComponent<TProps>&StatelessComponent<TProps>: - Upgraded
StatefulComponent<TProps>andStatelessComponent<TProps>to support optional strongly-typedTPropsgenerics natively (class MyPage extends StatefulComponent<MyPageProps>andclass MyView extends StatelessComponent<MyViewProps>), eliminating the need to import or extend separateTypedStatefulComponent/TypedStatelessComponentclasses. - Added optional positional
[TProps? props]constructor parameter andTProps get props/set props(covariant TProps value)onStatefulComponent<TProps>(plusTProps get propsonStatelessComponent<TProps>), automatically syncing_propsacrossupdateFrom(...)when component instances are preserved. - Fully backwards-compatible with unparameterized components (
class Counter extends StatefulComponentandclass Header extends StatelessComponent), whereTPropsdefaults todynamicand no constructor arguments are required. - Kept
TypedStatefulComponent<TProps>andTypedStatelessComponent<TProps>as zero-costtypedefaliases toStatefulComponent<TProps>andStatelessComponent<TProps>so existing codebases continue to compile without changes. - Updated
flint --make-page <Name>CLI generator to scaffoldclass <Name>Page extends StatefulComponent<<Name>PageProps>by default.
v1.5.1+1
2026-10-27
Added
- Zero-Config Live Mail Preview (
ViewMailable.previewData&/mail/preview): - Added
Map<String, dynamic> get previewDataandresolvePreviewData()toViewMailableso mailables can define mock template variables for browser design previews while keepingrequiredconstructor fields strictly typed for production email delivery. - Added built-in development routes (
GET /mail/previewandGET /mail/preview/:name) viaMailPreviewRegistryandFlint(enableMailPreview: ...), automatically discovering.flint.htmltemplates inlib/mail/views/andViewMailableclasses inlib/mail/. - Added
MailRegistryandapp.previewMail(...)for explicit mailable preview registration. - Updated
Response.renderEmail(mailable, includePreview: true)to resolvepreviewDataautomatically. - Automatically disables
/mail/previewroutes in production (APPENV=production/FLINTMAIL_PREVIEW=false) and ignores external query parameter injection to prevent reflected XSS or phishing link manipulation. - Updated
flint --make-mail <name>CLI scaffold to generatepreviewDataout of the box and print the live preview URL. - Enhanced
Routermatching to prioritize exact static routes over parameterized routes (:param) regardless of registration order.
- Smart Section & Sub-Component Incremental Build Resolution:
- Enhanced
hot_reload.dartandflint web --watchwith smart 3-tier page resolution for changed files. - Automatically matches sub-component/section files (e.g.
loginsection.dart,registersection.dart,resetpasswordsection.dart) directly to their parent page (LoginPage,RegisterPage,ResetPasswordPage) via suffix-stripping heuristics and direct page import inspection. - Prevents the watcher from falling back to full project rebuilds (
Rebuilding all pages...) on saving form sections or UI sub-components, rebuilding only that specific page bundle in seconds instead of recompiling all pages.
- Framework-Wide Elimination of Default Blue Focus Rings & Concentric Outlines:
- Completely removed the hardcoded 3px outer blue
shadowspread from defaultinputComponentStyleintheme.dart. - Added first-class
outlineproperty toDartStyle(outline: 'none'). - Configured
focusandfocusVisibleininputComponentStyleto useoutline: 'none'andshadow: Shadow.none, preventing concentric double borders and allowing developerinputDartStyleto fully control focus styling without interference. - Added
defaultStyle: const {'outline': 'none'}toTextField,TextArea,Select, andCodeEditor.
- Flutter-Style
validatoronTextField&FormController: - Added Flutter-style
String? Function(String? value)? validatorparameter toTextField. - Added
AutovalidateModeenum (disabled,always,onUserInteraction) with defaultonUserInteraction. - Added dynamic DOM-level validation in the browser (
onBlurand subsequentonInput) that setsaria-invalid, displays the error message<p id="{id}-error">, and applies invalid border styling without triggering parent componentsetState()re-renders. - Added
validatorproperty andvalidate()method toTextEditingController. - Added
FormController.validate()to run all registered field validators, updateFormErrors, and automatically gateFormController.submit()from sending requests with invalid data.
- TextField Prefix, Suffix & Password Visibility Toggle:
- Added
prefix(leading icon/widget) andsuffix(trailing/end icon/widget) support toTextField. - Added
onPrefixTap,onSuffixTap,prefixDartStyle, andsuffixDartStylefor full interactive control over input adornments. - Added
togglePassword: trueoption fortype: 'password'inputs with customizablepasswordShowIconandpasswordHideIcon(supporting customFlintNodewidgets, SVGs,Icon, or text in addition to the default ποΈ / π), toggling visibility directly in the DOM without forcing parent component re-renders. - Automatically adjusts inner
<input>padding (paddingLeft: 38px,paddingRight: 38px) when prefix or suffix elements are present so text never overlaps icons.
- Universal Development Server (
flint run): - Unified the development runner so
flint runseamlessly orchestrates both backend server hot reload and the high-speed Web UI builder. - Automatically runs the parallel
compileDefaultsuite on initial boot if Web UI sources are present, compiling all page bundles across CPU cores in the background while starting the server. - Integrated smart single-page incremental compilation into the watcher (
_compileChangedUiSource), matching edited files via component registry targets and filename stems, so saving an individual page bundle recompiles ONLY that bundle in seconds without restarting the backend or compiling unaffected pages.
- Incremental
--watchMode for Web UI (flint web --watch): - Added
--watchflag toflint webcommand that listens to recursive file events inlib/ui/. - Automatically correlates changed files with page targets in the component registry and triggers incremental single-page rebuilds (
onlyPage) with 300ms save debouncing, rebuilding individual page bundles in seconds instead of re-compiling the entire UI bundle suite.
Performance & Build Ergonomics
- Concurrent Page Bundle Compilation (
Future.wait): - Extracted single-page compilation into
_compileOnePageand refactoredFlintWebUiBuilder.compilePageBundlesto build all requested page targets in parallel usingFuture.wait(...). Multi-page projects compile across all available CPU cores instead of running sequentially in a blocking loop, drastically cutting build duration. - Concurrent Asset Family Compression:
- Updated
compressAssetFamilyto execute Gzip and Brotli compression across.js,.js.map, and.js.depsconcurrently viaFuture.wait(files.map(compressAssetIfUseful)). - Single-Pass Read for JS Hashing and Source Map Rewriting:
- Optimized
_hashDartJsAssetFamilyto read output JS files into memory once viareadAsBytesSync(), computing the SHA-256 hash and decoding the buffer in-memory viautf8.decode(bytes), eliminating redundant disk reads on 1β3 MB bundles. - Intelligent Root Design CSS Re-Extraction Caching:
- Added
_latestMtimeInDirto compare target CSS timestamp against all.dartand.yamlfiles in the UI directory. If styling files have not changed, the cold Dart VM subprocess invocation is skipped during production builds. - Instant Service Worker Prefetching:
- Removed the hardcoded 12-second
setTimeoutdelay in the generatedflint-sw.jstemplate so asset prefetching starts immediately upon receipt ofFLINT_PREFETCH, preventing cache misses when users navigate between pages.
Runtime UI & DOM Optimizations
- Preserved DOM Tree Hydration on Root Rerender (
replaceChild): - Replaced the aggressive
host.textContent = ''full-DOM wipe inFlintRoot._paint()withhost.replaceChild(nextDom, firstChild)(orhost.appendChildwhen unmounted). Prevents destruction of browser-managed state (scroll offsets, active selections, input composition) across sibling subtrees during root-level state updates. - $O(1)$ Scoped Style Deduplication:
- Replaced repetitive
document.querySelector('style[data-flint-style-id="..."]')DOM attribute queries on every component render with an in-memorySet<String>inFlintRoot, completely eliminating DOM query overhead during layout and component rendering. - Optimized Focus Restoration:
- Refactored
ActiveControl.restore()to return a boolean indicating success.restoreActiveControlnow executes synchronous restoration and only defers to a microtask if immediate restore could not be satisfied, eliminating 3x redundant layout thrashing per render cycle. - Immutable
StyleSheet.cssTextMemoization: - Cached compiled CSS rule strings per instance using Dart's
Expando<String>, computing CSS text at most once per stylesheet while retainingconst StyleSheetconstructor support.
v1.5.0
2026-10-25
Added
- SSR Universal Lifecycle Guardrails (
initProps()&initState()): - Added universal
initProps()andinitState()lifecycle hooks toComponent,StatefulComponent,TypedStatefulComponent, andTypedStatelessComponentthat run synchronously prior tobuild()in both server-side rendering (SSR) and client browser hydration. - Added
ensureInitialized()lifecycle enforcement contract to guarantee initialization executes exactly once per component render cycle across both server and client renderers. - Added
isServerandisBrowserenvironment getters toComponentandStatefulComponentso components can conditionally branch without checking platform strings or importing conditional dart libraries. - Added diagnostic SSR exception handling in
server_renderer.dartthat interceptsLateInitializationErrorthrown during serverbuild()and displays an actionable error banner identifying the component, explaining that client-only lifecycle hooks likedidMount()do not execute during SSR, and instructing developers to initialize props ininitProps()or constructor fields instead. - Updated client
browser_renderer.dartto triggerinitProps()during component reconciliation when props change across page navigation.
- Type-Safe Props & Route Parameters (
FlintProps&FlintPageRoute): - Added strongly-typed
FlintPropsinterface with requiredMap<String, dynamic> toJson()for compile-time verified page and widget properties across the server-to-client boundary. - Added
TypedStatefulComponent<TProps extends FlintProps>andTypedStatelessComponent<TProps extends FlintProps>base classes providing a strongly-typedpropsgetter. - Added
FlintPageRoute<TProps>andPageRegistry.registerTyped<TProps>(),registerRoute(), andregisterRoutes()to define type-safe route descriptors linking URL paths, component builders, and prop deserializers (fromJson). - Added
res.pageRoute<TProps>(route, props)onResponseand updatedres.page(...)to accept both strongly-typedFlintPropsand backward-compatibleMap<String, dynamic>maps. - Added typed request parameter extraction methods on
Request:req.paramTyped<T>(name),req.requireParam<T>(name),req.paramInt(name),req.paramBool(name),req.queryParamTyped<T>(name), andreq.queryList(name).
- Direct ORM Query Ergonomics & Fluent
schema()Builder: - Folded all query builder methods (
where,whereIn,orderBy,paginate,count,first,find,exists,pluck,cursorPaginate, etc.) directly intoModel<T>, eliminating the requirement to importpackage:flintdart/modelquery.dart. - Folded all model persistence and CRUD methods (
create,update,upsert,delete,save,restore,forceDelete) directly intoModel<T>, eliminating the requirement to importpackage:flintdart/modelcrud.dart. - Preserved
modelquery.dartandmodelcrud.dartas backward-compatible empty extensions with deprecation annotations so existing code continues to compile without breaking changes. - Added fluent
void schema()builder hook onModel<T>with column helpers (string,text,textCol,integer,boolean,datetime,timestamp,jsonCol,jsonField,float,mediumText,longText,enumeration,column) that automatically populates the model'sTabledefinition at runtime without code generation (build_runner), manual array management, or boilerplate field descriptors. - Added automatic
tableandprimaryKeyderivation onModel<T>whentableNameandschema()are provided, eliminating the need to constructTable(...)manually. - Added automatic table deduplication in
GlobalTableRegistry(TableRegistry.uniqueTables) andMigrationEngineto prevent duplicate migrations or repeatedALTER TABLEqueries when the same table schema is registered more than once. - Updated CLI code generators (
make:model,make:page) to generate the fluentschema(),TypedStatefulComponent, andinitPropsby default.
Problems Addressed
- SSR LateInitializationError on Unmounted Client Fields:
- Problem: In Flint Dart SSR (
res.page),build()executes on the server to generate HTML, butdidMount()is strictly browser-only and runs after client hydration. Developers who initializedlatevariables insidedidMount()experienced suddenLateInitializationErrorcrashes during SSR. The original crash trace offered no hint that the issue was caused by server vs client lifecycle timing. - Resolution: Universal
initProps()andinitState()run synchronously beforebuild()on both server and client. If an uninitializedlatefield is still accessed during SSRbuild(),server_renderer.dartcatches theLateInitializationErrorand outputs an actionable diagnostic message pinpointing the component and demonstrating theinitProps()fix.
- Runtime Typing Footguns Across Server/Client Boundary:
- Problem: Passing page props via untyped
Map<String, dynamic>maps and parsing route parameters viareq.param('id')was prone to silent typos, missing keys, and invalid runtime casts with zero compile-time feedback between server controllers and UI pages. - Resolution:
FlintProps,TypedStatefulComponent<TProps>,FlintPageRoute<TProps>, andreq.paramTyped<T>()enforce end-to-end compile-time type safety across route handlers, controller serialization, and browser components.
- Fragmented ORM Imports & Duplicate Migration Passes:
- Problem: Using query builder (
where,first,paginate) or CRUD methods onModelrequired separate extension imports (modelquery.dart,modelcrud.dart), causing confusing missing method errors for developers. Additionally, registering multiple model instances or duplicate table references inTableRegistrycaused duplicate migrations or SQL errors during table alters. - Resolution: Query builder and CRUD methods are now directly part of
Model<T>.TableRegistry.uniqueTablesautomatically deduplicates registered tables by table name and logs a diagnostic warning.
- Model Schema Boilerplate & Code-Gen Independence:
- Problem: Defining database models previously required high ceremony: either repeating every column across verbose descriptors, or hand-constructing manual
Table(name: ..., columns: [...])definitions. Other ecosystems solve this with heavy code generators (likebuild_runner), but code generation slows down compilation, breaks transparency, creates confusing.g.dartartifacts, and prevents developers from seeing what is actually happening behind the scenes. - Resolution: Introduced the fluent
void schema()builder hook directly onModel<T>(string(),text(),textCol(),integer(),boolean(),datetime(),timestamp(),jsonCol(),float(),mediumText(),longText(),enumeration()). Models simply declare their columns in a clean, declarative block. The table definition and primary keys are auto-constructed in pure Dart at runtime with zero code generation. Safe aliases likejsonCol()andtextCol()ensure no collisions with model getters likeget json.
v1.4.2
2026-10-08
Fixed
- Persist included
nullvalues in modelsave()andupdate()so nullable columns can be cleared; omitted attributes remain unchanged. - Preserve native MySQL
DateTimeparameters on model updates to avoid timezone shifts when saving and reloading renewal dates.
v1.4.1
2026-09-28
Added
- Added
RedisCacheStorefor Redis-backed application caching with TTL, prefix-scoped cleanup, URL/auth support, and database selection. - Added opt-in
Flint(autoConnectRedis: true)startup usingREDIS_URLor explicitapp.connectRedis(...)host, port, TLS, credential, and database settings. - Added an app-owned cache service available as
app.cache,ctx.cache, andController.cache, with automatic memory, file, or Redis selection throughCACHE_DRIVERand typedCacheDriverconstructor options. - Added
QueueJoband theQueueJobContextalias as the preferred public API for durable background jobs. - Exported
UploadedFileandStoragefrom the main framework entrypoint so uploaded files can be handled without an additional storage import. - Added label styling overrides (
labelStyleandlabelDartStyle) toTextField,TextArea,Select, andCodeEditor. - Added Canvas editor commands for select all, duplicate, keyboard undo/redo, and redo through Ctrl/Cmd+Y or Ctrl/Cmd+Shift+Z.
- Added built-in UI icons for bold, circle, close, image, layout, loader, redo, smartphone, square, TV, type, undo, unlock, and video actions.
- Added comprehensive framework-authored AI agent documentation and made
flint agentcopy the package's complete Markdown documentation set into an application, with--forceoverwrite support.
Changed
- Improved Canvas interaction on responsive displays with CSS-to-canvas pointer coordinate scaling, intersection-based marquee selection, font-aware text bounds and hit testing, retained size constraints, and selection/change notifications after undo and redo.
- Updated controller, resource, route, and middleware generators to emit request-scoped
Controllersubclasses,Contextmiddleware, typedapp.controller(...)routes, relative imports, and fuller OpenAPI comments. - Updated request logging to report sanitized method, path, status, duration, and client IP metadata without logging cookies or authentication state.
- Updated the example app to use
SeederRegistry, remove a redundant storage import, and let HTTP-only auth middleware continue WebSocket requests. - Expanded generated project guidance for Flint UI, AI, storage, jobs, templates, testing, deployment, logging, and security workflows.
Deprecated
- Deprecated
FlintJobin favor ofQueueJob; existingFlintJobimplementations remain supported. - Deprecated the misspelled
ForbiddenErorralias in favor ofForbiddenError. - Deprecated
make:CLI aliases in favor of--make-; the old aliases are scheduled for removal in1.5.0and now print a warning. - Deprecated the
deploy-globeand--deploy-globeCLI commands; they remain available for compatibility and are scheduled for removal in1.5.0.
Fixed
- Corrected
AuthException,Unauthenticated,ForbiddenException, andNotFoundExceptiondefaults and made exception middleware preserve framework HTTP status codes andHttpExceptionresponse data. - Fixed browser renderer control restoration for input and textarea elements after component rerenders.
- Fixed Canvas text selection bounds, responsive pointer targeting, keyboard shortcuts, and initial controller attachment behavior.
- Fixed generated middleware so WebSocket contexts without an HTTP response continue through the middleware pipeline.
Security
- Hardened public file storage by sanitizing uploaded filenames and rejecting absolute paths and
./..traversal segments during create, update, and delete operations. - Removed cookies and authentication-state values from default request logs.
v1.4.0
2026-09-08
Added
- Interactive
TerminalComponent: Added a lifecycle-managed xterm.js terminal with duplex WebSocket input/output, ANSI rendering, automatic reconnect, responsive resize envelopes, controller commands, connection status, copy, clear, and light/dark themes. CodeEditorForm Component: Added a reusable, theme-aware plain-text editor with synchronized line numbers, controller support, validation messages, and keystroke handling that does not rebuild its parent.- Native Document Canvas Engine: Added full-fidelity, in-browser document viewers under
package:flint_dart/ui.dart: DocxViewer: Client-side Microsoft Word (.docx) canvas renderer preserving vector drawings, shapes, tables, charts, typography, headers, footers, and page margins.PdfViewer: Multi-pagePDF.jscanvas studio with 2x Retina scaling, authentic paper elevation, drop shadows, and responsive page containers.- Non-web stubs (
docxviewerstub.dart,pdfviewerstub.dart,docviewerstub.dart) ensuring seamless SSR and non-web compilation. DocViewerController&DocTocItem:- Programmatic navigation:
jumpToPage(),nextPage(),prevPage(),currentPage,totalPages. - Smooth zoom controls:
setZoom(),zoomIn(),zoomOut(),resetZoom(). - Full-text in-document search:
search(),nextMatch(),prevMatch(), match counter, and real-time in-DOM<mark>highlighting with smooth centering auto-scroll. - Automatic Table of Contents / Outline extraction from Word headings (
H1,H2,H3) and PDF bookmarks with interactive sidebar navigation. DocViewerToolbar& Document Reading Modes:- Interactive sticky/floating topbar with page navigation, zoom display, live search box, and Table of Contents drawer.
- Tri-Mode Document Reading Engine:
- βοΈ Paper Mode: Authentic white paper with natural document styling.
- π Dark Canvas Mode: High-contrast slate background with light typography and clear table borders for comfortable night reading.
- π Sepia Mode: Warm book paper for reduced eye strain.
IframeNative Primitive:- First-class typed
Iframecomponent underpackage:flint_dart/ui.dart.
Fixed
- Template Hot Reload for Custom View Locations: Fixed logical template resolution during hot-reload to support templates located outside
lib/views(such aslib/mail/views). DocViewerToolbarWeb Compilation: Fixed event handlers inDocViewerToolbarfor cleandart2jscompilation without JS-interop typing conflicts.IconButtonIconData Support: FixedIconButtonto natively acceptIconData(e.g.Icons.minus,Icons.chevronLeft) alongsideIconwidgets without stringification (Instance of 'IconData') artifacts.- DOCX Virtual DOM Persistence: Fixed DOM re-render wipe in
DocxViewerandPdfViewerby decoupling the mount target from component re-renders. - Form Help Text Sizing: Fixed form help text sizing across inputs.
- CLI Dependency Constraint: Fixed invalid version constraint for
watcherinpubspec.yaml(watcher: ^1.1.0) which caused package resolution failure during CLI invocation. - CLI Output Visibility: Ensured
Log.minLeveldefaults toLogLevel.debugfor CLI commands (migrate,seed,version,build, etc.) so command progress and database migrations output clearly to the console.
v1.3.3
2026-08-24
Fixed
- Controlled Select State: Applied the selected value directly to
<select>controls after their<option>elements mount, and kept the value synchronized after state-driven rerenders. - Typed Select Values: Compared option and selected values by their DOM string representation so numeric and string-backed values select consistently.
- Model Creation Hydration: Hydrated the model instance that calls
create()with the inserted database row, including generated IDs and converted attribute types, while preserving the populated returned model. - Example Static Analysis: Awaited the example user update response inside its
tryblock so strict Linux CI analysis remains clean.
v1.3.2
2026-08-22
Fixed
- Static Analysis & Pana Score: Fixed unawaited
Futurereturns insidetryblocks ingetTableSchema(dialect.dart) and JSON sanitization (response.dart) for 100% static analysis score (50/50). - Documentation Reference: Resolved unresolved doc reference in
Response.viewdoc comment. - Codebase Formatting: Formatted all source files with
dart format.
v1.3.1
2026-08-22
Fixed
- Static Analysis & Pana Score: Resolved all unawaited Future returns across
portutils.dartandflintdatabase_api.dartfor 100% clean static analysis. - Unified Database Protocol: Re-exported unified database protocol classes (
FlintDbQuery,FlintDbFilter,FlintDbResourceSchema, etc.) fromflintclientacrossdbapi.dartanddb.dartto prevent ambiguous type collisions. - Dependency Compatibility: Upgraded
flint_clientdependency constraint to support latest stable releases (>=0.1.0 <1.0.0). - Code Health: Modernized constructors with super parameters and initializing formals across UI primitives and style modules.
v1.3.0
2026-08-22
Added
- Fullstack Web UI Engine: Merged Flint UI natively into
flintdartunderpackage:flintdart/ui.dart, giving developers declarative HTML/DOM components, Flutter-like widgets, 2D Canvas, 3D WebGL scenes, and reactive state signals with zero external packages. - First-Class SEO & Server-Side Rendering (SSR): Instant HTML generation, meta tags, and OpenGraph crawlers with client-side hydration.
- Secure Database API Gateway: Built-in Row-Level Security (
FlintDbPolicy), Resource Registries (FlintDbResource), and Query Compilers underpackage:flintdart/dbapi.dart. - Database Wire Protocol: Integrated database query ASTs, mutations, results, and schema models directly into
flint_dart.
Changed
- Promoted
flint_dartas the First Official Full-Stack, Declarative, SEO-First Dart Web Framework. - Modernized CLI templates (
make:page,make:ui,build) to emitpackage:flint_dart/ui.dart. - Removed external
flint_uidependency constraint in favor of native built-in UI engine.
v1.2.3
2026-08-17
Changed
- Confirmed Flint UI compatibility range includes the latest
0.1.16release so new Flint projects can use the newest UI widgets and browser rendering improvements as pub.dev propagation completes.
Added
- Documented compatibility with Flint UI
0.1.16, including date pickers, responsive grid helpers, animation widgets, typed CSS units, Three.js scene support, multi-series charts, and safer input focus preservation.
v1.2.2
2026-07-20
Changed
- Logged the server-ready message at info level so
flint runclearly shows when the HTTP server is listening.
v1.2.1
2026-07-20
Added
- Added Flint native jobs core, scheduler support, jobs registry contracts, and worker runtime commands.
- Added app table and seeder registry contracts for framework-level bootstrapping.
- Added Dart-style fullstack CLI aliases for jobs and seeders.
Fixed
- Parsed aggregate query results returned as strings so database drivers can safely return values like
"4.0". - Fixed Flint UI build CSS extraction exit behavior.
Changed
- Updated Flint UI dependency to
flint_ui: ^0.1.15. - Updated Flint Client dependency to
flint_client: ^0.0.6.
v1.2.0
2026-07-13
Added
- Added first-class HTTP
QUERYroute registration withapp.query(...)and controller route builder support. - Added QUERY support to route matching, middleware, automatic OPTIONS/Allow responses, CORS defaults, cache middleware, route discovery, and generated Swagger vendor extensions.
- Preserved explicit
nullvalues in ORM update data maps so apps can intentionally clear nullable columns.
Changed
- Updated Flint UI dependency to
flint_ui: ^0.1.14. - Updated Flint Client dependency to
flint_client: ^0.0.5. - Made ORM
where(...).orWhere(...)chains compile in chain order, soorWherenow combines with the previous condition usingORinstead of being grouped behind anAND.
Added
- Added response cache helpers:
cachePublic,cachePrivate,revalidate,noStore,etag,lastModified, andheader. - Added
CacheMiddlewarefor route-level browser/CDN cache headers andETagMiddlewarefor simple conditional GET handling.
v1.1.19
2026-07-08
Changed
- Made page-bundle production builds write
manifest.jsonprogressively after each successful page compile, so interrupted large builds keep a valid manifest and can fall back to the global bundle for unfinished pages.
v1.1.18
2026-07-08
Changed
- Restored page-level Flint UI bundles as the default for
flint weband productionflint buildweb asset generation. - Kept the shared runtime available through
flint web --shared-runtimefor projects that prefer one deferred runtime bundle. - Made static asset caching production-aware: fingerprinted or query-versioned assets now use one-year immutable caching, while HTML,
manifest.json, and service workers revalidate on every request.
v1.1.17
2026-07-08
Changed
- Changed
flint web --build-onlyand defaultflint webproduction-style builds to use the shared runtime bundle by default instead of compiling every registered page one by one. - Kept page-level bundle compilation available through
--page-bundlesand single-page compilation through--page <name>. - Updated
flint web --helpto make shared runtime the documented default and page bundles opt-in.
v1.1.16
2026-07-08
Added
- Added
relationQuery()so model relation metadata can be reused as the starting point for constrained relation queries. - Added
countRelation()andhasRelated()for common relation count and existence checks. - Added
relationCounts()for grouped counts from the same relation, useful for dashboards, sidebars, and product ownership checks. - Added
loadRelationCount()to store a related record count directly on a model attribute. - Added ORM pagination metadata helpers for page/per-page list responses.
Changed
- Updated the Flint UI dependency to
flint_ui: ^0.1.13for media/device APIs, server-safe media stubs, and canvas editor primitives.
v1.1.15
2026-07-06
Added
- Added framework-level startup migrations through
Flint(autoMigrate: true)and theFLINTAUTOMIGRATEenvironment flag. - Added public
FlintMigrations.ensure()helpers for apps that want explicit deployment-time migration control. - Added dev-only on-demand Flint UI page bundle builds when a requested page bundle is missing during hot reload.
- Added automatic page registry discovery for
lib/ui/registry.dartandlib/ui/pageregistry.dartin addition tolib/ui/componentregistry.dart.
Changed
- Updated the Flint UI dependency to
flint_ui: ^0.1.12for built-in light/dark theme provider support, global theme state, and theme-scoped styles. - Quieted default hot-reload startup logging so watcher paths, debounce details, endpoint URLs, and duplicate restart messages are only shown when verbose hot reload logging is enabled.
- Made the Dart VM service for hot reload opt-in through
FLINTDEBUGVM_SERVICE=trueinstead of enabling it by default. - Quieted Flint UI build output so normal builds show a single
Building Flint UI...message and save-triggered hot reload showsRebuilding Flint UI...; detailed asset/compiler logs are now opt-in withFLINTWEBUI_VERBOSE=true. - Added completion messages after successful Flint UI builds and rebuilds.
- Serialized save-triggered Flint UI rebuilds so repeated file events queue one follow-up rebuild instead of launching overlapping compilers.
- Changed the default console log level to
infowhile keeping Flint UI build/rebuild start and completion messages visible. - Changed hot reload startup to silently compile only the main Flint UI bundle after the server starts; page bundles are rebuilt on page/source saves or by
flint web --build-only. - Changed save-triggered Flint UI rebuilds to rebuild only the directly changed page bundle when the changed source maps to a page registry entry.
v1.1.14
2026-06-24
Added
- Added
flint_ai: ^0.1.0as the first-party AI runtime dependency for Flint Dart applications. - Added
package:flintdart/ai.dartas the public AI entrypoint, re-exporting the standaloneflintairuntime plus Flint-specific adapters. - Added
app.aionFlintso every app has a shared AI runtime instance. - Added
ctx.aion requestContextso controllers and route handlers can run agents, chat providers, workflows, tools, memory, and repository operations from the current request. - Added Flint-backed AI memory and repository adapters:
FlintDbAiMemoryStoreFlintAutoAiMemoryStoreFlintDbAiRunStoreFlintDbAiThreadStoreFlintDbAiTraceStoreFlintDbAiArtifactStoreFlintAutoAiRepository- Added database fallback behavior for AI stores so development apps can keep running with in-memory storage when the database is not connected.
- Added canonical AI table definitions through
flintAiTables, covering AI runs, threads, traces, artifacts, run events, and thread messages. - Added
.envprovider setup helpers: useOpenAiFromEnv()useGeminiFromEnv()useAnthropicFromEnv()useChatProvidersFromEnv()- Added
.envproduction policy setup throughuseProductionToolPolicyFromEnv(). - Added sample AI table registration in the example app.
- Added AI example endpoints for support, reporting, and content-email workflows.
- Added tests for environment provider setup,
app.ai,ctx.ai, Flint AI persistence fallback, route execution, workflow metadata, and streaming HTTP client compatibility.
Changed
- Changed
package:flintdart/ai.dartto delegate to the standaloneflintaipackage instead of carrying a duplicated AI runtime insideflint_dart. - Changed the default
FlintAI runtime to use Flint auto adapters for memory and repository persistence. - Updated the example Flint UI component registry to use
PageRegistry. - Updated README guidance to show
.envprovider setup, production AI policy setup, Flint-backed AI persistence, and the sample AI endpoints. - Updated
.pubignoreand the example package ignore file so localpubspec_overrides.yamlfiles are not included in published packages.
Removed
- Removed the duplicated internal
lib/src/ai/*runtime implementation fromflint_dart. - Removed internal Flint Dart copies of AI providers, tools, workflows, memory stores, repository stores, and the basic agent example because these now live in
flint_ai.
Fixed
- Fixed route parenthesis counting in Swagger route extraction so static analysis no longer reports unrelated int/string equality checks.
v1.1.13
2026-06-18
Added
- Added
RichTextUploadmiddleware to handle secure rich text image/media uploads, featuring strict file extension whitelisting (blocking executables/scripts) and double-extension bypass mitigation (sanitizing intermediate dots). - Added
onUploadSuccesscallback hook toRichTextUploadmiddleware to allow custom actions (like saving file metadata to a database) when uploads complete successfully.
Changed
- Updated the Flint UI dependency to
flint_ui: ^0.1.11.
v1.1.12
2026-06-16
Changed
- Updated the Flint UI dependency to
flint_ui: ^0.1.10.
v1.1.11
2026-06-12
Fixed
flint runnow usesPORTfrom.envas its default port before falling back to8080, so the hot-reload launcher and app server agree without requiring--port.
v1.1.10
2026-06-12
Fixed
- Hot reload now updates its watcher port when the worker announces a different listening port, preventing false restart failures such as checking port
8080after the app starts on3030. - Hot reload worker processes now receive the selected port through the
PORTenvironment variable as well as the positional CLI argument.
v1.1.9
2026-06-12
Fixed
- Hot reload now serializes overlapping restarts so rapid save events cannot start multiple workers at the same time.
- Hot reload now waits for the old worker to release the configured port before starting the next worker.
- Hot reload now force-stops stale listeners on the configured port before startup, using
taskkillon Windows andlsof,ss, ornetstatplus process signals on Linux and macOS. - Restarted hot reload workers now inherit
FLINT_HOT=1, keeping worker processes from launching nested hot-reload parents. - Browser reload notifications now recover by restarting the server when the internal hot-reload endpoint is unavailable.
flint runnow accepts--port=<port>and--port <port>in addition to a positional port argument.
Changed
- Flint Web UI builds are deferred to the hot-reload watcher during development so the server can start first.
- Default Flint Web UI compilation now builds both the main bundle and page-level bundles when available.
- Flint Web UI output cleanup now removes stale bundle, manifest, compressed, and deferred-part files more safely.
- Updated the Flint UI dependency to
flint_ui: ^0.1.9.
v1.1.7
2026-05-31
Added
- Flint Web UI builds now generate
/flint-sw.js, a service worker that caches the Flint UI manifest, fallback bundle, and page-level bundles in the browser. res.page(...)now automatically registers the generated service worker during browser idle time when it exists and hot reload is disabled.
Fixed
- Service worker files now bypass immutable static caching so clients can pick up updated background caching behavior promptly.
v1.1.6
2026-05-31
Fixed
StaticFileMiddlewarenow serves JavaScript, CSS, and source map assets with production cache headers unless hot reload is enabled.StaticFileMiddlewarenow honors its gzip compression option for text-like assets when clients sendAccept-Encoding: gzip.
v1.1.5
2026-05-31
Changed
flint buildnow builds Flint Web UI assets first, generates page-level bundles by default when a component registry is detected, copies resources intobuild/, and then compiles the server executable.flint webnow treats page-level bundles as the default build mode and adds--no-page-bundlesfor projects that only want a single global JavaScript bundle.
v1.1.4
2026-05-31
Added
- Added manifest-aware Flint UI script selection for
res.page(...)so pages can automatically use page-level JavaScript bundles whenpublic/assets/js/flint-ui/manifest.jsonis present. - Added opt-in
flint web --page-bundles,--pages-config, and--page <name>CLI support for generating page-level Flint UI bundles and a manifest. - Added automatic page bundle discovery from
lib/ui/component_registry.dart, including direct imports for each registered page so generated page bundles do not import the full registry.
v1.1.3
2026-05-31
Release Status
- Public patch build.
Fixed
- Flint page props are now sanitized before being embedded in the
data-flint-pagepayload. DateTime,Uri, enum values, models, maps, iterables, and objects withtoJson()ortoMap()are converted into JSON-safe values for Flint UI pages.- Non-serializable prop values now fall back to strings instead of breaking page rendering.
v1.1.2
2026-05-26
Release Status
- Public patch build.
Added
- Added anti SQL injection middleware exports.
- Added database administration CLI improvements.
- Added request and response helpers for full-stack Flint UI apps.
Improved
- Updated Flint UI build commands and generators for app-owned
lib/uientrypoints. - Improved static asset discovery for compiled Flint UI bundles.
- Updated examples and README guidance for deploying FlintDart as a full-stack app host.
Tests
- Expanded coverage for app middleware behavior, response page rendering, request helpers, UI generation, and web UI bundle building.
v1.1.1
2026-05-14
Release Status
- Public patch build.
Fixed
- Flint Web UI auto build now discovers app-owned
lib/ui/main.dartentrypoints. - App-owned UI builds now default to
public/assets/js/flint-ui/main.dart.jsso deployed public assets stay organized. flintPage()now loads app-owned Flint UI bundles from/assets/js/flint-ui/main.dart.jswhen present.- UI generators now prefer
lib/uifor app-owned Flint UI source. - Flint's default middleware stack now serves
publicstatic assets automatically. - Development servers now bind exclusively to their port so stale workers cannot intercept hot-reload WebSocket traffic.
- The browser hot-reload client now backs off and avoids repeated console errors while the dev server restarts.
v1.1.0
2026-05-14
Release Status
- Public minor release.
Added
- Added first-class Flint UI package support through the standalone
flint_uidependency. - Added public bridge exports for
package:flintdart/flintui.dartand the deprecatedpackage:flintdart/flintweb_ui.dartcompatibility entrypoint. - Added Flint Web UI CLI workflows for creating and building browser UI entrypoints.
- Added hot-reload rebuild support for Flint UI browser bundles.
Changed
- Moved Flint UI usage onto the external
flint_ui: ^0.1.3package instead of the old in-framework UI implementation. - Updated the example app to use the standalone Flint UI package during local development.
v1.0.4
2026-04-30
Release Status
- Public patch build.
Added
- Added
Column.comment,Column.after, andColumn.renamedFromschema metadata. - Added safe column rename handling during migrations so
renamedFrompreserves existing data instead of dropping and re-adding columns. - Added helpful migration detection for case-only column renames, with guidance to use
renamedFrom. - Added
app.controller(...)andControllerRouteBuilderfor concise, request-scoped controller route registration. - Added shorter
controller(...)andcontrollerVoid(...)helpers while keepinguseController(...)anduseControllerVoid(...)compatible. - Added regression coverage for controller route groups, controller binding/unbinding, migration comments, MySQL
after, and rename handling.
Changed
- MySQL migrations can place newly added columns with
AFTERand persist column comments. - PostgreSQL migrations can apply column comments with
COMMENT ON COLUMN. - Updated the grouped controller route example to use the new
app.controller(...)API. - Pointed the in-repo example app to the local package path for development against unreleased framework APIs.
Fixed
- Prevented case-only column renames such as
Nicknametonicknamefrom silently becoming unsafe drop/add migrations. - Ensured
renamedFrombehaves as a one-time migration hint and is harmless on later reruns once the target column exists.
v1.0.3
2026-04-26
Release Status
- Public patch build.
Added
- Added
Auth.verifyPasswordResetCode(...)to validate password reset codes without changing the user's password. - Added the
AuthVerification.verifyPasswordResetCode(...)extension wrapper for backward-compatible verification flows. - Added regression coverage for
ExceptionMiddlewarehandling awaited asyncAuthExceptionfailures.
Changed
- Reused the password reset code verification helper inside
resetPasswordWithCode(...)so standalone checks and password resets share the same validation logic.
v1.0.2
2026-04-18
Release Status
- Public patch build.
Added
- Added
Request.rawBody()for exact undecoded request payload access alongside higher-level request parsers. - Added normalized request helpers
Request.input(...)andRequest.allInput()for query, JSON, form, multipart, file, and route-param access through one API. - Added websocket payload normalization so
emit(...)andsendJson(...)can safely serialize values likeDateTime, nested collections, exceptions, and objects withtoMap()ortoJson(). - Added Swagger/OpenAPI websocket documentation support with
101 Switching Protocols,x-websocket,x-flint-transport, and a top-levelx-websocketsextension block. - Added regression tests covering unified request input/validation, raw body access, websocket namespace behavior, websocket payload normalization, and websocket Swagger docs generation.
Changed
- Unified
Request.validate(...)so it auto-detects JSON, urlencoded form, and multipart request input instead of only validating JSON bodies. Request.form()now remains focused on text form fields while files stay available through file helpers and normalized input access.- WebSocket rooms are now namespace-scoped by path by default, with explicit cross-namespace helpers
emitToRoomIn(...)andemitToNamespace(...). - Swagger docs generation now discovers
app.websocket(...)routes and documents their handshake path in a Swagger-friendly way.
Fixed
- Fixed
orWherehandling so grouped OR clauses are compiled consistently across select, update, delete,first(), andall()query paths. - Fixed
all()on models so chained query builder filters are respected instead of returning every row. - Fixed MySQL where-based update parameter ordering when
orWherefilters are present. - Fixed websocket event encoding crashes when emitting non-primitive Dart objects such as
DateTime.
v1.0.1+1
2026-04-15
Release Status
- Public patch build.
Added
- Added focused
upsertregression tests coveringexcludeUpdatedData,createData, andupdateData.
Changed
- Expanded
upsertto support explicitcreateDataandupdateDatapayloads alongside the legacy shareddatapayload. - Restricted
excludeUpdatedDatato legacydatamode and improveduniqueByresolution when explicit payloads are used.
Fixed
- Prevented
upsertfrom creating rows when only update payload data is available. - Ensured
DB.overrideConnection(...)sets the active driver so database-backed tests can run against fake connections.
v1.0.1
2026-04-15
Release Status
- Public stable patch release.
Fixed
- Fixed
flint migrateso migration failures propagate instead of returning a successful process exit. - Fixed MySQL schema comparison to decode metadata reliably and avoid false column updates on clean reruns.
- Fixed migration type parsing so column types like
DOUBLE NOT NULLandBOOLEAN NOT NULLare parsed correctly. - Fixed default comparison normalization for boolean, numeric, and timestamp defaults during schema sync.
- Fixed MySQL
updatedathandling by correctly recognizingON UPDATE CURRENTTIMESTAMP.
Added
- Added migration support for syncing declared indexes from
Table.indexes, including composite indexes. - Added regression tests for schema comparison, default normalization, inline unique columns, and desired index generation.
Changed
runTableRegistrynow provides canonical table definitions to the migrator instead of precomputed diffs.- Restored
ai.dartto the top-levelpackage:flintdart/flintdart.dartexport surface for backward compatibility.
v1.0.0+33
2026-03-16
Release Status
- Public release build.
Changed
- Bumped package version to
1.0.0+33.
v1.0.0+32
2026-03-06
Release Status
- Public release build.
Fixed
- Fixed framework exception handling so
AuthExceptionand validation failures are caught reliably byExceptionMiddleware. - Unified validation exception behavior and aligned validation responses with HTTP
422. - Fixed validator edge cases for optional
emailfields andlist:<type>rules.
Changed
- Simplified the exported exception surface by removing unused exception wrappers and standardizing exception naming.
v1.0.0+31
2026-03-01
Release Status
- Public release build.
Fixed
- Fixed stale database connection failures after idle periods in long-running apps (for example, MySQL
Can not prepare stmt: connection closed). - Added automatic reconnect for both MySQL and PostgreSQL when a closed/stale connection is detected.
- Added one automatic retry for DB query/execute operations after reconnect on connection-loss errors.
- Enabled default DB keepalive heartbeats to reduce idle disconnects without requiring extra framework configuration.
v1.0.0+30
2026-02-27
Release Status
- Public release build.
Fixed
- Fixed
Response.view(...)to avoid wrapping full HTML documents in#main-content, preserving valid<head>metadata structure for SEO and favicon tags. - Improved full-document detection in
Response.view(...)(<!doctype htmland<html>/<head>/<body>checks) to prevent false wrapping. - Fixed dev hot-reload script to use the current browser host/protocol (
ws://orwss://) instead of hardcodedws://localhost:3000/flint_reload.
v1.0.0+29
2026-02-25
Release Status
- Public release build.
Added
- Added request-scoped
Controllerbase withbind(Context)and internal context storage. - Added controller getters:
req,res,socket, plusisHttp/isWebSocket. - Added meaningful controller context errors when
resis used in WebSocket routes orsocketis used in HTTP routes. - Added
controllerAction(...)helper for binding controller instances per HTTP/WebSocket route invocation. - Added
useController(...)anduseControllerVoid(...)extension helpers for shorter route group controller registration. - Added extensible
Context.extrasstorage and typedread<T>()/write<T>()helpers for future session/user injection.
Changed
- Added controller-based HTTP and WebSocket route examples to the example app and docs.
- Updated route-group examples to use controller actions without
Contextmethod parameters inside controllers.
v1.0.0+28
2026-02-18
Release Status
- Public release build.
Changed
- Bumped package version to
1.0.0+28.
v1.0.0+27
2026-02-11
Release Status
- Public stable release
1.0.1is planned for a later date.
Added
- Added new documentation screens in
flint_docs:What's NewandChangelog. - Added automatic loading of framework release notes from
flint_dart/CHANGELOG.mdin the changelog page.
Changed
- Updated documentation to a context-first handler style using
(Context ctx)examples. - Refined WebSocket route examples to emphasize route-level middleware usage.
Improved
- Improved changelog UI readability with one card per version.
- Clarified route handler return behavior for serializable values.
Fixed
- Fixed response lifecycle handling to avoid duplicate header-write crashes in error paths.
- Simplified WebSocket route flow by relying on route-level middleware execution.
v1.0.0+26
2025-12-20
Fixed
- Fixed hot reload behavior on Linux.
v1.0.0+25
2025-12-20
Notes
- Maintenance release.
v1.0.0+24
2025-12-20
Added
- Live hot reload for
.flint.htmltemplates without restarting the server. - WebSocket-based reload listener for development mode.
- Automatic WebSocket reconnection for hot reload when the connection drops.
Improved
- Developer experience when editing view templates.
- Faster iteration on UI changes with instant browser refresh.
Fixed
- Hot reload disconnect issues when the server restarts.
v1.0.0+23
2025-12-17
Added
- WebSocketManager helpers:
emitToRoom,emitToClient,emitToAllfor room-scoped and global event emission. - Global room system using
Set<FlintWebSocket>to prevent duplicate clients in rooms. - IsolateTask class for running heavy or long-running tasks in isolates with optional completion and error callbacks.
- ViewMailable class to send and queue emails from
.flint.htmltemplates, replacing the oldFlintUImail system. - Support for task progress broadcasting over WebSockets in background tasks.
- OOP-based RouteGroup system, enabling modular and nested route registration with middleware inheritance.
Changed
- Refactored
AppRoutesand other route groups to OOP style, replacing procedural callbacks. FlintWebSocketnow fully cleans up event listeners and rooms on disconnect.- Improved middleware inheritance across nested route groups.
Flintframework now supports emitting events safely from background isolates.
Fixed
- Prevented potential memory leaks on WebSocket disconnect.
- Minor JSON decoding fixes in
FlintWebSocket._handleIncomingMessage. - Fixed edge cases in queued mail sending.
Notes
- Internal build increment only (
+23) β no breaking changes. - All APIs are backward-compatible; some procedural route registration can be migrated to
RouteGroupclasses.
All notable changes to Flint Dart will be documented in this file.
v1.0.0+22
No details provided.
v1.0.0+21
2025-12-02
π New Features
- Full QueryBuilder Dartdoc: Added complete documentation for all QueryBuilder methods.
- Enhanced LIKE Helpers:
whereContains,whereStartsWith,whereEndsWith, and their OR counterparts now fully documented. - Date and Range Filtering:
whereDate,whereBetween,whereNotBetweenfully documented with examples. - Aggregate Functions:
count,max,min,avg,sumupdated with usage examples.
v1.0.0+20
2025-11-28
π New Features
- UUID Primary Key Support: Automatically generates UUIDs for string-based primary keys when no value is provided.
- Database-Aware Inserts: Insert logic now checks column types and auto-increment settings for both MySQL and PostgreSQL.
- Column Info Caching: Reduces repeated queries to
information_schemaby caching column metadata per table. - Seamless Auto-Increment Handling: Integer primary keys without values are left to DB auto-increment; no manual intervention needed.
- PostgreSQL & MySQL Compatible: Insert logic and ID handling work consistently across both supported databases.
v1.0.0+19
2025-11-25
π New Features
- QueryBuilder
orWhereLikeandorWhereNotLike: Adds OR-based LIKE conditions for more flexible queries. - Eager-Loaded Relations Support:
withRelations()method added for automatic relation fetching. - Pagination Improvements:
paginate()method now restores original limits/offsets after fetching.
v1.0.0+18
2025-11-22
π New Features
- Helper Methods for LIKE: Added
whereContains,whereStartsWith,whereEndsWithhelpers for clean queries. - OR Helper Methods:
orWhereContains,orWhereStartsWith,orWhereEndsWithfor OR-based matching. - Case Sensitivity Toggle: All LIKE helpers support
caseSensitiveparameter. - Escape Special Characters: LIKE patterns automatically escape
%andwithescapeLike()helper.
- Aggregate Functions: Added
count,max,min,avg, andsumfor QueryBuilder. - Group & Order:
groupBy()andorderBy()methods enhanced to support multiple fields. - LIMIT & OFFSET: Fluent interface for pagination and query control.
v1.0.0+17
π Flint Dart β
π New Features
- UUID Primary Key Support: Automatically generates UUIDs for string-based primary keys when no value is provided.
- Database-Aware Inserts: Insert logic now checks column types and auto-increment settings for both MySQL and PostgreSQL.
- Column Info Caching: Reduces repeated queries to
information_schemaby caching column metadata per table. - Seamless Auto-Increment Handling: Integer primary keys without values are left to DB auto-increment; no manual intervention needed.
- PostgreSQL & MySQL Compatible: Insert logic and ID handling work consistently across both supported databases.
π Improvements
- Enhanced debug logging for column info and UUID generation.
- Optimized fallback for missing column info.
- Refactored
_loadIdColumnInfofor reliable type detection across DB drivers. - Improved safety when inserting rows without IDs.
β Fixes
- Resolved issues with inserting into tables with integer primary keys without breaking auto-increment.
- Fixed type conversion issues in MySQL when fetching column data.
v1.0.0+16
π Flint Dart β
β¨ New Features
- Automatic Model Response Handling Flint Dart can now automatically respond with a
Model, aList<Model>, or even aFuture<Model>/Future<List<Model>>β no manual conversion required.
.toMap()/.toJson()Object Support Any object implementing a.toMap()or.toJson()method will automatically be serialized into JSON when passed tores.respond()orres.json().
.asMaps()Added forList<Model>You can now easily convert a list of models into a list of maps for flexible use in responses or logic.
βοΈ Improvements
- Enhanced JSON serialization to handle:
Future<Model>andFuture<List<Model>>- Nested
Futures within lists or maps - Custom classes exposing
toMap()ortoJson() - Fully async-safe response system:
respond()automatically awaits pending data before sending the response. - Smarter RespondType inference β now correctly detects:
- Flint widgets (
RespondType.flint) - JSON data (maps, lists, models, or futures)
- HTML strings (
<html>/<!DOCTYPE html>) - Plain text fallbacks
π§ Example Usage
v1.0.0+15
π Flint Dart β
v1.0.0+14
π Flint Dart β
v1.0.0+13
π Flint Dart β
v1.0.0+12
π Flint Dart β
v1.0.0+11
π Flint Dart β
π§© Updates & Improvements
- π οΈ Bug Fixes: Resolved several minor issues across the framework for improved stability.
- βοΈ Patch Enhancements: Applied multiple patches to improve reliability and developer experience.
- π§° CLI Upgrade: The CLI has been updated and upgraded with new commands and performance improvements.
- π Update System Added: Introduced support for automatic update checks and smoother upgrade handling.
Flint Dart continues to evolve toward a more seamless, developer-friendly backend framework for Dart.
v1.0.0+10
π Flint Dart β
Flint Dart continues to evolve into a complete backend + UI ecosystem for Dart, combining powerful server-side tools with a new rendering engine β Flint UI.
π¨ Flint UI β Cross-Platform Rendering System
Flint UI introduces a Flutter-like declarative UI engine for generating HTML, email layouts, and console output directly from Dart β no React or HTML strings required.
β¨ Core Concept
Flint UI widgets are class-based, composable, and type-safe, similar to Flutter widgets β but designed for rendering to multiple formats (HTML, text, JSON).
π§± Widget Architecture
Every Flint UI element extends FlintWidget, which defines multi-output rendering:
const ImageStyle( opacity: 0.9, fit: ObjectFit.cover, filter: "grayscale(100%)", title: "Profile Picture", );
β‘οΈ Converts to:
FlintContainer( style: BoxDecoration( gradient: Gradient.linear( stops: [ ColorStop("#FF5733", 0.0), ColorStop("#FFC300", 1.0), ], ), ), );
β‘οΈ Generates:
final email = FlintContainer( child: FlintColumn(children: [ FlintText("Welcome to Flint!", style: TextStyle(fontSize: 24)), FlintButton(text: "Get Started", onClick: () {}), ]), );
Log.debug(email.toHtml());
Server-Side Rendering (SSR)
Use Flint UI widgets to generate HTML views for your backend routes.
CREATE TABLE users ( id SERIAL PRIMARY KEY, name VARCHAR(255), createdat TIMESTAMP DEFAULT CURRENTTIMESTAMP, updatedat TIMESTAMP DEFAULT CURRENTTIMESTAMP );
β Supported on MySQL and PostgreSQL.
π Auth Table Enhancements
When the table matches your .env AUTH_TABLE (e.g. users), Flint automatically adds:
| Column | Type | Purpose | | ------------- | ------------ | ------------------------------------- | | provider | VARCHAR(100) | Login provider (Google, GitHub, etc.) | | provider_id | VARCHAR(255) | Provider user ID |
Example .env:
AUTHTABLE=users AUTHPROVIDERCOLUMN=provider AUTHPROVIDERIDCOLUMN=provider_id
π‘ Non-auth tables skip these fields automatically.
π« Mail System Upgrade
π§ Smarter Configuration via .env
Flintβs Mail system now reads all SMTP credentials directly from .env.
await MailConfig.load();
β Auto-detects provider β Applies SSL/TLS β Logs configuration status
Example output:
π§ Mail configured for provider: gmail (youremail@gmail.com)
π§° Mail API Enhancements
.from()β Custom sender via.env.queue()β Background mail sending with isolates.sendMail()β Automatic plain-text fallback- Unified configuration for all SMTP providers
Example:
v1.0.0+7
π Flint Dart β
Flint Dart continues to evolve into a complete backend framework for Dart modern tooling, and now a powerful real-time WebSocket system.
v1.0.0+6
π Flint Dart β
Flint Dart continues to evolve into a complete backend framework for Dart developers β with Laravel-style syntax, modern tooling, and now a powerful real-time WebSocket system.
π§© WebSocket System (Major Upgrade)
π Socket.IOβlike API
Flint now ships with an easy-to-use WebSocket engine with event-based communication:
final ws = FlintWebSocketClient("wss://api.example.com/chat"); ws.on('message', (data) => Log.debug("π© $data")); ws.emit('message', {'text': 'Hello World'});
π¬ Core Features
.emit(event, data)β Send named events easily.on(event, callback)β Listen for specific events.onMessage()and.onJsonMessage()remain supported for backward compatibility.join(room)and.leave(room)for group messaging.broadcast()and.broadcastToRoom()for real-time updates- Auto Reconnect on the client when connection drops
- JWT Support using the same middleware chain as HTTP routes
- Auth Middleware can now protect both HTTP and WebSocket connections
π§ Middleware Enhancements
Middleware can now be used directly on WebSocket routes with the same .useMiddleware() API.
Example
class AuthMiddleware extends Middleware { @override Handler handle(Handler next) { return (Request req, Response res) async { final token = req.bearerToken; if (token == null || token != "expected_token") { return res.status(401).send("Unauthorized"); } return await next(req, res); }; } }
π« Mail Integration
WebSocket events can now trigger Flint's Mail API, enabling instant notification workflows (e.g., send an email when a user joins a chat).
β Client connected: <uuid> β Client disconnected: <uuid>
v1.0.0+5
Middleware
- Added
.useMiddleware()API for attaching middleware directly to routes, making route-level middleware usage cleaner and more expressive. Example:
v1.0.0+4
Database
- Added
whereInquery builder method for filtering by a list of values. Example:
v1.0.0+3
- Database: Added autoConnectDb flag to allow disabling automatic DB connection (app.listen(port, autoConnectDb: false)).
Middleware:
- Added default ExceptionMiddleware (handles ValidationException and unexpected errors globally).
- Added withDefaultMiddleware flag to let users disable auto-injected middlewares.
Response API:
- All Response helpers (json, send, status, etc.) now return Response for consistent chaining.
- Handler typedef: Updated to FutureOr<Response?> Function(Request, Response) for better type safety and chaining.
Static Files:
- Fixed static file serving to always return a Response.
Error Handling:
- Default 404 Not Found handler now returns a proper response.
Docs:
- Improved docstrings for autoConnectDb, withDefaultMiddleware, and middleware behavior.
v1.0.0+2
- Initial public release of Flint Dart.
- Added Websocket.
v1.0.0+1
- Initial public release of Flint Dart.
- Added CLI commands:
create,start,migrate,make:model. - Added MySQL and PostgreSQL ORM support.
v1.0.0
- Bug fixes in migration system.
One language powering Full-Stack Web, Cross-Platform Clients, Native AI, and Connected Robotics.