Skip to content

Dartvel v0.3.1

Choose a tag to compare

@Danroyal001 Danroyal001 released this 31 Aug 11:32
· 3228 commits to main since this release

dartvel update

dartvel update fetches the latest published binary and replaces the running one. It verifies the checksum before anything touches the executable, keeps the previous binary alongside as .old, and is a no-op when already current.

It refuses rather than guesses: an asset that does not match the host, a manifest without a checksum, a download whose hash does not match, or a CLI running through the Dart VM (where there is no packaged binary to replace).

npm: dartvel_cli now works

The CLI is dartvel_cli on pub.dev and dartvel_dev on npm, so npm i -g dartvel_cli used to install nothing. dartvel_cli is now a real npm package that depends on dartvel_dev and forwards to it — both names install the same CLI.

Framework

  • DVModifier.border — a rule or hairline no longer needs a raw Container and BoxDecoration.
  • @DVFunctionalWidget generates a widget class, not a function. A function has no element: no const, no state, and a BuildContext every caller had to thread. Call sites are unchanged.
  • Lowered bodies keep their imports. A page body that used the application's own components could not resolve them once inlined, which is why applications delegated to a public builder. A body reaching for a private symbol is now refused with a message naming it, rather than emitting generated code that does not compile.
  • Web compatibility restored — the distributed cache hashed with 64-bit constants JavaScript cannot represent, and LDAP pulled dart:io into every web build. Both broke flutter build web outright.
  • files.* platform bindings, confined to a root, including symlink escapes.