Skip to content

Releases

Waft 0.8.1

Choose a tag to compare

@xtyxtyx xtyxtyx released this 19 Nov 01:32
c807eac

Fixed

  • cargo waft build signs and notarizes on CI (#122):
    • An empty signing or notarization variable counts as unset, as GitHub Actions passes a secret nobody set.
    • A signing certificate's team is read from the certificate itself, parsed with x509-parser. It used to come from openssl's text, whose shape differs between OpenSSL and LibreSSL.
    • An identity whose team can't be read is kept, so APPLE_SIGNING_IDENTITY finds it.
  • The docs of Body::with_trailers and the redirect policy now say a request names its trailers in a Trailer header, and which redirects resend a body (#120, #121).

Waft 0.8.0

Choose a tag to compare

@xtyxtyx xtyxtyx released this 18 Nov 13:35
ae8b475

Upgrading from 0.7

  • WinUI names that clashed with use waft::* (#116): Page is FluentPage; the slider's and colour pickers' Orientation is Waft's Axis; a TableViewColumn takes visible(bool) in place of Visibility; CheckState is no longer public (a checkbox's value is Option<bool>, as Flutter's tristate Checkbox).
  • MultiViewApp's builder type is MultiViewBuilder (#116), no longer ViewBuilder.
  • waft-widgets no longer exports its widgets/constants (#116), as Flutter's widgets.dart does not; Material keeps its own K_MIN_INTERACTIVE_DIMENSION.
  • A BodyStream's trailers() (#115) is asked only once read has answered 0, must answer the same fields when asked again, and on a request body answers the fields to send.

New

  • HTTP body trailers (#115): Body::trailers() reads a response's trailers, reading what is left of the body first so it never waits; Body::with_trailers sends them. A platform that cannot send request trailers (Apple's, the web's) fails the request with WASI's HttpRequestTrailerSectionSize(Some(0)).
  • 307/308 redirects resend the body (#115): Body::try_clone() copies a body held in memory; Apple's client follows a 307/308 with its method and body and drops the body after a redirect that switched to GET.
  • Body::empty().length() is Some(0) (#115).
  • use waft::* beside any kit's * never clashes, and a test keeps it so (#116).
  • CI on Windows and Linux (#103).

Fixed

  • A NavigationView's pane title no longer runs under its search box when the toggle is hidden (#113).

Waft 0.7.0

Choose a tag to compare

@xtyxtyx xtyxtyx released this 18 Nov 10:51
627f5b6

Upgrading from 0.6

  • Picked files are read by their owner (#99, #102, #105): PickedFile::read_all is gone. A picked path is read with app.platform().files() (files.read(&path)); a picked handle or stream reads itself (handle.read_all()).
  • ColorScheme colours are methods (#106): scheme.primary(), with Flutter's fallbacks inside.
  • A bare WidgetsApp with home or routes needs a page route builder, as Flutter's does (#110); FluentApp, MaterialApp and CupertinoApp bring their own.
  • Padding and margins take EdgeInsets directly (#106); GridView constructors take padding.

New

  • File and HTTP IO as platform services (#99, #102, #105): Platform::files() and Platform::http() (the http crate's request and response, streaming bodies, WASI 0.3's three timeouts and error list), Apple's over NSURLSession, the web's over fetch; NetworkImage and FileImage with progress.
  • FluentApp and FluentPageRoute (#110, #111): Fluent's theme, light, dark or the system's, the icon font, WinUI's page entrance and the covered page's fade, and Fluent's text, selection and scroll defaults.
  • The selection areas (#100): SelectableRegion, Material's SelectionArea, selection across text, lists and cards.
  • Timer::periodic and delayed, catching up after a stall as Dart's VM does (#106, #110).
  • File dialogs close when their future is dropped (#101).
  • use waft::* reaches the types widgets take (#106, #109); LayoutBuilder goes wherever a widget goes; Ref and Entity say what each is for.
  • CI on Windows and Linux (#103).

Fixed

  • A crash with more than about 20 selectable items in one container: sorting now uses a port of Flutter's mergeSort (#100).

Waft 0.6.0

Choose a tag to compare

@xtyxtyx xtyxtyx released this 18 Nov 00:48
a99bfed

The first release published by CI from its tag. Waft now lives at github.com/waos-dev/waft.

Upgrading from 0.5

  • Arena objects are owned by counted references (#31). app.create answers a Retained<Handle<T>> that keeps the object alive; drop it to release it, where 0.5 asked for a manual destroy. Widgets that take a controller or focus node take the retained one (Retained::keep(app, controller)), and listenables are implemented for Retained<H>.
  • Erased routes and objects: a typed route becomes the one a navigator takes with route.into_erased() (was PageRoute::as_page_route(route)), and Dart's Object == is one erased type, AnyEq (#83).
  • show_* functions are builders (#71): ShowDatePicker::new(..).show(app, context) and the like, each option a method.
  • SelectorBarItem with a child has its own constructor, SelectorBarItem::with_child (#64).
  • Valo 0.26 (#94): ParagraphStyle carries a strut.

New

  • Material, ported far further (#22–#27, #38, #46, #67, #76): dropdowns, chips, segmented and toggle buttons, range slider, date and time pickers, autocomplete, reorderable lists, search, data tables, carousel, stepper, refresh indicator, expansion panels and more, with a gallery of every family.
  • Material adaptive layout from Compose (#77, #86): window size classes, the three-pane scaffold and navigation suite, with a gallery that adapts and Google's Reply sample. Expressive split button and button group (#90).
  • Text: StrutStyle through Text, EditableText, TextField, SelectableText and CupertinoTextField (#94); the base of Flutter's text selection (#89); 104 more text field cases (#73, #82).
  • WinUI: TableView (#44, #45, #50, #93), CommandBar (#49), AutoSuggestBox (#59), more Fluent symbols (#48, #61), centred InfoBadge numbers (#72).
  • Gestures: the double-tap recognizer and GestureDetector's callbacks (#85).
  • iOS gets a host of its own over UIKit's scenes, with text input (#29, #30, #34); Android reports its lifecycle and touch slop as Flutter's embedding does (#37, #51) and has shortcuts (#26, #28).
  • Platform: local time for DateTime (#47), how an image's pictures go (#54), and a macOS user activity against App Nap (#66).
  • Testing: one WidgetTester with flutter_test's defaults, the test fonts, a paints matcher and frames pumped as the shell runs them (#40, #52, #55, #65, #70).

Fixed

  • A table rebuilt over the same source keeps its selected row, and its selection follows its items while no table shows it (#93).
  • Two upstream Flutter fixes the port had copied: an autocomplete's leftover focus listener, and a reorderable list's gap (#87).
  • Shadows drop as Flutter's do (#88); a fling from past an edge carries on into the content (#42).