Change8

0.14.0

Breaking Changes
📦 fasthtmlView on GitHub →
2 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 support. It also adds enhanced testing utilities.

⚠️ Breaking Changes

  • The imports `uvicorn`, `apswutils.Database`, `fastlite.*`, and `fasthtml.common.*` (from `.pico`) have been removed from `fasthtml.common`.
  • Users relying on these specific imports from `fasthtml.common` must update their code to import these modules directly from their original locations or remove the dependency if no longer needed.

Migration Steps

  1. If you were importing `uvicorn`, `apswutils.Database`, or using wildcard imports from `fastlite` or `.pico` via `fasthtml.common`, update your imports to reference these modules directly from their source locations.

✨ 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