Skip to content

Files

Latest commit

Aug 19, 2024
e7ce1a8 · Aug 19, 2024

History

History
375 lines (201 loc) · 12.3 KB

CHANGELOG.md

File metadata and controls

375 lines (201 loc) · 12.3 KB

Release notes

0.4.4

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)

0.4.3

New Features

  • Fastlite 0.0.9 dep

0.4.2

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

0.4.1

Bugs Squashed

  • post release fix for fill_form (#309)

0.4.0

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

0.3.7

New Features

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

Bugs Squashed

  • katex.js missing (#305)

0.3.6

Bugs Squashed

  • postrelease fix markdown js (#290)

0.3.5

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)

0.3.4

New Features

  • Experimental new named-based HTMX routing system (#267)
    • uri function to construct 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

0.3.3

New Features

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

0.3.2

New Features

  • generic list annotated params double-wrapped (#253)
  • Add Prev() (#253)
  • ft_cfg config defaults (#251)
  • Make fill_form set selected option (#185), thanks to @ostwilkens

Bugs Squashed

  • Use re.fullmatch for Beforeware (#221), thanks to @justbur

0.3.0

Breaking changes

  • Do not make session vars available as direct params (#237)

New Features

  • Add surreal.js helpers Me, Any, On (#238)
  • Add support for application/json in POST requests (#234), thanks to @khoaHyh
  • Wrap Starlette's session in an AttrDict (#213), thanks to @jbellis
  • Handle mismatches between existing db and schema (#202), thanks to @ncoop57
  • Raise warning if type is not passed (#195)

Bugs Squashed

  • railway deploy doesn't check for project name (#230), thanks to @gautam-e

0.2.4

Bugs Squashed

  • Signature may not resolve types from str (#198)

0.2.3

New Features

0.2.2

New Features

  • Check for railway app version (#192)
  • Update flat_xt to handle single FT item (#190)
  • Support FT in HTTPException handling (#175)
  • Add pep8_app.py (#163)
  • Add support for LaTeX formula rendering when rendering markdown (#158), thanks to @yym68686
  • Add to request: req.hdrs,req.ftrs,req.htmlkw,req.bodykw (#152)
  • Add htmlkw to fast_app (#145), thanks to @ranzuh
  • Add Form for multipart form data; initial poetry compatibility for serve (#137)
  • changes toast names to avoid conflict with bootstrap (#133), thanks to @vacmar01
  • Automatically move ('title','meta','link','style','base') into head (#122)
  • Allow for Any or FT as return type of routes (#112)

0.2.1

Bugs Squashed

  • railway deploy did not connect mount point on first use (#89)

0.2.0

  • Initial launch version

0.1.11

Breaking changes

  • Rename run_uv to serve (#84)

0.1.10

Dependencies

  • Update for fastcore XT to FT name change

0.1.9

New Features

  • Skip redundant formatting in loose_format (#79)
  • Add htmlkw param to FastHTML (#78)

0.1.8

New Features

  • Remove comments in html2xt (#76)
  • Handle relative paths in Social (#70)
  • Add ftrs for scripts etc at end of body element (#62)
  • Updated html2xt to use unpacked dicts when attr keys are not valid python names (#57), thanks to @matdmiller

Bugs Squashed

  • fix social relative urls (#77)

0.1.7

New Features

  • Add indent to html2xt (#53)
  • New fasthtml.ft namespace for components (#50)
  • Add bodykw in fast_app (#49)

0.1.6

New Features

  • File function (#48)
  • Remove picolink in fast_app if default_hdrs is False (#47), thanks to @pydanny

0.1.5

New Features

  • Add Favicon and Socials header creators (#45)
  • cookie function (#43)

0.1.4

New Features

  • ScriptX and StyleX for templated generation from external files (#42)

0.1.2

Breaking changes

  • fast_app returns app.route as well as app (#38)

New Features

  • Add viewport and charset to Meta by default (#36)
  • New function run_js (#36)

0.1.1

New Features

  • Add fasthtml.toasts (#35)
  • 'Afterware' support
  • Add injects to request
  • Basic websocket support (#29)
  • Support meta tags in returned tuple (#28)
  • Support npm provider in jsdelivr (#27)

Bugs Squashed

  • Style does not accept multiple positional args correctly (#34)

0.1.0

New Features

  • Add railway_deploy (#26)

0.0.17

New Features

  • Add run_uv() (#25)
  • New demo app (#25)
  • Add Container component (#24)
  • Add all HTML elements (#22)
  • Add svg.py (#21)

0.0.16

New Features

  • Update dashes to underscores in attrs in html2xt (#20)
  • Rename fasthtml.all to fasthtml.common (#19)

0.0.15

New Features

  • Add Titled (#18)
  • Disable PicoCSS font scaling
  • Use constant time string comparison for password checking, h/t José Valim (#17)

0.0.14

New Features

  • Add surreal js and scope scripts to default headers, and add default_hdrs bool to allow removing default headers (#16)
  • Add xtend.py Script and Style that do not need NotStr (#15)
  • Add jsd (#14)
  • Handle lists of hdrs (#14)
  • Autogen HTML wrapper for non-htmx partials (#13)

Bugs Squashed

  • html2txt only parses first partial (#12)

0.0.13

New Features

  • Add html2xt (#11)

0.0.12

New Features

  • Live Reloading (#9), thanks to @comhar
  • Add adv_app example (#8)

Bugs Squashed

  • use sqlite_minutils in all.py (#10)

0.0.10

New Features

  • sortable js support (#7)
  • Add MarkdownJS and support textareas (#6)
  • Handle multi-value form data correctly

0.0.9

New Features

  • Module __getattr__ for components (#5)
  • add railway cli link command (#4)

0.0.5

Bugs Squashed

  • fix body arg parsing (#2)

0.0.3

  • Init release