Skip to content

Releases: AnswerDotAI/fasthtml

v0.4.4

19 Aug 01:07
Compare
Choose a tag to compare

New Features

  • Replace __call__ with rt in handler functions (#334)
  • Add flat_tuple and use it to allow nested tuples in route responses
  • Add body parameter for decoded body
  • Move pico-specific components to separate module (#327)
  • Add "get" and "post" as default methods on routes (#317)
  • Support Reverse URL lookups by exposing url_for (#189)

v0.4.3

16 Aug 04:34
Compare
Choose a tag to compare

New Features

  • Fastlite 0.0.9 dep

v0.4.2

15 Aug 17:03
Compare
Choose a tag to compare

New Features

  • Rename Checkbox to CheckboxX (#314)
    • CheckboxX also adds a hidden field before the checkbox
  • Automatically choose last field in form data if list provided by non-list parameter

v0.4.1

15 Aug 05:32
Compare
Choose a tag to compare

Bugs Squashed

  • post release fix for fill_form (#309)

v0.4.0

15 Aug 04:26
Compare
Choose a tag to compare

Breaking changes

  • __init.py__ now only contains fasthtml.core

New Features

  • Fastcore 1.7 compatibility (#307)
  • Add fasthtml.basics for importing the main fasthtml modules

v0.3.7

14 Aug 19:21
Compare
Choose a tag to compare

New Features

  • Add reload_includes and reload_excludes options to serve (#291), thanks to @pydanny

Bugs Squashed

  • katex.js missing (#305)

v0.3.6

14 Aug 00:38
Compare
Choose a tag to compare

Bugs Squashed

  • postrelease fix markdown js (#290)

v0.3.5

14 Aug 00:32
Compare
Choose a tag to compare

New Features

  • Support dict value in hx_vals (#288)
  • Add sess_cls param to FastHTML (#284)
  • Make index a special handler name for path "/" get request (#274)
  • Use run_in_threadpool for non-async handlers (#270)
  • Enhance LaTeX rendering in Markdown with support for environments (#269), thanks to @rian-dolphin

Bugs Squashed

  • Duplicate parameters in components.pyi (#255)

v0.3.4

12 Aug 09:54
Compare
Choose a tag to compare

New Features

  • Experimental new named-based HTMX routing system (#267)
    • uri function to constract url_for path params
    • patch HTTPConnection.url_path_for
    • replace HTTP verb FT attr names with hx- prefixed versions, and look up values in route names (with link used for href attrs)
    • Default route paths to /{func.__name__}
    • Default route method to post if func name isn't an http verb
    • Support skipping () in route decorators

v0.3.3

11 Aug 22:29
Compare
Choose a tag to compare

New Features

  • Default route name to function name if method provided (#263)
  • surreal and htmx bool params for FastHTML and fast_app (#258)