Change8

0.14.1

Breaking Changes
📦 fasthtmlView on GitHub →
5 breaking6 features🔧 1 symbols

Summary

This release focuses on performance improvements by speeding up imports and introduces significant new routing features, including class-based route groups and route beforeware functionality. Several internal imports were removed from `fasthtml.common`.

⚠️ Breaking Changes

  • The following imports have been removed from `fasthtml.common`: `uvicorn`, `apswutils.Database`, `fastlite.*`, and `fasthtml.common.pico.*`. Users relying on these direct imports must update their code.
  • Removed direct import of `uvicorn` from `fasthtml.common`.
  • Removed direct import of `apswutils.Database` from `fasthtml.common`.
  • Removed direct import of `fastlite.*` from `fasthtml.common`.
  • Removed direct import of `fasthtml.common.pico.*` from `fasthtml.common`.

Migration Steps

  1. Remove any direct imports of `uvicorn`, `apswutils.Database`, `fastlite.*`, or `fasthtml.common.pico.*` from `fasthtml.common` in your code.

✨ New Features

  • Speed up imports.
  • Added class-based route groups: using `@rt` on a class registers each HTTP method handler at the same path.
  • Added daemon JupyUvi for notebook testing.
  • Added FastHTMLTestClient with session decoding and a `get_testclient` method.
  • Allowed multiple route before functions.
  • Added "route beforeware" functionality.

Affected Symbols