Skip to content

Dartvel 0.9.3

Choose a tag to compare

@Danroyal001 Danroyal001 released this 29 Sep 20:04
· 1359 commits to main since this release

Self-contained dartvel binaries. No Dart or Flutter SDK needed to run the CLI itself; dartvel build still needs Flutter for the target you are building.

This release has Linux binaries only (amd64 and arm64). GitHub Actions is billing-locked on Danroyal001, so they were built by hand; macOS and Windows binaries need those hosts and are added when the release workflow runs for v0.9.3.

Highlights:

  • Security: Studio never renders for a signed-out visitor. A signed-out request for <mount>/index.html used to get Studio's screens (never its data). Every Studio document path now redirects to sign-in without the Studio grant. Upgrade and redeploy if Studio is enabled.

  • Studio lists every page the application has. Pages lists compiled routes from the route manifest alongside stored pages (marked Code, Studio or Override). A compiled page opens read-only as its content or captured structure; Edit this page creates an override that takes the route over when deployed, and Restore compiled page deletes it. dartvel admin generate opens DVStudioInApp over the project's own routes and models, and the router generates dartvelPagePreview.

  • Data models are designed in Studio. A model's name, key, fields and their types, rules (smallest, largest, shortest, longest, pattern, unique), relations, indexes and who may use its data are created and edited in Studio's Data section, stored as a definition beside its records and served at once. Designed models have an instant data API at /_dartvel/data/<Model> governed by access policies, and on dartvel dev can be written to lib/models as @DVModel declarations.

  • Upstream Shelf adapter: package:dartvel_shelf/shelf.dart provides fromShelf() to mount existing Shelf pipelines, cascading handlers, and middlewares directly on Dartvel's high-performance native server runtime.

  • Native WebSockets: package:dartvel_shelf/web_socket.dart provides webSocketHandler and wsHandler backed by Axum and tungstenite with event-driven native frame delivery callbacks (aw_register_ws_wakeup_handler), eliminating polling latency and multiplying throughput.

  • Streaming response and request body backpressure: A bounded queue with native stream acknowledgements pauses fast Dart producers when native buffers fill, preventing unbounded native memory growth when clients read slowly.

  • Native static file serving: Native static asset handling streams via tower-http ServeFile, with full support for byte ranges (Range, 206, 416), HEAD, conditional requests (Last-Modified, If-Modified-Since, weak ETag, If-None-Match), and canonical path traversal protection.

Packages on pub.dev and npm: dartvel_core, dartvel_flutter, dartvel_cli, dartvel_dev 0.9.3; dartvel_shelf 0.9.2; dartvel_generator 1.4.2 unchanged. CHANGELOG.